Datasets:
File size: 1,825 Bytes
f39f4c0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | ---
license: mit
task_categories:
- image-classification
tags:
- pcb
- component-classification
- electronics
- computer-vision
- random-forest
pretty_name: PCB Component Classifier Dataset
size_categories:
- 1K<n<10K
---
# PCB Component Classifier Dataset
1,120 individually photographed electronic components (resistors, capacitors, diodes, inductors, transistors, ICs), used to train an explainable Random-Forest classifier over 33 hand-engineered CV features.
Part of the [PCB Inspection Suite](https://huggingface.co/ParsaVictor/pcb-inspection-suite). Pipeline, training code, and results: [GitHub: pcb-component-classifier](https://github.com/ParsaVictor/pcb-component-classifier).
## Classes and splits
| Split | Images |
|---|---|
| train | 1,000 |
| holdout | 120 (never used in training or tuning) |
| Class | Description |
|---|---|
| Resistors | |
| Capacitors | |
| Diodes | |
| Inductors | |
| Transistors | |
| ICs | |
## Format
Flat folders of `<class>_<n>.png`, one component per image, packaged as two archives:
- `train.zip`
- `holdout.zip`
## Quick start
```python
from huggingface_hub import hf_hub_download
import zipfile
for split in ["train", "holdout"]:
zip_path = hf_hub_download(
repo_id="ParsaVictor/pcb-component-classifier",
repo_type="dataset",
filename=f"{split}.zip",
)
with zipfile.ZipFile(zip_path) as zf:
zf.extractall(split)
```
## Related
- Trained model: [pcb-component-classifier](https://huggingface.co/ParsaVictor/pcb-component-classifier) — 93.3% holdout accuracy, decision-path explanations
- Training code: [GitHub: pcb-component-classifier](https://github.com/ParsaVictor/pcb-component-classifier)
- Full suite overview: [pcb-inspection-suite](https://huggingface.co/ParsaVictor/pcb-inspection-suite)
## License
MIT.
|