From ea840c8f686150597c3cd66f89e5592737e0e378 Mon Sep 17 00:00:00 2001 From: Oli <147245351+what-does-that-do@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:04:37 +0000 Subject: [PATCH] Removed old debug code --- robot/vision.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/robot/vision.py b/robot/vision.py index 4a1a639..c4b9281 100755 --- a/robot/vision.py +++ b/robot/vision.py @@ -276,15 +276,6 @@ def res(self): @res.setter def res(self, new_res): if new_res is not self._res: - '''cv_property_ids = (cv2.CAP_PROP_FRAME_WIDTH, - cv2.CAP_PROP_FRAME_HEIGHT) - - for new, property_id in zip(new_res, cv_property_ids): - self._cv_capture.set(property_id, new) - actual = self._cv_capture.get(property_id) - assert actual == new, (f"Failed to set USB res, expected {new} " - f"but got {actual}")''' - self._cv_capture.set(cv2.CAP_PROP_FRAME_WIDTH, new_res[0]) self._cv_capture.set(cv2.CAP_PROP_FRAME_HEIGHT, new_res[1]) actual = self._cv_capture.get(cv2.CAP_PROP_FRAME_WIDTH)