ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to use camera calibration with ubuntu 14.04?

asked 2016-01-11 03:34:22 -0500

jossy gravatar image

I use ubuntu 14.04 and ROS Indigo. I try to run lsd_slam using image list. It requires a calibration file. So, I try to create a calibration file using rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/my_camera/image camera:=/my_camera command in ubuntu terminal.

It throws an error :

File "/opt/ros/indigo/lib/camera_calibration/cameracalibrator.py", line 47, in <module>
    import cv2
ImportError: libopencv_nonfree.so.2.4: cannot open shared object file: No such file or directory

How can I solve it?

edit retag flag offensive close merge delete

Comments

1

This is a problem caused by the migration of some non-free features from OpenCV to external packages. I cannot recall what I did exactly to solve this but you should check in the OpenCV forums. It happened to me with a SURF feature detector.

dfornas gravatar image dfornas  ( 2016-01-12 04:29:50 -0500 )edit
1

I reinstall opencv includes c++, python. It works now.

jossy gravatar image jossy  ( 2016-01-13 01:56:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-01-11 21:17:16 -0500

ahendrix gravatar image

I have a reasonably up-to-date version of 14.04 with Indigo, and I can start the camera calibration node without issue.

This is either an issue with a very recent version of camera calibration, or an issue with your system.

The version of opencv that is normally used by ROS is Ubuntu's default version, and it does not ship with the "nonfree" module, and the accompanying python wrapper shouldn't be trying to load it.

Does trying to load the OpenCV python wrapper by itself work? Try:

python -c 'import cv2'

Have you done anything to modify your version of OpenCV, or attempted to install OpenCV3? Did you do an installation of OpenCV from source, in addition to the version of OpenCV that already comes with ROS?

edit flag offensive delete link more

Comments

1

I reinstall opencv c++, pyhton. And it works.

jossy gravatar image jossy  ( 2016-01-13 01:56:05 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-11 03:34:22 -0500

Seen: 754 times

Last updated: Jan 11 '16