1 Star 0 Fork 1

程学洋/install-opencv-on-friendlycore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Installing OpenCV 3.4 on FriendlyCore

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:

  • Qt 5.10.0 version of the HighGUI module (Better 2D window interface with zoom, image saving capabilities, etc)
  • C++ interface and examples
  • C interface and examples
  • Python 3.5+ interface and examples

Currently supported boards

  • RK3399
    NanoPC T4
    NanoPi M4
    NanoPi NEO4
  • S5P6818
    NanoPi Fire3
    NanoPi M3
    NanoPC T3
    NanoPC T3 Plus
  • S5P4418
    NanoPi Fire2A
    NanoPi M2A
    NanoPi S2
    NanoPC T2
    Smart4418

Note: If you are using the RK3399 development board, please checkout to the “rk3399” branch.

Installation

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

Test out the OpenCV3.4 and Python3 install

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 

Build some samples included in OpenCV

c++ sample: facedetect

image

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

python sample: turing

image

. cv-env.sh
. setqt5env
cd /usr/local/share/OpenCV/samples/python
python turing.py

Face Recognition Using OpenCV and Qt5

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

Build Qt5 QML example

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

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/njlite/install-opencv-on-friendlycore.git
git@gitee.com:njlite/install-opencv-on-friendlycore.git
njlite
install-opencv-on-friendlycore
install-opencv-on-friendlycore
master

搜索帮助