LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Slackware (http://www.linuxquestions.org/questions/forumdisplay.php?f=14)
-   -   Can not get OpenCV work in Slackware (http://www.linuxquestions.org/questions/showthread.php?t=4175437053)

t35t 11-14-2012 02:49 AM

Can not get OpenCV work in Slackware
 
Hi all,

I have been struggling to make OpenCV (http://opencv.willowgarage.com/wiki/InstallGuide_Linux) work in Slackware64 14.0 for days. I followed the instructions on the page and compiled/installed perfectly but couldn't import it from Python ; "no module named opencv".

Then I realized that there are binary packages (http://slackware.org.uk/slacky/slack.../OpenCV/2.3.0/) for Slackware 13.37 thus I switched my whole system to Slackware 13.37 (32bits) but again no luck getting Opencv to work "no module named opencv".

I tried binary packages and also building from scracth in both systems but no luck.

I am really pissed off, I just want to call opencv from python which should be totally doable.

ponce 11-14-2012 03:07 AM

have you tried with the slackbuild?

http://slackbuilds.org/libraries/opencv/

I got a package for slackware64-14.0 built from that and it contains /usr/lib64/python2.7/site-packages/cv.py and
/usr/lib64/python2.7/site-packages/cv2.so

t35t 11-14-2012 03:52 AM

Quote:

Originally Posted by ponce (Post 4828978)
have you tried with the slackbuild?

http://slackbuilds.org/libraries/opencv/

I got a package for slackware64-14.0 built from that and it contains /usr/lib64/python2.7/site-packages/cv.py and
/usr/lib64/python2.7/site-packages/cv2.so

I tried 13.37 version compiled and built perfectly, installed fine. But import opencv says there is no module.
Going nuts.

ahmadj 11-14-2012 04:30 AM

Check for existence of the 2 files that Ponce mentioned...

ponce 11-14-2012 06:04 AM

I think the python module is called "cv", not "opencv".

t35t 11-14-2012 03:16 PM

Quote:

Originally Posted by ahmadj (Post 4829023)
Check for existence of the 2 files that Ponce mentioned...

cv.py exists but there is no cv2.so anywhere on my partition.

Quote:

Originally Posted by ponce (Post 4829077)
I think the python module is called "cv", not "opencv".

do you have a reference for that because from the snippets I check it looks like opencv.

ponce 11-14-2012 03:26 PM

http://www.neuroforge.co.uk/index.ph...ython-a-opencv

t35t 11-14-2012 03:30 PM

Quote:

Originally Posted by ponce (Post 4829526)

How did you manage to import cv from python I think there is a procedure missing in the chain ?

Daedra 11-14-2012 11:56 PM

Did you build with Numpy installed?


All times are GMT -5. The time now is 07:02 AM.