# US 2022/0019834 A1 · Automatically predicting text in images

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

- Number: US 2022/0019834 A1
- Document ID: US20220019834A1
- Status: Published application
- Kind: A1
- Application number: 17/309,255
- Filed: 2019-11-14
- Published: 2022-01-20
- Earliest claimed: 2018-11-15
- Assignees: Element Ai Inc.
- Applicants: Element Ai Inc.
- Inventors: Perouz TASKALIAN; Negin SOKHANDAN ASL
- Web page: https://patentgrep.com/patent/US20220019834A1

## CPC

- G06V 10/82: using neural networks
- G06F 16/538: Presentation of query results
- G06F 16/5846: {using extracted text}
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06V 20/62: Text, e.g. of license plates, overlay texts or captions on TV images
- G06V 30/1444: {Selective acquisition, locating or processing of specific regions, e.g. highlighted text, fiducial marks or predetermined fields}
- G06V 30/153: {using recognition of characters or words}
- G06V 30/19173: {Classification techniques}
- G06V 30/262: using context analysis, e.g. lexical, syntactic or semantic context
- G06V 30/10: Character recognition
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems and methods for detecting and predicting text within images. An image is passed to a feature-extraction module. Each image typically contains at least one text object, and each text object contains at least one character. Based on the image, the feature-extraction module generates at least one feature map indicating text object(s) in the image. The feature map(s) is then passed to a decoder module. In son implementations, the decoder module applies a weighted mask to the feature map(s). Based on the feature map(s), the decoder module predicts a sequence of characters in the text object(s). In some embodiments, that prediction is based on previous known data. The decoder module is directed by a query that indicates at least one desired characteristic of the text object(s). An output module then refines the predicted content. At least one neural network may be used.

## Claims

### Claim 1

A method for detecting at least one text object within an image and for predicting content of said at least one text object, the method comprising the steps of:
(a) receiving said image;
(b) passing said image through a feature-extraction module to thereby produce at least one feature map corresponding to said image, wherein contents of said at least one feature map indicate features detected in said image, and wherein at least one of said features is said at least one text object;
(c) passing said at least one feature map through a decoder module to thereby predict said content, wherein said content comprises at least one character; and
(d) based on previous results from said decoder module, refining said predicted content;
wherein said decoder module receives a query from said user;
and wherein said query identifies at least one desired characteristic of said at least one desired text object;
and wherein said query directs said decoder module to predict characters comprising said at least one desired text object.

### Claim 2 (depends on 1)

The method of claim 1, wherein said at least one desired characteristic includes at least one of: a desired location of said at least one text object; a desired type of said content; a desired context of said content; a number corresponding to said at least one text object; and a characteristic corresponding to a user input.

### Claim 3 (depends on 1)

The method of claim 1, wherein predicting said content in step (c) is further based on external known data.

### Claim 4 (depends on 1)

The method of claim 1, wherein said decoder module comprises:
a masking module for producing at least one weighted feature map, wherein each said at least one weighted feature map is based on a corresponding feature map, and wherein, for each region in said corresponding feature map, a corresponding region in said at least one weighted feature map indicates a probability that said region corresponds to a text object in said image; and
a character-recognition module for predicting said content, wherein said character-recognition module uses said at least one weighted feature map to determine regions containing said content;
wherein said character-recognition module is directed by said query; and
wherein an output value from said character-recognition module is fed back to said masking module and to said character-recognition module.

### Claim 5 (depends on 1)

The method of claim 1, wherein said decoder module further receives pixel coordinates of said image, and said pixel coordinates are used in predicting said content.

### Claim 6 (depends on 1)

The method of claim 1, wherein said feature-extraction module comprises a neural network.

### Claim 7 (depends on 1)

The method of claim 1, wherein said decoder module comprises at least one neural network.

### Claim 8

A system for detecting at least one text object within an image and for predicting content of said at least one text object, the system comprising:
a feature-extraction module for receiving said image and for producing at least one feature map corresponding to said image, wherein contents of said at least one feature map indicate features detected in said image, and wherein at least one of said features is said at least one text object;
a decoder module for processing said at least one feature map, to thereby predict said content, wherein said content comprises at least one character; and
an output module for refining said content predicted by said decoder module;
wherein said decoder module receives a query from said user;
and wherein said query identifies at least one desired characteristic of at least one desired text object;
and wherein said query directs said decoder module to predict characters comprising said at least one desired text object.

### Claim 9 (depends on 8)

The system of claim 8, wherein said at least one desired characteristic includes at least one of: a desired location of said at least one text object; a desired type of said content; a desired context of said content; a number corresponding to said at least one text object; and a characteristic corresponding to a user input.

### Claim 10 (depends on 8)

The system of claim 8, wherein said decoder module uses external known data when predicting said content.

### Claim 11 (depends on 8)

The system of claim 8, wherein said decoder module comprises:
a masking module for producing at least one weighted feature map, wherein each said at least one weighted feature map is based on a corresponding feature map, and wherein, for each region in said corresponding feature map, a corresponding region in said at least one weighted feature map indicates a probability that said region corresponds to a text object in said image; and
a character-recognition module for predicting said content, wherein said character-recognition module uses said at least one weighted feature map to determine regions containing said content;
wherein said character-recognition module is directed by said query; and
wherein an output value from said character-recognition module is fed back to said masking module and to said character-recognition module.

### Claim 12 (depends on 8)

The system of claim 8, wherein said decoder module further receives pixel coordinates of said image, and said pixel coordinates are used in predicting said content.

### Claim 13 (depends on 8)

The system of claim 8, wherein said feature-extraction module comprises a neural network.

### Claim 14 (depends on 8)

The system of claim 8, wherein said decoder module comprises at least one neural network.

### Claim 15

Non-transitory computer-readable media having encoded thereon computer-readable and computer-executable instructions that, when executed, implement a method for detecting at least one text object within an image and for predicting content of said at least one text object, the method comprising the steps of:
(a) receiving said image;
(b) passing said image through a feature-extraction module to thereby produce at least one feature map corresponding to said image, wherein contents of said at least one feature map indicate features detected in said image, and wherein at least one of said features is said at least one text object;
(c) passing said at least one feature map through a decoder module to thereby predict said content, wherein said content comprises at least one character; and
(d) based on previous results from said decoder module, refining said predicted content,
wherein said decoder module receives a query from said user,
and wherein said query identifies at least one desired characteristic of said at least one desired text object,
and wherein said query directs said decoder module to predict characters comprising said at least one desired text object.

### Claim 16 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein said at least one desired characteristic includes at least one of: a desired location of said at least one text object; a desired type of said content; a desired context of said content; a number corresponding to said at least one text object; and a characteristic corresponding to a user input.

### Claim 17 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein predicting said content in step (c) is further based on external known data.

### Claim 18 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein said decoder module comprises:
a masking module for producing at least one weighted feature map, wherein each said at least one weighted feature map is based on a corresponding feature map, and wherein, for each region in said corresponding feature map, a corresponding region in said at least one weighted feature map indicates a probability that said region corresponds to a text object in said image; and
a character-recognition module for predicting said content, wherein said character-recognition module uses said at least one weighted feature map to determine regions containing said content,
wherein said character-recognition module is directed by said query, and
wherein an output value from said character-recognition module is fed back to said masking module and to said character-recognition module.

### Claim 19 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein said decoder module further receives pixel coordinates of said image, and said pixel coordinates are used in predicting said content.

### Claim 20 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein said feature-extraction module comprises a neural network.

### Claim 21 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein said decoder module comprises at least one neural network.
