Spaces:
Sleeping
Sleeping
|
Download README.md from Sanjay1905/pcb-image2schematic: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/spaces/Sanjay1905/pcb-image2schematic/resolve/main/README.md
- Command line
-
hf download hf://spaces/Sanjay1905/pcb-image2schematic/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Sanjay1905/pcb-image2schematic/resolve/main/README.md
1.34 kB
A newer version of the Gradio SDK is available: 6.32.0
metadata
title: PCB Image2Schematic
emoji: π
colorFrom: green
colorTo: blue
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
python_version: '3.11'
π PCB Image β Schematic
Convert a PCB photo into a KiCAD schematic automatically using AI.
Pipeline
- Component Detection β YOLOv8 via Roboflow API detects resistors, capacitors, ICs etc.
- IC Text Reading β EasyOCR reads part numbers from chip silkscreen
- Netlist Generation β OpenCV trace following + proximity detection finds connections
- KiCAD Output β Generates
.kicad_schfile ready to open in KiCAD
Local Setup
git clone https://github.com/sanjay-r123/pcb-image2schematic
cd pcb-image2schematic
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python app.py
Then open http://localhost:7860
Run Individual Stages
python detector.py "your_pcb.jpg"
python ocr.py "your_pcb.jpg" "your_pcb_results.json"
python netlist.py "your_pcb.jpg" "your_pcb_results_ocr.json"
python kicad_writer.py "your_pcb_netlist.json"
Tech Stack
- Roboflow YOLOv8 β component detection
- EasyOCR β IC text reading
- OpenCV β trace detection
- KiCAD format β schematic output
- Gradio β web UI