aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2024-01-09 17:10:58 +0100
committerThéo de la Hogue2024-01-09 17:10:58 +0100
commit85ef93cad4b7c554cb6bf3077afeb0825160473f (patch)
tree43f2eb693f50cb66253d581733c81be5d387c6fe /src
parent70e40f95513374008d3cb6bb3361d6951bf41d20 (diff)
downloadargaze-85ef93cad4b7c554cb6bf3077afeb0825160473f.zip
argaze-85ef93cad4b7c554cb6bf3077afeb0825160473f.tar.gz
argaze-85ef93cad4b7c554cb6bf3077afeb0825160473f.tar.bz2
argaze-85ef93cad4b7c554cb6bf3077afeb0825160473f.tar.xz
removing frame lock management as it is done in super class.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoCamera.py11
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: