Enum opencv::videoio::VideoCaptureAPIs
source · #[repr(C)]pub enum VideoCaptureAPIs {
Show 29 variants
CAP_ANY = 0,
CAP_VFW = 200,
CAP_FIREWIRE = 300,
CAP_QT = 500,
CAP_UNICAP = 600,
CAP_DSHOW = 700,
CAP_PVAPI = 800,
CAP_OPENNI = 900,
CAP_OPENNI_ASUS = 910,
CAP_ANDROID = 1_000,
CAP_XIAPI = 1_100,
CAP_AVFOUNDATION = 1_200,
CAP_GIGANETIX = 1_300,
CAP_MSMF = 1_400,
CAP_WINRT = 1_410,
CAP_INTELPERC = 1_500,
CAP_OPENNI2 = 1_600,
CAP_OPENNI2_ASUS = 1_610,
CAP_OPENNI2_ASTRA = 1_620,
CAP_GPHOTO2 = 1_700,
CAP_GSTREAMER = 1_800,
CAP_FFMPEG = 1_900,
CAP_IMAGES = 2_000,
CAP_ARAVIS = 2_100,
CAP_OPENCV_MJPEG = 2_200,
CAP_INTEL_MFX = 2_300,
CAP_XINE = 2_400,
CAP_UEYE = 2_500,
CAP_OBSENSOR = 2_600,
}
Expand description
cv::VideoCapture API backends identifier.
Select preferred API for a capture object. To be used in the VideoCapture::VideoCapture() constructor or VideoCapture::open()
Note:
- Backends are available only if they have been built with your OpenCV binaries. See [videoio_overview] for more information.
- Microsoft Media Foundation backend tries to use hardware accelerated transformations if possible. Environment flag “OPENCV_VIDEOIO_MSMF_ENABLE_HW_TRANSFORMS” set to 0 disables it and may improve initialization time. More details: https://learn.microsoft.com/en-us/windows/win32/medfound/mf-readwrite-enable-hardware-transforms
Variants§
CAP_ANY = 0
Auto detect == 0
CAP_VFW = 200
Video For Windows (obsolete, removed)
CAP_FIREWIRE = 300
IEEE 1394 drivers
CAP_QT = 500
QuickTime (obsolete, removed)
CAP_UNICAP = 600
Unicap drivers (obsolete, removed)
CAP_DSHOW = 700
DirectShow (via videoInput)
CAP_PVAPI = 800
PvAPI, Prosilica GigE SDK
CAP_OPENNI = 900
OpenNI (for Kinect)
CAP_OPENNI_ASUS = 910
OpenNI (for Asus Xtion)
CAP_ANDROID = 1_000
MediaNDK (API Level 21+) and NDK Camera (API level 24+) for Android
CAP_XIAPI = 1_100
XIMEA Camera API
CAP_AVFOUNDATION = 1_200
AVFoundation framework for iOS (OS X Lion will have the same API)
CAP_GIGANETIX = 1_300
Smartek Giganetix GigEVisionSDK
CAP_MSMF = 1_400
Microsoft Media Foundation (via videoInput). See platform specific notes above.
CAP_WINRT = 1_410
Microsoft Windows Runtime using Media Foundation
CAP_INTELPERC = 1_500
RealSense (former Intel Perceptual Computing SDK)
CAP_OPENNI2 = 1_600
OpenNI2 (for Kinect)
CAP_OPENNI2_ASUS = 1_610
OpenNI2 (for Asus Xtion and Occipital Structure sensors)
CAP_OPENNI2_ASTRA = 1_620
OpenNI2 (for Orbbec Astra)
CAP_GPHOTO2 = 1_700
gPhoto2 connection
CAP_GSTREAMER = 1_800
GStreamer
CAP_FFMPEG = 1_900
Open and record video file or stream using the FFMPEG library
CAP_IMAGES = 2_000
OpenCV Image Sequence (e.g. img_%02d.jpg)
CAP_ARAVIS = 2_100
Aravis SDK
CAP_OPENCV_MJPEG = 2_200
Built-in OpenCV MotionJPEG codec
CAP_INTEL_MFX = 2_300
Intel MediaSDK
CAP_XINE = 2_400
XINE engine (Linux)
CAP_UEYE = 2_500
uEye Camera API
CAP_OBSENSOR = 2_600
For Orbbec 3D-Sensor device/module (Astra+, Femto, Astra2, Gemini2, Gemini2L, Gemini2XL, Femto Mega) attention: Astra2, Gemini2, and Gemini2L cameras currently only support Windows and Linux kernel versions no higher than 4.15, and higher versions of Linux kernel may have exceptions.
Trait Implementations§
source§impl Clone for VideoCaptureAPIs
impl Clone for VideoCaptureAPIs
source§fn clone(&self) -> VideoCaptureAPIs
fn clone(&self) -> VideoCaptureAPIs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VideoCaptureAPIs
impl Debug for VideoCaptureAPIs
source§impl From<VideoCaptureAPIs> for i32
impl From<VideoCaptureAPIs> for i32
source§fn from(v: VideoCaptureAPIs) -> Self
fn from(v: VideoCaptureAPIs) -> Self
source§impl PartialEq for VideoCaptureAPIs
impl PartialEq for VideoCaptureAPIs
source§fn eq(&self, other: &VideoCaptureAPIs) -> bool
fn eq(&self, other: &VideoCaptureAPIs) -> bool
self
and other
values to be equal, and is used
by ==
.