[Beta] Test pour passage en stable

Bonjour,

Je viens vous solicité pour la validation de la beta avant sa sortie en stable

Demon

Juste reparametre si besoin et tester le demarrage du demon

  • Ajout de la taille minimal d’un visage
  • Encodage de l’url de la camera pour transfert au python
  • Analyse en multi-thread

Aprentissage

la beta embarque une refonte assez profonde pour essayer d’etre le plus precis possible, bien faire attention

  • Apprentissage uniquement de l’utilisteur actuel
  • Extraction des visages lors de l’import de photo
  • Snapshot de la camera uniquement sur le visage
  • Couleur du cadre personnalisable (deja present sur la stable mais verification des effet de bord)

Condition / Action

Verifier le fonctionnel

  • Ajout d’un parametre sur la camera, afin de selection les conditions actions par camera
  • Ajout du snapshot automatiquement sur des action permetant l’envoie de fichier, a la detection

Panel

  • correction sur la suppression des snapshot

Salut Mika,

Je veux bien tester, tu vas mettre la beta sur le market aujourd’hui?

Merci

Je n’arrive pas à forcer la mise à jour.
J’espère qu’elle vas se faire dans la nuit

Ok merci je testerais demain

Hello @mika-nt28,
Ce plugin n’était pas passé en stable sur le market?

Je veux bien restester. Cette fois-ci non via mon Docker de prod mais bien une VM de test :slight_smile:

Si y a une version stable mais la on parle d’une grosse mise à jours
Je l’ai également mis sur ma prod à voir si les résultats sont concluants ou pas.

Le but de la bêta est bien de l’utiliser en prod pour des retours réels que sur un déroulement de test

Ben ok pour tester.

Salut Mika, quelques test ce matin (toujours l’erreur de décodage du h264) a priori ça fonctionne, mais difficile de vérifier (à part dans les logs) car les snapshot ne se prennent pas… vérifié avec jeeXplorer dans /var/www/html/tmp/facerecognition pas de nouveau snapshot depuis la Maj de la beta (et panel vide du coup).

A tout hasard voici les logs :

[2020-05-06 10:33:43][INFO] : Lancement démon facerecognition : sudo /usr/bin/python3 /var/www/html/plugins/facerecognition/resources/FaceDetect.py --loglevel debug --camera Chemin --device rtspxxxmedia.amp --sensibility 9 --fps 10 --width 100 --height 100 --socketport 8090 --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/facerecognition/core/php/jeeFaceRecognition.php --apikey xxx --pid /tmp/jeedom/facerecognition/deamon_Chemin.pid --snapshot /tmp/jeedom/facerecognition/Chemin.jpeg
[2020-05-06 10:33:49.731][INFO] : [Chemin] Start Face Detection Daemon for Jeedom plugin
[2020-05-06 10:33:49.731][INFO] : [Chemin] Log level : debug
[2020-05-06 10:33:49.731][INFO] : [Chemin] Camera : Chemin
[2020-05-06 10:33:49.731][INFO] : [Chemin] Device : rtsp://xxx@xxx/mpeg/media.amp
[2020-05-06 10:33:49.731][INFO] : [Chemin] Demon framerate : 10
[2020-05-06 10:33:49.731][INFO] : [Chemin] Minimal detection : 100 X 100
[2020-05-06 10:33:49.731][INFO] : [Chemin] Demon sensibility : 9
[2020-05-06 10:33:49.731][INFO] : [Chemin] Snapshot : /tmp/jeedom/facerecognition/Chemin.jpeg
[2020-05-06 10:33:49.731][INFO] : [Chemin] PID file : /tmp/jeedom/facerecognition/deamon_Chemin.pid
[2020-05-06 10:33:49.732][INFO] : [Chemin] Apikey : xxx
[2020-05-06 10:33:49.732][INFO] : [Chemin] Callback : http://127.0.0.1:80/plugins/facerecognition/core/php/jeeFaceRecognition.php
[2020-05-06 10:33:49.732][INFO] : [Chemin] Cycle : 0.3
[2020-05-06 10:33:49.732][INFO] : [Chemin] Socket port : 8090
[2020-05-06 10:33:49.732][INFO] : [Chemin] Socket host : 127.0.0.1
[2020-05-06 10:33:49.732][DEBUG] : Writing PID 29679 to /tmp/jeedom/facerecognition/deamon_Chemin.pid
[2020-05-06 10:33:49.732][DEBUG] : Init request module v2.22.0
[2020-05-06 10:33:49.743][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 10:33:49.753][DEBUG] : http://127.0.0.1:80 « GET /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 10:33:49.754][DEBUG] : Socket interface started
[2020-05-06 10:33:49.754][DEBUG] : LoopNetServer Thread started
[2020-05-06 10:33:49.755][DEBUG] : Listening on: [127.0.0.1:8090]
[h264 @ 0x5597d017b680] error while decoding MB 56 35, bytestream -23
[h264 @ 0x5597d0447960] error while decoding MB 28 19, bytestream -39
[h264 @ 0x5597d0586a20] error while decoding MB 55 28, bytestream -13
[h264 @ 0x5597d06cd5c0] error while decoding MB 71 18, bytestream -27
[h264 @ 0x5597d0150260] error while decoding MB 4 17, bytestream -45
[h264 @ 0x5597d047cb80] error while decoding MB 46 17, bytestream -37
Unhandled exception in thread started by <function detect_face at 0x7f5d7397f378>
Traceback (most recent call last):
File « /var/www/html/plugins/facerecognition/resources/FaceDetect.py », line 69, in detect_face
os.remove(globals.snapshot)
FileNotFoundError: [Errno 2] No such file or directory: ‹ /tmp/jeedom/facerecognition/Chemin.jpeg ›
[2020-05-06 11:04:29.453][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:29.642][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:29.653][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:29.655][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:29.661][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:29.822][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:29.966][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:29][DEBUG] : Detection Unknown
[2020-05-06 11:04:29.976][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:29.980][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:29.990][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:29.992][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:29.998][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:29][DEBUG] : Detection Nicolas
[2020-05-06 11:04:30.000][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:30.001][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:30][DEBUG] : Detection Unknown
[2020-05-06 11:04:30.024][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:30.134][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:30.374][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:30.385][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:30.386][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:30][DEBUG] : Detection Nicolas
[2020-05-06 11:04:30.433][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:30.557][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:30.881][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:31.063][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:31.063][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:31.244][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:31.248][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:31][DEBUG] : Detection Unknown
[2020-05-06 11:04:31.257][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:31.245][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:31.245][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:31.246][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:31.492][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:31.678][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:31.679][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:31.680][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:31.682][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:31.685][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:31][DEBUG] : Detection Unknown
[2020-05-06 11:04:31][DEBUG] : Detection Nicolas
[2020-05-06 11:04:31.707][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:31.708][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:31.712][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:31.719][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:31.721][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:31][DEBUG] : Detection Unknown
[2020-05-06 11:04:31.726][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:31.744][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:31.745][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:31][DEBUG] : Detection Unknown
[2020-05-06 11:04:31.751][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:31.900][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:32.136][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:32.365][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:32.372][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:32.633][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:32.799][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:32.800][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:32.806][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:32.810][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:32][DEBUG] : Detection Unknown
[2020-05-06 11:04:32.832][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:32.836][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:32.840][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:32.843][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:32][DEBUG] : Detection Nicolas
[2020-05-06 11:04:32.849][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:32.851][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:32][DEBUG] : Detection Nicolas
[2020-05-06 11:04:32.865][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:32.866][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:32.867][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:32.868][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:32][DEBUG] : Detection Nicolas
[2020-05-06 11:04:32.890][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:32.996][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:33.216][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:33.216][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:33.543][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:33.547][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:33.549][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:33.550][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:33.553][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:33.554][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:33][DEBUG] : Detection Nicolas
[2020-05-06 11:04:33][DEBUG] : Detection Nicolas
[2020-05-06 11:04:33.562][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:33.563][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:33.573][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:33.592][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:33.605][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:33][DEBUG] : Detection Unknown
[2020-05-06 11:04:33.620][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:33.728][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:33.893][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:33.901][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:33.907][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:33][DEBUG] : Detection Nicolas
[2020-05-06 11:04:33.913][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:33.991][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:34.173][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:34.341][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:34.371][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:34.377][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:34.379][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:34][DEBUG] : Detection Nicolas
[2020-05-06 11:04:34.388][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:34.395][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:34.397][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:34][DEBUG] : Detection Nicolas
[2020-05-06 11:04:34.405][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:34.555][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:34.732][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:34.896][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:34.897][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:35.061][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:35.066][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:35][DEBUG] : Detection Nicolas
[2020-05-06 11:04:35.076][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:35.076][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:35.085][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:35.089][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:35.090][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:35][DEBUG] : Detection Nicolas
[2020-05-06 11:04:35.100][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:35.110][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:35.111][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:35][DEBUG] : Detection Nicolas
[2020-05-06 11:04:35.123][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:35.257][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:35.475][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:35.669][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:35.671][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:35.843][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:35.845][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:35.846][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:35][DEBUG] : Detection Nicolas
[2020-05-06 11:04:35.859][DEBUG] : [Chemin] color=ff2600 r=255 g=38 b=0
[2020-05-06 11:04:35.862][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:35.885][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:35.886][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:35.889][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Nicolas ›}
[2020-05-06 11:04:35.890][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:35][DEBUG] : Detection Nicolas
[2020-05-06 11:04:35.894][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:35][DEBUG] : Detection Nicolas
[2020-05-06 11:04:35.897][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0
[2020-05-06 11:04:36.030][DEBUG] : [Chemin] 1 visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 11:04:36.217][DEBUG] : [Chemin] color=FF0000 r=255 g=0 b=0
[2020-05-06 11:04:36.234][DEBUG] : Send to jeedom : {‹ Chemin ›: ‹ Unknown ›}
[2020-05-06 11:04:36.241][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 11:04:36][DEBUG] : Detection Unknown
[2020-05-06 11:04:36.246][DEBUG] : http://127.0.0.1:80 « POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxx HTTP/1.1 » 200 0

Tu veux dir qu’il n’y a pas de snapshot lorsqu’il y a une detection?
Si tu as une image sur le panel alors normalement il doit copier cette image dans le dossier snaphsot
Cette mecanique est fait par le script de detection poura avoir la main sur l’url de l’image
Peux etre que dans un avenir prochain je gerais ca par le demon

PS
Est ce que tu peux mettre tes log en balise </> pour que se soit plus lisible
Fait attention avant de posté car les modificaiton sont lisible sur se forum

Pardon le panel renvoyait pas non plus de snapshot. Mais en fait les utilisateurs étaient désactivés…Ca fonctionne maintenant je continue les test…

Ha oui on se fait souvant pieger avec ca

Est tu repassé sur la configuration des utilisateurs ou tu test directement la detection

J’ai juste refait un apprentissage pour vérifier dans les logs http que les photos remontaient bien 1, et là je commence à tester l’intégration de nouvelles photos.
Pour info le découpage des visages sur importation de photos fonctionne nickel c’est bluffant (en revanche pas de Prévisualisation il faut valider l’apprentissage et revenir pour vérifier). L’import direct par camera ne fonctionne pas chez moi la photo semble être prise (mais pas de visualisation) et lorsque je reviens sur l’apprentissage est n’est pas là…

Ok, merci du retour
Pour etre sur que j’ai bien compris tes remarques

  • Apres import la photo du visage est presente mais l’affichage ne se fait pas correctement
  • Pas d’ajout de photo du visage par la camera, mais le visage bien detecté

C’est ça, voici en image :

Import direct de la camera :

la photo est bien présente (sans prévisualisation) mais lorsqu’on revient elle n’est plus présente.

Import de photos :

Là aussi pas de Prévisualisation mais après validation la photo recentrée sur le visage est ok

Ok je regarde ca du coup

Est ce que tu peux me fournir les log lorsque tu veux prendre un visage, pour l’apprentisage depuis la camera

Ok testé à l’instant le voici :

[2020-05-06 14:41:25.052][DEBUG] : [Chemin] 1  visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 14:41:25.248][DEBUG] : [Chemin] color=000000 r=0  g=0  b=0
[2020-05-06 14:41:25.264][DEBUG] : Send to jeedom :  {'Chemin': 'Victor'}
[2020-05-06 14:41:25.265][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 14:41:25][DEBUG] : Detection Victor
[2020-05-06 14:41:25.276][DEBUG] : http://127.0.0.1:80 "POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxxHTTP/1.1" 200 0
[h264 @ 0x5597d0122360] error while decoding MB 38 17, bytestream -29
[2020-05-06 14:41:54][INFO] : Lancement de l'apprentissage des visages : sudo /usr/bin/python3 /var/www/html/plugins/facerecognition/resources/faceEncodings.py --loglevel debug --pid /tmp/jeedom/facerecognition/faceEncodings.pid --user Victor --color 000000
[2020-05-06 14:41:56.384][DEBUG] : [Chemin] 1  visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 14:41:56.700][DEBUG] : [Chemin] color=FF0000 r=255  g=0  b=0
[2020-05-06 14:41:56.710][DEBUG] : Send to jeedom :  {'Chemin': 'Unknown'}
[2020-05-06 14:41:56.712][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 14:41:56][DEBUG] : Detection Unknown
[2020-05-06 14:41:56.716][DEBUG] : http://127.0.0.1:80 "POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxxHTTP/1.1" 200 0
[2020-05-06 14:42:00.621][DEBUG] : [Chemin] 1  visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 14:42:00.829][DEBUG] : [Chemin] 1  visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 14:42:01.043][DEBUG] : [Chemin] color=FF0000 r=255  g=0  b=0
[2020-05-06 14:42:01.066][DEBUG] : [Chemin] color=FF0000 r=255  g=0  b=0
[2020-05-06 14:42:01.074][DEBUG] : Send to jeedom :  {'Chemin': 'Unknown'}
[2020-05-06 14:42:01.075][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 14:42:01.085][DEBUG] : Send to jeedom :  {'Chemin': 'Unknown'}
[2020-05-06 14:42:01.087][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 14:42:01][DEBUG] : Detection Unknown
[2020-05-06 14:42:01][DEBUG] : Detection Unknown
[2020-05-06 14:42:01.097][DEBUG] : http://127.0.0.1:80 "POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxxHTTP/1.1" 200 0
[2020-05-06 14:42:01.099][DEBUG] : http://127.0.0.1:80 "POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxxHTTP/1.1" 200 0
[2020-05-06 14:42:31.224][DEBUG] : [Chemin] 1  visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 14:42:31.588][DEBUG] : [Chemin] 1  visages ont \xe9t\xe9 d\xe9tect\xe9
[2020-05-06 14:42:31.852][DEBUG] : [Chemin] color=000000 r=0  g=0  b=0
[2020-05-06 14:42:31.870][DEBUG] : [Chemin] color=000000 r=0  g=0  b=0
[2020-05-06 14:42:31.877][DEBUG] : Send to jeedom :  {'Chemin': 'Victor'}
[2020-05-06 14:42:31.879][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 14:42:31.879][DEBUG] : Send to jeedom :  {'Chemin': 'Victor'}
[2020-05-06 14:42:31][DEBUG] : Detection Victor
[2020-05-06 14:42:31.901][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-05-06 14:42:31][DEBUG] : [Chemin] Aquisition du snapshot
[2020-05-06 14:42:31][DEBUG] : Detection Victor
[2020-05-06 14:42:31.926][DEBUG] : http://127.0.0.1:80 "POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxxHTTP/1.1" 200 0
[2020-05-06 14:42:31][DEBUG] : Le dossier /var/www/html/tmp/facerecognition/Chemin/ est a 7Mo
[2020-05-06 14:42:31][DEBUG] : [Reconnaissance ][Victor] Autorisation: 1588768951 > 1588716000 && 1588768951 < 1588800600
[2020-05-06 14:42:31][DEBUG] : [Reconnaissance ][Victor]Exécution de #[Parking][Gate][Ouverture Porte]# ({"files":["\/var\/www\/html\/tmp\/facerecognition\/Chemin\/Chemin_20200506144231.jpg"]})
[2020-05-06 14:42:31.981][DEBUG] : http://127.0.0.1:80 "POST /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=xxxHTTP/1.1" 200 0
[2020-05-06 14:42:33.140][DEBUG] : Client connected to [127.0.0.1:48520]
[2020-05-06 14:42:33.140][DEBUG] : Message read from socket: b'{"apikey":"YNW8HJdakNNjwELrfI0ZUXdiZ4TeG281","cmd":"UpdatePickleData"}'
[2020-05-06 14:42:33.140][DEBUG] : Client disconnected from [127.0.0.1:48520]
[2020-05-06 14:42:33.359][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-05-06 14:42:33.360][DEBUG] : [Chemin] Received command from jeedom : UpdatePickleData
[2020-05-06 14:42:33.360][DEBUG] : [Chemin] Data des visages a \xe9t\xe9 correctement charg\xe9

La tu as juste lancé l’apprentissage je ne vois aucune demande de snap

si j’ai bien compris la demande de snap est lancée à la validation?

Ok donc en fait y a aucune action
Je vais chercher