Good news, I contacted the developer of ssocr. He suggested adding -f white to detect white chars. Works like a charm on a command line, but the way HA implement this, it’s not possible to pass the arguments properly.
extra_arguments: r_threshold -f white
This does not work, since r_threshold is a command not an option (argument)
====================
UPDATE: The order of parameters can be adjusted to work.
Here’s what works for me for the 2 digit display above:
image_processing:
- platform: seven_segments
x_position: 285
y_position: 360
width: 290
height: 180
threshold: 65
rotate: 0
extra_arguments: r_threshold -f white -a
digits: 2
source:
- entity_id: camera.seven_segments_image
2 Likes