File tree Expand file tree Collapse file tree 1 file changed +47
-2
lines changed Expand file tree Collapse file tree 1 file changed +47
-2
lines changed Original file line number Diff line number Diff line change 1- # OpenCV_4_Raspberry_PI
2- A compiled version of OpenCV for Raspberry PI optimized for deep learning.
1+ # OpenCV 4.1.0 for Raspberry Pi
2+ * A pre-compiled ** OpenCV 4.1.0** for ** Raspberry PI** , optimized for deep learning (** NEON** and ** VFPV3** turned on).
3+ * Bindings for ** Python2** and ** Python3** are also included.
4+ * Created with OpenCV cpack targets
5+ * Tested on ** Raspberry Pi 3+** on ** Raspbian Stretch**
6+
7+ # Prerequisites
8+ Before proceeding, install the OpenCV library prerequisites.
9+ ```
10+ sudo apt-get update && sudo apt-get upgrade -y
11+ sudo apt-get install -y libtiff5-dev libjasper-dev libpng12-dev libjpeg-dev \
12+ libavcodec-dev libavformat-dev libswscale-dev \
13+ libv4l-dev libgtk2.0-dev libatlas-base-dev gfortran
14+ ```
15+
16+ Install numpy based on your Python version:
17+ ```
18+ sudo apt-get install -y python3-dev python3-numpy
19+ ```
20+ or:
21+ ```
22+ sudo apt-get install -y python-dev python-numpy
23+ ```
24+
25+ # How to install OpenCV
26+ Download and run dpkg on all the .deb in the repository:
27+ ```
28+ git clone https://github.com/dlime/OpenCV_4_Raspberry_PI.git
29+ cd OpenCV_4_Raspberry_PI
30+ sudo dpkg -i OpenCV*
31+ sudo ldconfig
32+ ```
33+
34+ # How to test
35+ Go to test folder and launch the test.py file:
36+ ```
37+ cd OpenCV_4_Raspberry_PI/test
38+ python2 test.py
39+ ```
40+
41+ Or for Python 3:
42+ ```
43+ python3 test.py
44+ ```
45+
46+ # Future development
47+ * Include TBB
You can’t perform that action at this time.
0 commit comments