# US 2020/0005500 A1 · Electronic drawing with handwriting recognition

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

- Number: US 2020/0005500 A1
- Document ID: US20200005500A1
- Status: Published application
- Kind: A1
- Application number: 16/025,931
- Filed: 2018-07-02
- Published: 2020-01-02
- Earliest claimed: 2018-07-02
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: William J. THIMBLEBY
- Web page: https://patentgrep.com/patent/US20200005500A1

## CPC

- G06T 11/23: using straight lines or curves
- G06F 40/166: Editing, e.g. inserting or deleting
- G06T 11/60: Creating or editing images; Combining images with text
- G06V 30/1423: {the instrument generating sequences of position coordinates corresponding to handwriting (preprocessing or recognising digital ink G06V30/32)}
- G06V 30/347: {Sampling; Contour coding; Stroke extraction}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Aspects of subject technology provide systems and methods for electronic drawing with handwriting recognition. An electronic device may include one or more processors configured to receive a drawing stroke input, generate a bitmap of values that represent the drawing stroke input, render the bitmap for display by a display of the device, generate a vector representation of the drawing stroke input, and store the generated bitmap and the generated vector representation.

## Claims

### Claim 1

A device, comprising:
at least one processor configured to:
receive a drawing stroke input;
generate a vector representation of the drawing stroke input;
generate a bitmap of values based on the drawing stroke input and independent of the vector representation;
render the bitmap for display by a display of the device;
store the generated bitmap to facilitate bitmap editing operations; and
store the generated vector representation to facilitate recognition of text associated with the drawing stroke input.

### Claim 2 (depends on 1)

The device of claim 1, wherein the at least one processor is configured to receive the drawing stroke input from a touchscreen, a touchpad, or a stylus device communicatively coupled to the device.

### Claim 3 (depends on 1)

The device of claim 1, wherein the at least one processor is further configured to recognize the text associated with the drawing stroke input based on the stored vector representation.

### Claim 4 (depends on 3)

The device of claim 3, wherein the at least one processor is further configured to:
receive a modification input for the drawing stroke input;
modify the stored vector representation based on the modification input; and
modify the values of the stored bitmap based on the modification input and independent of the modification to the stored vector representation.

### Claim 5 (depends on 4)

The device of claim 4, wherein the modification input comprises an erase stroke that intersects at least a portion of the rendered bitmap, and the at least one processor is further configured to:
modify the values of the stored bitmap by setting values of the at least the portion of the bitmap that intersects the erase stroke to background values; and
modify the stored vector representation by splitting the stored vector representation into a first portion on a first side of the erase stroke and a second portion on a second side of the erase stroke.

### Claim 6 (depends on 5)

The device of claim 5, wherein the vector representation comprises a b-spline curve corresponding to the drawing stroke input, and wherein the at least one processor is configured to split the stored vector representation into the first portion on the first side of the erase stroke and the second portion on the second side of the erase stroke by:
converting the erase stroke to a vector outline;
converting the b-spline curve to a polygon;
intersecting the vector outline and the polygon; and
obtaining endpoints for first and second valid ranges of the b-spline curve, based on the intersection, wherein the first and second valid ranges correspond to the first and second portions.

### Claim 7 (depends on 4)

The device of claim 4, wherein the at least one processor is further configured to:
recognize the text associated with the drawing stroke input based on the vector representation prior to receiving the modification input; and
recognize the text associated with the drawing stroke input based on the modified vector representation after receiving the modification input.

### Claim 8 (depends on 1)

The device of claim 1, wherein the at least one processor is further configured to:
receive a modification input for the drawing input stroke, wherein the modification input comprises a smudge stroke that intersects at least a portion of the rendered bitmap; and
modify the values of the stored bitmap by spreading the values of the at least the portion of the bitmap that intersects the smudge stroke, without modifying the stored vector representation.

### Claim 9 (depends on 1)

The device of claim 1, wherein the at least one processor is further configured to:
recognize at least one character based on the stored vector representation;
receive a request to display the at least one recognized character; and
replace, responsive to the request, a first portion of the rendered bitmap with a vector rendering of the recognized at least one character, while maintaining a second portion of the rendered bitmap.

### Claim 10 (depends on 1)

The device of claim 1, further comprising a display having an array of display pixels, wherein the at least one processor is further configured to operate the array of display pixels to display the rendered bitmap independent of the stored vector representation.

### Claim 11 (depends on 1)

The device of claim 1, wherein the vector representation includes insufficient information with which to render, for display, a representation of the drawing stroke input that visually matches the rendered bitmap.

### Claim 12 (depends on 11)

The device of claim 11, wherein the vector representation includes a b-spline curve and is free of visual representation metadata.

### Claim 13

A computer-implemented method, comprising:
receiving a drawing stroke input;
generating a bitmap of values that represent the drawing stroke input;
rendering the bitmap for display by a display of an electronic device;
generating a vector representation of the drawing stroke input based on the bitmap;
storing the generated bitmap for bitmap editing operations; and
storing the generated vector representation of the bitmap, to facilitate character recognition with respect to the drawing stroke input.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, further comprising:
receiving a boundary input corresponding to a boundary that encloses a portion of the rendered bitmap;
identifying bitmap values of the bitmap that are enclosed by the boundary;
receiving a drag input that moves the boundary; and
re-rendering the identified bitmap values at a location determined based on the drag input.

### Claim 15 (depends on 14)

The computer-implemented method of claim 14, further comprising:
identifying a portion of the vector representation that is enclosed by the boundary;
applying a spatial offset to the portion of the vector representation based on the drag input; and
storing the vector representation with the spatial offset applied to the portion of the vector representation, without rendering the vector representation for display.

### Claim 16 (depends on 13)

The computer-implemented method of claim 13, wherein the vector representation includes insufficient information with which to render, for display, a representation of the drawing stroke input that visually matches the rendered bitmap.

### Claim 17 (depends on 13)

The computer-implemented method of claim 13, wherein the vector representation includes a b-spline curve and is free of visual representation metadata.

### Claim 18

A non-transitory computer-readable medium comprising instructions, which when executed by at least one computing device, cause the at least one computing device to perform operations comprising:
receiving a drawing stroke input;
generating a handwriting-recognition vector corresponding to the drawing stroke input to facilitate handwriting recognition operations for the drawing stroke input; and
generating a plurality of drawing vectors corresponding to the drawing stroke input to facilitate editing of a rendering of the drawing stroke input.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the operations further comprise rendering a vector representation of the drawing stroke input for display based on the plurality of drawing vectors to generate the rendering of the drawing stroke input.

### Claim 20 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the operations further comprise rendering a vector representation of the drawing stroke input for display based on the handwriting-recognition vector and the plurality of drawing vectors to generate the rendering of the drawing stroke input.

### Claim 21 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the operations further comprise performing the handwriting-recognition operations to recognize at least one character based on the handwriting-recognition vector.

### Claim 22 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the handwriting-recognition vector comprises a single curve at the center of the drawing stroke input.

### Claim 23 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:
rendering a vector representation of the drawing stroke input for display based on the plurality of drawing vectors;
receiving a drawing modification stroke;
modifying at least one of the plurality of drawing vectors without modifying the handwriting-recognition vector; and
modifying the rendered vector representation based on the modified at least one of the plurality of drawing vectors.

### Claim 24 (depends on 23)

The non-transitory computer-readable medium of claim 23, wherein the drawing modification stroke comprises an erase stroke or a smudge stroke that does not intersect the handwriting-recognition vector.

### Claim 25 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:
rendering a vector representation of the drawing stroke input for display based on the plurality of drawing vectors;
receiving a drawing modification stroke;
modifying at least one of the plurality of drawing vectors based on the drawing modification stroke;
modifying the handwriting-recognition vector based on the drawing modification stroke; and
modifying the rendered vector representation based on the modified at least one of the plurality of drawing vectors and the modified handwriting-recognition vector.

### Claim 26 (depends on 25)

The non-transitory computer-readable medium of claim 25, wherein the drawing modification stroke comprises an erase stroke or a smudge stroke that intersects the handwriting-recognition vector.

### Claim 27 (depends on 26)

The non-transitory computer-readable medium of claim 26, wherein the drawing modification stroke is the erase stroke and wherein the operations further comprise:
generating and storing an erase mask corresponding to the erase stroke;
intersecting the erase mask with a polygon associated with the plurality of drawing vectors; and
modifying at least one of the plurality of drawing vectors and the handwriting-recognition vector based on the intersecting.

### Claim 28 (depends on 25)

The non-transitory computer-readable medium of claim 25, wherein the operations further comprise recognizing at least one character based on the modified handwriting-recognition vector.
