I am trying to detect circles using Opencv for android. So far I have tried using JavaCvCamera and custom android camera app , In both scenarios circle detection is not efficient. Also even when I set the minRadius, maxRadius parameters to 0 so that all possible circles will be detected , its not happening. Circles are hardly detected and also when they are considerably big enough like when they cover 1/8 of the screen. Following code snippets shows the procedures I am using
1 . Straight forward houghCircle
2 . Sobel derivative and houghCircle
3.Sobel derivative and houghCircle using JavaCvCamera
I am using both these procesure with JavaCvCamera provided in opencv library and Custom camera using Camera API. Only difference being conversion form bitmap to mat while using Custom camera as captured image is firstly converted to Bitmap and then to Mat for opencv processing.
Can anyone tell reason why I am not able to find out the small circles ?
Following are some demo images I am using among which I get better results on
Image 1 :
Image 2 :
Thanks