Commit
·
31b5ef1
1
Parent(s):
aca188e
app.py updates
Browse files
app.py
CHANGED
@@ -4,6 +4,15 @@ from PIL import Image, ImageDraw
|
|
4 |
from streamlit_image_coordinates import streamlit_image_coordinates
|
5 |
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
st.set_page_config(
|
8 |
page_title="Streamlit Image Coordinates: Image Update",
|
9 |
page_icon="🎯",
|
@@ -19,7 +28,7 @@ if "points" not in st.session_state:
|
|
19 |
#"## Click on image"
|
20 |
|
21 |
|
22 |
-
with
|
23 |
draw = ImageDraw.Draw(img)
|
24 |
|
25 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
|
|
4 |
from streamlit_image_coordinates import streamlit_image_coordinates
|
5 |
|
6 |
|
7 |
+
from datasets import load_dataset
|
8 |
+
|
9 |
+
ds = load_dataset("Circularmachines/batch_indexing_machine_100_small_imgs", split="train")
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
st.set_page_config(
|
17 |
page_title="Streamlit Image Coordinates: Image Update",
|
18 |
page_icon="🎯",
|
|
|
28 |
#"## Click on image"
|
29 |
|
30 |
|
31 |
+
with ds[0]['image'] as img:
|
32 |
draw = ImageDraw.Draw(img)
|
33 |
|
34 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|