aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2023-09-18 11:11:14 +0200
committerThéo de la Hogue2023-09-18 11:11:14 +0200
commit8e2d704db8e8843d287a57b424d92cc2781c517c (patch)
tree7a68143ebf4c00a3a0ca0586d0090e5c9ab160d6 /src
parenta1c5bf80dbf15358470fa63a0121d00c13571e7d (diff)
downloadargaze-8e2d704db8e8843d287a57b424d92cc2781c517c.zip
argaze-8e2d704db8e8843d287a57b424d92cc2781c517c.tar.gz
argaze-8e2d704db8e8843d287a57b424d92cc2781c517c.tar.bz2
argaze-8e2d704db8e8843d287a57b424d92cc2781c517c.tar.xz
Making default optic parameters according frame size if no optic parameters are loaded.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoCamera.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoCamera.py b/src/argaze/ArUcoMarkers/ArUcoCamera.py
index 43a7cf5..b067666 100644
--- a/src/argaze/ArUcoMarkers/ArUcoCamera.py
+++ b/src/argaze/ArUcoMarkers/ArUcoCamera.py
@@ -57,8 +57,9 @@ class ArUcoCamera(ArFeatures.ArCamera):
# No optic parameters loaded
else:
- # TODO: Create default optic parameters adapted to frame size
- raise ArFeatures.LoadingFailed('ArUcoCamera: no aruco_detector.optic_parameters.')
+ # Create default optic parameters adapted to frame size
+ # Note: The choice of 1000 for default focal length should be discussed...
+ self.aruco_detector.optic_parameters = ArUcoOpticCalibrator.OpticParameters(rms=-1, dimensions=self.size, K=ArUcoOpticCalibrator.K0(focal_length=(1000., 1000.), width=self.size[0], height=self.size[1]))
def __str__(self) -> str:
"""