robmarkcole / HASS-Deepstack-face

Home Assistant custom component for using Deepstack face recognition
https://community.home-assistant.io/t/face-and-person-detection-with-deepstack-local-and-free/92041
MIT License
218 stars 68 forks source link

HA Entity state not updating #45

Closed cigas4 closed 2 years ago

cigas4 commented 3 years ago

Hi, I am trying to run deepstack face recognition on my HA. HASS is running on rpi4, and deepstack is running on another rpi4. Issue what I am facing at the moment is that I dont get any recognition update on entity inside HA. State of this entity always stays Unknown. However if I check deepstack on another rpi4 I can see my recognition request from HA, so not sure what is wrong. Are there any log files on HA or on deepstack side? So ether recognition is not accuring or recognition result is not geting back to HA. I am also running frigate container together with deepstack on same rpi4, not sure if it can have some effect.

HA config:

  • platform: deepstack_face ip_address: 192.168.31.13 port: 80 timeout: 5 detect_only: False save_file_folder: /config/www/snapshots/ save_timestamped_file: True save_faces: True save_faces_folder: /config/www/faces/ show_boxes: True source:
    • entity_id: camera.entrance_person name: deepstack_face_recognition
Screenshot 2021-05-15 at 15 08 07 Screenshot 2021-05-15 at 15 06 45
hristo-atanasov commented 3 years ago

I'm running HASS Deepstack face on docker on windows PC and I have the same problem.

DivanX10 commented 3 years ago

Watch this video, maybe this will help you Посмотрите это видео, возможно это вам поможет

cigas4 commented 3 years ago

Also when I start deepstack it says "visit local host to activate Deepstack". Maybe it needs some kind of activation to work? Unfortunately cant find any info on activation.. If I enter random key it says "Can't reach activation server".

Screenshot 2021-05-17 at 08 57 11
DivanX10 commented 3 years ago

You have installed deepstack version 1.0, which means you have it installed on raspberry. I personally encountered this when I tried to install it on a raspberry. Deepstack has dropped support for raspberry. You need to install the latest version, and this is version 2 and it is already activated

Вы установили deepstack версии 1.0, а значит у вас это установлено на raspberry. Сам лично сталкивался с этим, когда пытался установить на raspberry. Deepstack прекратил поддержку для raspberry. Нужно ставить последнюю версию, а это версия 2 и она уже активированная

пн, 17 мая 2021 г., 9:01 Andrius @.***>:

Also when I start deepstack it says "visit local host to activate Deepstack". Maybe it needs some kind of activation to work? Unfortunately cant find any info on activation.. If I enter random key it says "Can't reach activation server".

[image: Screenshot 2021-05-17 at 08 57 11] https://user-images.githubusercontent.com/54658863/118439285-55a0b800-b6ee-11eb-859f-dbd5ba2e6195.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/robmarkcole/HASS-Deepstack-face/issues/45#issuecomment-842017134, or unsubscribe https://github.com/notifications/unsubscribe-auth/API7ECFJQSQOWZQ3MLGTO7TTOCWLPANCNFSM446GSVWA .

cigas4 commented 3 years ago

You have installed deepstack version 1.0, which means you have it installed on raspberry. I personally encountered this when I tried to install it on a raspberry. Deepstack has dropped support for raspberry. You need to install the latest version, and this is version 2 and it is already activated Вы установили deepstack версии 1.0, а значит у вас это установлено на raspberry. Сам лично сталкивался с этим, когда пытался установить на raspberry. Deepstack прекратил поддержку для raspberry. Нужно ставить последнюю версию, а это версия 2 и она уже активированная пн, 17 мая 2021 г., 9:01 Andrius @.***>:

Hi, Thanks for info. Is version 2 even available for PI?

DivanX10 commented 3 years ago

Unfortunately for raspberry, images are no longer made. At the moment there is only this deepstack v 1.0 image that requires activation. You can install deepstack v 2 on windows, linux, docker

К сожалению для raspberry больше не делают образы. На данный момент есть только этот образ deepstack v 1.0 который требует активации. Вы можете установить deepstack v 2 на windows, linux, docker

пн, 17 мая 2021 г., 10:08 Andrius @.***>:

You have installed deepstack version 1.0, which means you have it installed on raspberry. I personally encountered this when I tried to install it on a raspberry. Deepstack has dropped support for raspberry. You need to install the latest version, and this is version 2 and it is already activated Вы установили deepstack версии 1.0, а значит у вас это установлено на raspberry. Сам лично сталкивался с этим, когда пытался установить на raspberry. Deepstack прекратил поддержку для raspberry. Нужно ставить последнюю версию, а это версия 2 и она уже активированная пн, 17 мая 2021 г., 9:01 Andrius @.***>: … <#m-8814452699590874688>

Hi, Thanks for info. Is version 2 even available for PI?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/robmarkcole/HASS-Deepstack-face/issues/45#issuecomment-842066529, or unsubscribe https://github.com/notifications/unsubscribe-auth/API7ECFJ2I2TMYCKDEV6LCDTOC6GDANCNFSM446GSVWA .

cigas4 commented 3 years ago

Unfortunately for raspberry, images are no longer made. At the moment there is only this deepstack v 1.0 image that requires activation. You can install deepstack v 2 on windows, linux, docker К сожалению для raspberry больше не делают образы. На данный момент есть только этот образ deepstack v 1.0 который требует активации. Вы можете установить deepstack v 2 на windows, linux, docker пн, 17 мая 2021 г., 10:08 Andrius @.***>:

I am running docker on same rpi4. Also tried installing deepstack docker container, but there was some issues running it.. Only this method with image was working. Maybe need to check it again.

For installation I used this script:

!/bin/bash

echo "Setting Up Prerequisites." sudo apt-get update sudo apt-get install redis-server -y sudo apt-get install libatlas-base-dev libjpeg-dev -y py=python3.7 $py --version py_check=$? if [ $py_check -ne 0 ] then py=python3.5 fi sudo $py -m pip install numpy --upgrade status=$? if [ $status -ne 0 ] then exit fi sudo $py -m pip install scipy --upgrade status=$? if [ $status -ne 0 ] then exit fi sudo $py -m pip install pillow --upgrade status=$? if [ $status -ne 0 ] then exit fi sudo $py -m pip install redis --upgrade status=$? if [ $status -ne 0 ] then exit fi echo "Getting DeepStack" sudo rm deepstack.deb wget https://deepquest.sfo2.digitaloceanspaces.com/deepstack/deepstack.deb echo "Installing DeepStack" sudo dpkg -i deepstack.deb sudo rm deepstack.deb status=$? if [ $status -eq 0 ] then echo 'DeepStack installed, run with sudo deepstack start "VISION-SCENE=True"' fi

DivanX10 commented 3 years ago

I was unable to run docker on the PI. I have successfully launched only on synology and on vmware with Hass OS with portainer integration Мне не удалось запустить docker на PI. Я успешно запустил только на synology и на vmware с Hass OS c интеграцией portainer

Read on the forum deepstack Почитайте на форуме deepstack

The answer of the author himself is that pi will no longer be supported and they go completely to docker Ответ самого автора, что pi больше не будет поддерживаться и они уходят полностью в docker image https://github.com/VorlonCD/bi-aidetection/issues/65#issuecomment-713512196

robmarkcole commented 3 years ago

Is this still an issue on latest deepstack image?

robmarkcole commented 2 years ago

stale closing