Image Processing ALPR with Ring Floodlight

Can anyone one help me with a query

Is ALPR / Image processing supported with the Ring Floodlight

This is what I have and I feel like this it should work

image_processing:
 - platform: openalpr_local
   region: eu
   source:
    - entity_id: camera.front_floodlight

Initially had an error

2018-09-28 20:12:08 DEBUG (MainThread) [haffmpeg.core] Start FFmpeg with ['ffmpeg', '-i', False, '-an', '-frames:v', '1', '-c:v', 'mjpeg', '-pred', '1', '-q:v', '2', '-f', 'imag
e2pipe', '-']
2018-09-28 20:12:08 ERROR (MainThread) [haffmpeg.core] FFmpeg fails program arguments must be a bytes or text string, not bool
Traceback (most recent call last):
  File "/home/rob/homeassistant/lib/python3.6/site-packages/haffmpeg/core.py", line 114, in open
    stderr=stderr
  File "/usr/lib/python3.6/asyncio/subprocess.py", line 225, in create_subprocess_exec
    stderr=stderr, **kwds)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 1184, in subprocess_exec
    % type(arg).__name__)
TypeError: program arguments must be a bytes or text string, not bool
2018-09-28 20:12:08 WARNING (MainThread) [haffmpeg.tools] Error starting FFmpeg.
2018-09-28 20:12:08 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Unable to get image

Fixed FFMPEG then got

2018-09-28 22:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=image_processing.openalpr_front_floodlight, old_state=None, new_state=
<state image_processing.openalpr_front_floodlight=unknown; plates=, vehicles=0, friendly_name=OpenAlpr front_floodlight, device_class=alpr @ 2018-09-28T22:20:54.939091+01:00>>
2018-09-28 22:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=image_processing, service=scan>
2018-09-28 22:20:54 INFO (MainThread) [homeassistant.setup] Setup of domain image_processing took 0.0 seconds.
2018-09-28 22:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=image_processing>

I’m getting a video though on the camera - but its not working.

How does the image get pulled from the camera?

Further fun and testing…

A camera cant have a space in its name - my ring camera had a space in the name - so I removed it and now I get a new error

2018-09-29 09:52:19 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Unable to get image

UPDATE: After updating to 0.79 I removed the single quotes from the ffmpeg command and this error went away. Still no number plate though

Never got it working locally with Ubuntu 18.04 - but when using the ALPR Cloud Service it works fine.

The cloud service gives other benefits like make and model of car - HA only makes use of the car count with registration

1 Like