mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
778 B
25 lines
778 B
#!/usr/bin/env python |
|
from __future__ import print_function |
|
|
|
import numpy as np |
|
import cv2 as cv |
|
|
|
from tests_common import NewOpenCVTests |
|
|
|
class Bindings(NewOpenCVTests): |
|
|
|
def check_name(self, name): |
|
#print(name) |
|
self.assertFalse(name == None) |
|
self.assertFalse(name == "") |
|
|
|
def test_registry(self): |
|
self.check_name(cv.videoio_registry.getBackendName(cv.CAP_ANY)); |
|
self.check_name(cv.videoio_registry.getBackendName(cv.CAP_FFMPEG)) |
|
self.check_name(cv.videoio_registry.getBackendName(cv.CAP_OPENCV_MJPEG)) |
|
backends = cv.videoio_registry.getBackends() |
|
for backend in backends: |
|
self.check_name(cv.videoio_registry.getBackendName(backend)) |
|
|
|
if __name__ == '__main__': |
|
NewOpenCVTests.bootstrap()
|
|
|