Ask Your Question

Revision history [back]

How to detect black rectangle corners?

Hi folks,

as a bloody beginner i searched the web for an out-of-the box solution to find the corners of the largest surrounding rectangle in an (scanned) image to crop/rotate/scale a form.

unfortunately i was not successful.

attached you find an example that also includes some added markings that need to be ignored.

the pink circles are not part of the source image but there just to show you the coordinates i want to find out.

Andy ideas, how to achieve this as easy as possible?

Cheers,

Christophimage description