Author: @blackary
Code: https://github.com/blackary/streamlit-image-coordinates
Streamlit component that displays an image and returns the coordinates when you click on it. Also returns click event time in unix format.
pip install streamlit-image-coordinates
import streamlit as st
from streamlit_image_coordinates import streamlit_image_coordinates
value = streamlit_image_coordinates("https://placekitten.com/200/300")
st.write(value)