gain the four corner point
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.
you can try boundingRect or convexHull or use approxpolyDP
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