LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-14-2012, 02:49 AM   #1
t35t
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Rep: Reputation: Disabled
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.
 
Old 11-14-2012, 03:07 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,457

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
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
 
Old 11-14-2012, 03:52 AM   #3
t35t
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
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.
 
Old 11-14-2012, 04:30 AM   #4
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Rep: Reputation: 16
Check for existence of the 2 files that Ponce mentioned...
 
Old 11-14-2012, 06:04 AM   #5
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,457

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
I think the python module is called "cv", not "opencv".
 
1 members found this post helpful.
Old 11-14-2012, 03:16 PM   #6
t35t
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ahmadj View Post
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 View Post
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.
 
Old 11-14-2012, 03:26 PM   #7
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,457

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
http://www.neuroforge.co.uk/index.ph...ython-a-opencv
 
Old 11-14-2012, 03:30 PM   #8
t35t
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
How did you manage to import cv from python I think there is a procedure missing in the chain ?
 
Old 11-14-2012, 11:56 PM   #9
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,223

Rep: Reputation: 177Reputation: 177
Did you build with Numpy installed?
 
  


Reply

Tags
python, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCV libraries warp perspective will this work mreff555 Programming 4 06-05-2012 01:55 PM
opencv+opensolaris? srinivasmiriyalu Linux - Software 2 02-13-2012 04:41 AM
OpenCV - Pixel format of incoming image is unsupported by OpenCV golmschenk Programming 1 04-01-2011 12:32 PM
OpenCV commands cp_almora09 Linux - Software 1 02-17-2009 03:51 AM
OpenCV fistroman Programming 0 07-28-2003 09:43 AM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration