Skip to content

Commit

Permalink
Removed old debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
what-does-that-do authored Feb 8, 2024
1 parent 09f4a99 commit ea840c8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions robot/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ea840c8

Please sign in to comment.