#[repr(C)]
pub enum VideoCaptureAPIs {
Show 29 variants CAP_ANY, CAP_VFW, CAP_FIREWIRE, CAP_QT, CAP_UNICAP, CAP_DSHOW, CAP_PVAPI, CAP_OPENNI, CAP_OPENNI_ASUS, CAP_ANDROID, CAP_XIAPI, CAP_AVFOUNDATION, CAP_GIGANETIX, CAP_MSMF, CAP_WINRT, CAP_INTELPERC, CAP_OPENNI2, CAP_OPENNI2_ASUS, CAP_OPENNI2_ASTRA, CAP_GPHOTO2, CAP_GSTREAMER, CAP_FFMPEG, CAP_IMAGES, CAP_ARAVIS, CAP_OPENCV_MJPEG, CAP_INTEL_MFX, CAP_XINE, CAP_UEYE, CAP_OBSENSOR,
}
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.

Variants§

§

CAP_ANY

Auto detect == 0

§

CAP_VFW

Video For Windows (obsolete, removed)

§

CAP_FIREWIRE

IEEE 1394 drivers

§

CAP_QT

QuickTime (obsolete, removed)

§

CAP_UNICAP

Unicap drivers (obsolete, removed)

§

CAP_DSHOW

DirectShow (via videoInput)

§

CAP_PVAPI

PvAPI, Prosilica GigE SDK

§

CAP_OPENNI

OpenNI (for Kinect)

§

CAP_OPENNI_ASUS

OpenNI (for Asus Xtion)

§

CAP_ANDROID

Android - not used

§

CAP_XIAPI

XIMEA Camera API

§

CAP_AVFOUNDATION

AVFoundation framework for iOS (OS X Lion will have the same API)

§

CAP_GIGANETIX

Smartek Giganetix GigEVisionSDK

§

CAP_MSMF

Microsoft Media Foundation (via videoInput)

§

CAP_WINRT

Microsoft Windows Runtime using Media Foundation

§

CAP_INTELPERC

RealSense (former Intel Perceptual Computing SDK)

§

CAP_OPENNI2

OpenNI2 (for Kinect)

§

CAP_OPENNI2_ASUS

OpenNI2 (for Asus Xtion and Occipital Structure sensors)

§

CAP_OPENNI2_ASTRA

OpenNI2 (for Orbbec Astra)

§

CAP_GPHOTO2

gPhoto2 connection

§

CAP_GSTREAMER

GStreamer

§

CAP_FFMPEG

Open and record video file or stream using the FFMPEG library

§

CAP_IMAGES

OpenCV Image Sequence (e.g. img_%02d.jpg)

§

CAP_ARAVIS

Aravis SDK

§

CAP_OPENCV_MJPEG

Built-in OpenCV MotionJPEG codec

§

CAP_INTEL_MFX

Intel MediaSDK

§

CAP_XINE

XINE engine (Linux)

§

CAP_UEYE

uEye Camera API

§

CAP_OBSENSOR

For Orbbec 3D-Sensor device/module (Astra+, Femto)

Trait Implementations§

source§

impl Clone for VideoCaptureAPIs

source§

fn clone(&self) -> VideoCaptureAPIs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VideoCaptureAPIs

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<VideoCaptureAPIs> for VideoCaptureAPIs

source§

fn eq(&self, other: &VideoCaptureAPIs) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for VideoCaptureAPIs

source§

impl Eq for VideoCaptureAPIs

source§

impl StructuralEq for VideoCaptureAPIs

source§

impl StructuralPartialEq for VideoCaptureAPIs

source§

impl VectorElement for VideoCaptureAPIswhere Vector<VideoCaptureAPIs>: VectorExtern<VideoCaptureAPIs>,

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.