r/computervision • u/Riqium • Oct 14 '26
Help: Project Reliable meniscus edge detection for automated hydrometer calibration
Hello everyone.
First of all I say that I am a complete beginner to Computer Vision and I know I may not be giving enough context/information. If more information is needed, don't hesitate to ask.
I am currently developing a calibration station for hydrometers. I want the process to be semi-automatic, and for that I need an algorithm that is able to recognize when the water meniscus aligns with the selected mark.
To keep things brief and relevant, I won't specify the whole process, but here's a piece of the workflow:
The calibration station consists of a platform which moves a container up or down to achieve alignment of the water surface with the desired hydrometer mark and an independent motor that controls the camera vertical position.
The user selects a set of marks to be calibrated by aligning the camera's horizontal centerline to each mark. The software saves the positions of each one. By selecting one of the saved marks, the user can tell the motors to automatically align the meniscus to that mark.
My issue lies in that I am not able to detect the meniscus reliably.
I'd share my pipeline, but I experimented with some generated edge-detection scripts, but none were robust enough to handle the meniscus reflections consistently as I was frustrated and wanted to finish the project and as i took a pause from it I do not remember exactly what I was doing.
The camera setup is the following: the camera is slightly aimed downwards and there's LED lighting at the side of the container.
Here's an image of how everything looks through the camera.

Does anyone have an idea of how can I solve this issue?


