Commit
·
9303628
1
Parent(s):
4f0f93d
updates
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ with col1:
|
|
135 |
value = streamlit_image_coordinates(current_image, key="pil")
|
136 |
|
137 |
if value is not None:
|
138 |
-
point = value["x"]//stride*stride
|
139 |
|
140 |
if point != st.session_state["point"]:
|
141 |
st.session_state["point"]=point
|
|
|
135 |
value = streamlit_image_coordinates(current_image, key="pil")
|
136 |
|
137 |
if value is not None:
|
138 |
+
point = (value["x"]-8)//stride*stride, (value["y"]-8)//stride*stride
|
139 |
|
140 |
if point != st.session_state["point"]:
|
141 |
st.session_state["point"]=point
|