Bonjour,
j’ai payé et installé FaceRecognation
la première installation a fait friser mon installation Jeedom (delta freebox)…
Mais j’ai poursuivi et relancé les services apache : c reparti !
ensuite, j’ai paramétré ma caméra (le flux RTSP) de ma caméra du pack sécurité Freebox
ça a l’aire de bien se passer
Ensuite j’ai créé une personne dans la plugin et j’ai tenté d’uploadé des images
Et la, ça à l’aire de pas très bien se passer
dans la log j’ai :
[2020-12-03 14:21:35][INFO] : Lancement démon facerecognition : sudo /usr/bin/python3 /var/www/html/plugins/facerecognition/core/python/FaceDetect.py --loglevel debug --camera Freebox --device rtsp%3A%2F%2Ffreeboxcam%MOTDEPASSE%40192.168.XX.XX%2Flive --sensibility 2 --thread 2 --width 100 --height 100 --socketport 554 --snapshot /var/www/html/tmp/facerecognition/Freebox/ --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/facerecognition/core/php/jeeFaceRecognition.php --apikey ca8OqEXhtlXXLPdMxSsTEBOEULmBXasj --pid /tmp/jeedom/facerecognition/deamon_Freebox.pid --flux /tmp/jeedom/facerecognition/Freebox.jpeg
[2020-12-03 13:21:40.541][INFO] : [Freebox] Start Face Detection Daemon for Jeedom plugin
[2020-12-03 13:21:40.542][INFO] : [Freebox] Log level : debug
[2020-12-03 13:21:40.542][INFO] : [Freebox] Camera : Freebox
[2020-12-03 13:21:40.542][INFO] : [Freebox] Device : rtsp://freeboxcam:XXXXX@192.168.XX.XX/live
[2020-12-03 13:21:40.542][INFO] : [Freebox] Demon thread : 2
[2020-12-03 13:21:40.542][INFO] : [Freebox] Minimal detection : 100 X 100
[2020-12-03 13:21:40.542][INFO] : [Freebox] Demon sensibility : 2
[2020-12-03 13:21:40.542][INFO] : [Freebox] Flux : /tmp/jeedom/facerecognition/Freebox.jpeg
[2020-12-03 13:21:40.543][INFO] : [Freebox] Snapshot : /var/www/html/tmp/facerecognition/Freebox/
[2020-12-03 13:21:40.543][INFO] : [Freebox] PID file : /tmp/jeedom/facerecognition/deamon_Freebox.pid
[2020-12-03 13:21:40.543][INFO] : [Freebox] Apikey : ca8OqEXhtlXXLPdMxSsTEBOEULmBXasj
[2020-12-03 13:21:40.543][INFO] : [Freebox] Callback : http://127.0.0.1:80/plugins/facerecognition/core/php/jeeFaceRecognition.php
[2020-12-03 13:21:40.543][INFO] : [Freebox] Cycle : 0.3
[2020-12-03 13:21:40.543][INFO] : [Freebox] Socket connexion : 127.0.0.1:554
[2020-12-03 13:21:40.543][DEBUG] : Writing PID 30365 to /tmp/jeedom/facerecognition/deamon_Freebox.pid
[2020-12-03 13:21:40.544][DEBUG] : Init request module v2.21.0
[2020-12-03 13:21:40.548][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-12-03 13:21:40.556][DEBUG] : http://127.0.0.1:80 « GET /plugins/facerecognition/core/php/jeeFaceRecognition.php?apikey=ca8OqEXhtlXXLPdMxSsTEBOEULmBXasj HTTP/1.1 » 200 0
[2020-12-03 13:21:40.558][DEBUG] : Socket interface started
[2020-12-03 13:21:40.558][DEBUG] : LoopNetServer Thread started
[2020-12-03 13:21:40.559][DEBUG] : Listening on: [127.0.0.1:554]
[2020-12-03 13:21:44.499][DEBUG] : [Freebox] Camera FPS configure 180000.0
[2020-12-03 13:21:44.500][DEBUG] : [Freebox] GPU accessible False
[2020-12-03 13:21:44.739][DEBUG] : [Freebox] 1 visages ont été détecté
Exception in thread Thread-2:
Traceback (most recent call last):
File « /usr/lib/python3.7/threading.py », line 917, in _bootstrap_inner
self.run()
File « /var/www/html/plugins/facerecognition/core/python/FaceDetect.py », line 45, in run
self.detect_face()
File « /var/www/html/plugins/facerecognition/core/python/FaceDetect.py », line 68, in detect_face
names,colors = self.recognitionFace(encodings)
File « /var/www/html/plugins/facerecognition/core/python/FaceDetect.py », line 100, in recognitionFace
matches = face_recognition.compare_faces(globals.pickleData[« encodings »],encoding)
TypeError: ‹ NoneType › object is not subscriptable
[2020-12-03 13:21:45.070][DEBUG] : [Freebox] 1 visages ont été détecté
[2020-12-03 14:25:58][INFO] : Recherche des visages sur la photo importé : sudo /usr/bin/python3 /var/www/html/plugins/facerecognition/core/python/PictureExtractFace.py --loglevel debug --user Damien --sensibility 10 --photo /tmp/phpZusqiH
Etonnant qu’il aille chercher dans le répertoire /tmp du serveur
J’ai regardé les images n’y sont pas
Ensuite, j’essaye de télécharger les images après les avoirs uplodés
Et la pareil : erreur 404 sur le chemin
Et si je vais voir le dossier
/var/www/html/plugins/facerecognition/core/ajax/…/…/data/dataset/Damien/
L’image est bien dedans
Par contre si je cherche le fichier « plugins/facerecognition/core/php/downloadFile.php »
il n’est pas à sa place dans le dossier du plugin
Le plugin serait-il mal installé ?
Est-ce que ce fichier manque dans le package récupéré ?