diff options
author | Théo de la Hogue | 2023-09-18 11:11:14 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-09-18 11:11:14 +0200 |
commit | 8e2d704db8e8843d287a57b424d92cc2781c517c (patch) | |
tree | 7a68143ebf4c00a3a0ca0586d0090e5c9ab160d6 /src | |
parent | a1c5bf80dbf15358470fa63a0121d00c13571e7d (diff) | |
download | argaze-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.py | 5 |
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: """ |