Go to Post The only thing happy about ship day is the promise of sleep coming soon... - StephLee [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-07-2016, 22:57
David Lame David Lame is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Berkley, MI
Posts: 84
David Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the rough
OpenCV on Raspberry Pi - where is CV2?

I was running OpenCV on a Raspberry Pi for some off season programming, and it was all well and good, when suddenly, it stopped working. After some troubleshooting, I determined it was actually a bad SD card. Losing data. Grrr....

No problem, though. New SD card. Format. Install OS. Install OpenCV (in a virtual environment.....good idea? ...the guy who wrote the tutorial seemed to think so...) .Run script, and it can't find CV2. Import cv2 fails in the script because it can't find cv2. It found numpy, but not cv2.

Hmmmm......what's up with that? After trying lots of ideas, it still can't find CV2. Well, I hadn't done python except on the pi, so eventually I decided to find out how import worked, and point to the right place so it can find cv2. Here's where my problem comes in.

Where is CV2? What am I looking for? I've got a directory called opencv-3.1.0 . That directory has a lot of stuff in it, but it doesn't have a file name or a directory named cv2, or cv2.py.

I've figure out some things about some environment variables and the python path and such, so that if I could find the directory where cv2 was located, I think I could import it, but I can't find it.

Does anyone know what I ought to be looking for?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi