Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No corners could be extracted #682

Open
1zgh opened this issue Apr 23, 2024 · 3 comments
Open

No corners could be extracted #682

1zgh opened this issue Apr 23, 2024 · 3 comments
Labels
user-platform User has trouble running on their own dataset

Comments

@1zgh
Copy link

1zgh commented Apr 23, 2024

I've taken a lot of photos, why do I keep having this problem? Can anyone help me see it, here's my error and photos. Thank you so much!!

importing libraries
Initializing cam0:
Camera model: pinhole-radtan
Dataset: /data/20240423/vis_ir_nir.bag
Topic: /cam0/image_raw
Number of images: 43
Extracting calibration target corners
Progress 43 / 43 Time remaining: 59m 60s
[FATAL] [1713867776.590952]: No corners could be extracted for camera /cam0/image_raw! Check the calibration target configuration and dataset.
Traceback (most recent call last):
File "/catkin_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 465, in
main()
File "/catkin_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 188, in main
if not cam.initGeometryFromObservations(observations):
File "/catkin_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraCalibrator.py", line 57, in initGeometryFromObservations
success = self.geometry.initializeIntrinsics(observations)
RuntimeError: [Exception] /catkin_ws/src/kalibr/aslam_cv/aslam_cameras/include/aslam/cameras/implementation/PinholeProjection.hpp:716: initializeIntrinsics() assert(observations.size() != 0) failed: Need min. one observation
2024041780560000000
Screenshot from 2024-04-23 18-28-11

@AntonioLuisGlez
Copy link

Hello! Did you checked yout target table .yaml? In this file you have to specify the number of rows and columns as well as the square size.

@katafoxi
Copy link

I had the same error. It turned out that rows and columns are something completely different. Therefore, I specified incorrect data in the configuration grid.yaml file.
You need to correctly count rows and columns like this.
image

@WFram
Copy link

WFram commented Jun 28, 2024

Regarding AprilGrids, sometimes the problem lies not in incorrect configuration written in .yaml, but in wrong ID assignment issues. Here assumed that IDs are starting with 0:

As a hotfix, you can find out the start ID and subtract it from all the IDs. For my case I was able to obtain proper calibration with this fix.

@goldbattle goldbattle added the user-platform User has trouble running on their own dataset label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-platform User has trouble running on their own dataset
Projects
None yet
Development

No branches or pull requests

5 participants