# US 2025/0148588 A1 · Detecting contiguous defect regions of a physical object from captured images of the object

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

- Number: US 2025/0148588 A1
- Document ID: US20250148588A1
- Status: Published application
- Kind: A1
- Application number: 18/502,989
- Filed: 2023-11-06
- Published: 2025-05-08
- Earliest claimed: 2023-11-06
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Rujuta Rohan Tondulkar; Sujoy Kumar Roy Chowdhury; Kartikeya Vats; Ashish Rao
- Web page: https://patentgrep.com/patent/US20250148588A1

## CPC

- G06T 7/0008: {checking presence/absence}
- G06T 7/0004: {Industrial image inspection}
- G06T 7/11: Region-based segmentation
- G06T 7/13: Edge detection
- G06T 7/174: involving the use of two or more images
- G06T 15/00: Three-dimensional [3D] image rendering
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/46: Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features (colour feature extraction G06V10/56)
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30164: Workpiece; Machine component
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Provided are a computer program product, system, and method for detecting contiguous defect regions of a physical object from captured images of the physical object. Images are received of a physical object from different perspectives capturing different views of the physical object. Defect regions in the images are detected containing defects on surfaces of the physical object. A determination is made of categories of the defect regions. A determination is made as to whether defect regions of a category have a common boundary to form at least one contiguous defect region for the category. A determination is made of total spatial metric of any contiguous defect regions and non-contiguous defect regions for each of the categories. Information on the total spatial metric for the categories is provided to a quality assurance module to determine a quality of the physical object.

## Claims

### Claim 1

A computer program product for detecting defects on a three-dimensional physical object, the computer program product comprises a computer readable storage medium having program instructions embodied therewith that when executed cause operations, the operations comprising:
receiving images of a physical object from different perspectives capturing different views of the physical object;
detecting defect regions in the images containing defects on surfaces of the physical object;
determining categories of the defect regions;
determining whether defect regions of a category have a common boundary to form at least one contiguous defect region for the category;
determining total spatial metric of any contiguous defect regions and non-contiguous defect regions for each of the categories; and
providing information on the total spatial metric for the categories to a quality assurance module to determine a quality of the physical object.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
determining a total number of contiguous and non-contiguous defect regions for each of the categories, wherein the providing the information comprises further providing the total number of defect regions for the categories.

### Claim 3 (depends on 2)

The computer program product of claim 2, wherein the determining the total number of contiguous and non-contiguous regions for a category comprises subtracting detected defect regions in contiguous defect regions from a total number of detected defect regions of the category and adding back a number of the contiguous defect regions for the category.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein the determining the total spatial metric of contiguous defect regions and non-contiguous defect regions for a category comprises:
for each contiguous defect region, comprised of multiple detected defect regions, determine spatial metrics of intersections of common points in each pair of defect regions that form the contiguous defect regions; and
subtract the spatial metrics of the intersections of the common points from a total of the spatial metrics of all the detected defect regions of the category.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the detected defect regions comprise two-dimensional defect regions, wherein the operations further comprise:
mapping the two-dimensional defect regions in the images to three-dimensional defect regions in a three-dimensional image formed from the images, wherein the determining whether defect regions having a same classification have the common boundary comprises determining whether the three-dimensional defect regions of the two-dimensional defect regions having the same classification have the common boundary.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the determining whether defect regions having a same classification have the common boundary comprises performing for each pair of defect regions having the same classification:
determining whether the defect regions of the pair have the common boundary and form a contiguous defect, and
determining an overlapping region of the defect regions that are contiguous; and
determine other defect regions of the category having common points in the overlapping regions of the contiguous defect as a sum of spatial measurements of the pair of detected defects forming the contiguous defect minus a spatial measurement of an intersection of the spatial measurement of the pair of detected defects, wherein the spatial measurement is provided to determine the quality of the physical object.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the determining whether the defect regions have a common boundary comprises:
determining whether a minimum number of pairs of points in the defect regions are within a tolerance distance, wherein the defect regions are determined to have the common boundary in response to determining that the minimum number of pairs of points in the defect regions are within the tolerance distance.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
determining a pair of defect regions to be non-contiguous with respect to each other in response to determining at least one of that: the pair of defect regions have different classifications; contours of the defect regions are separated by more than a threshold distance; and that a number of boundary points on the defect regions are less than acceptable threshold number of boundary points.

### Claim 9 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
determining if interior points of a defect region appear in multiple surface views of the images, wherein the determining a classification of the defect region comprises:
determining classifications of the defect region from the images including the interior points of the defect region; and
selecting a classification for the defect region comprising at least one of a classification determined for the defect region in a majority of the images including the interior points of the defect region and a classification determined to have a highest confidence level of the determined classifications from the images including the interior points of the defect region.

### Claim 10 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
processing, by a machine learning model, the images to detect defect regions in the images comprising polygonal boundaries in the images;
training the machine learning model on a data set of images having polygonal boundaries labeled as defect regions or non-defect regions to recognize polygonal boundaries labeled as defect regions as defect regions with a high confidence level; and
training the machine learning model on the data set to recognize polygonal boundaries labeled as non-defect regions as non-defect regions with a high confidence level.

### Claim 11

A system for detecting defects on a three-dimensional physical object, comprising:
a processor; and
a computer program product comprises a computer readable storage medium having program instructions embodied therewith that when executed by the processor causes operations, the operations comprising:
receiving images of a physical object from different perspectives capturing different views of the physical object;
detecting defect regions in the images containing defects on surfaces of the physical object;
determining categories of the defect regions;
determining whether defect regions of a category have a common boundary to form at least one contiguous defect region for the category;
determining total spatial metric of any contiguous defect regions and non-contiguous defect regions for each of the categories; and
providing information on the total spatial metric for the categories to a quality assurance module to determine a quality of the physical object.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operations further comprise:
determining a total number of contiguous and non-contiguous defect regions for each of the categories, wherein the providing the information comprises further providing the total number of defect regions for the categories.

### Claim 13 (depends on 11)

The system of claim 11, wherein the determining the total spatial metric of contiguous defect regions and non-contiguous defect regions for a category comprises:
for each contiguous defect region, comprised of multiple detected defect regions, determine spatial metrics of intersections of common points in each pair of defect regions that form the contiguous defect regions; and
subtract the spatial metrics of the intersections of the common points from a total of the spatial metrics of all the detected defect regions of the category.

### Claim 14 (depends on 11)

The system of claim 11, wherein the detected defect regions comprise two-dimensional defect regions, wherein the operations further comprise:
mapping the two-dimensional defect regions in the images to three-dimensional defect regions in a three-dimensional image formed from the images, wherein the determining whether defect regions having a same classification have the common boundary comprises determining whether the three-dimensional defect regions of the two-dimensional defect regions having the same classification have the common boundary.

### Claim 15 (depends on 11)

The system of claim 11, wherein the operations further comprise:
processing, by a machine learning model, the images to detect defect regions in the images comprising polygonal boundaries in the images;
training the machine learning model on a data set of images having polygonal boundaries labeled as defect regions or non-defect regions to recognize polygonal boundaries labeled as defect regions as defect regions with a high confidence level; and
training the machine learning model on the data set to recognize polygonal boundaries labeled as non-defect regions as non-defect regions with a high confidence level.

### Claim 16

A method for detecting defects on a three-dimensional physical object, comprising:
receiving images of a physical object from different perspectives capturing different views of the physical object;
detecting defect regions in the images containing defects on surfaces of the physical object;
determining categories of the defect regions;
determining whether defect regions of a category have a common boundary to form at least one contiguous defect region for the category;
determining total spatial metric of any contiguous defect regions and non-contiguous defect regions for each of the categories; and
providing information on the total spatial metric for the categories to a quality assurance module to determine a quality of the physical object.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
determining a total number of contiguous and non-contiguous defect regions for each of the categories, wherein the providing the information comprises further providing the total number of defect regions for the categories.

### Claim 18 (depends on 16)

The method of claim 16, wherein the determining the total spatial metric of contiguous defect regions and non-contiguous defect regions for a category comprises:
for each contiguous defect region, comprised of multiple detected defect regions, determine spatial metrics of intersections of common points in each pair of defect regions that form the contiguous defect regions; and
subtract the spatial metrics of the intersections of the common points from a total of the spatial metrics of all the detected defect regions of the category.

### Claim 19 (depends on 16)

The method of claim 16, wherein the detected defect regions comprise two-dimensional defect regions, further comprising:
mapping the two-dimensional defect regions in the images to three-dimensional defect regions in a three-dimensional image formed from the images, wherein the determining whether defect regions having a same classification have the common boundary comprises determining whether the three-dimensional defect regions of the two-dimensional defect regions having the same classification have the common boundary.

### Claim 20 (depends on 16)

The method of claim 16, further comprising:
processing, by a machine learning model, the images to detect defect regions in the images comprising polygonal boundaries in the images;
training the machine learning model on a data set of images having polygonal boundaries labeled as defect regions or non-defect regions to recognize polygonal boundaries labeled as defect regions as defect regions with a high confidence level; and
training the machine learning model on the data set to recognize polygonal boundaries labeled as non-defect regions as non-defect regions with a high confidence level.
