shape-recognition

How to check if four points form a rectangle

寵の児 提交于 2019-12-21 04:15:35
问题 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

How to check if four points form a rectangle

六眼飞鱼酱① 提交于 2019-12-03 12:16:18
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: This is not an answer to your question - it's just suggestion. In my opinion corner detector is a bad way to detect rectangles - it will take much time to calculate all point distances as mathematician1975

Draw a perfect circle from user's touch

不问归期 提交于 2019-12-03 00:01:47
问题 I have this practice project that allows the user to draw on the screen as they touch with their fingers. Very simple App I did as exercise way back. My little cousin took the liberty of drawing things with his finger with my iPad on this App (Kids drawings: circle, lines, etc, whatever came to his mind). Then he started to draw circles and then he asked me to make it "good circle" (from my understanding: make the drawn circle perfectly round, as we know no matter how stable we try to draw

Draw a perfect circle from user's touch

血红的双手。 提交于 2019-12-02 13:47:17
I have this practice project that allows the user to draw on the screen as they touch with their fingers. Very simple App I did as exercise way back. My little cousin took the liberty of drawing things with his finger with my iPad on this App (Kids drawings: circle, lines, etc, whatever came to his mind). Then he started to draw circles and then he asked me to make it "good circle" (from my understanding: make the drawn circle perfectly round, as we know no matter how stable we try to draw something with our finger on the screen, a circle is never really as rounded like a circle should be). So

2D Shape recognition algorithm - looking for guidance [closed]

旧时模样 提交于 2019-11-28 20:41:44
I need the ability to verify that a user has drawn a shape correctly, starting with simple shapes like circle, triangle and more advanced shapes like the letter A. I need to be able to calculate correctness in real time, for example if the user is supposed to draw a circle but is drawing a rectangle, my hope is to be able to detect that while the drawing takes place. There are a few different approaches to shape recognition, unfortunately I don't have the experience or time to try them all and see what works. Which approach would you recommend for this specific task? Your help is appreciated.

2D Shape recognition algorithm - looking for guidance [closed]

末鹿安然 提交于 2019-11-27 13:05:34
问题 I need the ability to verify that a user has drawn a shape correctly, starting with simple shapes like circle, triangle and more advanced shapes like the letter A. I need to be able to calculate correctness in real time, for example if the user is supposed to draw a circle but is drawing a rectangle, my hope is to be able to detect that while the drawing takes place. There are a few different approaches to shape recognition, unfortunately I don't have the experience or time to try them all

Recognize open and closed shapes opencv

允我心安 提交于 2019-11-27 00:38:23
问题 how to detect open and closed shapes in opencv. These are simple sample shapes I want to detect. I have detected rectangle using findContours and approxPolyDP and than checking for angle between vectors. Now I want to detect the open shape, approxPolyDP function has bool for closed shape set to true, and also there is a check for isCounterConvex on the points returned, plus contourArea limitation. Any ideas how should I go on detecting images of these kind. 回答1: Just use findContours() in