Sanjay1905 commited on
Commit
21ee677
Β·
verified Β·
1 Parent(s): 07ee8a0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -12
README.md CHANGED
@@ -1,12 +1,46 @@
1
- ---
2
- title: Pcb Image2schematic
3
- emoji: πŸš€
4
- colorFrom: green
5
- colorTo: red
6
- sdk: gradio
7
- sdk_version: 6.6.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: PCB Image2Schematic
3
+ emoji: πŸ”Œ
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 4.44.1
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
+
12
+ # πŸ”Œ PCB Image β†’ Schematic
13
+
14
+ Convert a PCB photo into a KiCAD schematic automatically using AI.
15
+
16
+ ## Pipeline
17
+ 1. **Component Detection** β€” YOLOv8 via Roboflow API detects resistors, capacitors, ICs etc.
18
+ 2. **IC Text Reading** β€” EasyOCR reads part numbers from chip silkscreen
19
+ 3. **Netlist Generation** β€” OpenCV trace following + proximity detection finds connections
20
+ 4. **KiCAD Output** β€” Generates `.kicad_sch` file ready to open in KiCAD
21
+
22
+ ## Local Setup
23
+ ```bash
24
+ git clone https://github.com/sanjay-r123/pcb-image2schematic
25
+ cd pcb-image2schematic
26
+ python -m venv venv
27
+ venv\Scripts\activate
28
+ pip install -r requirements.txt
29
+ python app.py
30
+ ```
31
+ Then open http://localhost:7860
32
+
33
+ ## Run Individual Stages
34
+ ```bash
35
+ python detector.py "your_pcb.jpg"
36
+ python ocr.py "your_pcb.jpg" "your_pcb_results.json"
37
+ python netlist.py "your_pcb.jpg" "your_pcb_results_ocr.json"
38
+ python kicad_writer.py "your_pcb_netlist.json"
39
+ ```
40
+
41
+ ## Tech Stack
42
+ - Roboflow YOLOv8 β€” component detection
43
+ - EasyOCR β€” IC text reading
44
+ - OpenCV β€” trace detection
45
+ - KiCAD format β€” schematic output
46
+ - Gradio β€” web UI