1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-21 06:11:09 +08:00

Four factory method version.

This commit is contained in:
James Bowley
2022-10-14 18:02:46 +03:00
parent e1bd434528
commit 4fa9c71169
5 changed files with 141 additions and 371 deletions

View File

@@ -79,7 +79,8 @@ class cudacodec_test(NewOpenCVTests):
#Test at least the existence of wrapped functions for now
try:
_, fname = tempfile.mkstemp(suffix=".h264")
fd, fname = tempfile.mkstemp(suffix=".h264")
os.close(fd)
encoder_params_in = cv.cudacodec.EncoderParams()
encoder_params_in.gopLength = 10
stream = cv.cuda.Stream()
@@ -99,5 +100,7 @@ class cudacodec_test(NewOpenCVTests):
self.assertEqual(e.code, cv.Error.StsNotImplemented)
self.skipTest("Either NVCUVENC or a GPU hardware encoder is missing or the encoding profile is not supported.")
os.remove(fname)
if __name__ == '__main__':
NewOpenCVTests.bootstrap()