what is the best way to check the level of the powder in the case with OpenCV?
I tried HSV filtering to get the gery color of the powder. But only with bad results. Also tried with edge and blob detection, but still no good results.
Hm no, I scanned vertically in the middle of the image and determined the average color of a 20 pixel line.
Then I checked whether the average color of the line is gray.
That works perfectly.