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

Tarfile_Calibration usage? #784

Open
akdhandy opened this issue Nov 19, 2022 · 0 comments
Open

Tarfile_Calibration usage? #784

akdhandy opened this issue Nov 19, 2022 · 0 comments
Labels

Comments

@akdhandy
Copy link

akdhandy commented Nov 19, 2022

Hello,I have been trying to use the tarfile_calibration.py but I always encounter this error.I tried to load a tar file and run it using:

rosrun camera_calibration tarfile_calibration.py archive.tar --square 0.051 --size 7x10.

Here is the corresponding error:

  File "/opt/ros/noetic/lib/camera_calibration/tarfile_calibration.py", line 228, in <module>
    cal_from_tarfile(boards, tarname, options.mono, options.upload, calib_flags, options.visualize, options.alpha)
  File "/opt/ros/noetic/lib/camera_calibration/tarfile_calibration.py", line 62, in cal_from_tarfile
    calibrator.do_tarfile_calibration(tarname)
  File "/opt/ros/noetic/lib/python3/dist-packages/camera_calibration/calibrator.py", line 1436, in do_tarfile_calibration
    self.cal(limages, rimages)
  File "/opt/ros/noetic/lib/python3/dist-packages/camera_calibration/calibrator.py", line 1081, in cal
    goodcorners = self.collect_corners(limages, rimages)
  File "/opt/ros/noetic/lib/python3/dist-packages/camera_calibration/calibrator.py", line 1107, in collect_corners
    raise CalibrationException("No corners found in images!")
camera_calibration.calibrator.CalibrationException: No corners found in images!

The tar file has the checkerboard pattern images in the corresponding left.png and right.png format in it as well.I'm not able to add the tar file here since its large than 25MB

Note: When I run it using the ROS Stereo Calibration,it works without any issues.The input images for the tarfile calibration are the images that are saved from the calibration_data.tar file saved from ROS Stereo process.

rosrun camera_calibration cameracalibrator.py --approximate 0.1 --size 7x10 --square 0.051 right:=/theia/cam1/image_raw left:=/theia/cam0/image_raw right_camera:=/theia/cam1 left_camera:=/theia/cam0

ROS version: Noetic
OS Release/Version: Ubuntu 20.04
Version or commit hash of image_pipeline used: Noetic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants