1

I have been trying to install OpenCV on my Raspberry Pi with Python 3. I have followed this tutorial http://mitchtech.net/raspberry-pi-opencv/ and when I get to the make command it gets to around 14 percent and stops because of an error. Can anyone help me install OpenCV?

asked Jul 22, 2016 at 0:16
3
  • Have you checked around the Exchange for other's similar problems and solutions? I can see related question right now beside this question. Commented Jul 22, 2016 at 0:27
  • I have looked around but they are not having the same problem as me Commented Jul 22, 2016 at 0:49
  • What is the error message that is displayed? Commented Jul 22, 2016 at 1:51

2 Answers 2

1

Installing OpenCV is pretty much straightforward process, it just take a lot of time. mitchtech is a good source but it is for old Raspbian not for the new ones. 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 recommend you install OpenCV for Python 2 not 3, and I also recommend that you stick to the cheat sheet especially in step 12. Sometime when you use all the cores the process fails to continue. I also recommend you use a 2A, 5V Adapter. If it works for you please accept my answer.

answered Jul 22, 2016 at 12:43
4
  • Why do you recommend using Python 2 over 3? Commented Jul 22, 2016 at 12:53
  • @Loanb222 NumPY, matplotlib, SciPY, and other packages doesn't have much of documentation on the internet for Python 3. most of Python used on the internet is Python 2.7.x win32. So If you always need help in your first time programming on Pi, I recommend you use Python 2. Commented Jul 22, 2016 at 12:56
  • Do you know of any good tutorials about OpenCV? Commented Jul 22, 2016 at 18:40
  • @ user3557707 Yes I know a lot but my favorite and the easiest is sentdex. Also I am working on some and once I upload them on YouTube I will comment here. Commented Jul 22, 2016 at 18:58
1

Best way to install OpenCV on on Raspberry pi is to use:

sudo apt install python3-opencv

instead of pip. As suggested by https://stackoverflow.com/a/60237868/9697329

answered Aug 13, 2020 at 6:10

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.