gain the four corner point

asked 2016-04-10 11:49:13 -0600

arash gravatar image

Hello dears, i would like to gain the coordinates of corers according to the pictures which are my progress in this process,but i could not do it.is it possible to guide me for addressing my challenge. Thank you greatly.image description

edit retag flag offensive close merge delete

Comments

1

you can try boundingRect or convexHull or use approxpolyDP

LBerger gravatar imageLBerger ( 2016-04-10 12:06:07 -0600 )edit
1

I'd go with approxPolyDP. boundingRect returns an upright rectangle, which may be incorrect for more complex rotated counturs. convexHull return a convex poly, but not necessarily a 4-corner one

LorenaGdL gravatar imageLorenaGdL ( 2016-04-10 12:18:16 -0600 )edit