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 Namespace Reference

Classes

class  ARCamera
 A class that manages AR camera parameters and updates the projection matrix. This class utilizes camera calibration data to correct object positioning in AR space and provides functionalities for integrating with an OpenCV-based AR system. More...
 
class  ARGameObject
 Represents an augmented reality (AR) object that integrates with the ARCamera. This class manages solving Perspective-n-Point (PnP) problems, handling AR matrix transformations, and detecting whether the object is within the AR camera's viewport. More...
 
class  ARHelper
 The ARHelper class manages ARCamera and ARGameObjects, automating the calculation of ARMatrix and updating the Transform of the specified UpdateTarget. More...
 
class  AsyncGPUReadback2MatHelper
 A helper component class for efficiently converting Unity Texture objects, such as RenderTexture and external texture format Texture2D, to OpenCV Mat format using AsyncGPUReadback. More...
 
class  FpsManager
 
interface  ICameraSource2MatHelper
 Interface to provide conversion from camera source to Mat. More...
 
interface  IImageSource2MatHelper
 Interface to provide conversion from image source to Mat. More...
 
class  Image2MatHelper
 A helper component class for loading an image file using OpenCV's Imgcodecs.imread method and converting it to an OpenCV Mat format. More...
 
class  ImageOptimizationHelper
 A helper component for optimizing image processing in Unity by managing frame skipping and downscaling operations. More...
 
interface  IMatTransformationProvider
 Interface to define rotation and flip operations for image processing. More...
 
interface  IMatUpdateFPSProvider
 Interface to provide frame update rate functionality. More...
 
interface  ISource2MatHelper
 Base interface for converting various sources to Mat. More...
 
interface  ITextureSource2MatHelper
 Interface to provide conversion from texture source to Mat. More...
 
interface  IVideoSource2MatHelper
 Interface to provide conversion from video source to Mat. More...
 
class  MultiSource2MatHelper
 A versatile helper component class for obtaining frames as OpenCV Mat objects from multiple sources, allowing dynamic switching between different ISource2MatHelper classes. More...
 
class  Source2MatHelperErrorUnityEvent
 
class  Source2MatHelperUtils
 
class  UnityVideoPlayer2MatHelper
 A helper component class for obtaining video frames from a file using Unity's VideoPlayer and converting them to OpenCV Mat format. More...
 
class  VideoCapture2MatHelper
 A helper component class for obtaining video frames from a file using OpenCV's VideoCapture and converting them to OpenCV Mat format. More...
 
class  VideoCaptureCameraInputToMatHelper
 VideoCaptureCameraInput to mat helper. v 1.0.1 Depends on OpenCVForUnity version 2.4.4 (WebCamTextureToMatHelper v 1.1.3) or later. (Use the WebCamDevice.isFrontFacing and WebCamTexture.videoRotationAngle properties to flip the camera input image in VideoCaptue to the correct orientation.) More...
 
class  VideoCaptureToMatHelper
 VideoCapture to mat helper. v 1.0.4. More...
 
class  WebCamTexture2MatAsyncGPUHelper
 A helper component class for efficiently obtaining camera frames from WebCamTexture and converting them to OpenCV Mat format in real-time using AsyncGPUReadback. More...
 
class  WebCamTexture2MatHelper
 A helper component class for obtaining camera frames from WebCamTexture and converting them to OpenCV Mat format in real-time. More...
 
class  WebCamTextureToMatHelper
 WebCamTexture to mat helper. v 1.1.6. More...
 

Enumerations

enum  Source2MatHelperColorFormat : int {
  GRAY = 0 ,
  RGB ,
  BGR ,
  RGBA ,
  BGRA
}
 
enum  Source2MatHelperErrorCode : int {
  UNKNOWN = 0 ,
  CAMERA_DEVICE_NOT_EXIST ,
  CAMERA_PERMISSION_DENIED ,
  VIDEO_FILE_NOT_EXIST ,
  VIDEO_FILE_CANT_OPEN ,
  IMAGE_FILE_NOT_EXIST ,
  IMAGE_FILE_CANT_OPEN ,
  SOURCE_TEXTURE_IS_NULL ,
  SOURCE_TEXTURE_FORMAT_IS_NOT_SPPORTED ,
  ASYNC_GPU_READBACK_IS_NOT_SPPORTED ,
  RENDERTEXTURE_GRAPHICS_FORMAT_IS_NOT_SPPORTED ,
  TIMEOUT
}
 

Enumeration Type Documentation

◆ Source2MatHelperColorFormat

Enumerator
GRAY 
RGB 
BGR 
RGBA 
BGRA 

◆ Source2MatHelperErrorCode

Enumerator
UNKNOWN 
CAMERA_DEVICE_NOT_EXIST 
CAMERA_PERMISSION_DENIED 
VIDEO_FILE_NOT_EXIST 
VIDEO_FILE_CANT_OPEN 
IMAGE_FILE_NOT_EXIST 
IMAGE_FILE_CANT_OPEN 
SOURCE_TEXTURE_IS_NULL 
SOURCE_TEXTURE_FORMAT_IS_NOT_SPPORTED 
ASYNC_GPU_READBACK_IS_NOT_SPPORTED 
RENDERTEXTURE_GRAPHICS_FORMAT_IS_NOT_SPPORTED 
TIMEOUT