Commit
·
6e07b6f
1
Parent(s):
af11980
app.py updates
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ with ds[0]['image'] as img:
|
|
| 33 |
|
| 34 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
| 35 |
center = point
|
| 36 |
-
radius =
|
| 37 |
return (
|
| 38 |
center[0] - radius,
|
| 39 |
center[1] - radius,
|
|
@@ -45,7 +45,7 @@ with ds[0]['image'] as img:
|
|
| 45 |
# Draw an ellipse at each coordinate in points
|
| 46 |
for point in st.session_state["points"]:
|
| 47 |
coords = get_ellipse_coords(point)
|
| 48 |
-
draw.rectangle(coords, outline="green",width=
|
| 49 |
|
| 50 |
value = streamlit_image_coordinates(img, key="pil")
|
| 51 |
|
|
|
|
| 33 |
|
| 34 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
| 35 |
center = point
|
| 36 |
+
radius = 16
|
| 37 |
return (
|
| 38 |
center[0] - radius,
|
| 39 |
center[1] - radius,
|
|
|
|
| 45 |
# Draw an ellipse at each coordinate in points
|
| 46 |
for point in st.session_state["points"]:
|
| 47 |
coords = get_ellipse_coords(point)
|
| 48 |
+
draw.rectangle(coords, outline="green",width=2)
|
| 49 |
|
| 50 |
value = streamlit_image_coordinates(img, key="pil")
|
| 51 |
|