- 前言:介紹windows跑OpenVINO
tags: 六角學院
主題:雜亂大全40-OpenVINO (下)windows範例demo2
本篇重點:
- 接續前一篇demo1
- 介紹windows跑OpenVINO-2
demos組合練習
使用不同demo配上pre-train
- 到demos目錄下
1
$ cd C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\demos
- 製作所有demos的exe
1
$ build_demos_msvc.bat
本次執行:gaze_estimation_demo
- 官方說明:
- https://docs.openvinotoolkit.org/latest/omz_demos_gaze_estimation_demo_README.html
- 找尋demos對應的xml+bin
- (需要自行上網下載)
- 下載區-一定要先確認版本(以下是2019_R3):
- https://download.01.org/opencv/2019/open_model_zoo/R3/20190905_163000_models_bin/
- 舉例:眼部角度需要以下四種xml與bin檔
- 需要的檔案名稱(共八個檔案)
1
2
3
4gaze-estimation-adas-0002.xml /bin
face-detection-retail-0004.xml /bin
head-pose-estimation-adas-0001.xml /bin
facial-landmarks-35-adas-0002.xml /bin需要搭配四個參數
1
2
3
4
5
6#需要搭配四個參數,與四種xml+bin
#下指令時電腦會自動去抓同名的bin
-m gaze-estimation-adas-0002.xml
-m_fd face-detection-retail-0004.xml
-m_hp head-pose-estimation-adas-0001.xml
-m_lm facial-landmarks-35-adas-0002.xml - 下載完後存到
1
C:\Users\使用者名稱\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release
- 然後下指令執行,先設定環境變數
1
$ call "C:\Program Files (x86)\IntelSWTools\openvino_2020.3.341\bin\setupvars.bat"
- 執行搭配參數
1
gaze_estimation_demo -i cam -m gaze-estimation-adas-0002.xml -m_fd face-detection-retail-0004.xml -m_hp head-pose-estimation-adas-0001.xml -m_lm facial-landmarks-35-adas-0002.xml
完成結果-眼部+角度偵測
- 執行時,按下 ˋA 顯示所有資訊
本次執行:interactive_face_detection_demo
- 官方說明:
- https://docs.openvinotoolkit.org/2018_R5/_samples_interactive_face_detection_demo_README.html
- 一樣要到素材區下載XML、BIN
- 下載區-一定要先確認版本(以下是2019_R3):
- https://download.01.org/opencv/2019/open_model_zoo/R3/20190905_163000_models_bin/
- 這次我把XML、BIN檔案複製到face資料夾底下以便管理
- 本次需要的XML+BIN檔如下:
- 需要的檔案名稱(共10個檔案)
1
2
3
4
5face-detection-adas-0001.xml /bin
age-gender-recognition-retail-0013.xml /bin
emotions-recognition-retail-0003.xml /bin
head-pose-estimation-adas-0001.xml /bin
facial-landmarks-35-adas-0002.xml /bin需要搭配五個參數
1
2
3
4
5
6
7#需要搭配五個參數,與五種xml+bin
#下指令時電腦會自動去抓同名的bin
-m ./face/face-detection-adas-0001.xml
-m_ag ./face/age-gender-recognition-retail-0013.xml
-m_em ./face/emotions-recognition-retail-0003.xml
-m_hp ./face/head-pose-estimation-adas-0001.xml
-m_lm ./face/facial-landmarks-35-adas-0002.xml - 下載完後,放在face資料夾底下
- 下指令:
1
2$ cd C:\Users\使用者名稱\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release
$ call "C:\Program Files (x86)\IntelSWTools\openvino_2020.3.341\bin\setupvars.bat" - 設定完環境變數即可下指令執行
1
interactive_face_detection_demo -i cam -m ./face/face-detection-adas-0001.xml -m_ag ./face/age-gender-recognition-retail-0013.xml -m_em ./face/emotions-recognition-retail-0003.xml -m_hp ./face/head-pose-estimation-adas-0001.xml -m_lm ./face/facial-landmarks-35-adas-0002.xml
完成結果2-臉部表情互動
補充:
各版本均有不相容的問題,
務必找到正確的版本!!!!
補充資料
- [1]OpenVINO学习笔记(八)凝视估计演示
https://mc.dfrobot.com.cn/thread-306009-1-1.html - [2]使用OpenVino的預訓練模型進行人臉識別
https://chtseng.wordpress.com/2019/08/09/%E4%BD%BF%E7%94%A8openvino%E9%80%B2%E8%A1%8C%E4%BA%BA%E8%87%89%E8%AD%98%E5%88%A5/ - [3]Face Detection with OpenVINO on Raspberry Pi
https://www.hackster.io/glowascii/face-detection-with-openvino-on-raspberry-pi-bac869 - [4]【邊緣AI系列】 OpenVINO C++範例編譯建置
https://medium.com/@grady1006/%E9%82%8A%E7%B7%A3ai%E7%B3%BB%E5%88%97-openvino-c-%E7%AF%84%E4%BE%8B%E7%B7%A8%E8%AD%AF%E5%BB%BA%E7%BD%AE-53ea5d08d247 - [5]OpenVINO之二:Windows环境下OpenVINO安装与配置
https://blog.csdn.net/shanglianlm/article/details/89286218
- 若有任何問題↓
- 請聯繫我:
liao86221@gmail.com
- 或填表: https://forms.gle/4FB5Tmtd9A7XcXjF8