Search code examples
opencvimage-processingcomputer-vision

OpenCV check powder level


what is the best way to check the level of the powder in the case with OpenCV?

powder

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.


Solution

  • 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.

    enter image description here

    https://github.com/ripper121/python-powder-level