Outils pour utilisateurs

Outils du site


pose_estimation_avec_intel_ncs2_et_openvino

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
intel_neural_compute_stick_2 [2021/06/22 06:26] – [Utilisation de OpenVino avec Realsense D455] sergepose_estimation_avec_intel_ncs2_et_openvino [2022/03/22 14:12] (Version actuelle) – [Utilisation de OpenVino avec Realsense D455] Benjamin Labomedia
Ligne 1: Ligne 1:
-======Intel Neural Compute Stick 2======+====== Pose Estimation avec Intel NCS2 et OpenVINO ======
 {{ ::media_15:realsense_ncs2.jpg?400 |}}  {{ ::media_15:realsense_ncs2.jpg?400 |}} 
 +<WRAP center round box 80% centeralign>
 +**{{tagpage>skeleton camera3D|Les pages sur les caméras 3D et la détection de squelette}}**     **[[http://translate.google.com/translate?hl=&sl=auto&tl=en&u=https%3A%2F%2Fressources.labomedia.org%2Fpose_estimation_avec_intel_ncs2_et_openvino|English Version]]**
 +</WRAP>
  
 <WRAP center round info 60% centeralign> <WRAP center round info 60% centeralign>
 **Le Intel Neural Compute Stick 2, NCS2 fonctionne ave OpenVINO, un fork de OpenCV adapté à ce stick.** **Le Intel Neural Compute Stick 2, NCS2 fonctionne ave OpenVINO, un fork de OpenCV adapté à ce stick.**
 </WRAP> </WRAP>
 +{{ :media_15:img_0005.jpg?600 |}}
 =====OpenVINO===== =====OpenVINO=====
  
 **Intel Neural Compute Stick 2** est un calculateur, adapté aux produits Intel, dixit Intel.\\ **Intel Neural Compute Stick 2** est un calculateur, adapté aux produits Intel, dixit Intel.\\
-IL a été concu pour être un calculateur sur un PC sans GPU, genre Raspberry Pi.+Il a été concu pour être un calculateur sur un PC sans GPU, genre Raspberry Pi.
  
 **OpenVINO** est un **fork de OpenCV**, optmisé pour les produits Intel:  **OpenVINO** est un **fork de OpenCV**, optmisé pour les produits Intel: 
Ligne 15: Ligne 18:
   * Le GPU intégré aux CPU Intel: genre HD 530   * Le GPU intégré aux CPU Intel: genre HD 530
   * **[[https://en.wikipedia.org/wiki/OpenVINO|OpenVINO sur en.wikipedia.org]]**   * **[[https://en.wikipedia.org/wiki/OpenVINO|OpenVINO sur en.wikipedia.org]]**
 +
 =====Installation de OpenVINO===== =====Installation de OpenVINO=====
 +====Operating Systems====
 +  * Ubuntu 18.04.x long-term support (LTS), 64-bit
 +  * Ubuntu 20.04.0 long-term support (LTS), 64-bit
 +  * CentOS 7.6, 64-bit (for target only)
 +  * Yocto Project v3.0, 64-bit (for target only and requires modifications)
  
 +Le tuto a été réalisé sur Xubuntu 18.04
 ====Installation==== ====Installation====
 Suivre à la lettre ce tuto Intel: Suivre à la lettre ce tuto Intel:
Ligne 31: Ligne 41:
 cd /opt/intel/openvino_2021/install_dependencies cd /opt/intel/openvino_2021/install_dependencies
 sudo -E ./install_openvino_dependencies.sh sudo -E ./install_openvino_dependencies.sh
-sudo  ./install_openvino_dependencies.sh 
 source /opt/intel/openvino_2021/bin/setupvars.sh source /opt/intel/openvino_2021/bin/setupvars.sh
 nano .bashrc nano .bashrc
Ligne 38: Ligne 47:
 sudo ./install_prerequisites_caffe.sh sudo ./install_prerequisites_caffe.sh
 cd /opt/intel/openvino_2021/install_dependencies/ cd /opt/intel/openvino_2021/install_dependencies/
-sudo -E su 
-sudo usermod -a -G users "$(whoami)" 
-sudo cp /opt/intel/openvino_2021/inference_engine/external/97-myriad-usbboot.rules /etc/udev/rules.d/ 
-sudo udevadm control --reload-rules 
-sudo udevadm trigger 
-sudo ldconfig 
 </code> </code>
  
Ligne 49: Ligne 52:
 <code bash> <code bash>
 cd /opt/intel/openvino_2021/install_dependencies/ cd /opt/intel/openvino_2021/install_dependencies/
-sudo -E su +sudo -E ./install_NEO_OCL_driver.sh
-./install_NEO_OCL_driver.sh +
-Checking processor generation... +
-Intel® Graphics Compute Runtime for OpenCL™ Driver installation skipped because current version greater or equal to 19.41.14441 +
-Installation of Intel® Graphics Compute Runtime for OpenCL™ Driver interrupted.+
 </code> </code>
  
Ligne 71: Ligne 70:
  
  
-===== Vérification de l'export du .bashrc =====+=== Vérification de l'export du .bashrc ===
 <code bash> <code bash>
 python3 python3
Ligne 84: Ligne 83:
  
 =====Création des fichiers bin et xml à partir du caffemodel===== =====Création des fichiers bin et xml à partir du caffemodel=====
-Convert a Caffe* Model to produce an optimized Intermediate Representation (IR) of the model based on the trained network topology, weights, and biases values +Convert a Caffe* Model to produce an optimized Intermediate Representation (IR) of the model based on the trained network topology, weights, and biases values [[https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_Caffe.html|Convert Model From Caffe]].
- +
-  * https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_Caffe.html+
  
 Dans le dossier du caffemodel: Dans le dossier du caffemodel:
   python3 /opt/intel/openvino_2021/deployment_tools/model_optimizer/mo.py --input_model pose.caffemodel --input_proto pose.prototxt   python3 /opt/intel/openvino_2021/deployment_tools/model_optimizer/mo.py --input_model pose.caffemodel --input_proto pose.prototxt
      
-Les fichiers .caffemodel et .prototxt doivent avoir les mêmes noms.+Les fichiers .caffemodel et .prototxt doivent avoir les mêmes noms.\\ 
 +Les Input Layers ne sont pas définis dans le .prototxt. J'ai improvisé avec [1, 3, 270, 270] !
  
  
  
-====Utilisation de OpenVino avec Realsense D455==== +=====Utilisation de OpenVino avec Realsense D455===== 
-=====Human pose estimation===== +Fichier à: **[[https://github.com/sergeLabo/skeleton-rs/tree/main/opencv_skeleton|opencv_skeleton]]** de   * **[[pose_estimation_avec_opencv|Détection d'un squelette dans une image avec OpenCV]]** 
- +<code> 
- +CPU avec OpenCV                                                                   fps 1.1  MSI      fps 1.7 
-====Ressources sur ce wiki==== +CPU avec OpenCV et model light                                                    fps 1.4 
-  * **[[intel_realsense|Intel RealSense D 455]]** +CPU avec OpenCV et body_25                                                        fps 0.4 
-  * **[[skeleton_tracking_de_cubemos_logiciel_proprietaire|Skeleton Tracking de Cubemos]]** +CPU avec OpenVINO                                                                 fps 1.6 
-  * **[[detection_d_un_squelette_dans_une_image#opencv_blobfromimage|La solution OpenCV]]** +CPU avec OpenVINO Light                                                           fps 2.2 
- +GPU                                                                     GTX1060   fps 2.5 
-====Intel==== +GPU et model light                                                      GTX1060   fps = 3.7  MSI      fps = 2.
-  * https://docs.openvinotoolkit.org/latest/omz_demos_human_pose_estimation_demo_python.html +Intel NCS2 Stick Intel® Neural Compute Stick 2 (Intel® NCS2)                      fps = 1.
 +Intel NCS2 Stick Intel® Neural Compute Stick 2 (Intel® NCS2) et model light       fps = 2.0 
 +</code>
  
-{{tag>opencv python sb skeleton}}+{{tag>opencv python sb skeleton camera3D ia}}
pose_estimation_avec_intel_ncs2_et_openvino.1624343164.txt.gz · Dernière modification : 2021/06/22 06:26 de serge