importing ComputerVision 2.3.1 [closed]

asked 2015-02-10 22:13:11 -0600

I am having problems trying to work some examples of ComputerVision. The library i have is the above. But whenever I try to import cv or cv2 I get an error and if I leave out the import statement the cv in the statement kicks an error saying that cv is not defined. I have searched the web, but cannot find any way to import this library's methods or get ComputerVision to work with my Raspberry Pi Python.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2015-02-12 02:11:35.063846

Comments

1

Ok first of all skip using 2.3.1 alltogether. It is ancient and a tons of updates have been released since. If you want a stable release then take 2.4.10, if you want a 99% stable release go for the 2.4 branch of the github sourcecode. Than start by giving us your complete configuration / setup, the source code tested and the exact error that is generated.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-11 03:27:14 -0600 )edit
1

Thanks Steven, I think I was reading a book on OpenCV and it must have told me to install that version in its instructions. How do I uninstall the old version to move on to the more stable version? I have been using SimpleCV without any problems, but only had the import problem trying to import cv2 methods. I am using the latest version of Raspbian that came out in January. Trying to learn computer vision by using a Logitech C310 webcam.

etbastro gravatar imageetbastro ( 2015-02-11 12:05:41 -0600 )edit

Uninstalling is pretty simple, just remove the complete folder with its data and it is gone. SimpleCV is not an official openCV distribution, but a wrapper around existing functionality.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-11 12:22:28 -0600 )edit
1

Thanks Steven, I followed your advice and it seems to be working OK now.

etbastro gravatar imageetbastro ( 2015-02-11 20:55:41 -0600 )edit