2

I'm trying to do image processing on the pi using a USB webcam, For which i am using opencv As a beginner it took me hours to install opencv from this guide: http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/

But i don't know what happened and it got installed only on python 2 not on python 3. Can someone please tell me how to install it on python 3 alone...


Any help is appreciated. Thanks in advance.

asked Sep 5, 2016 at 5:34
1
  • which distribution of Linux are you running on Raspberry Pi? use the command line/terminal app to double check which version of Python you are currently running. In the command line type: python -V if it is not 3 you can use apt-get. Type: sudo apt-get install python3 Commented Sep 5, 2016 at 5:45

1 Answer 1

1

Installing OpenCV is pretty much straightforward process, it just take a lot of time. I googled a lot for the last few months to make a cheat sheet, and I made one. You can download my cheat sheet and try it out. I don't like Virtual Environment. It's better, though. It isolates your installation from getting later errors when using after installation. I recommend you install OpenCV for Python 2 not 3. If you want for Python 3 just change the appropriate lines in the cheat sheet. I also recommend that you stick to the cheat sheet especially in step 12. Sometime when you use all the processor cores the process fails to continue. You should always use a 2A or 2.5A, 5V Adapter. your Pi 3 peripherals are current hungry, and if current is not sufficient, the Pi shuts down automatically, as it's short-circuit protected.

Don't forget to fork me on GitHub.

answered Sep 11, 2016 at 23:41
2
  • +1, but you should paste that cheat sheet (or at least its essentials) as an answer, in addition to the link to the repo. If the repo moves or gets deleted, the answer will no longer be as helpful as it is now. Commented Jan 17, 2017 at 20:53
  • @Bahrom I will add some line, okay (Y) Commented Jan 17, 2017 at 23:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.