Cameras & acquisition

Surface defects: camera sampling and motion

Size the acquisition around the smallest visible surface feature, then prove that motion and changing part pose do not erase it before defect processing starts.

Send samples for engineering review
Surface defects: camera sampling and motion — Illustrative engineering scene; not a photograph or a measured result.
Illustrative engineering scene; not a photograph or a measured result.

Purpose and operating boundary

Size the acquisition around the smallest visible surface feature, then prove that motion and changing part pose do not erase it before defect processing starts.

This tutorial defines an engineering evaluation, not a ready-to-run product certification. The current Deyi Vision public PC example covers an EAN-13 workflow on confirmed sample images. Native OCR and detection work in the engineering code must be checked against the installed runtime, bound models and job before use. A browser template does not prove browser execution: the planned OpenCV.js backend needs separate verification. Cloud recognition requires explicit approval of the image scope, provider, model and cost. A review archive is not an executable release package. Camera, firmware and driver compatibility require their own check. All worksheet values below are hypothetical; they are not Deyi Vision measurements or customer results.

Prepare the evidence

Collect a fine scratch, an acceptable textured part and a specular part. Record the scratch orientation independently of its image appearance. Use a fixture datum outside the defect zone so that focusing or locating cannot depend on the defect itself. Before reusing the capture configuration, check that the stored pixel format and active region still match the saved recipe. Record any binning, resizing or image conversion because the object scale calculated from source pixels no longer applies unchanged after those operations. Compare the archived frame with the frame passed into the first processing node. If they differ, retain both identities and explain the conversion. During a reconnect trial, distinguish a new exposure from a repeated buffered frame. Disable automatic pass-through while acquisition identity is uncertain, and retain the event that caused the mismatch rather than silently resetting the counter. A surface-defect station must distinguish a material defect from a change in viewing conditions. Scratches, dents, oil, texture and a reflection can produce similar intensity changes, yet require different dispositions. Prepare acceptable parts from the expected finish range and defect samples with recorded locations and orientations. Choose a datum that remains visible when the surface changes. A reference image is useful only after its pose and illumination are comparable with the current part. An image difference is not a physical depth measurement, and a detected region does not by itself identify a defect mechanism. Decide whether dirt is a reject, a cleaning request or an excluded condition before collecting answers. Store original views of ambiguous samples rather than inventing a clean reference or a corrected label. Begin with an acquisition record rather than a displayed preview. A preview may be resized, sharpened or reused after the input has stopped. Save the unmodified frame, image dimensions, pixel format, exposure, gain, lens setting, working distance, trigger identity and acquisition time. Include the smallest relevant feature and the largest allowed position variation in the same test. First capture a stationary sample to separate focus from motion blur; then repeat at the actual movement conditions without changing the optical geometry. Link every saved image to the physical sample or event. A missing or stale frame is an acquisition failure even when the last visible image looks good. Compare a Deyi Vision area-scan camera route for fixed or discrete parts with a line-scan route for continuously moving web material. For area scan, verify full-field coverage and shutter/trigger settings that preserve the defect at the allowed speed. For line scan, match field width, line rate, exposure and line illumination to transport speed; verify the actual camera's encoder/line-trigger compatibility. Capture a known target while varying speed, then inspect reconstructed dimensions, stretched features and seams or missing rows. Record the selected route and effective settings; neither route is accepted by its camera type alone.

Procedure

  1. Measure the full field at the object plane. Divide its width by the active image width; do not use the display width or a digitally zoomed preview for this calculation.
  2. At fixed lighting, focus on the fine scratch and inspect the source pixels at different field positions. Include the least favorable allowed height and tilt, not only the central surface.
  3. Capture the same part stationary and moving. Calculate the exposure bound from object-space motion, then shorten exposure without increasing gain until the scratch remains visible in the raw image.
  4. Inspect frame identity and clipping for every trigger. Save an image where a reflection hides the scratch as a failure; increasing detector sensitivity cannot recover a feature absent from the pixels.

Interpret the trial

In the hypothetical worksheet, the scratch spans only 3 px. This is a sampling observation, not a detection guarantee. The exposure calculation limits motion to 1 px; it does not include focus loss or rolling-shutter deformation. If the feature disappears at an allowed pose, revise the optics or lighting before choosing a defect threshold.

Recording worksheet

Hypothetical worksheet; values are design examples, not measured performance.
RecordValue / observationInterpretation
Field / image width80 mm / 1600 pxObject sampling: 0.05 mm/px
Scratch width0.15 mm3 px in this hypothetical geometry
Speed / exposure500 mm/s / 100 µsMotion: 0.05 mm = 1 px
s = 80 / 1600 = 0.05 mm/px
w = 0.15 / 0.05 = 3 px
blur = 500 * 0.0001 / 0.05 = 1 px

Two engineering views

Two engineering views · 1

The diagram shows the order of checks. Each arrow requires recorded evidence; it does not imply an implemented automatic connection. Smallest scratch → Object sampling → Exposure → Source frame.

  1. Smallest scratch
  2. Object sampling
  3. Exposure
  4. Source frame
Illustrative engineering scene; not a photograph or a measured result.
View full-size diagram

Two engineering views · 2

The diagram shows the order of checks. Each arrow requires recorded evidence; it does not imply an implemented automatic connection. Stationary → Moving → Same light → Visibility.

  1. Stationary
  2. Moving
  3. Same light
  4. Visibility
Illustrative engineering scene; not a photograph or a measured result.
View full-size diagram

Failure diagnosis

  • A sharp datum with an invisible scratch indicates contrast loss, not necessarily bad focus. Change light direction while keeping focus fixed.
  • A feature visible when stationary but smeared while moving points to exposure or timing. Inspect the actual frame, not a sharpened preview.
  • Repeated image identities after new triggers indicate stale acquisition. Treat the event as missing evidence rather than assigning the previous part result.

Acceptance and handover

Accept acquisition only after the smallest defect remains observable across the agreed positions, heights and speeds. Record blur, clipping, missed triggers and stale frames separately. Hand over the actual image evidence and exposure settings to the lighting stage; this acceptance does not establish defect-classification accuracy.

Keep the source images, the expected decision, the exact revision and the complete result record together. Freeze the evaluation set before selecting the final parameters. If those answers are later used to tune the workflow, mark that set as development data and obtain a new independent acceptance set. Keep Review, NoResult, execution error and missing acquisition visible in the denominator; do not turn them into passes by filtering rows. Save a reproducible failure alongside the successful sample. The handover should identify who may change the recipe, how a prior approved revision is restored and which device output remains inhibited until acceptance. A software result alone does not establish that a moving physical part reached the correct destination.

Sources and technical references

These references explain the methods and limits used in this tutorial. Example checks are guidance; production acceptance requires evidence from your own samples.

  1. Deyi Vision machine vision software: evaluation scopeDeyi Vision

    Public EAN-13 PC evaluation scope and separate hardware/production acceptance.

    Checked
  2. Calculate exposure limits from conveyor speedDeyi Vision

    Object-plane sampling, speed/exposure motion-blur arithmetic and independent acquisition verification; examples here are newly hypothetical.

    Checked
  3. Exposure TimeBasler

    Exposure time is measured in microseconds and available/effective values depend on the actual sensor, mode and model; no cross-vendor feature claim.

    Checked
  4. Line Scan Camera vs Area Scan CameraDeyi Vision

    First-party area-versus-line route selection and continuous-material imaging.

    Checked
  5. Line Scan Camera with EncoderDeyi Vision

    First-party motion/encoder synchronization planning, row timing and stretched/compressed reconstructed geometry.

    Checked
  6. Line Scan GigE Use CasesBasler

    Constant-speed line acquisition and distance-linked encoder triggering for variable-speed material; model-specific examples do not establish Deyi camera support.

    Checked

Engineering review

Bring the inspection problem and the evidence.

Send sample images, your current setup and the check that failed. Include field of view, working distance, line speed and acceptance criteria for a practical review.

Send samples for engineering review
Contact

Direct RFQ contact

Talk to engineering about the inspection problem.

Send sample images, competitor model, FOV, working distance and line speed before model selection.

Target: selection brief within 24h
Send sample images