python qt5案例_RK3399开发板上人脸识别Opencv开发实例,Python,C++,QT5源代码

Installing OpenCV 4.2.0 on FriendlyCore/FriendlyDesktop

本教材适合NanoPC-T4, som-RK3399, NanoPi M4V2等RK3399系列开发板,提供实例源代码,以及整个实验的完整步骤。

e824b899a9014c0852098a07754dce0e7bf4f41b.jpeg?token=80c263e90693c2825df58ac940f83a70

023b5bb5c9ea15ce585d7779ca36f6f53b87b2c8.jpeg?token=9e5c57d2c60b8c89747304545dc795a7

f11f3a292df5e0fe63dfeb0b2756f8ae5fdf72b6.jpeg?token=ba8155027f36929e38fb9e825bf1bab2

bf096b63f6246b600f697bf396ced64a500fa28b.jpeg?token=cfc7b54a32f308bd1ec5d0455d248c0b

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 examplesC interface and examplesPython 3.6+ interface and examplesCurrently supported boards

RK3399NanoPC T4NanoPC M4NanoPC NEO4Som-RK3399If you are using the s5p4418/s5p6818 development board, please checkout to the "s5pxx18" branch.

Installation

Note: OpenCV has been pre-installed in FriendlyCore/FriendlyDesktop (Version after 201905) and does not require manual installation.Please download the latest FriendlyCore/FriendlyDesktop Image file from the following URL: http://download.friendlyarm.com

To make it easy to test python3 examples, you may copy cv-env.sh to the system directory,run the commands below:

git clone https://github.com/friendlyarm/install-opencv-on-friendlycorecd install-opencv-on-friendlycorecp examples/py/cv-env.sh /usr/bin/

Test out the OpenCV 4.2.0 and Python3 install

Run the commands below:

cd ~/install-opencv-on-friendlycore/examples/py/

. cv-env.sh

python ver.py

Will display:

4.2.0

it will activate a virtualenv, if you want to switch projects or otherwise leave your virtualenv, simply run:

deactivate

Test python sample included in OpenCV 4.2.0: turing

95eef01f3a292df50e02c77ec307906635a87351.jpeg?token=9c5ac30be70a31347f08869932f3989d

su pi

cd ~/install-opencv-on-friendlycore/examples/py/

. cv-env.sh

. setqt5env

cd /usr/local/share/opencv4/samples/python

export DISPLAY=:0.0

python turing.py

Build Qt5 MIPI-Camera example

caef76094b36acaf2048be5e03ef411600e99ca0.jpeg?token=91d26b704c606230e38d19cbd0f4efc3

Note: To run this demo you will need a camera(ov13850/ov4689/logitech c920 pro) and a display connected.Run the commands below:

cd ~/install-opencv-on-friendlycore/examples/qt5/mipi-camera-videoprocessor/

qmake-qt5 .

make -j4

Run on FriendlyDesktop:

su pi

. setqt5env

export DISPLAY=:0.0

./mipi-camera-videoprocessor

Run on FriendlyCore:

./run-on-friendlycore.sh

Python: Stereo match example

d52a2834349b033bf3adacca69f8fad5d539bdb2.jpeg?token=06e9110c3a41288c7c88cf6101d18be3

Run the commands below:

cd ~/install-opencv-on-friendlycore/examples/py/single-camera-python-demo/

su pi

. setqt5

envexport DISPLAY=:0.0

./run.sh

Python: Test single camera example

Note: To run this demo you will need a camera(ov13850/ov4689/logitech c920 pro) and a display connected.

Run the commands below:

cd ~/install-opencv-on-friendlycore/examples/py/single-camera-python-demo/

su pi

. setqt5

env export DISPLAY=:0.0

./run.sh

Python: Test dual camera example

Note: To run this demo you will need two cameras(ov13850/ov4689/logitech c920 pro) and a display connected.Run the commands below:

cd ~/install-opencv-on-friendlycore/examples/py/dual-camera-python-demo/

su pi

. setqt5

env export DISPLAY=:0.0

./run.sh

C++: Test UVC camera example

(注意不支持Logitech C270;

支持的型号:Logitech C922(NV21,MJPG), KS2A242(NV21,MJPG))

14ce36d3d539b600dedd0a039266f92cc65cb734.jpeg?token=50a6fa299ce43f753dbb361712446d2e

Note: To run this demo you will need a usb camera(logitech c920 pro) and a display connected.Build and run the commands below:

git clone https://github.com/friendlyarm/rk3399-opencv-uvccamera-cpp-demo.git

cd rk3399-opencv-uvccamera-cpp-demo

mkdir build

cd build

cmake ..

make

su pi

export DISPLAY=:0.0

. setqt5env

./opencamera

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值