OpenCV  4.1.0
Open Source Computer Vision
Functions
Query I/O API backends registry

Functions

cv::String cv::videoio_registry::getBackendName (VideoCaptureAPIs api)
 Returns backend API name or "unknown".
 
std::vector< VideoCaptureAPIs > cv::videoio_registry::getBackends ()
 Returns list of all builtin backends.
 
std::vector< VideoCaptureAPIs > cv::videoio_registry::getCameraBackends ()
 Returns list of available backends which works via cv::VideoCapture(int index)
 
std::vector< VideoCaptureAPIs > cv::videoio_registry::getStreamBackends ()
 Returns list of available backends which works via cv::VideoCapture(filename)
 
std::vector< VideoCaptureAPIs > cv::videoio_registry::getWriterBackends ()
 Returns list of available backends which works via cv::VideoWriter()
 
bool cv::videoio_registry::hasBackend (VideoCaptureAPIs api)
 Returns true if backend is available.
 

Detailed Description

This section contains API description how to query/configure available Video I/O backends.

Runtime configuration options:

Function Documentation

cv::String cv::videoio_registry::getBackendName ( VideoCaptureAPIs  api)

Returns backend API name or "unknown".

Parameters
apibackend ID (VideoCaptureAPIs)
std::vector<VideoCaptureAPIs> cv::videoio_registry::getBackends ( )

Returns list of all builtin backends.

std::vector<VideoCaptureAPIs> cv::videoio_registry::getCameraBackends ( )

Returns list of available backends which works via cv::VideoCapture(int index)

std::vector<VideoCaptureAPIs> cv::videoio_registry::getStreamBackends ( )

Returns list of available backends which works via cv::VideoCapture(filename)

std::vector<VideoCaptureAPIs> cv::videoio_registry::getWriterBackends ( )

Returns list of available backends which works via cv::VideoWriter()

bool cv::videoio_registry::hasBackend ( VideoCaptureAPIs  api)

Returns true if backend is available.