I am using Raspbian Stretch on my RPi 3, I wanted to install OpenCV on it.
I did this before by following the instructions detailed here .
The problem is that this takes a very long time.
Lately, I've been looking in the internet, so I found in this link that installing Opencv only needs to run these commands pip install opencv-python and pip install opencv-contrib-python. I tried it on Ubuntu with my PC and it worked well.
So my question is: is it possible to install Opencv on a RPi 3 by just running these commands instead of compiling it from source?
Asked
Active
Viewed 2,937 times
3
singrium
- 135
- 1
- 8
1 Answers
5
Precompiled wheels of opencv-python and opencv-contrib-python for arm / python 3 are available from piwheels (www.piwheels.org). On current Raspbian Stretch this already pre-configured.
On other distros (such as Raspbian Jessie) it can easily be added by creating the file '/etc/pip.conf' containing:
[global]
extra-index-url=https://www.piwheels.org/simple