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.
Loading...
Searching...
No Matches
OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper Interface Reference

Interface to provide conversion from camera source to Mat. More...

Public Member Functions

Matrix4x4 GetCameraToWorldMatrix ()
 Gets the camera to world space transformation matrix.
 
float GetFPS ()
 Gets the current frame rate (FPS).
 
Matrix4x4 GetProjectionMatrix ()
 Gets the camera projection matrix.
 
bool IsFrontFacing ()
 Gets whether the front-facing camera is being used.
 
- 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

string requestedDeviceName [get, set]
 Gets or sets the requested device name.
 
float requestedFPS [get, set]
 Gets or sets the requested frame rate (FPS).
 
int requestedHeight [get, set]
 Gets or sets the requested height.
 
bool requestedIsFrontFacing [get, set]
 Gets or sets whether to use the front-facing camera.
 
int requestedWidth [get, set]
 Gets or sets the requested width.
 
- 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.
 

Detailed Description

Interface to provide conversion from camera source to Mat.

Member Function Documentation

◆ GetCameraToWorldMatrix()

Matrix4x4 OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.GetCameraToWorldMatrix ( )

Gets the camera to world space transformation matrix.

Returns
The camera to world space transformation matrix

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

◆ GetFPS()

float OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.GetFPS ( )

Gets the current frame rate (FPS).

Returns
The current FPS

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

◆ GetProjectionMatrix()

Matrix4x4 OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.GetProjectionMatrix ( )

Gets the camera projection matrix.

Returns
The camera projection matrix

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

◆ IsFrontFacing()

bool OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.IsFrontFacing ( )

Gets whether the front-facing camera is being used.

Returns
True if using the front-facing camera

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

Property Documentation

◆ requestedDeviceName

string OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.requestedDeviceName
getset

Gets or sets the requested device name.

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

◆ requestedFPS

float OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.requestedFPS
getset

Gets or sets the requested frame rate (FPS).

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

◆ requestedHeight

int OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.requestedHeight
getset

Gets or sets the requested height.

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

◆ requestedIsFrontFacing

bool OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.requestedIsFrontFacing
getset

Gets or sets whether to use the front-facing camera.

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.

◆ requestedWidth

int OpenCVForUnity.UnityUtils.Helper.ICameraSource2MatHelper.requestedWidth
getset

Gets or sets the requested width.

Implemented in OpenCVForUnity.UnityUtils.Helper.WebCamTexture2MatHelper.


The documentation for this interface was generated from the following file: