Face and person detection with Deepstack - local and free!

I think you still have to use deepstack as platform in your homeassistant config! This project still uses the deepstack rest api but on the background it is using tensorflow lite!

@jodur double check the vscode situation on pi4, I am running on pi4 but get warning that vscode is not supported. Re comparison with Nuc, I have never owned one so cant comment. I know the Nuc costs considerably more, so I would save my money and just get a pi4.

@Hitesh_Singh you will need to pip install deepstack-python in your environment, I have updated this now on the repo

1 Like

it seemed a person to me too!

@robmarkcole

VSCODE is only running op pi with hassio 64 bit versions, you probably have a 32 bit version (so have i) (https://www.home-assistant.io/blog/2020/02/19/community-highlights/)

Thanks for the tip!

Deepstack is now 100% free :grin:

3 Likes

Wow thatā€™s big news, how will they earn revenue though to keep enhancing and keeping it alive?

It seems to have stopped working since they release the free version. Noticed 401ā€™s in the container logs so checked the docs and they have removed the API key env variableā€¦I have updated my stack and removed the API key from both the compose file and the HA configā€¦

Now see that its returning 200ā€™s:

Container logs:
[GIN] 2020/05/05 - 12:37:48 | 200 | 194.66148ms | 172.16.13.4 | POST /v1/vision/detection

Here is my HA config:

image_processing:
  - platform: deepstack_object
    ip_address: deepstack
    port: 5000
    #api_key: secret! deepstack_api
    #scan_interval: 30 # Optional, in seconds
    confidence: 50
    save_file_folder: /config/www/front/
    save_timestamped_file: True
    source:
      - entity_id: camera.front
        name: deepstack_person_detector_front
  - platform: deepstack_object
    ip_address: deepstack
    port: 5000
   #confidence: 50
    #api_key: secret! deepstack_api
    #scan_interval: 30 # Optional, in seconds
    save_file_folder: /config/www/back/
    save_timestamped_file: True
    source:
      - entity_id: camera.rear
        name: deepstack_person_detector_back

Any ideas?

Ta in advance!

@sunny1283 the business model is to provide free use for individuals, and make money from enterprise customers with special needs.

@jonwilliams what is the problem, all looks fine?

1 Like

Hi,

Ok - now I have removed the api key (and rebooted HA!); the one camera is working and the ā€˜last_personā€™ image is being saved. My other camera (back) isnā€™t! While I see the 200 in the Deepstack container logs, itā€™s not detecting ā€˜peopleā€™ for some reason.

Ta

Jon

It seems that it is actually working - however its hit and miss now.

Please note, we are in config talking about the api_key which you can configure to secure the deepstack endpoint. This should not be confused with the ā€˜product keyā€™ that was previously required to ā€˜activateā€™ your deepstack software.
Note I did just try out the noavx image and it doesnā€™t appear to be updated yet. I am personally waiting to see the open sourced code before making any judgements about how this product will develop.
Cheers

Cheers, seems to be working now. But I have had to disable Face detect and recognise for some reason. Not too bothered about that anyway. :slight_smile:

Hi have hassio installation and follow the guide robmarkole guide.
Now whe i try to call the service service image_processing.scan with image_processing.deepstack_person_detector i receive this error:

"Logger: homeassistant.components.image_processing
Source: components/image_processing/init.py:128
Integration: Elaborazione immagini (documentation, issues)
First occurred: 8:18:49 (1 occurrences)
Last logged: 8:18:49

Error on receive image from entity: Camera not found"

The deepstack is activated and my configuration is:

camera 11:

  • platform: local_file
    file_path: /config/snapshots/test.jpg

image_processing:

  • platform: deepstack_object
    ip_address: 192.168.1.12
    port: 5000
    save_file_folder: /config/deepst
    save_timestamped_file: True
    target:
    • person
    • car
      source:
    • entity_id: camera.local_foto
      name: deepstack_person_detector

Any help please.
Thank you

Iā€™ve made some more test and the curl command picture is working as aspect.
There is a problem in the hassio side. the entity is unknow.
end the message is still : Error on receive image from entity: Camera not found.
If iā€™m implementing the card on hassio, iā€™m able to see the image.

OK. Found the issue my self again.
thx

Hi ArnoNel - did you ever figure out how to do this? Just watched https://www.youtube.com/watch?v=fwoonl5JKgo - awesome setup but I am on Ring and dont want to switch away just yet.

Hello @robmarkcole

I see you have done a version update with some breaking changes. Is there anything I need to do with my configuration before I apply the update?

Yes, as described in the release notes

Thanks. Iā€™ll do the update and see if anything breaks.