Why is Python using opencv 2.4.9.1?

asked 2017-03-09 09:48:30 -0600

dkj5042 gravatar image

I had installed opencv 3.2 on ubuntu 16.04. And initially python was using opencv 3.2. However, for reasons unknown to me, python is now only importing opencv 2.4.9. If I type in opencv_version in ubuntu terminal I get 3.2 as answer. However, if I use cv2.__version__ in python terminal, I get 2.4.9.1. All the codes I had written are using opencv3.2 functions. Please help-- I tried searching other forums but could not find anything similar.

edit retag flag offensive close merge delete

Comments

what package is the command opencv_version part of?

Kerry gravatar imageKerry ( 2017-03-10 19:14:32 -0600 )edit

Thats a part of Ubuntu 16.04. I partly solved the problem by uninstalling python-opencv but then, it also uninstalled some ROS packages like image_view etc.

dkj5042 gravatar imagedkj5042 ( 2017-03-10 19:33:29 -0600 )edit

opencv_version will be part of a package on Ubuntu though. I only ask because I don't have a similar command on my Mint installation.

Kerry gravatar imageKerry ( 2017-03-11 02:17:04 -0600 )edit