GAP-HMC-2018

Development of A Smartphone‑based Laser Measurement System for Assessment of Gap, Flush, and Curvature in Car Body


Overview

Accurate measurement of Gap (horizontal distance) and Flush (vertical displacement) between vehicle body panels is a critical quality control metric in automotive manufacturing. Traditional inspection relies either on expensive, rigid inline robotic arms or high-error manual tools (e.g., taper and dial gauges).

Gap and Flush definition.
Conventional manual inspection using a taper and dial gauge.

Developed in collaboration with Hyundai Motor Company (Advanced Manufacturing CAE Team), this project engineered a handheld, low-cost Smartphone-based Laser Measurement (SLM) device (Pham et al., 2021). By combining a custom 3D-printed triangulation mount, a violet-blue line laser, and real-time mobile computer vision algorithms, the system replaces manual inspection tools directly on the assembly line.

Left: 3D CAD model of the reverse triangulation frame. Right: Operational handheld prototype with integrated violet-blue laser and iPhone X sensor.

Key Hardware & Optical Innovations

  • Reverse Triangulation Geometry: Designed a reverse optical setup where the smartphone camera is perpendicular to the car body panel while the laser is offset at $45^\circ$. This converts vertical surface shifts ($\partial Z$) directly into horizontal pixel displacements ($\partial y = \partial Z \tan 45^\circ = \partial Z$), maximizing height sensing resolution.
  • Violet-Blue Laser Technology: Replaced standard red lasers with a 405 nm violet-blue line laser (20 mW) to eliminate light absorption and diffusion across dynamic car body paint colors (e.g., white, metallic silver, deep red, black).
  • Ambient Light Rejection via Shutter Bias: Adapted a temporal exposure filtering technique, locking camera ISO/sensitivity ($S=22$) and forcing ultra-fast shutter speeds ($t = 1/306\text{ s}$ to $1/12000\text{ s}$) to completely suppress bright factory ambient lighting, isolating a single sharp laser profile.
Left: Default camera capture with ambient light interference. Right: Filtered laser profile with ambient light suppressed.

Methodology

The real-time computer vision pipeline runs directly on the mobile device, executing six sequential stages:

  1. Ambient Light Rejection: Captures high-contrast laser frames using negative exposure bias to reject background illumination (Pham et al., 2021).
  2. Sub-Pixel Profile Extraction: Applies median spatial filtering followed by a Center-of-Mass-Peak (CoMP) algorithm to locate sub-pixel laser center coordinates along image columns (Pham et al., 2021).
  3. Extreme Points Extraction: Isolates dominant left and right laser contours and fits bounding circles to curved edge gaps to track true panel boundary coordinates (Pham et al., 2021).
  4. Direct Polynomial Calibration: Maps extracted pixel gaps and flushes to physical millimeter dimensions via weighted polynomial regression derived from a precision calibration board (Pham et al., 2021).
  5. Real-Time Metric Computation: Computes final real-world gap and flush parameters using the geometric triangulation (Pham et al., 2021).
  6. Visualization: Overlays live measurement HUD graphics on screen and transmits inspection logs via Bluetooth/Wi-Fi to central factory databases.
Full presentation slides are available below for download: ppt

Performance & Industrial Impact

Real-time measurement visualization on smartphone screen displaying calculated Gap and Flush values.
  • High Measurement Accuracy: Evaluated under GUM (Guide to the Expression of Uncertainty in Measurement) and AIAG MSA standards. Achieved an expanded measurement uncertainty of $\pm$ 0.201 mm for Gap and $\pm$ 0.154 mm for Flush on real vehicle bodies, well within the strict automotive tolerance threshold of $\pm$ 0.200 mm.
  • Real-Time Execution: Operates at 60 FPS at Full-HD resolution using lightweight CPU-based mobile processing.
  • Significant Productivity Gain: Reduced inspection cycle time from 218.26 man-seconds/car (manual two-operator method) to 11.01 man-seconds/car, saving 1.38 man-hours/car on the production line.

References

2021

  1. TIE
    2021_07_tie.gif
    A Smartphone-Based Laser Measuring System for Gap and Flush Assessment in Car Body
    Long Hoang Pham, Duong Nguyen-Ngoc Tran, Jin Young Byun, and 2 more authors
    IEEE Transactions on Industrial Electronics, Jul 2021
  2. Conference
    2021_01_iceic_1570694416.jpg
    Analysis of the Smartphone Camera Exposure Effect on Laser Extraction
    Long Hoang Pham, Duong Nguyen-Ngoc Tran, Chul Hong Rhie, and 1 more author
    In 2021 International Conference on Electronics, Information, and Communication (ICEIC), Jeju, Korea (South). Best Paper Award , Jan 2021
  3. Conference
    2021_02_futuretech_05.jpg
    An Improved Sub-Pixel Laser Center Extraction Using Peak Position and Contour Detection Methods
    Long Hoang Pham, Duong Nguyen-Ngoc Tran, Chul Hong Rhie, and 1 more author
    In 16th International Conference on Future Information Technology (FutureTech 2021), 2021
  4. Conference
    2021_02_futuretech_04.jpg
    Developing a Smartphone-based Hand-Held Radius Measurement Using Laser Triangulation System
    Long Hoang Pham, Duong Nguyen-Ngoc Tran, Chul Hong Rhie, and 1 more author
    In 16th International Conference on Future Information Technology (FutureTech 2021), 2021