# US 2024/0202911 A1 · Storage medium storing computer program, generation apparatus, and generation method

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

- Number: US 2024/0202911 A1
- Document ID: US20240202911A1
- Status: Published application
- Kind: A1
- Application number: 18/426,907
- Filed: 2024-01-30
- Published: 2024-06-20
- Earliest claimed: 2021-08-06
- Assignees: Brother Kogyo Kabushiki Kaisha
- Applicants: Brother Kogyo Kabushiki Kaisha
- Inventors: Masafumi Miyazawa
- Web page: https://patentgrep.com/patent/US20240202911A1

## CPC

- G06T 7/001: {using an image reference approach}
- G06T 7/00: Image analysis
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 30/1448: {based on markings or identifiers characterising the document or the area}
- G06V 30/19173: {Classification techniques}
- G06T 2207/30144: Printing quality
- G06T 2207/30204: Marker
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Based on first captured image data indicating a first captured image of a first inspection target, K object regions corresponding to K (K is an integer larger than or equal to one) objects are detected by using a trained object detection model. The first inspection target includes the K objects and has no abnormality in visual. First correspondence data indicating K correspondences corresponding to respective ones of the K object regions is generated. Each of the K correspondences indicates a correspondence between object region information and condition information. The object region information is information specifying an object region in the first captured image. The condition information indicates an inspection condition associated with a type of the object region, among L (L is an integer larger than or equal to one and smaller than or equal to K) inspection conditions. The first correspondence data is stored in a memory.

## Claims

### Claim 1

A non-transitory computer-readable storage medium storing a set of program instructions for a computer that generates data for inspecting visual of an inspection target, the set of program instructions, when executed by a controller of the computer, causing the computer to perform:
based on first captured image data indicating a first captured image of a first inspection target, detecting K object regions corresponding to K (K is an integer larger than or equal to one) objects by using a trained object detection model, the first inspection target including the K objects and having no abnormality in visual;
generating first correspondence data indicating K correspondences corresponding to respective ones of the K object regions, each of the K correspondences indicating a correspondence between object region information and condition information, the object region information being information specifying an object region in the first captured image of the first inspection target, the condition information indicating an inspection condition associated with a type of the object region, the inspection condition being among L (L is an integer larger than or equal to one and smaller than or equal to K) inspection conditions; and
storing the first correspondence data in a memory.

### Claim 2 (depends on 1)

The non-transitory computer-readable storage medium according to claim 1, wherein the generating the first correspondence data includes determining the type of the object region by analyzing an image of the object region based on a predetermined rule.

### Claim 3 (depends on 1)

The non-transitory computer-readable storage medium according to claim 1, wherein the generating the first correspondence data includes determining the type of the object region by using the trained object detection model or a classification model trained to classify types of the object regions.

### Claim 4 (depends on 1)

The non-transitory computer-readable storage medium according to claim 1, wherein the integer L is larger than or equal to two;
wherein each of the L inspection conditions is a condition for determining that a difference indicates that visual of an object represented by a target object image is normal, the difference being a difference between the target object image and a reference object image, the target object image being an image of a region indicated by the object region information in a captured image for inspection, the reference object image being an image of an object that is preliminary associated with the object region information and that has no abnormality; and
wherein the L inspection conditions includes a plurality of inspection conditions indicating different criteria for determining that the difference indicates that the visual is normal.

### Claim 5 (depends on 4)

The non-transitory computer-readable storage medium according to claim 4, wherein the type of the object region is one of L types including a first type, the first type including a mark provided based on a standard or a law; and
wherein a criterion indicated by the inspection condition associated with the first type is a criterion that is most difficult to satisfy among L criteria indicated by the L inspection conditions associated with the L types.

### Claim 6 (depends on 4)

The non-transitory computer-readable storage medium according to claim 4, wherein the type of the object region is one of L types including a second type including a photograph; and
wherein a criterion indicated by the inspection condition associated with the second type is a criterion that is easiest to satisfy among L criteria indicated by the L inspection conditions associated with the L types.

### Claim 7 (depends on 4)

The non-transitory computer-readable storage medium according to claim 4, wherein the type of the object region is one of L types including a third type and a fourth type, the third type including a character, the fourth type including at least illustration or photograph; and
wherein a criterion indicated by the inspection condition associated with the third type is more difficult to satisfy than a criterion indicated by the inspection condition associated with the fourth type.

### Claim 8 (depends on 1)

The non-transitory computer-readable storage medium according to claim 1, wherein the set of program instructions, when executed by the controller, causing the computer to perform:
searching the K object regions for a first object region indicating a predetermined first object;
in response to finding the first object region, searching the K object regions for a second object region indicating a predetermined second object; and
in response to finding the second object region, setting the condition information associated with the object region information specifying the second object region to particular condition information, the particular condition information being associated with a predetermined particular inspection condition.

### Claim 9 (depends on 1)

The non-transitory computer-readable storage medium according to claim 1, wherein the set of program instructions, when executed by the controller, causing the computer to perform:
based on second captured image data indicating a second captured image of a second inspection target, detecting T object regions corresponding to T (T is an integer larger than or equal to one) objects by using the trained object detection model, the second inspection target including the T objects and having no abnormality in visual;
generating second correspondence data indicating T correspondences corresponding to respective ones of the T object regions, each of the T correspondences indicating a correspondence between object region information and condition information, the object region information being information specifying an object region in the second captured image of the second inspection target, the condition information indicating an inspection condition associated with a type of the object region, the inspection condition being among U (U is an integer larger than or equal to one and smaller than or equal to T) inspection conditions; and
storing the second correspondence data in the memory.

### Claim 10 (depends on 1)

The non-transitory computer-readable storage medium according to claim 1, wherein the generating the first correspondence data includes determining the type of the object region by:
determining whether a peak value of each color component of the object region is smaller than a threshold;
in response to determining that the peak value is larger than or equal to the threshold, performing a character recognition process;
in response to recognizing a character by the character recognition process, determining that the object region is a character type;
in response to recognizing no character by the character recognition process, determining that the object region is a first image type; and
in response to determining that the peak value is smaller than the threshold, determining that the object region is a second image type.

### Claim 11

A generation apparatus comprising:
a controller; and
a memory storing instructions, the instructions, when executed by the controller, causing the generation apparatus to perform:
based on first captured image data indicating a first captured image of a first inspection target, detecting K object regions corresponding to K (K is an integer larger than or equal to one) objects by using a trained object detection model, the first inspection target including the K objects and having no abnormality in visual;
generating first correspondence data indicating K correspondences corresponding to respective ones of the K object regions, each of the K correspondences indicating a correspondence between object region information and condition information, the object region information being information specifying an object region in the first captured image of the first inspection target, the condition information indicating an inspection condition associated with a type of the object region, the inspection condition being among L (L is an integer larger than or equal to one and smaller than or equal to K) inspection conditions; and
storing the first correspondence data in the memory.

### Claim 12 (depends on 11)

The generation apparatus according to claim 11, wherein the controller is configured to determine the type of the object region by analyzing an image of the object region based on a predetermined rule.

### Claim 13 (depends on 11)

The generation apparatus according to claim 11, wherein the controller is configured to determine the type of the object region by using the trained object detection model or a classification model trained to classify types of the object regions.

### Claim 14 (depends on 11)

The generation apparatus according to claim 11, wherein the integer L is larger than or equal to two;
wherein each of the L inspection conditions is a condition for determining that a difference indicates that visual of an object represented by a target object image is normal, the difference being a difference between the target object image and a reference object image, the target object image being an image of a region indicated by the object region information in a captured image for inspection, the reference object image being an image of an object that is preliminary associated with the object region information and that has no abnormality; and
wherein the L inspection conditions includes a plurality of inspection conditions indicating different criteria for determining that the difference indicates that the visual is normal.

### Claim 15 (depends on 14)

The generation apparatus according to claim 14, wherein the type of the object region is one of L types including a first type, the first type including a mark provided based on a standard or a law; and
wherein a criterion indicated by the inspection condition associated with the first type is a criterion that is most difficult to satisfy among L criteria indicated by the L inspection conditions associated with the L types.

### Claim 16 (depends on 14)

The generation apparatus according to claim 14, wherein the type of the object region is one of L types including a second type including a photograph; and
wherein a criterion indicated by the inspection condition associated with the second type is a criterion that is easiest to satisfy among L criteria indicated by the L inspection conditions associated with the L types.

### Claim 17 (depends on 14)

The generation apparatus according to claim 14, wherein the type of the object region is one of L types including a third type and a fourth type, the third type including a character, the fourth type including at least illustration or photograph; and
wherein a criterion indicated by the inspection condition associated with the third type is more difficult to satisfy than a criterion indicated by the inspection condition associated with the fourth type.

### Claim 18 (depends on 11)

The generation apparatus according to claim 11, wherein the controller is configured to perform:
searching the K object regions for a first object region indicating a predetermined first object;
in response to finding the first object region, searching the K object regions for a second object region indicating a predetermined second object; and
in response to finding the second object region, setting the condition information associated with the object region information specifying the second object region to particular condition information, the particular condition information being associated with a predetermined particular inspection condition.

### Claim 19 (depends on 11)

The generation apparatus according to claim 11, wherein the controller is configured to perform:
based on second captured image data indicating a second captured image of a second inspection target, detecting T object regions corresponding to T (T is an integer larger than or equal to one) objects by using the trained object detection model, the second inspection target including the T objects and having no abnormality in visual;
generating second correspondence data indicating T correspondences corresponding to respective ones of the T object regions, each of the T correspondences indicating a correspondence between object region information and condition information, the object region information being information specifying an object region in the second captured image of the second inspection target, the condition information indicating an inspection condition associated with a type of the object region, the inspection condition being among U (U is an integer larger than or equal to one and smaller than or equal to T) inspection conditions; and
storing the second correspondence data in the memory.

### Claim 20

A generation method of generating data for inspecting visual of an inspection target, the generation method comprising:
based on first captured image data indicating a first captured image of a first inspection target, detecting K object regions corresponding to K (K is an integer larger than or equal to one) objects by using a trained object detection model, the first inspection target including the K objects and having no abnormality in visual;
generating first correspondence data indicating K correspondences corresponding to respective ones of the K object regions, each of the K correspondences indicating a correspondence between object region information and condition information, the object region information being information specifying an object region in the first captured image of the first inspection target, the condition information indicating an inspection condition associated with a type of the object region, the inspection condition being among L (L is an integer larger than or equal to one and smaller than or equal to K) inspection conditions; and
storing the first correspondence data in a memory.
