robmarkcole / HASS-plate-recognizer

Read number plates with https://platerecognizer.com/
126 stars 24 forks source link

Automation #83

Open pilot1981 opened 12 months ago

pilot1981 commented 12 months ago

Hi, I would use this project to create an automation on HA to open my house’s gate when my car arrived in front!

I would use:

it’s possibile? You see any limitation?

I could have some issue with automation in this type of case?

robmarkcole commented 12 months ago

Should be fine, unless there are many false positives. You could just trigger on motion detection

pilot1981 commented 10 months ago

I don't have webcam with motion detection: what you suggest to do? I can use some other software to process it and create a virtual motion detection? what's your suggestion?

robmarkcole commented 10 months ago

Hmm you could do some kind of routine based on geofencing. Simplest would be to install an actuall sensor on the gate, e.g. PIR

pilot1981 commented 10 months ago

I can't use found event of image processing of HA?

https://www.home-assistant.io/integrations/image_processing/

I create an automation that when event plate found is triggered...it send plate image to PlateRecognizer cloud...it can works?

pilot1981 commented 10 months ago

Hi, I have proble creating 2 template sensors: 1 for each plate.

this is my configuration.yaml: ´´´ sensor:

but I only obtain elxxxkf sensor plate...no any gfxxxky sensor plate....why? you have some suggestion? I already tried the suggested config in your wiki...no luck!

pilot1981 commented 10 months ago

@robmarkcole , please update sensor template according to last version of HA; here my examples:

´´´ template:

pilot1981 commented 10 months ago

according to https://www.home-assistant.io/integrations/image_processing/

why I don't found in my installation entity openlapr.xxxx?

it is possibile use built image processing feature of HA to send image to PlateRecognizer cloud only when a license plate is recognized?

pilot1981 commented 7 months ago

Hi @robmarkcole, I'm deployment an installation at home using your project, but I don't have license plate stay in front for camera foir many seconds soI'm not able to take and send the right image of license plate to platerecognizer cloud.

what do you suggest for it?

Car is under 20 km/h...when ONVIF camera send motion detection alarm, can I take and send 10 images to plate regcognizer cloud? do you suggest to use a custom automation for this purpose? do you have other suggestions?

regards

robmarkcole commented 7 months ago

So the problem is, since the car is moving, when motion triggers the e camera the car is already out of frame? In this case you need to process continually to detect the car with the camera, the send the best image to this integration. Checkout Frigate forums for an approach

pilot1981 commented 6 months ago

for testing purpose, how I can uploda specific images to plate recognizer cloud?

robmarkcole commented 6 months ago

You can use the https://www.home-assistant.io/integrations/local_file/

pilot1981 commented 6 months ago

Hi, I'm trying to send to platerecognizer cloud multiple images to get the right image with the best license plate image, so I'm tryning to send 5 images in less than5 seconds, but I see only 2 images on plate recognizer cloud: there is some limitation in plate recognizer service?

I let also an example of HA automation I'm using:

alias: Test manda targa ripetuto 5 volte
description: Manda RIPETI 5 volte in automatico targa a platerecognizer
trigger:
  - platform: state
    entity_id:
      - binary_sensor.telecamera_cancello_cell_motion_detection
    from: null
    to: "on"
condition: []
action:
  - service: image_processing.scan
    data: {}
    target:
      entity_id: image_processing.platerecognizer_telecamera_cancello_profile_000
  - delay: "00:00:01"
  - service: image_processing.scan
    data: {}
    target:
      entity_id: image_processing.platerecognizer_telecamera_cancello_profile_000
  - delay: "00:00:01"
  - service: image_processing.scan
    data: {}
    target:
      entity_id: image_processing.platerecognizer_telecamera_cancello_profile_000
  - delay: "00:00:01"
  - service: image_processing.scan
    data: {}
    target:
      entity_id: image_processing.platerecognizer_telecamera_cancello_profile_000
  - delay: "00:00:01"
  - service: image_processing.scan
    data: {}
    target:
      entity_id: image_processing.platerecognizer_telecamera_cancello_profile_000
  - delay: "00:00:01"
  - service: image_processing.scan
    data: {}
    target:
      entity_id: image_processing.platerecognizer_telecamera_cancello_profile_000
  - delay: "00:00:01"
  - service: image_processing.scan
    data: {}
    target:
      entity_id: image_processing.platerecognizer_telecamera_cancello_profile_000
mode: single