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?
-
Have you checked around the Exchange for other's similar problems and solutions? I can see related question right now beside this question.– dbmitchJul 22, 2016 at 0:27
-
I have looked around but they are not having the same problem as me– user3557707Jul 22, 2016 at 0:49
-
What is the error message that is displayed?– KolbanJul 22, 2016 at 1:51
2 Answers
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.
-
-
@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.– Tes3awyJul 22, 2016 at 12:56
-
-
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