Class FrameSource
Create a video frame source
public class FrameSource : SharedPtrObject, IDisposable
- Inheritance
-
FrameSource
- Implements
- Derived
- Inherited Members
Constructors
FrameSource(int)
Create a framesource using the specific camera
public FrameSource(int camIndex)
Parameters
camIndex
intThe index of the camera to create capture from, starting from 0
FrameSource(string, bool)
Create video frame source from video file
public FrameSource(string fileName, bool tryUseGpu)
Parameters
fileName
stringThe name of the file
tryUseGpu
boolIf true, it will try to create video frame source using gpu
Properties
FrameSourcePtr
Get the pointer to the frame source
protected virtual nint FrameSourcePtr { get; }
Property Value
Methods
DisposeObject()
Release all the unmanaged memory associated with this framesource
protected override void DisposeObject()
NextFrame(IOutputArray)
Get the next frame
public void NextFrame(IOutputArray frame)
Parameters
frame
IOutputArrayThe output array to put the frame to