aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2024-01-16 11:36:55 +0100
committerThéo de la Hogue2024-01-16 11:36:55 +0100
commit74a6c56be33cada2bf45c2c9bb6ba25f57f38696 (patch)
tree321c378bdd3f70d884b323ace87444b436d743ce /src
parent876a70f9e3ed7066f8ab68ed80ab3fc511d36c22 (diff)
downloadargaze-74a6c56be33cada2bf45c2c9bb6ba25f57f38696.zip
argaze-74a6c56be33cada2bf45c2c9bb6ba25f57f38696.tar.gz
argaze-74a6c56be33cada2bf45c2c9bb6ba25f57f38696.tar.bz2
argaze-74a6c56be33cada2bf45c2c9bb6ba25f57f38696.tar.xz
Removing useless test.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArFeatures.py4
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoCamera.py4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py
index f725380..dca2e3a 100644
--- a/src/argaze/ArFeatures.py
+++ b/src/argaze/ArFeatures.py
@@ -1529,10 +1529,6 @@ class ArCamera(ArFrame):
watch method needs to be called first.
"""
- # Can't use camera frame when it is locked
- if super().locked():
- return
-
# Lock camera frame exploitation
super().acquire()
diff --git a/src/argaze/ArUcoMarkers/ArUcoCamera.py b/src/argaze/ArUcoMarkers/ArUcoCamera.py
index c7df7e0..04226c0 100644
--- a/src/argaze/ArUcoMarkers/ArUcoCamera.py
+++ b/src/argaze/ArUcoMarkers/ArUcoCamera.py
@@ -231,10 +231,6 @@ class ArUcoCamera(ArFeatures.ArCamera):
# Note: don't lock/unlock camera frame here as super().image manage it.
image = super().image(**kwargs)
- # Check image
- if image is None:
- return
-
# Draw optic parameters grid if required
if draw_optic_parameters_grid is not None: