ncappzoo_apps的例程总结
这篇文档主要用于记录NCAPPZOO的apps文件夹中的Demo运行时的方法和注意事项。
[转载请注明出处:阳光明媚 ]
street_cam
注意 需要2个NCS设备
启动步骤
cd ~/ai_ws/ncappzoo/apps/street_cam/
make
(仅第一次)
* 开始下载demo视频
* bus_station_6094_960x540.mp4
* motorcycle_6098_shortened_960x540.mp4
* contrapicado_traffic_shortened_960x540.mp4
* police_car_6095_shortened_960x540.mp4
* scooters_5638_shortened_960x540.mp4
./street_cam.py
运行效果
疑难解答
ai@ai-usb:~/ai_ws/ncappzoo/apps/street_cam$ ./street_cam.py
Running street_cam
Keys:
‘Q’/’q’ to Quit
‘B’/’b’ to inc/dec the Tiny Yolo box probability threshold
‘I’/’i’ to inc/dec the Tiny Yolo box intersection-over-union threshold
‘G’/’g’ to inc/dec the GoogLeNet probability threshold
‘2’ to toggle GoogLeNet classification
This application requires two NCS devices.
Insert two devices and try again!
ai@ai-usb:~/ai_ws/ncappzoo/apps/street_cam$
解决 插入2只NCS设备
文件结构
ai@ai-usb:~/ai_ws/ncappzoo/apps/street_cam$ tree ./
./
├── bus_station_6094_960x540.mp4
├── contrapicado_traffic_shortened_960x540.mp4
├── googlenet.graph
├── install-opencv-from_source.sh
├── licenses.txt
├── Makefile
├── motorcycle_6098_shortened_960x540.mp4
├── police_car_6095_shortened_960x540.mp4
├── README.md
├── scooters_5638_shortened_960x540.mp4
├── street_cam.py
└── yolo_tiny.graph
0 directories, 12 files
video_objects
启动步骤
cd ~/ai_ws/ncappzoo/apps/video_objects/
make
(仅第一次)
* 开始下载demo视频
* bus_station_6094_960x540.mp4
* motorcycle_6098_shortened_960x540.mp4
* contrapicado_traffic_shortened_960x540.mp4
* police_car_6095_shortened_960x540.mp4
* scooters_5638_shortened_960x540.mp4
./video_objects.py
运行效果
与street_cam效果类似
只需要单只NCS设备即可使用
文件结构
./
├── bus_station_6094_960x540.mp4
├── contrapicado_traffic_shortened_960x540.mp4
├── graph
├── install-opencv-from_source.sh
├── licenses.txt
├── Makefile
├── motorcycle_6098_shortened_960x540.mp4
├── police_car_6095_shortened_960x540.mp4
├── README.md
├── scooters_5638_shortened_960x540.mp4
└── video_objects.py
0 directories, 11 files
classifier-gui
注意 需要python的tkinter库
启动步骤
cd ~/ai_ws/ncappzoo/apps/classifier-gui/
make
(仅第一次)
./classifier-gui.py
运行效果
参见./apps_demo_run/Classifier-GUI_Demo_run.png
ai@ai-usb:~/ai_ws/ncappzoo/apps/classifier-gui$ ./classifier-gui.py
Reading package lists… Done
Building dependency tree
Reading state information… Done
python3-pil.imagetk is already the newest version (3.1.2-0ubuntu1.1).
The following packages were automatically installed and are no longer required:
libgtkglext1 libllvm4.0 libopencv-calib3d2.4v5 libopencv-contrib2.4v5
libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-gpu2.4v5
libopencv-high