The easiest way to install it is to run FriendlyELEC's script.
Here are the packages and utilities your system will have after you follow the instructions in this tutorial:
Note: If you are using the RK3399 development board, please checkout to the “rk3399” branch.
Note: FriendlyCore-20180810 required.
Please download the latest FriendlyCore Image file from the following URL: http://download.friendlyarm.com
Run the commands below:
git clone https://github.com/friendlyarm/install-opencv-on-friendlycore
cd install-opencv-on-friendlycore
./install-opencv.sh
cp examples/cv-env.sh /usr/bin/
if you want to use pkg-config, append the following two lines in the "~/.bashrc" file and save it:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
Run the commands below:
cd examples/py/
. cv-env.sh
python ver.py
it will activate a virtualenv, if you want to switch projects or otherwise leave your virtualenv, simply run:
deactivate
cd /usr/local/share/OpenCV/samples/cpp
g++ -ggdb facedetect.cpp -o facedetect `pkg-config --cflags --libs /usr/local/lib/pkgconfig/opencv.pc`
. setqt5env
./facedetect --cascade="/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --nested-cascade="/usr/local/share/OpenCV/haarcascades/haarcascade_eye.xml" --scale=1.3 /usr/local/share/OpenCV/samples/data/data/lena.jpg
. cv-env.sh
. setqt5env
cd /usr/local/share/OpenCV/samples/python
python turing.py
Note: To run this demo you will need a webcam and a display connected.
This is an implementation of facial detection in C++/Qt5:
git clone https://github.com/friendlyarm/face-recognizer-gui
cd face-recognizer-gui
mkdir build
cd build
qmake-qt5 ../
make
cd ../
. setqt5env
./opencv
Note: To run this demo you will need a webcam and a display connected.
Run the commands below:
cd examples/qt5/CvQml/
qmake-qt5 .
make
. setqt5env
./CvQml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。