How tangsanli5201/deeppcb works
DeepPCB is a PCB-defect dataset accompanied by a Qt annotation tool and scripts for evaluating detection submissions. The main user workflow is to open paired test/template images, edit defect regions and labels, and save annotations; a separate evaluation workflow compares submitted detections with ground truth and reports AP, precision, recall, and F-score. The README documents dataset preparation and benchmark conventions; source excerpts show the annotation and evaluation call paths. The model approach is described but its implementation is not present in this repository.
Main entry points: mainwindow.cpp Annotation workflow · script.py Evaluation script · PCBData Image pairs · main.cpp Annotation app
Components 13
PCB dataset
- Image pairs
PCBData - Defect labels
PCBData
Annotation tool
- Annotation app
tools/PCBAnnotationTool/main.cpp - Annotation workflow
tools/PCBAnnotationTool/mainwindow.cpp - Test image editor
tools/PCBAnnotationTool/drawwidget.cpp - Template viewer
tools/PCBAnnotationTool/imagewidget.cpp - Defect types
tools/PCBAnnotationTool/datadef.h - Type labels
tools/PCBAnnotationTool/utils.cpp
Benchmark evaluation
- Evaluation script
evaluation/script.py - Evaluation helpers
evaluation/rrc_evaluation_funcs.py - Benchmark metrics
evaluation/script.py
Other components
- Annotator
- Detection submission
Connections 13
- Annotator → Annotation app: opens
tools/PCBAnnotationTool/main.cpp - Annotation app → Annotation workflow: creates
tools/PCBAnnotationTool/main.cpp - Annotation workflow → Image pairs: loads pairs
tools/PCBAnnotationTool/mainwindow.cpp - Annotation workflow → Test image editor: edits test
tools/PCBAnnotationTool/mainwindow.cpp - Annotation workflow → Template viewer: shows template
tools/PCBAnnotationTool/mainwindow.cpp - Annotation workflow → Defect labels: reads and saves
tools/PCBAnnotationTool/mainwindow.cpp - Annotation workflow → Defect types: uses types
tools/PCBAnnotationTool/mainwindow.cpp - Annotation workflow → Type labels: formats labels
tools/PCBAnnotationTool/mainwindow.cpp - Annotator → Evaluation script: runs evaluation
README.md - Detection submission → Evaluation script: provides detections
README.md - Image pairs → Evaluation script: provides ground truth
README.md - Evaluation script → Evaluation helpers: loads and parses
evaluation/script.py - Evaluation script → Benchmark metrics: computes metrics
evaluation/script.py