# US 2026/0220957 A1 · Text recognition method based on terminal device, device, and storage medium

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

- Number: US 2026/0220957 A1
- Document ID: US20260220957A1
- Status: Published application
- Kind: A1
- Application number: 19/142,891
- Filed: 2023-12-06
- Published: 2026-07-30
- Earliest claimed: 2023-03-06
- Assignees: Honor Device Co., Ltd.
- Applicants: Honor Device Co., Ltd.
- Inventors: Chaojin Xu; Jie Yi; Linhao Shao; Yufei Huang; Yuanjia Zhou
- Web page: https://patentgrep.com/patent/US20260220957A1

## CPC

- G06V 30/19133: {Interactive pattern learning with a human teacher}
- G06V 30/413: Classification of content, e.g. text, photographs or tables
- G06F 3/04817: using icons (graphical or visual programming using iconic symbols G06F8/34)
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06V 10/945: {User interactive design; Environments; Toolboxes}
- G06V 30/142: using hand-held instruments; Constructional details of the instruments
- G06V 30/1456: {based on user interactions}
- G06V 30/414: Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
- G06F 2203/04806: Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of this application provide a text recognition method based on a terminal device, a device, and a storage medium. The method includes: displaying a first interface; displaying a second button on the first interface when a first image in a preview stream is a document object; displaying a second interface in response to that the second button on the first interface is triggered, where the second interface displays a third button when a current frame image of the preview stream includes a target text, the second interface does not display the third button when the current frame image of the preview stream does not include the target text; displaying a third interface in response to that the third button on the second interface is triggered; and displaying a fourth interface in response to that the first button on the second interface is triggered.

## Claims

### Claim 1

A text recognition method based on a terminal device, applied to a terminal device, comprising:
displaying a first interface, wherein the first interface comprises a first window, the first window displays a preview stream collected by the terminal device, and the first interface comprises a first button;
displaying a second button on the first interface when an object category of a first image in the preview stream is a document object;
displaying a second interface in response to that the second button on the first interface is triggered, wherein the second interface comprises a second window and a third window, the second window displays the preview stream collected by the terminal device, an outer frame of a document in a current frame image in the preview stream is highlighted, the second interface displays a third button when the current frame image of the preview stream comprises a target text, the second interface does not display the third button when the current frame image of the preview stream does not comprise the target text, and the third window displays the first button;
displaying a third interface in response to that the third button on the second interface is triggered, wherein the third interface comprises a fourth window and a fifth window, the third interface displays the third button, the fourth window displays a second image in the preview stream, the second image comprises the highlighted target text, the fifth window displays a fifth button when the target text in the fourth window does not comprise an entity, the fifth window displays the fifth button and at least one sixth button when the target text in the fourth window comprises an entity, and the sixth button is in a one-to-one correspondence with the entity in the target text in the fourth window; and
displaying a fourth interface in response to that the first button on the second interface is triggered, wherein the fourth interface displays a third image in the preview stream, and an outer frame of a document in the third image on the fourth interface is highlighted.

### Claim 2

(canceled)

### Claim 3 (depends on 1)

The method according to claim 1, after the displaying a fourth interface, further comprising:
displaying a fifth interface in response to that a ninth button on the fourth interface is triggered, wherein the fifth interface displays the third image in the preview stream, and the fifth interface comprises at least one image processing button.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
displaying the third button on the first interface when the object category of the first image is a text object;
displaying the third interface in response to that the third button on the first interface is triggered, wherein the third interface comprises the fourth window and the fifth window, the third interface displays the third button, the fourth window displays the second image in the preview stream, the second image comprises the highlighted target text, the fifth window displays the fifth button when the target text in the fourth window does not comprise an entity, the fifth window displays the fifth button and at least one sixth button when the target text in the fourth window comprises an entity, and the sixth button is in a one-to-one correspondence with the entity in the target text in the fourth window; and
displaying the first interface in response to that the third button on the third interface is triggered.

### Claim 5

(canceled)

### Claim 6 (depends on 4)

The method according to claim 4, before the displaying the third button on the first interface when the object category of the first image is a text object, further comprising: starting a super-macro mode and displaying a first icon on the first interface when determining that a distance between a camera of the terminal device and a physical object is less than a first threshold; and
the displaying the third button on the first interface when the object category of the first image is a text object comprises: displaying the third button and skipping displaying the first icon on the first interface when the object category of the first image is the text object.

### Claim 7 (depends on 4)

The method according to claim 4, before the displaying the third button on the first interface when the object category of the first image is a text object, further comprising: starting a super-macro mode when determining that a distance between a camera of the terminal device and a physical object is less than a first threshold; and
the displaying the third button on the first interface when the object category of the first image is a text object comprises:
displaying the third button on the first interface at a first moment when the object category of the first image is the text object;
displaying a first icon and skipping displaying the third button on the first interface at a second moment, wherein the second moment is later than the first moment; and
displaying the third button and skipping displaying the first icon on the first interface at a third moment, wherein the third moment is later than the second moment.

### Claim at position 8

-12. (canceled)

### Claim 13 (depends on 1)

The method according to claim 1, further comprising:
displaying, in the fourth window in response to that a non-entity in the fourth window is triggered, a second service menu corresponding to the non-entity; wherein the second service menu comprises at least one second option.

### Claim at position 10

-15. (canceled)

### Claim 16 (depends on 1)

The method according to claim 1, wherein the second image in the preview stream comprises a first region and a second region, the first region is a region formed by text blocks of the target text, and the second region is a peripheral region of the first region; and
the second image displayed on the third interface comprises the first region and does not comprise the second region; the text block of the target text in the first region of the second image displayed on the third interface is highlighted; and a background color of the text block of the target text in the second image in the preview stream is different from a background color of the text block of the target text in the second image displayed on the third interface.

### Claim 17 (depends on 1)

The method according to claim 1, wherein the second image in the preview stream comprises a first region and a second region, the first region is a region formed by text blocks of the target text, and the second region is a peripheral region of the first region; and
the second image displayed on the third interface comprises the first region and does not comprise the second region; the text block of the target text in the first region of the second image displayed on the third interface is highlighted; a background color of the text block of the target text in the second image in the preview stream is different from a background color of the text block of the target text in the second image displayed on the third interface; and a direction of the text block of the target text in the second image displayed on the third interface adapts to a direction of a screen of the terminal device.

### Claim 18 (depends on 1)

The method according to claim 1, wherein the second image in the preview stream comprises at least one third region and a fourth region, and the third region is a region formed by text blocks of the target text; a distance between two third regions in at least one pair of adjacent third regions is greater than a preset distance; and the fourth region is a peripheral region of a region formed by the at least one third region; and
the second image displayed on the third interface comprises the at least one third region and does not comprise the fourth region, and the text block of the target text in the second image displayed on the third interface is highlighted; each distance between adjacent third regions in the second image displayed on the third interface is less than the preset distance; and a background color of the text block of the target text in the second image in the preview stream is different from a background color of the text block of the target text in the second image displayed on the third interface.

### Claim 19 (depends on 1)

The method according to claim 1, wherein the second image in the preview stream comprises a fifth region and a sixth region, the fifth region is a region formed by text blocks of the target text and comprises a background image, and the sixth region is a peripheral region of the fifth region; and
the second image displayed on the third interface comprises the fifth region and does not comprise the sixth region, and the text block of the target text in the second image displayed on the third interface is highlighted.

### Claim 20 (depends on 1)

The method according to claim 1, wherein the second image in the preview stream comprises a first region and a second region, the first region is a region formed by text blocks of the target text, and the second region is a peripheral region of the first region; and directions of the text blocks of the target text in the second image in the preview stream comprise at least two different directions; and
the second image displayed on the third interface comprises the first region and does not comprise the second region; the text block of the target text in the second image displayed on the third interface is highlighted; a background color of the text block of the target text in the second image in the preview stream is different from a background color of the text block of the target text in the second image displayed on the third interface; and directions of the text blocks of the target text in the second image displayed on the third interface comprise at least two different directions, or directions of the text blocks of the target text in the second image displayed on the third interface are the same.

### Claim 21 (depends on 1)

The method according to claim 1, wherein the second image in the preview stream comprises at least one third region and a fourth region, and the third region is a region formed by text blocks of the target text; a distance between two third regions in at least one pair of adjacent third regions is greater than a preset distance; the fourth region is a peripheral region of a region formed by the at least one third region; and directions of the text blocks of the target text in the second image in the preview stream comprise at least two different directions; and
the second image displayed on the third interface comprises the at least one third region and does not comprise the fourth region, and the text block of the target text in the second image displayed on the third interface is highlighted; each distance between adjacent third regions in the second image displayed on the third interface is less than the preset distance; a background color of the text block of the target text in the second image in the preview stream is different from a background color of the text block of the target text in the second image displayed on the third interface; and directions of the text blocks of the target text in the second image displayed on the third interface are the same.

### Claim 22 (depends on 1)

The method according to claim 1, wherein the second image in the preview stream comprises a fifth region and a sixth region, the fifth region is a region formed by text blocks of the target text and comprises a background image, and the sixth region is a peripheral region of the fifth region; and directions of the text blocks of the target text in the second image in the preview stream comprise at least two different directions; and
the second image displayed on the third interface comprises the fifth region and does not comprise the sixth region, and the text block of the target text in the second image displayed on the third interface is highlighted; and a background color of the text block of the target text in the second image in the preview stream is different from a background color of the text block of the target text in the second image displayed on the third interface.

### Claim 23 (depends on 1)

The method according to claim 1, wherein in response to that a first location in the fourth window is triggered, an image in the fourth window is zoomed in with the first location as a center point at a first ratio at a fourth moment, and the first location is any location in the second image in the fourth window;
in response to that a second location in the fourth window is triggered, an image in the fourth window is zoomed in with the second location as a center point at a second ratio at a fifth moment, and the second location is any location in the second image in the fourth window; wherein the fifth moment is later than the fourth moment; and
in response to that a third location in the fourth window is triggered, an image in the fourth window is zoomed out to a size that is before the fourth moment at a sixth moment, and the third location is any location in the second image in the fourth window; wherein the sixth moment is later than the fifth moment.

### Claim 24 (depends on 1)

The method according to claim 1, wherein in response to that a fourth location in the fourth window is triggered, an image in the fourth window is zoomed in with the fourth location as a center point at a third ratio at a seventh moment, and the fourth location is any location in the second image in the fourth window; and
in response to that a fifth location in the fourth window is triggered, a size of the image in the fourth window is recovered at an eighth moment, and the fifth location is any location in the second image in the fourth window; wherein the eighth moment is later than the seventh moment.

### Claim 25 (depends on 1)

The method according to claim 1, wherein in response to that a first text block in the fourth window is triggered, an image in the fourth window is zoomed in at a ninth moment; wherein the longest text block in the zoomed-in image after the ninth moment reaches the edge of the screen of the terminal device; and
in response to that a sixth location in the fourth window is triggered, the image in the fourth window is recovered to an original image size of the image at a tenth moment, and the sixth location is any location in the second image in the fourth window; wherein the tenth moment is later than the ninth moment.

### Claim 26 (depends on 1)

The method according to claim 1, wherein in response to that a second text block in the fourth window is triggered, an image in the fourth window is zoomed in at an eleventh moment; wherein the second text block in the zoomed-in image after the eleventh moment reaches the edge of the screen of the terminal device;
in response to that a third text block in the fourth window is triggered, an image in the fourth window is zoomed in at a twelfth moment; wherein a length of the third text block is less than a length of the second text block, the third text block in the zoomed-in image after the twelfth moment reaches the edge of the screen of the terminal device, and the twelfth moment is later than the eleventh moment;
in response to that the third text block in the fourth window is triggered, the image in the fourth window is recovered to an image size that is before the twelfth moment at a thirteenth moment; wherein the second text block in the zoomed-out image after the thirteenth moment reaches the edge of the screen of the terminal device, and the thirteenth moment is later than the twelfth moment; and
in response to that a seventh location in the fourth window is triggered, the image in the fourth window is recovered to an original image size of the image at a fourteenth moment, wherein the seventh location has no target text, and the fourteenth moment is later than the eleventh moment.

### Claim 27 (depends on 1)

The method according to claim 1, after the displaying a fourth interface, further comprising: displaying, by the terminal device, the second interface in response to that the seventh button on the fourth interface is triggered; and
after the displaying a fourth interface, further comprising: obtaining, by the terminal device, a frame image in the preview stream again in response to that the eighth button on the fourth interface is triggered.

### Claim 28

A terminal device, comprising: a processor and a memory, wherein
the memory stores computer-executable instructions; and
the processor executes the computer-executable instructions stored in the memory, to cause the terminal device to be configured to:
display a first interface, wherein the first interface comprises a first window, the first window displays a preview stream collected by the terminal device, and the first interface comprises a first button;
display a second button on the first interface when an object category of a first image in the preview stream is a document object;
display a second interface in response to that the second button on the first interface is triggered, wherein the second interface comprises a second window and a third window, the second window displays the preview stream collected by the terminal device, an outer frame of a document in a current frame image in the preview stream is highlighted, the second interface displays a third button when the current frame image of the preview stream comprises a target text, the second interface does not display the third button when the current frame image of the preview stream does not comprise the target text, and the third window displays the first button;
display a third interface in response to that the third button on the second interface is triggered, wherein the third interface comprises a fourth window and a fifth window, the third interface displays the third button, the fourth window displays a second image in the preview stream, the second image comprises the highlighted target text, the fifth window displays a fifth button when the target text in the fourth window does not comprise an entity, the fifth window displays the fifth button and at least one sixth button when the target text in the fourth window comprises an entity, and the sixth button is in a one-to-one correspondence with the entity in the target text in the fourth window; and
display a fourth interface in response to that the first button on the second interface is triggered, wherein the fourth interface displays a third image in the preview stream, and an outer frame of a document in the third image on the fourth interface is highlighted.

### Claim 29

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors of an electronic device, cause the electronic device to be configured to,
display a first interface, wherein the first interface comprises a first window, the first window displays a preview stream collected by the terminal device, and the first interface comprises a first button;
display a second button on the first interface when an object category of a first image in the preview stream is a document object;
display a second interface in response to that the second button on the first interface is triggered, wherein the second interface comprises a second window and a third window, the second window displays the preview stream collected by the terminal device, an outer frame of a document in a current frame image in the preview stream is highlighted, the second interface displays a third button when the current frame image of the preview stream comprises a target text, the second interface does not display the third button when the current frame image of the preview stream does not comprise the target text, and the third window displays the first button;
display a third interface in response to that the third button on the second interface is triggered, wherein the third interface comprises a fourth window and a fifth window, the third interface displays the third button, the fourth window displays a second image in the preview stream, the second image comprises the highlighted target text, the fifth window displays a fifth button when the target text in the fourth window does not comprise an entity, the fifth window displays the fifth button and at least one sixth button when the target text in the fourth window comprises an entity, and the sixth button is in a one-to-one correspondence with the entity in the target text in the fourth window; and
display a fourth interface in response to that the first button on the second interface is triggered, wherein the fourth interface displays a third image in the preview stream, and an outer frame of a document in the third image on the fourth interface is highlighted.

### Claim 30

(canceled)
