opencv/modules/imgproc/misc/python/test/test_matx_converter.py
2022-11-30 18:31:03 +03:00

20 lines
480 B
Python

from __future__ import print_function
import cv2 as cv
from cv2 import testMatxPythonConverter
from tests_common import NewOpenCVTests
class MatxConverterTest(NewOpenCVTests):
def test_matxconverter(self):
samples = ['samples/data/lena.jpg', 'cv/cascadeandhog/images/mona-lisa.png']
for sample in samples:
img = self.get_sample(sample)
out = testMatxPythonConverter(img)
if __name__ == '__main__':
NewOpenCVTests.bootstrap()