root
commited on
Commit
·
f9fb74c
1
Parent(s):
26b8b00
app.py updates
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ with Image.open("kitty.jpeg") as img:
|
|
24 |
|
25 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
26 |
center = point
|
27 |
-
radius =
|
28 |
return (
|
29 |
center[0] - radius,
|
30 |
center[1] - radius,
|
@@ -36,7 +36,7 @@ with Image.open("kitty.jpeg") as img:
|
|
36 |
# Draw an ellipse at each coordinate in points
|
37 |
for point in st.session_state["points"]:
|
38 |
coords = get_ellipse_coords(point)
|
39 |
-
draw.
|
40 |
|
41 |
value = streamlit_image_coordinates(img, key="pil")
|
42 |
|
|
|
24 |
|
25 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
26 |
center = point
|
27 |
+
radius = 32
|
28 |
return (
|
29 |
center[0] - radius,
|
30 |
center[1] - radius,
|
|
|
36 |
# Draw an ellipse at each coordinate in points
|
37 |
for point in st.session_state["points"]:
|
38 |
coords = get_ellipse_coords(point)
|
39 |
+
draw.rectangle(coords, outline="green")
|
40 |
|
41 |
value = streamlit_image_coordinates(img, key="pil")
|
42 |
|