JA EN

Image Processing for Industrial Inspection - From Visual Inspection to Dimensional Measurement

· 9 min read

Industrial Inspection and Image Processing - Automation Needs and System Architecture

Image processing in industrial inspection automatically examines product quality on manufacturing lines. Replacing human visual inspection, cameras and algorithms deliver high-speed, high-accuracy, and consistent inspection results.

Why automated inspection is needed:

Inspection system components:

Inspection types: Visual inspection (scratches, stains, discoloration), dimensional measurement (length, angle, area), presence inspection (component presence, misalignment), and character recognition (lot numbers, expiry dates). Tact time requirements are typically 50-500ms per product.

Lighting Design - Optical Techniques for Defect Visualization

Lighting is the most critical element in industrial inspection. Without appropriate lighting, no algorithm can detect defects. The goal of lighting design is maximizing contrast between defects and normal surfaces.

Lighting method selection:

Lighting color (wavelength) selection:

Strobe lighting: High-speed conveyance (1m/s+) requires strobe (pulse) lighting to prevent blur. Exposure times below 10μs achieve blur under 0.02mm at 2m/s conveyance speed. LED instantaneous intensity can be set 10-50x continuous operation, ensuring sufficient light for short exposures.

Defect Detection Algorithms - Traditional Method Practice

Defect detection algorithms for industrial inspection are selected based on target characteristics. Traditional methods offer predictable behavior and can be tuned with minimal samples.

Difference inspection (template comparison): Computes difference between reference (master) and inspection images, detecting regions exceeding threshold as defects:

Blob Analysis: Classifies defects using connected region features (area, perimeter, circularity, aspect ratio) after binarization:

Edge-based dimensional measurement: Detect edges with Sobel or Canny, determine sub-pixel edge positions. Distance between two edges gives dimensional value. Combined with telecentric lenses, achieves ±0.005mm measurement precision.

Frequency analysis: FFT analyzes texture periodicity, detecting deviations from periodic patterns as defects. Effective for fabric weave irregularities and metal surface polishing unevenness.

Deep Learning Anomaly Detection - Defect Detection with Limited Data

In manufacturing, defective samples are extremely rare (below 0.1% of total), making conventional supervised learning impractical due to insufficient training data. Anomaly detection learns only from normal products, detecting anything deviating from normal as anomalous.

PatchCore (2022): Accumulates local features from normal images in a memory bank, computing anomaly scores from distance to test image features. Achieves AUROC 99.1% on MVTec AD benchmark as the highest-accuracy method:

PaDiM (2021): Models feature distribution at each patch position as Gaussian, computing anomaly via Mahalanobis distance. Memory-efficient and suitable for embedded device execution.

EfficientAD (2023): Lightweight knowledge distillation-based anomaly detection. Teacher-Student structure detects regions where Student cannot reproduce Teacher output as anomalous. 5ms/image inference (GPU) enables real-time inspection, achieving AUROC 98.8% on MVTec AD.

Implementation considerations: Anomaly detection models are sensitive to normal definition. Training data must include lighting variation, positional shifts, and acceptable individual differences as normal. Threshold setting balances over-detection (yield loss) versus escapes (defective outflow), adjusted per product quality requirements.

High-Speed Processing and Real-Time Inspection

Manufacturing line inspection must complete all processing within tact time (allowable inspection time per product). This section covers acceleration techniques and system design for achieving real-time inspection.

Tact time calculation example: At 600 products/minute production speed, tact time = 60s / 600 = 100ms. Must fit image acquisition 10ms + processing 80ms + judgment output 10ms.

Acceleration techniques:

Multi-camera systems: When single cameras face field-of-view or tact time constraints, multiple cameras inspect different surfaces simultaneously. Four-camera configurations (top, bottom, two sides) with synchronized capture are common for complete product inspection.

Line scan cameras: For continuously conveyed products (film, steel sheet, fabric), line scan cameras capturing one line at a time are optimal. Synchronizing conveyance speed with scan rate produces distortion-free images. An 8K (8192px) line camera covering 1m width achieves approximately 0.12mm/px resolution.

Inspection System Deployment and Operation - From Installation to Quality Management

This section covers procedures, evaluation methods, and operational considerations for deploying image inspection systems on manufacturing lines, including quality management requirements beyond technical implementation.

Deployment procedure:

Performance metrics:

Operational challenges and solutions:

Traceability: Store all inspection images and results for later defect cause investigation. At 100,000 inspections/day with 500KB/image, approximately 50GB daily storage is needed. 30-day retention requires 1.5TB managed via NAS or cloud storage.

Related Articles

Edge Detection Algorithm Comparison - Sobel, Canny, and Laplacian Principles and Selection Guide

Covers mathematical principles, implementation, and performance comparison of major edge detection algorithms. Understand Sobel, Canny, and Laplacian characteristics for optimal method selection.

Object Detection Overview - YOLO, SSD, and Faster R-CNN Architecture and Performance Comparison

Systematic explanation of deep learning object detection. Covers YOLO, SSD, Faster R-CNN principles, speed-accuracy tradeoffs, and practical selection criteria with concrete benchmarks.

Camera Calibration Fundamentals - Practical Guide to Intrinsic Parameters and Distortion Correction

Complete guide to camera calibration from theory to practice. Covers pinhole model, Zhang's method, and distortion correction procedures with OpenCV code examples.

Stereo Vision and Distance Measurement - Recovering 3D Information from Disparity

Complete guide to stereo vision from principles to implementation. Covers epipolar geometry, stereo matching, and depth calculation from disparity maps with code examples.

Complete Guide to White Balance Adjustment - Precisely Controlling Color Temperature and Tint

Covers white balance principles, camera settings during shooting, and precise RAW processing adjustments. Understand color temperature and tint relationships for intentional color reproduction.

Satellite Image Processing Fundamentals and Applications - From Remote Sensing to Change Detection

Systematic guide to satellite image processing covering multispectral analysis, atmospheric correction, vegetation indices, land cover classification, and change detection techniques.

Related Terms