1 | initial version |
You can use hough-transform for detecting the circle and if it's a binary images then countNonZero to check if the circle is filled. Otherwise, you can use a histogram of gray values to measure the amount of black/white pixels.