Image Defect Detection Using Histogram-Matched Reference Synthesis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing defect detection methods in images face inefficiencies due to variations in light source, contrast, and color among original images, leading to inconsistent pixel distributions and reduced reference values in synthesized images, which can introduce defects and lower image comparison efficiency.

Innovation Solution

A method involving histogram matching and median filtering to align pixel distributions and hues of original images to a standard reference image, followed by Gaussian blur processing, to generate a synthesized image for efficient defect detection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If histogram equalization and median filter are used to generate synthesized image, then defect detection can be performed, but pixel distribution inconsistencies and defects doping occur due to variations in light source, contrast, and color among original images

Engineering Contradiction:
Improvedefect detection accuracyVSAvoidpixel distribution consistency
Core Design Contradiction:
ReliabilityVSManufacturing precision

Solution Approach 1:

The patent applies histogram matching as a preliminary processing step before generating the synthesized image. By pre-adjusting the pixel distributions of original images to match a reference image, the method ensures consistent pixel distributions across all input images, preventing defects from being incorrectly doped into the synthesized image during the median filtering process

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent changes the pixel distribution parameters of original images through histogram matching. By transforming the pixel intensity distributions to match the reference image's distribution characteristics, the method standardizes the input data, ensuring that variations in light source, contrast, and color do not affect the synthesized image quality

Inventive Principle:
Principle #35Parameter changes

2Productivity

If median filter is used to generate synthesized image from original images with different sources, then a reference value can be obtained, but defects may be doped into the synthesized image reducing comparison efficiency

Engineering Contradiction:
Improveimage comparison efficiencyVSAvoidsynthesized image reference value
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent performs histogram matching on original images before they are fed into the median filter. This preliminary adjustment ensures that all input images have consistent pixel distributions matching the reference image, so when the median filter generates the synthesized image, defects are not doped and the reference value remains reliable, thereby maintaining high comparison efficiency

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12626501B2Method for detecting defect in image and device for detecting defect in image
Publication Date: 2026.05.12 HON HAI PRECISION INDUSTRY CO LTD
  • US12626501B2 patent drawing
  • US12626501B2 patent drawing
  • US12626501B2 patent drawing

AI summary

A method for detecting defect in image is provided. The method obtains a number of original images, determines a first reference image from the original images, and performs a histogram matching on the original images excluding the first reference image according to the first reference image, to obtain a plurality of matched images. The method further generates a synthesized image according to pixel intensities of the matched images and pixel intensities of the first reference image; and uses the synthesized image as a second reference image to perform an image comparison with a test image, to generate a result of defect detection. A related device and a related non-transitory storage medium are also provided.