Ask Your Question
0

How can I detect a special pattern that may be distored due to camera angle?

asked 2013-04-25 15:00:00 -0600

Avip gravatar image

updated 2013-04-26 07:07:30 -0600

See 2 example picture with the White/Blue pattern. I tried the square.cpp from the library and it didn't detect any of the squares in the pictures. Is there any need to adjust one of the parameters?

image description

image description

edit retag flag offensive close merge delete

Comments

Please take a look at the FAQ page. This forum doesn't stimulate simple code begging. This is a Question and Answer section, meaning you address us with a problem you encountered while programming and we help you fix it. Please put in some effort... Please adapt the question or it will get closed down.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-26 03:12:28 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2013-04-26 07:21:32 -0600

Squares.cpp looks for angles that are approximately 90 degrees between two edges of a given contour. Since you have perspective and camera deformations, it will possible find the contours, but the relations in order to have a square (90° angles and same size borders) form will not get satisfied.

What you could do is define a relation of your own, which could help you detect all objects with 4 linear sides or you could perform segmentation based on color thresholding.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-25 15:00:00 -0600

Seen: 227 times

Last updated: Apr 26 '13