fix unit tests

This commit is contained in:
Remi Cadene
2024-09-09 19:19:05 +02:00
parent 96cc2433d6
commit 2469c99053
2 changed files with 4 additions and 4 deletions

View File

@@ -207,7 +207,6 @@ class MockVideoCapture(cv2.VideoCapture):
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._mock_dict = {
cv2.CAP_PROP_FPS: 30,
cv2.CAP_PROP_FRAME_WIDTH: 640,
@@ -235,3 +234,6 @@ class MockVideoCapture(cv2.VideoCapture):
w = self.get(cv2.CAP_PROP_FRAME_WIDTH)
ret = True
return ret, self.image[f"{h}x{w}"]
def release(self):
pass