# US 2021/0174075 A1 · Electronic device and method for processing writing input

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

- Number: US 2021/0174075 A1
- Document ID: US20210174075A1
- Status: Published application
- Kind: A1
- Application number: 17/117,286
- Filed: 2020-12-10
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Taewon KWAK; Dohyeon KIM; Jungrim KIM; Jihoon KIM; Gibeyong PARK; Jeongwan PARK; Konsang LEE; Donghyuk LEE; Seungcheol LEE; Yeunwook LIM
- Web page: https://patentgrep.com/patent/US20210174075A1

## CPC

- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06F 3/03545: {Pens or stylus}
- G06F 3/04845: for image manipulation, e.g. dragging, rotation, expansion or change of colour
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 30/1463: {Orientation detection or correction, e.g. rotation of multiples of 90 degrees}
- G06V 30/347: {Sampling; Contour coding; Stroke extraction}
- G06V 30/36: {Matching; Classification}
- G06V 30/10: Character recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

An electronic device and method are disclosed. The electronic device includes a touch-sensitive display, a memory and a processor. The processor implements the method, including: detect a written input including a plurality of strokes through the display, group the plurality of strokes into a first group and a second group based on respective coordinates of each of the plurality of strokes, group first strokes included in the first group into a plurality of blocks, based on a distance between respective coordinates of each of the first strokes, determine a slope for each of the plurality of blocks, rotate an area corresponding to the first group based on the determined slope, execute handwriting recognition on the first strokes based on the rotated area, and displaying a result of the handwriting recognition on the display.

## Claims

### Claim 1

An electronic device, comprising:
a display;
a memory configured to store instructions; and
at least one processor electrically connected to the display and the memory,
wherein, the stored instructions are executable by the at least one processor to cause the electronic device to:
detect a written input including a plurality of strokes through the display;
group the plurality of strokes into a first group and a second group based on respective coordinates of each of the plurality of strokes;
group first strokes included in the first group into a plurality of blocks, based on a distance between respective coordinates of each of the first strokes;
determine a slope for each of the plurality of blocks;
rotate an area corresponding to the first group based on the determined slope;
execute handwriting recognition on the first strokes based on the rotated area; and
display a result of the handwriting recognition on the display.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the plurality of strokes are grouped into the first group and the second group according to positional similarity between each of the plurality of strokes.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the distance between each of the respective coordinates is based on at least one of:
a distance between start points of each of the first strokes,
a distance between end points of each the first strokes, and
a distance between intermediate points of each of the first strokes, wherein the intermediate points are disposed between the start points and the end points.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the distance between the coordinates is based on a distance between an end point of one of the first strokes and a start point of a subsequent first stroke.

### Claim 5 (depends on 1)

The electronic device of claim 1, wherein the slope of each of the plurality of blocks is determined using linear regression.

### Claim 6 (depends on 1)

The electronic device of claim 1, wherein an angle by which the area is rotated is an average of inclination angles of each of the plurality of blocks.

### Claim 7 (depends on 6)

The electronic device of claim 6, wherein rotating the area further includes rotating an entirety of the area corresponding to the first group in a reverse direction according to the average of the inclination angles of each of the plurality of blocks.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein rotating the area corresponding to the first group excludes at least one block from among the plurality of blocks for which rotation is determined to be unnecessary.

### Claim 9

A method in an electronic device, the method comprising:
detecting, through a display, a handwritten input including a plurality of strokes;
grouping, by a processor, the plurality of strokes into a first group and a second group based on respective coordinates of each the plurality of strokes;
grouping first strokes included in the first group from among the plurality of strokes into a plurality of blocks based on a distance between coordinates of each of the respective first strokes;
determining a slope for each of the plurality of blocks;
rotating an area corresponding to the first group based on the determined slope; and
executing handwriting recognition on the first strokes based on the rotated area.

### Claim 10 (depends on 9)

The method of claim 9, wherein the plurality of strokes are grouped into the first group and the second group according to positional similarity between each of the plurality of strokes.

### Claim 11 (depends on 9)

The method of claim 9, wherein the distance between each of the respective coordinates is based on at least one of:
a distance between start points of each of the first strokes,
a distance between end points of each the first strokes, and
a distance between intermediate points of each of the first strokes, wherein the intermediate points are disposed between the start points and the end points.

### Claim 12 (depends on 9)

The method of claim 9, wherein the distance between the coordinates is based on a distance between an end point of one of the first strokes and a start point of a subsequent first stroke.

### Claim 13 (depends on 9)

The method of claim 9, wherein an angle by which the area is rotated is an average of inclination angles of each of the plurality of blocks.

### Claim 14 (depends on 9)

The method of claim 9, wherein an angle by which the area is rotated is an average of inclination angles of each of the plurality of blocks.

### Claim 15 (depends on 14)

The method of claim 14, wherein rotating the area further includes rotating an entirety of the area corresponding to the first group in a reverse direction according to the average of the inclination angles of each of the plurality of blocks.

### Claim 16 (depends on 9)

The method of claim 9, wherein rotating the area corresponding to the first group excludes at least one block from among the plurality of blocks for which rotation is determined to be unnecessary.

### Claim 17

An electronic device, comprising:
a display;
a memory storing instructions;
an electronic pen detectable by the electronic device; and
at least one processor electrically connected to the display and the memory,
wherein the instructions are executable by the at least one processor to cause the electronic device to:
detect a written input including a plurality of strokes via the electronic pen;
group the plurality of strokes into a plurality of blocks based on respective distances between coordinates of each of the plurality of strokes;
determine a slope for each of the plurality of blocks;
rotate an area including the plurality of strokes based on the determined slope;
execute handwriting recognition on the plurality of strokes based on the rotated area; and
display a result of the handwriting recognition on the display.

### Claim 18 (depends on 17)

The electronic device of claim 17, further including an electronic pad configured to detect an input by the electronic pen,
wherein the at least one processor is configured to detect the plurality of strokes through the electronic pad.

### Claim 19 (depends on 17)

The electronic device of claim 17, further comprising:
an accommodation space for housing the electronic pen; and
a sensor configured to detect whether the electronic pen is disposed within the accommodation space, or removed from within the accommodation space.

### Claim 20 (depends on 17)

The electronic device of claim 17, further comprising a communication circuit providing communication between the electronic device and an external electronic device,
wherein the communication circuit receives data from the external electronic device and/or transmits data to the external electronic device.
