How to check if four points form a rectangle
问题 I am working on a shape recognition app. At this moment a set of points (x,y) is determined by corner detector (red points, img. 2.). Four of these points (in red frames, img. 2.) are vertices of a rectangle (sometimes a little deformed rectangle). What would be the best way to find them among others? Here is an example of an input image: And it looks like this after corner detection: 回答1: This is not an answer to your question - it's just suggestion. In my opinion corner detector is a bad