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

camera calibration error

asked 2016-04-19 10:05:24 -0500

MOH gravatar image

updated 2016-04-19 10:08:19 -0500

i am trying to do camera calibration

running this node

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

but then I have obtained this error

Traceback (most recent call last):

File "/opt/ros/indigo/lib/camera_calibration/cameracalibrator.py", line 47, in <module>

    import cv2

ImportError: libopencv_core.so.3.1: cannot open shared object file: No such file or directory
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-04-27 12:51:23 -0500

ai-shwarya gravatar image

updated 2016-04-27 15:08:56 -0500

Try installing ros-indigo-opencv3 (apt-get)

Despite compiling and installing opencv 3.1.0, I had the same error. But it got fixed after that.

Or else, add LD_LIBRARY PATH as usr/local/bin (if that's where your symbolic link files are stored) to your .bashrc.

In case, nothing works, you should check whether cv2.so exists in your /usr/local/lib/python2.7/site-packages & ../dist-packages directories. If not, you should consider reinstalling opencv again.

Hope this helps!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-19 10:05:24 -0500

Seen: 750 times

Last updated: Apr 27 '16