Gauge Level Analysis for Home Assistant

I have an oil tank at home with a mechanical level indicator, similar to this one (but without the red marks).

I want to monitor the tank’s level and have bought an Onvif-kompatible IR-enabled network-camera for this. The goal is to use image recognition / AI to get the current level in centimeter and use a template sensor to get the amount of oil in litres.

I’d be grateful for hints and links on how to archieve this with Home Assistant and other tools like OpenCV.

Good morning!

Wouldn’t it be easier to do sth like that with an ultrasonic distance sensor like that?

$6 for the Sensor plus another $5 for a Wemo o r ESP8266 and done :slight_smile: