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:

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

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 From<VideoCaptureAPIs> for i32

source§

fn from(v: VideoCaptureAPIs) -> Self

Converts to this type from the input type.
source§

impl PartialEq 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 TryFrom<i32> for VideoCaptureAPIs

§

type Error = Error

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

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for VideoCaptureAPIs

source§

impl Eq for VideoCaptureAPIs

source§

impl StructuralPartialEq for VideoCaptureAPIs

source§

impl VectorElement for VideoCaptureAPIs

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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 T
where 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.