# US 12,118,811 B2 · Electronic device and method for shape recognition based on stroke analysis in electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,118,811 B2
- Document ID: US12118811B2
- Status: Granted
- Kind: B2
- Application number: 17/586,965
- Filed: 2022-01-28
- Published: 2022-07-28
- Granted: 2024-10-15
- Earliest claimed: 2021-01-28
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Taewon Kwak; Jinsu Shin; Jiwon Lee
- Web page: https://patentgrep.com/patent/US12118811B2

## CPC

- G06F 1/1643: {the display being associated to a digitizer, e.g. laptops that can be used as penpads (details related to the relative motion of the display enclosure with respect to the body enclosure, e.g. to move between laptop and tablet PC configuration G06F1/1615)}
- G06V 30/347: {Sampling; Contour coding; Stroke extraction}
- G06F 1/1607: {Arrangements to support accessories mechanically attached to the display housing (G06F1/1603, G06F1/1605 take precedence)}
- G06F 1/1626: {with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]}
- G06F 3/0237: {using prediction or retrieval techniques}
- G06F 3/0354: with detection of two-dimensional [2D] relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F 3/03545: {Pens or stylus}
- G06F 3/038: Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
- G06F 3/041: Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F 3/0488: using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06F 40/171: by use of digital ink
- G06V 40/20: Movements or behaviour, e.g. gesture recognition (recognition of facial expressions G06V40/16)
- G06F 2200/1632: Pen holder integrated in the computer
- G06F 2203/04808: Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

According to an embodiment, an electronic device may include a display, a memory, and at least one processor operatively coupled to the display and the memory. The memory stores instructions that are configured to, when executed, enable the at least one processor to display first stroke data of a first stroke trajectory, based on an input of a first touch-move after a first touch-down on the display, perform shape recognition on the first stroke trajectory, based on a size of the first stroke trajectory and a distance between a stroke start point of the first stroke trajectory and another point on the first stroke trajectory, convert the first stroke data into second stroke data corresponding to a recognized shape form, based on the shape recognition, and display the second stroke data on the display. Various other embodiments may be possible.

## Claims

### Claim 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.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the instructions are further configured to, when executed, cause the at least one processor to stop displaying the second stroke data when the input of the first touch-move is continued without the first touch-up for the first touch-down after displaying the second stroke data.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the instructions are further configured to, when executed, cause the at least one processor to stop displaying the first stroke data and display the second stroke data.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the instructions are further configured to, when executed, cause the at least one processor to display the second stroke data together with the first stroke data.

### Claim 5 (depends on 1)

The electronic device of claim 1, wherein the instructions are further configured to, when executed, cause the at least one processor to identify a first pen drawing option corresponding to the first stroke data, and apply the first pen drawing option to the second stroke data to display the second stroke data.

### Claim 6 (depends on 1)

The electronic device of claim 1, wherein the instructions are further configured to, when executed, enable the at least one processor to perform the shape recognition on the first stroke trajectory, based cause whether a hold motion event has occurred while displaying the first stroke data of the first stroke trajectory.

### Claim 7 (depends on 1)

The electronic device of claim 1, wherein the instructions are further configured to, when executed, cause the at least one processor to:
identify whether a second stroke trajectory associated with the first stroke trajectory is stored in the memory, based on whether a hold motion event has occurred while displaying the first stroke data of the first stroke trajectory,
when the second stroke trajectory associated with the first stroke trajectory is stored in the memory, perform shape recognition on merged stroke data of the first stroke trajectory and the second stroke trajectory,
convert the merged stroke data into third stroke data corresponding to another recognized shape form, based on the shape recognition on the merged stroke data, and
display the third stroke data on the display.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein the instructions are further configured to, when executed, cause the at least one processor to identify a second touch-down while displaying the first stroke data of the first stroke trajectory on the display, and perform the shape recognition on the first stroke trajectory, based on occurrence of a second touch-up for the second touch-down.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the first touch-down and the first touch-move are inputs by a stylus pen, and the second touch-down is an input by a user's finger.

### Claim 10

A method for shape recognition based on stroke analysis in an electronic device, the method comprising:
identifying 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 on a display of the electronic device, based on an input of a first touch-move without a first touch-up after a first touch-down on the display;
determining 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, performing shape recognition for the first stroke trajectory;
obtaining second stroke data corresponding to a recognized shape about the first stroke data, based on the shape recognition; and
displaying 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.

### Claim 11 (depends on 10)

The method of claim 10, wherein the displaying of the second stroke data is stopped when the input of the first touch-move is continued without the first touch-up for the first touch-down after displaying the second stroke data.

### Claim 12 (depends on 10)

The method of claim 10, wherein the displaying of the first stroke data is stopped and the second stroke data is displayed.

### Claim 13 (depends on 10)

The method of claim 10, wherein the second stroke data is displayed together with the first stroke data.

### Claim 14 (depends on 10)

The method of claim 10, wherein a first pen drawing option corresponding to the first stroke data is identified, and the first pen drawing option is applied to the second stroke data to display the second stroke data.

### Claim 15

A non-transitory storage medium storing commands configured to, when executed by at least one processor, cause the at least one processor to perform at least one operation, the at least one operation comprising:
identifying 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 starting point on the first stroke trajectory at designated time intervals while displaying first stroke data of the first stroke trajectory on a display of an electronic device, based on an input of a first touch-move without a first touch-up after a first touch-down on the display;
determining 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, performing shape recognition for the first stroke trajectory;
obtaining second stroke data corresponding to a recognized shape about the first stroke data, based on the shape recognition; and
displaying 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.

### Claim 16 (depends on 15)

The non-transitory storage medium of claim 15, wherein the at least one operation further comprises stopping displaying the second stroke data when the first touch-up is not performed after displaying the second stroke data and the input of the first touch-move is continued.

### Claim 17 (depends on 15)

The non-transitory storage medium of claim 15, wherein the at least one operation further comprises identifying a first pen drawing option corresponding to the first stroke data, and applying the first pen drawing option to the second stroke data to display the second stroke data.
