Klyff PCB Anomaly Detector
An OpenVINO object detector for five visible PCB defect categories. This is a
private engineering release of the locked production artifact
pcb_vision_obj_v0.01.
This repository is not approved for public redistribution or autonomous production decisions. See
release-gates.jsonandLICENSE.
Model summary
| Field | Value |
|---|---|
| Task | Object detection |
| Family | YOLO11-family export |
| Runtime | OpenVINO IR |
| Precision | FP32 weights and tensors |
| Input | 1 ร 3 ร 640 ร 640, RGB, scaled by 1/255 |
| Resize | Aspect-ratio letterbox, padding value 114 |
| Output | 1 ร 9 ร 8400: xywh + 5 class confidences |
| NMS | External, class-aware; example IoU threshold 0.70 |
| Example threshold | 0.60, inherited from the deployment configuration |
| Version | pcb_vision_obj_v0.01 |
The OpenVINO graph records a PyTorch origin and OpenVINO Runtime 2026.2.1.
Classes
| ID | Label |
|---|---|
| 0 | Missing_hole |
| 1 | Mouse_bite |
| 2 | Open_circuit |
| 3 | Short |
| 4 | Spurious_copper |
Spur, present in a newer local test candidate, is not an output of this
production graph and is intentionally excluded.
Quick start
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python inference.py path/to/pcb.jpg --output prediction.jpg
The command prints JSON detections and optionally writes an annotated image. Choose an OpenVINO device explicitly when needed:
python inference.py path/to/pcb.jpg --device AUTO --confidence 0.60 --iou 0.70
The included threshold is an integration default, not a calibrated guarantee. Calibrate it using representative, labeled images from the target line.
Artifacts
artifacts/model.xmlandartifacts/model.binโ paired OpenVINO modelartifacts/model-proc.jsonโ preprocessing and label configurationartifacts/model_metadata.jsonโ model identity and versionCHECKSUMS.sha256โ integrity manifest for all four source artifacts
Only the locked production/ v0.01 files are included. The AOI copy, ONNX and
TensorRT deployment exports, and v0.02 test candidate are excluded to avoid
mixing release variants.
Validation status
The exact artifact loads and runs with OpenVINO 2026.4.1. The smoke evaluator
samples known event windows from an available 208-second demonstration video;
its machine-readable output is in evaluation/smoke-test.json. Those event
windows are not bounding-box ground truth, so the result is an integration
checkโnot mAP, precision, or recall.
No reliable held-out bounding-box annotation set was found with this artifact. Accordingly, this repository does not claim detection accuracy. Reproduce mAP, per-class AP, precision, recall, and false-accept/false-reject behavior on an independent labeled set before production promotion.
Intended use
- Private engineering evaluation of PCB visual inspection.
- OpenVINO integration and pipeline testing.
- Decision support for trained inspectors after site-specific validation.
Limitations and safe use
- Only the five listed categories can be emitted.
- Results can shift with board design, camera, lens, lighting, focus, scale, registration, solder mask, contamination, and process changes.
- A high score is not proof of a defect; a low score is not proof of conformity.
- Do not use predictions as the sole basis for safety-critical acceptance or rejection. Provide review and fail-safe paths.
- Monitor drift and false accepts/rejects, and revalidate after changes to the line, imaging setup, preprocessing, model, or operating threshold.
Provenance and license status
The artifact is associated with the Open Edge Platform PCB Anomaly Detection sample application. The upstream application repository's Apache-2.0 license does not by itself establish redistribution rights for separately supplied weights. Model ownership, training-data terms, and artifact redistribution rights remain open release gates. The included private-evaluation notice therefore applies until written approval is recorded.
Maintainer: Klyff Inc. Public support and security contacts are pending.