minimal docs and visual presentation
Browse files- .gitattributes +1 -0
- .gitignore +1 -0
- README.md +34 -1
- media/capture.gif +3 -0
- example1.jpg β media/example1.jpg +0 -0
- example2.jpg β media/example2.jpg +0 -0
- media/upload.gif +3 -0
- π€_Hello.py +18 -3
.gitattributes
CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
example1.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
example2.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
example1.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
example2.jpg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
media/* filter=lfs diff=lfs merge=lfs -text
|
.gitignore
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
__pycache__
|
2 |
main.ipynb
|
3 |
blankexample.jpeg
|
|
|
|
1 |
__pycache__
|
2 |
main.ipynb
|
3 |
blankexample.jpeg
|
4 |
+
models/TrOCR
|
README.md
CHANGED
@@ -10,4 +10,37 @@ pinned: false
|
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
+
# Circuit Sketch Recognition π
|
14 |
+
|
15 |
+
## About the App
|
16 |
+
The **Circuit Sketch Recognition** app demonstrates the power of AI to recognize hand-drawn circuit diagrams. By leveraging advanced models like TrOCR for text recognition and YOLOv8 for component detection, this app showcases how easily computers can understand sketches (Fine tuned on a CGHD-2304 dataset).
|
17 |
+
|
18 |
+
<p align="center">
|
19 |
+
<img src="media/capture.gif" alt="Capture GIF" width="45%"/>
|
20 |
+
<img src="media/upload.gif" alt="Upload GIF" width="45%"/>
|
21 |
+
</p>
|
22 |
+
|
23 |
+
|
24 |
+
## Features
|
25 |
+
- **Upload or Capture**: Upload a picture of your circuit sketch or use your camera to capture one in real-time.
|
26 |
+
- **Dual Display**: View both capture and upload options in a side-by-side format for easy access.
|
27 |
+
- **Example Gallery**: Explore a gallery of recognized sketches to see the accuracy and capabilities of our AI models.
|
28 |
+
|
29 |
+
## Deployment
|
30 |
+
|
31 |
+
Deployed on Streamlit and Hugging Face Spaces:
|
32 |
+
|
33 |
+
<a href="https://circuitsketchrecognition.streamlit.app/">
|
34 |
+
<img src="https://streamlit.io/images/brand/streamlit-mark-color.png" alt="Streamlit" width="30"/> Streamlit App
|
35 |
+
</a>
|
36 |
+
|
37 |
+
<a href="https://huggingface.co/spaces/edesaras/CircuitSketchRecognition">
|
38 |
+
<img src="https://huggingface.co/datasets/huggingface/brand-assets/resolve/main/hf-logo.png" alt="Huggingface" width="30"/> Huggingface App
|
39 |
+
</a>
|
40 |
+
|
41 |
+
## Getting Started
|
42 |
+
To get started with the Circuit Sketch Recognition app, simply clone the repository and run the `π€_Hello.py` file with Streamlit:
|
43 |
+
|
44 |
+
```bash
|
45 |
+
git clone https://github.com/edesaras/CircuitSketchRecognition.git
|
46 |
+
streamlit run π€_Hello.py
|
media/capture.gif
ADDED
Git LFS Details
|
example1.jpg β media/example1.jpg
RENAMED
File without changes
|
example2.jpg β media/example2.jpg
RENAMED
File without changes
|
media/upload.gif
ADDED
Git LFS Details
|
π€_Hello.py
CHANGED
@@ -6,10 +6,25 @@ if __name__ == "__main__":
|
|
6 |
page_title="Circuit Sketch Recognizer",
|
7 |
layout="wide"
|
8 |
)
|
9 |
-
|
10 |
st.title("Circuit Sketch Recognition")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
col1, col2 = st.columns(2)
|
12 |
with col1:
|
13 |
-
st.image('
|
14 |
with col2:
|
15 |
-
st.image('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
page_title="Circuit Sketch Recognizer",
|
7 |
layout="wide"
|
8 |
)
|
|
|
9 |
st.title("Circuit Sketch Recognition")
|
10 |
+
st.markdown(
|
11 |
+
'''
|
12 |
+
Can computers recognize hand-drawn circuit sketches? Absolutely!
|
13 |
+
|
14 |
+
Upload a picture of your circuit sketch or take a new one to see it in action.
|
15 |
+
|
16 |
+
This project leverages fine tuned TrOCR for text recognition and YOLOv8 for component detection, using CGHD-2304 dataset.
|
17 |
+
'''
|
18 |
+
)
|
19 |
+
|
20 |
col1, col2 = st.columns(2)
|
21 |
with col1:
|
22 |
+
st.image('media/capture.gif', use_column_width=True, caption='Take a Picture')
|
23 |
with col2:
|
24 |
+
st.image('media/upload.gif', use_column_width=True, caption='Upload an Image')
|
25 |
+
st.markdown('Here are some more examples!')
|
26 |
+
col3, col4 = st.columns(2)
|
27 |
+
with col3:
|
28 |
+
st.image('media/example1.jpg', use_column_width=True, caption='Example 1')
|
29 |
+
with col4:
|
30 |
+
st.image('media/example2.jpg', use_column_width=True, caption='Example 2')
|