|
OpenCV for Unity 3.0.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.12.0/index.html ) for the details of the argument of the method.
|
Interface to provide conversion from video source to Mat. More...
Public Member Functions | |
| float | GetFPS () |
| Gets the current frame rate (FPS). | |
| int | GetFrameCount () |
| Gets the total frame count. | |
| int | GetFrameIndex () |
| Gets the current frame index. | |
| float | GetFramePosRatio () |
| Gets the current frame position ratio. | |
| void | SetFrameIndex (int index) |
| Sets the frame index. | |
| void | SetFramePosRatio (float ratio) |
| Sets the frame position ratio. | |
Public Member Functions inherited from OpenCVForUnity.UnityUtils.Helper.ISource2MatHelper | |
| bool | DidUpdateThisFrame () |
| Gets whether the frame was updated in the current frame. | |
| void | Dispose () |
| Disposes of resources. | |
| Source2MatHelperColorFormat | GetBaseColorFormat () |
| Gets the base color format. | |
| string | GetDeviceName () |
| Gets the device name. | |
| int | GetHeight () |
| Gets the height of the frame. | |
| Mat | GetMat () |
| Gets the current Mat. | |
| int | GetWidth () |
| Gets the width of the frame. | |
| void | Initialize (bool autoPlay) |
| Initializes the helper with the specified auto-play setting. | |
| bool | IsInitialized () |
| Gets whether the helper is initialized. | |
| bool | IsPaused () |
| Gets whether playback is paused. | |
| bool | IsPlaying () |
| Gets whether playback is active. | |
| void | Pause () |
| Pauses playback. | |
| void | Play () |
| Starts playing. | |
| void | Stop () |
| Stops playback. | |
Properties | |
| bool | loop [get, set] |
| Gets or sets whether to loop the video. | |
| string | requestedVideoFilePath [get, set] |
| Gets or sets the requested video file path. | |
Properties inherited from OpenCVForUnity.UnityUtils.Helper.ISource2MatHelper | |
| UnityEvent | onDisposed [get, set] |
| Gets or sets the event that is invoked when resources are disposed. | |
| Source2MatHelperErrorUnityEvent | onErrorOccurred [get, set] |
| Gets or sets the event that is invoked when an error occurs. | |
| UnityEvent | onInitialized [get, set] |
| Gets or sets the event that is invoked when initialization is complete. | |
| Source2MatHelperColorFormat | outputColorFormat [get, set] |
| Gets or sets the output color format. | |
| int | timeoutFrameCount [get, set] |
| Gets or sets the timeout frame count. | |
Interface to provide conversion from video source to Mat.
| float OpenCVForUnity.UnityUtils.Helper.IVideoSource2MatHelper.GetFPS | ( | ) |
Gets the current frame rate (FPS).
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.
| int OpenCVForUnity.UnityUtils.Helper.IVideoSource2MatHelper.GetFrameCount | ( | ) |
Gets the total frame count.
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.
| int OpenCVForUnity.UnityUtils.Helper.IVideoSource2MatHelper.GetFrameIndex | ( | ) |
Gets the current frame index.
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.
| float OpenCVForUnity.UnityUtils.Helper.IVideoSource2MatHelper.GetFramePosRatio | ( | ) |
Gets the current frame position ratio.
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.
| void OpenCVForUnity.UnityUtils.Helper.IVideoSource2MatHelper.SetFrameIndex | ( | int | index | ) |
Sets the frame index.
| index | The frame index |
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.
| void OpenCVForUnity.UnityUtils.Helper.IVideoSource2MatHelper.SetFramePosRatio | ( | float | ratio | ) |
Sets the frame position ratio.
| ratio | The frame position ratio (0.0 to 1.0) |
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.
|
getset |
Gets or sets whether to loop the video.
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.
|
getset |
Gets or sets the requested video file path.
Implemented in OpenCVForUnity.UnityUtils.Helper.UnityVideoPlayer2MatHelper, and OpenCVForUnity.UnityUtils.Helper.VideoCapture2MatHelper.