Robotics StackExchange | Archived questions

camera calibration error

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

Asked by MOH on 2016-04-19 10:05:24 UTC

Comments

Answers

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!

Asked by ai-shwarya on 2016-04-27 12:41:50 UTC

Comments