Ask Your Question
0

camera_calibration for monocamera

asked 2018-07-03 05:25:30 -0600

Jiaxing gravatar image

updated 2019-05-23 00:00:44 -0600

jayess gravatar image

when I use this commend to calibrate my monocamera , i got the folling problem. Itried to find answer in the internet. but it seems like nobody had ever happend. so please..

 rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/usb_cam_node/image_raw camera:=/usb_cam_node

Traceback (most recent call last):
  File "/home/jiaxing/catkin_ws/src/image_pipeline/camera_calibration/nodes/cameracalibrator.py", line 40, in <module>
    from camera_calibration.camera_calibrator import OpenCVCalibrationNode
ImportError: No module named camera_calibration.camera_calibrator
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-07-03 06:41:06 -0600

You should check the topic before write command.

if you are using usb_cam package then it publishes the image on usb_cam/image_raw.

Change your command as given below.

rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/usb_cam/image_raw camera:=/usb_cam
edit flag offensive delete link more

Comments

hi Thanks for your reply. the rostopic list is correct (i think):

jiaxing@jiaxing-HP-ENVY-15-Notebook-PC:~$ rostopic list

/rosout /rosout_agg /usb_cam_node/camera_info /usb_cam_node/image_raw

Jiaxing gravatar imageJiaxing ( 2018-07-03 06:44:09 -0600 )edit

is there any warning/error after the command?

simbha gravatar imagesimbha ( 2018-07-03 06:46:29 -0600 )edit

no warnung with this commend. after I run the following commend,

roslaunch usb_cam usb_cam-test.launch

Ican see the camera light is turned on. but tehre is no window open to see the image from the camera. IN the terminal shows the following respond

[swscaler@0x1cb9620] deprecated pixe...
Jiaxing gravatar imageJiaxing ( 2018-07-03 09:14:37 -0600 )edit

Is the camera correctly turned on?

Jiaxing gravatar imageJiaxing ( 2018-07-03 09:15:41 -0600 )edit

please check your camera using cheese

simbha gravatar imagesimbha ( 2018-07-03 12:32:56 -0600 )edit
0

answered 2018-07-26 12:17:10 -0600

fayyaz gravatar image

It is showing deprecated may be because you have set the pixel format as mjepg

edit flag offensive delete link more

Comments

thank you for your replay. I have solved this problem.

Jiaxing gravatar imageJiaxing ( 2018-08-07 03:46:13 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-07-03 05:25:30 -0600

Seen: 109 times

Last updated: May 23