robmarkcole / HASS-Sighthound

Beta features for Home Assistant Sighthound integration
https://www.home-assistant.io/integrations/sighthound/
MIT License
34 stars 10 forks source link

Proposal: Vehicle detection integration #13

Closed jeffehobbs closed 3 years ago

jeffehobbs commented 4 years ago

I have one of my cameras pointed at my driveway. Adding in an additional event for "vehicle detected" -- ideally passing the additional metadata representing the vehicle and license plate -- would allow me to know who is coming and going. We could even trigger automations based on specific license plates (!)

https://www.sighthound.com/docs/cloud/recognition/#vehicle-recognition

clsferguson commented 4 years ago

I second this. I just got my nvr system to process pictures through home-assistants internal sighthound component. So i did a google search to see if anyone added vehicles. Then i found this component.

my coding skills are weak, lol. But before i try adding the vehicle stuff myself, can you add it?

clsferguson commented 4 years ago

As a suggestion;

it seems like for each type of image scan. it needs to use another api call. It would be good if the integration had two places to specify camera entities. One for people, one vehicles. then the ability to add a camera in both spots. that way if the camera can only people or only vehicles it can save api calls.

robmarkcole commented 4 years ago

As you mention this requires calling a different API endpoint, and would require a resonable amount of work. I think it would be better to have a seperate integration, rather than making one complex integration to handle vehicles and people. Ideally the vehicle integration would detect the vehicle and identify its number plate. Note that number plate reading is already supported by HA

robmarkcole commented 3 years ago

Implement this, see https://github.com/home-assistant/core/blob/dev/homeassistant/components/openalpr_local/image_processing.py

robmarkcole commented 3 years ago

Done in https://github.com/robmarkcole/HASS-Sighthound/pull/18