--- pretty_name: Innodisk PCB Image Dataset license: cc-by-nc-4.0 tags: - image-classification - pcb - defect-detection - innodisk - small-sample-learning configs: - config_name: default data_files: - "train_20_20/*.jpg" - "train_20_20_R/*.jpg" - "train_40_20/*.jpg" - "train_40_20_R/*.jpg" - "train_60_20/*.jpg" - "train_80_20/*.jpg" - "train_100_20/*.jpg" - "test/*.jpg" - "test_R/*.jpg" - "test_canny/*.jpg" - "test_R_canny/*.jpg" - "val/*.jpg" - "val_R/*.jpg" --- # πŸš€πŸ”¬ Innodisk PCB Image Dataset The **Innodisk PCB Image Dataset** is a collaboration between **Innodisk Corporation** and Tamkang University. Designed for research on **printed‑circuit‑board (PCB) defect inspection** and **small‑sample learning**. πŸ§‘β€πŸ”§πŸ’‘ | πŸ“‚ Split | πŸ–ΌοΈ Images | πŸ“ Source directories | |----------|-----------|-----------------------| | πŸ‹οΈβ€β™‚οΈ Train | **500** | 7 `train_*` dirs | | πŸ§ͺ Test | **240** | 4 `test*` dirs | | πŸ“ Val | **30** | 2 `val*` dirs | 🎯 *Resolutions vary; the modal size is **188β€―Γ—β€―128β€―px**.* πŸ”– Filenames embed pseudo‑labels: **`pass`** (=acceptable) or **`ng`** (=defective). --- ## πŸ—‚οΈ Folder layout ``` Innodisk_PCB_datasets/ β”œβ”€β”€ train_20_20/ # πŸ‹οΈβ€β™‚οΈ β”œβ”€β”€ train_20_20_R/ β”œβ”€β”€ train_40_20/ β”œβ”€β”€ train_40_20_R/ β”œβ”€β”€ train_60_20/ β”œβ”€β”€ train_80_20/ β”œβ”€β”€ train_100_20/ β”œβ”€β”€ test/ # πŸ§ͺ β”œβ”€β”€ test_R/ β”œβ”€β”€ test_canny/ β”œβ”€β”€ test_R_canny/ β”œβ”€β”€ val/ # πŸ“ └── val_R/ ``` --- ## ⚑ Quick start ```python from datasets import load_dataset # πŸ”„ Load images ds_train = load_dataset("evan6007/Innodisk_PCB_datasets", split="train") # 🏷️ Derive labels from filenames def add_label(example): fname = example["image"].filename.lower() example["label"] = 0 if "ng" in fname else 1 # 0 = defective, 1 = acceptable return example ds_train = ds_train.map(add_label) ``` --- ## 🏭 Image sources & preprocessing 1. πŸ“· **AOI line cameras** – raw production images (`train_*`, `test*`, `val*`). 2. βœ‚οΈ **ROI versions** (`*_R`) – cropped component regions to reduce background noise. 3. πŸ–ŠοΈ **Canny edge maps** (`*_canny`) – generated with `cv2.Canny(img, 50, 150)`. --- ## πŸ“œ License Released under **Creative Commons Attribution‑NonCommercial 4.0** (CC BY‑NC‑4.0). Commercial applications require prior approval from Innodisk Corporation. --- ## πŸ“š Citation ```bibtex @dataset{innodisk_pcb_2025, author = {{Innodisk Corporation} and {Su, Huan-Che} and {Hsiao, Chao-Hsiang}}, title = {Innodisk PCB Image Dataset}, year = {2025}, url = {https://huggingface.co/datasets/evan6007/Innodisk_PCB_datasets}, note = {CC BY-NC 4.0} } ```