diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/ArUcoMarkers/ArUcoCamera.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoCamera.py b/src/argaze/ArUcoMarkers/ArUcoCamera.py index ed6c619..75c8bfa 100644 --- a/src/argaze/ArUcoMarkers/ArUcoCamera.py +++ b/src/argaze/ArUcoMarkers/ArUcoCamera.py @@ -227,14 +227,8 @@ class ArUcoCamera(ArFeatures.ArCamera): kwargs: ArCamera.image parameters """ - # Can't use camera frame when it is locked - if self._frame_lock.locked(): - return - - # Lock camera frame exploitation - self._frame_lock.acquire() - # Get camera frame image + # Note: don't use self._frame_lock here as super().image manage it. image = super().image(**kwargs) # Draw optic parameters grid if required @@ -254,9 +248,6 @@ class ArUcoCamera(ArFeatures.ArCamera): self.aruco_detector.draw_detected_markers(image, draw_detected_markers) - # Unlock camera frame exploitation - self._frame_lock.release() - return image def image(self, **kwargs: dict) -> numpy.array: |