# ironbrotherstyle/pcb-dataset architecture

> Architecture diagram of the GitHub repository ironbrotherstyle/pcb-dataset, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ironbrotherstyle/pcb-dataset
- Repository: https://github.com/ironbrotherstyle/pcb-dataset

## Overview

PCB-DATASET is a synthetic printed-circuit-board defect dataset, rather than an application with a user-driven processing pipeline. Its visible assets are grouped into defect annotations, images, and rotation directories; the tree includes categories such as Missing_hole, Mouse_bite, Open_circuit, Short, Spur, and Spurious_copper. The only sampled code is a standalone image-rotation script. Its hard-coded input and output paths do not match the listed dataset layout, so no connection from that script to the listed assets is asserted.

Main entry points: [`Annotations`](https://github.com/ironbrotherstyle/pcb-dataset/tree/master/Annotations) (Defect Labels), [`images`](https://github.com/ironbrotherstyle/pcb-dataset/tree/master/images) (PCB Images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_annotations["Defect Annotations"]
  node_annotation_files["Defect Labels"]
end

subgraph group_images["PCB Images"]
  node_image_files["PCB Images"]
end

subgraph group_rotations["Rotated Data"]
  node_rotation_data["Rotation Sets"]
end

node_researcher(("Dataset User"))
node_pcb_used["PCB_USED"]
node_rotation_script["Image Rotation Script<br/>[rotate.py]"]

node_researcher -->|"uses dataset"| node_annotation_files
node_researcher -->|"uses dataset"| node_image_files

click node_annotation_files "https://github.com/ironbrotherstyle/pcb-dataset/tree/master/Annotations"
click node_image_files "https://github.com/ironbrotherstyle/pcb-dataset/tree/master/images"
click node_rotation_data "https://github.com/ironbrotherstyle/pcb-dataset/tree/master/rotation"
click node_pcb_used "https://github.com/ironbrotherstyle/pcb-dataset/tree/master/PCB_USED"
click node_rotation_script "https://github.com/ironbrotherstyle/pcb-dataset/blob/master/rotate.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_annotation_files,node_researcher toneBlue
class node_image_files toneAmber
class node_rotation_data toneMint
class node_pcb_used,node_rotation_script toneTeal
```

## Components

### Defect Annotations

- [Defect Labels](https://github.com/ironbrotherstyle/pcb-dataset/tree/master/Annotations): `Annotations`

### PCB Images

- [PCB Images](https://github.com/ironbrotherstyle/pcb-dataset/tree/master/images): `images`

### Rotated Data

- [Rotation Sets](https://github.com/ironbrotherstyle/pcb-dataset/tree/master/rotation): `rotation`

### Other components

- **Dataset User**
- [PCB_USED](https://github.com/ironbrotherstyle/pcb-dataset/tree/master/PCB_USED): `PCB_USED`
- [Image Rotation Script](https://github.com/ironbrotherstyle/pcb-dataset/blob/master/rotate.py): `rotate.py`

## Connections

- Dataset User → Defect Labels: uses dataset (evidence: `README.md`)
- Dataset User → PCB Images: uses dataset (evidence: `README.md`)
