# US 10,957,032 B2 · Flexible visual inspection model composition and model instance scheduling

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

- Number: US 10,957,032 B2
- Document ID: US10957032B2
- Status: Granted
- Kind: B2
- Application number: 16/185,348
- Filed: 2018-11-09
- Published: 2020-05-14
- Granted: 2021-03-23
- Earliest claimed: 2018-11-09
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Guo Qiang Hu; Jun Zhu; Peng Ji; Bo Wen Wei; Zhe Yan; Lei He
- Web page: https://patentgrep.com/patent/US10957032B2

## CPC

- G06T 7/0008: {checking presence/absence}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06T 7/0004: {Industrial image inspection}
- G06F 2009/45591: {Monitoring or debugging support}
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Scheduling automated visual inspection tasks includes capturing an image of a component to be inspected. A visual inspection model is formed with a model engine as a composite model of utility modules and functional modules to perform visual inspection of the image of the component. An abstract processing workflow of the visual inspection model is derived with a scheduler including dependencies between the utility modules and the functional modules. Performance of each of the functional modules is profiled with the scheduler by testing performance with available hardware resources to produce a performance profile. Parallel instances of each of the functional modules in a branch of the abstract processing workflow are scheduled with the scheduler according to the dependencies and the performance profiles. An indication of defects in the component is produced by processing the visual inspection model according to the scheduled functional modules.

## Claims

### Claim 1

A method for scheduling automated visual inspection tasks, the method comprising:
forming a visual inspection model with a model engine as a composite model of at least one functional module to perform visual inspection of an image of a component to be inspected;
deriving a processing workflow of the visual inspection model with a scheduler;
profiling performance of each of the at least one functional module with the scheduler by testing performance with available hardware resources to produce a performance profile for each of the at least one functional module;
scheduling parallel instances of each of the at least one functional module in a branch of the processing workflow with the scheduler according to the performance profiles by comparing processing time of each of the at least one functional modules according to the corresponding performance profiles to determine a number of instances of each of the at least one functional module; and
producing an indication of defects in the component by processing the visual inspection model according to the scheduled at least one functional module.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the at least one functional module includes:
extracting a sub-image from the image with an extraction module, the sub-image including a region of interest for visual inspection; and
identifying defects in the sub-image with a classifier module.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein scheduling further includes scheduling the model engine to run on a virtual machine.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein scheduling further includes scheduling the visual inspection model according to a status in the group consisting of hardware status, workload status and model instance status.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein scheduling further includes scheduling each of the at least one functional module of an instance of the visual inspection model with different numbers of instances according to corresponding performance profiles.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein scheduling further includes scheduling an instance of the visual inspection model for each of a plurality of regions of interest on the component.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein scheduling further includes scheduling a first portion of the at least one functional modules to central processing unit (CPU) resources and schedule a second portion of the at least one functional modules to graphical processing unit (GPU) resources.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein scheduling further includes scheduling the at least one functional module to reduce processing time without exceeding hardware resources according to a current utilization.

### Claim 9

A method for scheduling automated visual inspection tasks, the method comprising:
capturing an image of a component to be inspected using an imaging device;
forming a visual inspection model with a model engine as a composite model of at least one utility module and at least one functional module to perform visual inspection of the image of the component;
deriving a processing workflow of the visual inspection model with a scheduler including dependencies between the at least one utility module and the at least one functional module;
profiling performance of each of the at least one functional module with the scheduler by testing performance with available hardware resources to produce a performance profile for each of the at least one functional module;
scheduling parallel instances of each of the at least one functional modules in a branch of the processing workflow with the scheduler according to the dependencies and the performance profiles by comparing processing time of each of the at least one functional modules according to the corresponding performance profiles to reduce processing time without exceeding hardware resources according to a current utilization; and
displaying a defect map of the component by processing the visual inspection model according to the scheduled at least one functional module.

### Claim 10 (depends on 9)

The method as recited in claim 9, wherein the at least one functional module includes:
an extraction module for extracting a sub-image from the image, the sub-image including a region of interest for visual inspection; and
a classifier module for identifying defects in the sub-image.

### Claim 11 (depends on 9)

The method as recited in claim 9, wherein scheduling further includes scheduling the model engine to run on a virtual machine.

### Claim 12 (depends on 9)

The method as recited in claim 9, wherein scheduling further includes scheduling the visual inspection model according to a status in the group consisting of hardware status, workload status and model instance status.

### Claim 13 (depends on 9)

The method as recited in claim 9, wherein scheduling further includes scheduling each of the at least one functional module of an instance of the visual inspection model with different numbers of instances according to corresponding performance profiles.

### Claim 14 (depends on 9)

The method as recited in claim 9, wherein scheduling further includes scheduling an instance of the visual inspection model for each of a plurality of regions of interest on the component.

### Claim 15 (depends on 9)

The method as recited in claim 9, wherein scheduling further includes scheduling a first portion of the at least one functional modules to central processing unit (CPU) resources and schedule a second portion of the at least one functional modules to graphical processing unit (GPU) resources.

### Claim 16

A manufacturing automated visual inspection station, the station comprising:
a model engine that forms a visual inspection model as a composite model of at least one functional module to perform visual inspection of an image of a component to be inspected;
a scheduler including at least one processor that schedules parallel instances of each of the at least one functional module in a branch of a processing workflow according to performance profiles, including a comparison of processing time of each of the at least one functional modules according to corresponding performance profiles to determine a number of instances of each of the at least one functional module, the scheduler including:
an inspection model module that derives the abstract processing workflow of the visual inspection model, and that profiles performance of each of the at least one functional module by testing performance with available hardware resources to produce the performance profile for each of the at least one functional module; and
an alert device that produces an indication of defects in the component by processing the visual inspection model according to the scheduled at least one functional module.

### Claim 17 (depends on 16)

The system as recited in claim 16, further including central processing unit (CPU) resources for scheduling a first portion of the at least one functional modules and graphical processing unit (GPU) resources for scheduling a second portion of the at least one functional modules.

### Claim 18 (depends on 16)

The system as recited in claim 16, wherein the scheduler schedules each of the at least one functional module of an instance of the visual inspection model with different numbers of instances according to corresponding performance profiles.
