Software & integration

Component counting: acceptance and tray handoff

Validate exact physical counts with independent trays and explicit overlap handling, then tie each count to the correct tray event.

Send samples for engineering review
Component counting: acceptance and tray handoff
Engineering illustration, not a photograph or measured result.

Inspection task

Agree whether an ambiguous count holds the tray or requests re-presentation. Validate exact physical quantity, not merely agreement with the development mask. Include correctly filled, short-filled, extra-part, touching and border-crossing trays. These categories have different consequences and must remain separate in the acceptance record.

Prerequisites and sample controls

State the expected number and what constitutes one physical component. Prepare correctly filled, short-filled and touching-part samples, with independently counted answers. The baseline counts separated connected regions, not hidden objects. A connected region can contain several touching parts, while a single shiny part can break into several regions. Keep these limitations in the sample definition before choosing a counting threshold.

Choose the camera route

Use an area-scan camera when the full tray fits in one triggered frame. Choose monochrome for silhouette contrast and color only for an actual color requirement. Motion during feeding calls for verified global-shutter timing or a settled capture position. A line-scan route needs motion reconstruction; it is not an automatic improvement for a stationary tray.

Run the controlled procedure

Agree the decision rules, permitted variation and required line response before starting acceptance. Freeze the workflow, dataset, runtime, materials and thresholds together. Keep the acceptance answer set independent of tuning; if its answers have already influenced changes, disclose that reuse and obtain a new independent set. Human review must remain separate from model predictions and automatic workflow editing.

  1. Seal independent tray counts before execution.
  2. Run each fill condition across allowed tray positions.
  3. Inject no image, duplicate result and delayed result.
  4. Confirm the PLC or operator receives the current tray decision.

Process map

Independent physical answers establish count validity; request identity binds the result to the tray and line response.

  1. Frozen candidate
  2. Independent test
  3. Line response
  4. Local approval
Engineering illustration, not a photograph or measured result.
View full-size diagram

Record the evidence

Report exact matches, absolute count errors and review events with the total tested trays. Repeated frames of one tray are not new physical specimens. Document both specimen count and event count.

Define the acceptance population by physical tray state. Keep correctly filled, short-filled and extra-part specimens separate, and document whether touching or overlap is permitted in normal production. If it is permitted, the acceptance plan must cover it with a verified route rather than excluding it after results are seen. Each event row should identify the tray, physical quantity, image validity, reported count, review state and actual line action. Separate exact-count correctness from correct shortage detection: a count can be wrong while still causing a reject, and that does not establish counting accuracy. Preserve the independent answer source and any later correction. State how repeated presentations are related to the original specimen so the report does not imply more independent tray samples than were actually tested.

Illustrative recording sheet; enter your own results
ControlRequired observationDecision boundary
N3: 3 separated parts3 eligible regions expected in this exampleCompare with independent physical count
N2: 2 separated parts2 eligible regions expected in this exampleShort fill; do not change the expected 3
T3: 3 touching partsRegion count may differ from 3Review; connected regions are not physical objects

Diagnose failed cases

A late count can release the next tray; an overlap treated as a valid low count can falsely declare shortage. Keep observability status attached to quantity. Do not send a numeric zero when no valid image exists.

Failure isolation

Compare a valid count of 0, an invalid capture and a touching-part review. Their quantities must not be conflated.

  1. Valid count
  2. No image
  3. Touching review
  4. Tray identity
Engineering illustration, not a photograph or measured result.
View full-size diagram

Validate independently

Test complete events, including capture failure, ambiguous evidence, timeout and duplicate delivery. Tie every output to the current part and request identity. The integration must handle pass, fail and review/no-result explicitly rather than converting missing evidence to pass. Record observed latency and the final actuator response; a software result alone does not prove that the physical part was correctly handled.

Require correct quantity and correct handling of the same physical tray. Recheck after changes to feeding, tray material or lighting, because those changes can alter separation without changing software.

Test the receiving controller without giving invalid quantities ordinary numeric meaning. A missing image, unobservable overlap and a valid empty tray are different states. Verify that the interface preserves those distinctions and that no-result never becomes an automatic zero. Use an approved safe commissioning substitute while delaying and duplicating selected deliveries. Confirm that a count belongs only to its current tray identity, and that the receiving side does not reuse the previous count after a timeout. For an ambiguous tray, observe the agreed hold or re-presentation action and the subsequent new image, not just an alarm message. Finally test actual handling under the local installation procedure and record whether the intended physical tray is released or retained. Acceptance remains tied to the frozen configuration and presentation limits; changes to tray surfaces, feeder behavior or permitted overlap require a new review of those limits.

Continue the engineering handoff

A candidate identity and a review archive do not constitute an approved executable release. Confirm the installed package, dependencies and active configuration locally. Any activation or rollback procedure must be verified on the actual runtime and kept outside an active job. Do not promise completed package activation or production acceptance from development comparison results.

Save the original image and the resulting record together.

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. Visual inspection system design checklistDeyi Vision

    Define sample decisions, station constraints and measurable acceptance before hardware selection.

    Checked
  2. Structural analysis and shape descriptorsOpenCV

    Connected component areas and centroids describe image regions, not hidden physical part counts.

    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