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.