CPC G06V 30/347 (2022.01) [G06F 3/04883 (2013.01)] | 17 Claims |
1. An electronic device comprising:
a display;
a memory; and
at least one processor operatively coupled to the display and the memory,
wherein the memory stores instructions that are configured to, when executed, cause the at least one processor to:
identify a size of a first stroke trajectory and a distance between a stroke start point of the first stroke trajectory and each one of points following the stroke start point on the first stroke trajectory at designated time intervals while displaying first stroke data of the first stroke trajectory, based on an input of a first touch-move without a first touch-up after a first touch-down on the display,
determine whether the size of the first stroke trajectory is greater than a specified size and a first distance between the stroke start point and a point among the points is less than a second distance between the stroke start point and a previous point of the point among the points,
responsive to the determination, perform shape recognition for the first stroke trajectory,
obtain second stroke data corresponding to a recognized shape about the first stroke data based on the shape recognition, and
display the second stroke data on the display,
wherein the second stroke data includes a first shape recognized by using the first stroke trajectory, and the first shape is one of a triangle shape, a rectangle shape, a circle shape, an ellipse shape, a trapezoid shape, a star shape, a straight line, or a curved line.
|