enum cv::VideoCaptureAPIs

Overview

VideoCapture API backends identifier. Moreā€¦

#include <videoio.hpp>

enum VideoCaptureAPIs
{
    CAP_ANY          = 0,
    CAP_VFW          = 200,
    CAP_V4L          = 200,
    CAP_V4L2         = CAP_V4L,
    CAP_FIREWIRE     = 300,
    CAP_FIREWARE     = CAP_FIREWIRE,
    CAP_IEEE1394     = CAP_FIREWIRE,
    CAP_DC1394       = CAP_FIREWIRE,
    CAP_CMU1394      = CAP_FIREWIRE,
    CAP_QT           = 500,
    CAP_UNICAP       = 600,
    CAP_DSHOW        = 700,
    CAP_PVAPI        = 800,
    CAP_OPENNI       = 900,
    CAP_OPENNI_ASUS  = 910,
    CAP_ANDROID      = 1000,
    CAP_XIAPI        = 1100,
    CAP_AVFOUNDATION = 1200,
    CAP_GIGANETIX    = 1300,
    CAP_MSMF         = 1400,
    CAP_WINRT        = 1410,
    CAP_INTELPERC    = 1500,
    CAP_OPENNI2      = 1600,
    CAP_OPENNI2_ASUS = 1610,
    CAP_GPHOTO2      = 1700,
    CAP_GSTREAMER    = 1800,
    CAP_FFMPEG       = 1900,
    CAP_IMAGES       = 2000,
    CAP_ARAVIS       = 2100,
    CAP_OCV_MJPEG    = 2200,
};

Detailed Documentation

VideoCapture API backends identifier.

Select preferred API for a capture object. To be used in the VideoCapture::VideoCapture() constructor or VideoCapture::open()

Backends are available only if they have been built with your OpenCV binaries. See Video I/O with OpenCV Overview for more information.

Enum Values

CAP_ANY

Auto detect == 0.

CAP_VFW

Video For Windows (platform native)

CAP_V4L

V4L/V4L2 capturing support via libv4l.

CAP_V4L2

Same as CAP_V4L.

CAP_FIREWIRE

IEEE 1394 drivers.

CAP_FIREWARE

Same as CAP_FIREWIRE.

CAP_IEEE1394

Same as CAP_FIREWIRE.

CAP_DC1394

Same as CAP_FIREWIRE.

CAP_CMU1394

Same as CAP_FIREWIRE.

CAP_QT

QuickTime.

CAP_UNICAP

Unicap drivers.

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

Intel Perceptual Computing SDK.

CAP_OPENNI2

OpenNI2 (for Kinect)

CAP_OPENNI2_ASUS

OpenNI2 (for Asus Xtion and Occipital Structure sensors)

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_OCV_MJPEG

Built-in MotionJPEG codec.