Part Tracking Computer Vision: Re-ID Across Cameras for Honest SPC Counts

Part tracking computer vision for SPC: how re-ID links one part across frames and cameras, why association errors distort control limits, and how to…

Part Tracking Computer Vision: Re-ID Across Cameras for Honest SPC Counts
Written by TechnoLynx Published on 11 Jul 2026

Re-identification (re-ID) in CV inspection is the step that links observations of the same physical part across cameras and time, so that each part enters the quality record once. Part tracking computer vision on a production line therefore has two jobs: keep one identity for the part as it moves through a single camera’s view, and carry that identity across cameras and stations. If that association is wrong, the defect counts behind your control chart are wrong too. A duplicated part inflates the count, and the chart ends up reacting to the camera layout rather than to the process. Re-ID is the association layer that makes an inspection output stream statistically honest before statistical process control ever reads it.

Part Tracking in Computer Vision: Tracking Versus Re-ID

Tracking assigns an ID within a single camera and has to keep the same ID on the same target over time, while re-identification assigns the same ID to the same target when different cameras see it. Taken together, detection, tracking within a camera and linking across the camera network make up what the DMMA authors call object association.

The object re-ID literature describes re-ID as matching the same object across multiple different views. An important feature of re-ID is that it identifies objects in cameras whose views do not overlap, by retrieving a match for a query from a gallery of stored descriptors. In its general sense, to re-identify something is to recognise it as numerically the same item you encountered before, not merely a similar one.

For inspection, the difference between “the same” and “a similar” part is the whole point. Two parts of the same type can look nearly identical, yet each is a separate unit in the defect rate. A part seen twice is still one unit.

Is Part Re-ID the Same Problem as Person Re-ID?

Part re-ID is related to person re-ID but it is a different problem. Person re-ID asks whether a person of interest has been seen at another place or time by another camera. That literature names large appearance changes such as pose, lighting and viewpoint as its most challenging problem.

Parts on a line raise a different difficulty: separate items that look alike. In a product re-ID study for automated defect detection, the authors found that neural networks struggled to tell apart bottles with close colours and the same shapes. They concluded that the subtle colour and shape differences between those bottles were not well captured by the networks. The same study did borrow from person re-ID: a locally aware transformer developed for that task inspired its approach to product re-ID, where parts offer fewer distinguishing features.

Where marking a part is impractical, the identifier can come from the part itself. Fraunhofer IPM’s Track & Trace Fingerprint identifies individual components without any marking, using their surface microstructure. Fraunhofer IPM notes that QR codes, laser marks or barcodes are too complex, too expensive or simply impossible on many processes.

How Double-Counting One Part Distorts the Control Chart

The counting rule behind a defect-rate metric is simple to state. A unit with at least one qualifying defect counts as one defective unit, however many defects it carries. A unit that fails at two steps is still one defective unit, and defect counts per unit belong in a separate DPU metric. The practical way to enforce this is a unit-level flag set at each gate, with percent defective calculated from the flag and detailed defect records stored separately.

Each frame on each camera produces its own detections, and linking them to one part takes a separate identification step. Re-ID links those detections to one part, so each unit contributes one record to the SPC stream. Frame-by-frame classification also flickers between labels because of motion blur, occlusion and lighting changes, which makes per-object grading unreliable unless identity is kept persistent.

These counts feed the attribute charts: p charts for the proportion of defective product, c charts for counts of defects and u charts for defects per unit. Which chart to use, and how its limits and run rules are set, is covered in statistical process control for CV inspection. This page is about whether the numbers going into that chart are honest.

Worked Example: Duplicate Defects on a C Chart

This example shows the mechanism under stated assumptions. It is not a measurement from any line.

Step Correct association Every defect seen twice, no re-ID
Assumed true defects per inspection unit Poisson, mean 5 Same process
What the chart receives X, mean 5 2X, mean 10
Actual standard deviation of the plotted count √5 ≈ 2.24 2 × √5 ≈ 4.47
c chart limits, c̄ ± 3√c̄ 5 ± 6.7, so UCL ≈ 11.7 10 ± 9.5, so UCL ≈ 19.5
UCL distance from the mean, in true standard deviations 3.0 (19.5 − 10) / 4.47 ≈ 2.1

The c chart limits follow NIST’s 3-sigma form c̄ ± 3√c̄, which assumes the counts are Poisson and the normal approximation holds (NIST says it is adequate when the mean is at least 5). Doubling a Poisson count quadruples its variance but only doubles its mean, so the chart’s assumed spread no longer matches the real spread (arithmetic in the table). The limit then sits about 2.1 true standard deviations from the mean instead of 3, so a stable process crosses it far more often.

In practice duplication is partial: the probability that a part appears in several cameras at once varies with how much their views overlap. Minitab names overdispersion, too much variation in the data, as a cause of false alarms on traditional p and u charts. Without re-ID, false-alarm line stops come from duplicate detections rather than process shifts.

When Association Errors Look Like Misclassification

Re-ID makes two kinds of association error, recall errors and precision errors. In the HOTA framework, an association recall error happens when a tracker gives two predicted IDs to one true object, and an association precision error happens when it gives one predicted ID to two true objects. Low association recall means an object was split into several tracks, and low association precision means a single track extends over several objects. On a line, a split is a duplicated part and a merge is a lost one.

Seen from the control chart, we read a merge as inspection error: the recorded status of a unit differs from its true status. A split instead inflates the count, as in the worked example. A 2022 study of p-control charts with measurement error found that the upper control limit widens as misclassification becomes more severe, while a corrected chart recovers the limit you would get from the true data. In the same study, the out-of-control average run length of the naive chart was always longer than under the true data, meaning shifts took longer to detect, and the gap grew when shifts and samples were small. In one of its examples the naive EWMA chart missed an out-of-control point that the corrected chart caught.

An earlier study of multinomial control charts (International Journal of Industrial Engineering, 2011) reached the same conclusion: inspection error seriously affects chart performance, because the true category probabilities become apparent ones. That paper defines a conforming part classified as nonconforming as a type I error and the reverse as a type II error.

Put the two failure directions together and, on this reading, you get a chart that is both noisier and slower. Duplicates create false alarms. Misattribution widens the limits and lengthens the time to detect real drift. A team that tunes alarm thresholds without fixing association is adjusting the chart around a counting fault. One SPC guide notes that if one shift counts defects differently from another, the attribute chart tracks the inspection system as well as the process. MoreSteam describes a manufacturer whose measurement error exceeded 200% of tolerance and which, using that data, often adjusted its process in the wrong direction.

How Parts Are Linked Across Frames and Cameras

The methods below combine three cues: where the part is, when it is there, and what it looks like.

Position and time. With overlapping fields of view, the Argus system associates an object across cameras by matching correlated positions in the frame rather than appearance features. If an object found in Camera 1 has an expected position in Camera 2, Argus assigns the identity when a box appears at that position, and it skips cameras where no matching box is expected. Within a single camera, Argus relies on the object staying close to its previous bounding box between frames, and it counts a match when intersection-over-union exceeds 0.5. Where cameras overlap on a conveyor with known speed, a part’s expected position in the next camera is predictable, which is what this gating needs. The precondition is synchronised time: Argus aligns frames by timestamp, treating them as synchronised when they differ by less than 3 ms. Multi-view geometry is also sensitive to calibration errors in intrinsic and extrinsic camera parameters.

Duplicate suppression and refresh. Once one identity is confirmed, Argus reuses it across cameras instead of identifying the object again in each one, which removes redundant identification tasks along both the spatial and temporal axes. To stop an association error from propagating (through occlusion or a failed identification), it caps consecutive skips and runs identification again at a fixed interval, for example every 2 seconds, a setting that trades efficiency against accuracy.

Appearance and track-level decisions. Within a camera, ByteTrack keeps low-score detection boxes such as occluded objects and matches them against existing tracklets instead of discarding them, which reduces missing objects and fragmented trajectories. A conveyor-belt apple inspection framework used ByteTrack to give each apple a persistent track ID and then took a majority vote over each track’s frame predictions to stabilise the defect decision. That framework also defines its defect ratio per track rather than per frame. For multi-camera identity, Ristani and Tomasi associate in a hierarchy (tracklets, then single-camera trajectories, then multi-camera identities) and decay correlations as the time gap between observations grows.

The track-level vote is the piece that maps most directly onto SPC. One track gives one label, which gives one unit-level flag.

Where Part Association Breaks on a Real Line

Object tracking is treated as a solved problem because open-source solutions exist. That assumption does not survive production scale, where edge cases, lighting and throughput change the picture. The literature names the specific ways association breaks:

  • Look-alike parts. In multi-camera tracking, merge errors happen when targets look alike, much as similarly dressed people do. The bottle study shows the same thing for products.
  • Occlusion and blind spots. Identity recall is the weak point of modern multi-target trackers, which commonly fail to re-identify targets after occlusion. Across cameras, fragmentation comes mostly from delays in blind spots and unpredictable motion.
  • Camera-to-camera shift. Images from different cameras vary in pose, orientation, illumination and resolution because of camera setup and viewpoint. Networks with overlapping and non-overlapping views face changing illumination and background without being able to calibrate reliably for position and colour.
  • Detector quality upstream. In person re-ID, accuracy on detected bounding boxes is lower than on hand-drawn ones, and a better pedestrian detector tends to give higher re-ID accuracy with the same features.
  • Threshold-driven galleries. The detection or tracking threshold sets the size of the gallery that re-ID searches. Thresholds that are too strict can exclude true matches, and thresholds that are too loose fill the gallery with background detections.

Production AI reliability is distinct from accuracy, which is why we treat association as a reliability question rather than a model-quality one.

How Do You Check Re-ID Is Associating Correctly Before Trusting the Control Limits?

Validate association with identity metrics on labelled line footage, and check the unit count against ground truth, before computing any Phase I limits. A good detection score is not enough, because detection and association fail separately. Measured on MOTChallenge trackers, MOTA correlated 0.96 with detection score but only 0.46 with association score, while IDF1 correlated 0.97 with association. HOTA is the geometric mean of a detection score (DetA) and an association score (AssA), so it always sits between the two.

Association Validation Checklist

  1. Label a ground-truth set of part identities across every camera and station, and include look-alike parts, occlusions and changeovers.
  2. Report AssA, association recall and association precision separately. Low recall means split parts, which are your duplicates, and low precision means merged parts, which are your lost defects.
  3. Score multi-camera identity directly. HOTA applies to multi-camera tracking unchanged, provided the ground-truth IDs are consistent across cameras. Its online variant scores association using only past time-steps, which suits a tracker whose output is acted on live.
  4. Count ID switches and ID transfers. An ID transfer, where one predicted track spreads over two true parts, is not penalised by MOTA at all.
  5. Check identity precision and recall after occlusion. Lower ID recall on MOT16 trackers is attributed to their failure to recall identities after occlusion.
  6. Reconcile counts. Compare the number of unique tracked units per shift with the true unit count from the line controller, and the defective count from unit-level flags with a manual audit sample.
  7. Sweep thresholds. Re-run the metrics across detection and tracking thresholds, since gallery size changes re-ID accuracy.
  8. Stop tuning features once association has saturated. IDF1 improves with rank-1 re-ID accuracy only up to a point, after which further gains yield diminishing returns.

Treat the identity metrics as release gates and re-check them after any camera move, lighting change or new part type. Phase I limits computed on a stream with unmeasured association error are limits on the camera system, not on the process. When a signal does fire, one SPC guide advises ruling out data-entry, measurement and configuration errors before opening a process investigation.

Association Quality Decides How Fast Drift Shows Up

The metric this work protects is time to detect real drift. Re-ID affects it twice: duplicates drive false-alarm line stops, and misclassified units lengthen the run length before a true shift appears. Controlling a real defect-rate drift is a question of both detection accuracy and association accuracy.

The open question for any given line is how much association error the chart can tolerate. The misclassification studies show the direction of the effect but not a threshold that transfers to your camera layout, so the honest approach is to measure association on your own footage and size the limits with that error in mind.

FAQ

What Does Reidentification Mean?

To re-identify something is to recognise it as numerically the same item seen on an earlier occasion. In computer vision this means matching the same object across different views or cameras.

What Is Person Re-Identification?

Person re-ID tells you whether a person of interest has been seen at another place or time by another camera, typically in video surveillance.

Which SPC Chart Plots the Number of Defects?

The c chart plots counts of defects or nonconformities, while the u chart plots defects per unit and the p chart plots the proportion defective.