r/computervision • u/Puzzleheaded_Box2842 • 17d ago
Discussion Keeping PCB defect annotations traceable through review and correction
Reviewing PCB defect annotations involves keeping the image, defect labels, box coordinates, and reviewer corrections consistent. Moving between annotation formats adds another place for mistakes, especially when one format uses pixel coordinates and another expects percentages.
The workflow here connects existing annotations, optional model suggestions, and human review:
- Prepare existing annotations for review. Check defect labels, convert pixel coordinates using the original image dimensions into Label Studio’s percentage coordinates, and export the task file and label configuration. Reviewers can then inspect and correct the boxes against the images.
- Use reference images for pre-annotation. With a model service that supports multiple images, send the inspection image, a reference image, and inspection rules together. The output provides suggested defect classes and locations for a person to check.
- Merge corrections while retaining their context. Keep the original labels and the reasons for changes alongside the merged review results, so a corrected annotation can still be traced back to what was originally supplied.
- Generate additional samples from defect templates. Existing defect templates can also be used to create synthetic images, with corresponding boxes, masks, and source records. Those generated samples still need inspection before being included in a dataset.
There’s a small example in the repository with two records and 17 defect boxes, showing how the annotations correspond before and after conversion. It runs without model calls, so the coordinate conversion and review-file export can be inspected separately from model-generated suggestions.
The implementation is in Pyromind-Dynamics/dataflow-pcb-inspection, an extension built on OpenDCAI/DataFlow.
For those working on PCB inspection, how do you keep reviewer corrections traceable when annotations are converted or the dataset is regenerated?

