VideoCapture class

Inheritance
Available extensions

Constructors

VideoCapture.create(String filename, {int apiPreference = CAP_ANY})
Opens a video file or a capturing device or an IP video stream for video capturing with API Preference.
factory
VideoCapture.empty()
factory
VideoCapture.fromDevice(int device, {int apiPreference = CAP_ANY})
factory
VideoCapture.fromFile(String filename, {int apiPreference = CAP_ANY})
factory
VideoCapture.fromPointer(VideoCapturePtr ptr)
factory

Properties

codec → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Whether this object has been disposed.
no setterinherited
isOpened → bool
Returns true if video capturing has been initialized already.
no setter
props → List<Object?>
no setterinherited
ptr ↔ Pointer<VideoCapture>
getter/setter pairinherited
ref → VideoCapture
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases the underlying native resources. Idempotent: calling it more than once is safe, but the object must not be used after dispose.
inherited
freeNative() → void
Frees the native resources owned by this object. Subclasses implement the concrete free logic here; callers must use dispose instead.
override
get(int propId) → double
Returns the specified VideoCapture property.
getBackendName() → String
grab() → void
Grabs the next frame from video file or capturing device.
grabAsync() → Future<void>

Available on VideoCapture, provided by the VideoCaptureAsync extension

Grabs the next frame from video file or capturing device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(String uri, {int apiPreference = CAP_ANY}) → bool
Opens a video file or a capturing device or an IP video stream for video capturing with API Preference and parameters.
openAsync(String uri, {int apiPreference = CAP_ANY}) → Future<bool>

Available on VideoCapture, provided by the VideoCaptureAsync extension

Opens a video file or a capturing device or an IP video stream for video capturing with API Preference and parameters.
openIndex(int index, {int apiPreference = CAP_ANY}) → bool
Opens a camera for video capturing with API Preference and parameters.
openIndexAsync(int index, {int apiPreference = CAP_ANY}) → Future<bool>

Available on VideoCapture, provided by the VideoCaptureAsync extension

Opens a camera for video capturing with API Preference and parameters.
read({Mat? m}) → (bool, Mat)
readAsync({Mat? m}) → Future<(bool, Mat)>

Available on VideoCapture, provided by the VideoCaptureAsync extension

release() → void
set(int prop, double value) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

finalizer → NativeFinalizer
final

Static Methods

toCodec(String codec) → double