diff options
-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: """ |