Obstructed Rectangle Detection

asked 2016-07-27 08:01:50 -0500

xMonty gravatar image

Hi, I am trying to detect 4 corners of a regular paper sheet. i have tried all the ways canny/sobel/polygon detection/line detection they all work fine

if and only if the whole paper is visible

if one or more of the corner is obstructed by users hand (if he is trying to write something on paper) one of the corners get lost and i really need all four or an estimation of all four

so is there a way if i know three points of a polygon and i can calculate/guess where the fourth one will be if its obstructed found this article which seems to do the opposite of what i want -> http://stackoverflow.com/questions/17...

or is there a way to remove the hand from the image by using some tech color detection etc?

any help will be appreciated

edit retag flag offensive close merge delete

Comments

Ow you will have to make some self written code handling, but it should be basic math. You will have to compare the x and y coordinates if only 3 corners are found, and from that you can simply estimate the 4th corner, since 2 corners contain both the average x and y coordinate of your sheet. I don't really see the problem here?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-07-28 03:51:35 -0500 )edit