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
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
get(int propId) double
Returns the specified VideoCapture property.
getBackendName() String
grab() → void
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