Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

circle detection opencv android

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 : coin over hand

Image 2 : circle drawn on paper

Thanks

click to hide/show revision 2
retagged

updated 2013-12-04 04:58:26 -0600

berak gravatar image

circle detection opencv android

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 : coin over hand

Image 2 : circle drawn on paper

Thanks

click to hide/show revision 3
retagged

updated 2013-12-04 05:01:03 -0600

berak gravatar image

circle detection opencv android

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 : coin over hand

Image 2 : circle drawn on paper

Thanks

circle detection opencv android

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 : coin over hand

Image 2 : circle drawn on paper

Thanks

edit :

Image 3 : Image 3 with circle detected

Image4 : Image 4 with circle detected