![]() |
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? |
Re: OpenCV on Raspberry Pi - where is CV2?
Quote:
|
Re: OpenCV on Raspberry Pi - where is CV2?
Code:
sudo apt-get install python-opencv |
Re: OpenCV on Raspberry Pi - where is CV2?
Quote:
Much appreciated. |
| All times are GMT -5. The time now is 10:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi