First time here? Check out the FAQ!

Ask Your Question
4

findCirclesGrid

asked Sep 13 '12

ninja0524 gravatar image

updated Oct 31 '12

has anyone used findCirclesGrid? I have had no luck using it for a couple of patterns I tried which are pretty easy to detect. the return value is false

Links to images http://robocraft.ru/files/opencv/acircles_pattern.png http://cdn1.stuff4scrapbooking.com/catalog/product/cache/4/image/9df78eab33525d08d6e5fb8d27136e95/4/7/474765.jpg

Preview: (hide)

Comments

3 answers

Sort by » oldest newest most voted
5

answered Oct 4 '12

mgb gravatar image

Width Height must be the correct way around.
For the asymmetrical circle grid on the default target.png w=4 h=11
Not the other way around as printed on the sheet!

Preview: (hide)

Comments

Yes, it is written in the format of a matrix size (the same format is used for a chessboard) and it is stated in the OpenCV documentation:

patternSize = Size(points_per_row, points_per_column)

So in this case it becomes patternSize = Size(4, 11).

Ilya Lysenkov gravatar imageIlya Lysenkov (Oct 4 '12)edit
3

@llya - but it's not terribly clear what is a row and what is a column!

mgb gravatar imagemgb (Oct 10 '12)edit
1

Yeah, I agree, it is not very clear.

Ilya Lysenkov gravatar imageIlya Lysenkov (Oct 10 '12)edit
1

answered Sep 13 '12

Yes, I'm using it with the asymmetric pattern a lot and it works on my images.

Note you have to specify a correct size of the pattern and its type (the first your pattern is asymmetric and the second is symmetric).

Preview: (hide)

Comments

Hi, I use symmetrical circle grid with patternSize of 4 * 3, which are 4 points per row and 3 points per column. However the return value of the findHoles() defined in class CirclesGridFinder is always false. Therefore, the findCirclesGrid() can not find the circle center points with patternSize of 4*3. If I want to detect the circle in symmetrical circle grid with patternSize of 4 * 3, is there any way to solve this problem. Thanks.

wzx gravatar imagewzx (Dec 12 '12)edit

This is a strange situation. Could you please send me an example of your images?

Ilya Lysenkov gravatar imageIlya Lysenkov (Dec 12 '12)edit

Yes, the images are shown here: http://answers.opencv.org/question/5130/is-there-something-wrong-with-circle-grid-with/ Thank you for your attention!

wzx gravatar imagewzx (Dec 13 '12)edit
0

answered Sep 13 '12

Rui Marques gravatar image

updated Oct 2 '12

V.G. gravatar image

Have you tried with the actual circle grid image provided by opencv?

You can find it here for example:

http://docs.opencv.org/trunk/_downloads/acircles_pattern.png

Preview: (hide)

Comments

Is there an svg version of this? The png is badly pixelated and the pattern generator python is very difficult to install on Windows

mgb gravatar imagemgb (Sep 14 '12)edit

I do not know of a svg version, sorry.

Rui Marques gravatar imageRui Marques (Oct 2 '12)edit

I know that this post is quite old, but I guess this might still be useful to some people. I just found a PDF version of the calibration pattern for different paper sizes:

http://nerian.com/products/sp1-stereo...

Carl gravatar imageCarl (Apr 13 '15)edit

Question Tools

3 followers

Stats

Asked: Sep 13 '12

Seen: 17,306 times

Last updated: Oct 15 '12