OpenCV 4.5.3(日本語機械翻訳)
registry.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4
5 #ifndef OPENCV_VIDEOIO_REGISTRY_HPP
6 #define OPENCV_VIDEOIO_REGISTRY_HPP
7
8 #include <opencv2/videoio.hpp>
9
10 namespace cv { namespace videoio_registry {
27 CV_EXPORTS_W cv::String getBackendName(VideoCaptureAPIs api);
28
30 CV_EXPORTS_W std::vector<VideoCaptureAPIs> getBackends();
31
33 CV_EXPORTS_W std::vector<VideoCaptureAPIs> getCameraBackends();
34
36 CV_EXPORTS_W std::vector<VideoCaptureAPIs> getStreamBackends();
37
39 CV_EXPORTS_W std::vector<VideoCaptureAPIs> getWriterBackends();
40
42 CV_EXPORTS_W bool hasBackend(VideoCaptureAPIs api);
43
45 CV_EXPORTS_W bool isBackendBuiltIn(VideoCaptureAPIs api);
46
48 CV_EXPORTS_W std::string getCameraBackendPluginVersion(
50 CV_OUT int& version_ABI,
51 CV_OUT int& version_API
52);
53
55 CV_EXPORTS_W std::string getStreamBackendPluginVersion(
57 CV_OUT int& version_ABI,
58 CV_OUT int& version_API
59);
60
62 CV_EXPORTS_W std::string getWriterBackendPluginVersion(
64 CV_OUT int& version_ABI,
65 CV_OUT int& version_API
66);
67
68
70}} // namespace
71
72 #endif // OPENCV_VIDEOIO_REGISTRY_HPP
VideoCaptureAPIs
cv::VideoCapture API backends identifier.
Definition: videoio.hpp:90
CV_EXPORTS_W std::vector< VideoCaptureAPIs > getStreamBackends()
Returns list of available backends which works via cv::VideoCapture(filename)
CV_EXPORTS_W std::string getCameraBackendPluginVersion(VideoCaptureAPIs api, CV_OUT int &version_ABI, CV_OUT int &version_API)
Returns description and ABI/API version of videoio plugin's camera interface
CV_EXPORTS_W std::string getStreamBackendPluginVersion(VideoCaptureAPIs api, CV_OUT int &version_ABI, CV_OUT int &version_API)
Returns description and ABI/API version of videoio plugin's stream capture interface
CV_EXPORTS_W bool hasBackend(VideoCaptureAPIs api)
Returns true if backend is available
CV_EXPORTS_W std::vector< VideoCaptureAPIs > getCameraBackends()
Returns list of available backends which works via cv::VideoCapture(int index)
CV_EXPORTS_W std::vector< VideoCaptureAPIs > getWriterBackends()
Returns list of available backends which works via cv::VideoWriter()
CV_EXPORTS_W std::string getWriterBackendPluginVersion(VideoCaptureAPIs api, CV_OUT int &version_ABI, CV_OUT int &version_API)
Returns description and ABI/API version of videoio plugin's writer interface
CV_EXPORTS_W std::vector< VideoCaptureAPIs > getBackends()
Returns list of all available backends
CV_EXPORTS_W cv::String getBackendName(VideoCaptureAPIs api)
Returns backend API name or "UnknownVideoAPI(xxx)"
CV_EXPORTS_W bool isBackendBuiltIn(VideoCaptureAPIs api)
Returns true if backend is built in (false if backend is used as plugin)
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75