The context
I built this project as a practical assignment in a first-year master’s artificial intelligence course. The task was to apply computer vision to a concrete electronics problem: inspect a printed circuit board image and flag visible defects for further human review.
What the tool does
The system uses YOLO11 to locate suspicious areas in an image and assign each detection a class and confidence score. It looks for six categories:
- missing drill hole (
missing_hole); - copper edge notch (
mouse_bite); - broken trace (
open_circuit); - short circuit (
short); - copper protrusion (
spur); - unwanted copper (
spurious_copper).
The screenshot above shows the desktop application with the PCB image, confidence and overlap settings, and a list of detections with their positions. It illustrates one run of the project; the displayed scores apply only to that image.
The technical approach
The repository includes a training pipeline that takes images and VOC XML annotations. It prepares the data, trains a YOLO11 model, evaluates the best checkpoint from the run, and then uses it for inference. Images can be inspected through a Tkinter desktop interface, a Gradio web interface, or the command line. The command line also supports training and model export, including ONNX.
The data split groups images with the same numeric prefix to reduce leakage between training and validation sets. This convention should be checked when using a different dataset.