How to detect black rectangle corners?

asked 2019-09-20 15:11:32 -0500

c_h_g gravatar image

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?


Christophimage description

edit retag flag offensive close merge delete


Have you tried Harris corner detector?

Witek gravatar imageWitek ( 2019-09-21 12:56:38 -0500 )edit