Outils pour utilisateurs

Outils du site


detection_de_mouvement_avec_opencv_en_python

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
detection_de_mouvement_avec_opencv_en_python [2019/02/14 09:03] sergedetection_de_mouvement_avec_opencv_en_python [2019/05/25 09:45] (Version actuelle) – [Un script simple mais pas efficace] serge
Ligne 1: Ligne 1:
 ====== Détection de mouvement avec opencv en python ====== ====== Détection de mouvement avec opencv en python ======
  
-=====Un exemple de script valable pour OpenCV 3.4.5===== +=====Ressources à étudier===== 
-Sans imutils ! +  * https://github.com/RobinDavid/Motion-detection-OpenCV 
-<code python>+  * https://stackoverflow.com/questions/3374828/how-do-i-track-motion-using-opencv-in-python 
 +  * https://stackoverflow.com/questions/40514508/opencv-detect-movement-in-python 
 + 
 +=====Dépendances===== 
 +Pour installer cv2.bgsegm et cv2.createBackgroundSubtractorGMG 
 +  sudo pip3 install opencv-contrib-python 
 +=====Un script simple mais pas efficace===== 
 +Sans imutils ! et valable pour OpenCV 3.4.5 
 +<file python motion_detection.py>
 #!/usr/bin/env python3 #!/usr/bin/env python3
 # -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
Ligne 74: Ligne 82:
          
     motion_detector(CAM, FLOU, SEUIL_0, SEUIL_1, AREA, TEMPO)     motion_detector(CAM, FLOU, SEUIL_0, SEUIL_1, AREA, TEMPO)
-</code>+</file>
  
 {{tag>opencv sb python}} {{tag>opencv sb python}}
detection_de_mouvement_avec_opencv_en_python.1550135022.txt.gz · Dernière modification : 2019/02/14 09:03 de serge