https://github.com/blackary/streamlit-image-coordinates
Get the coordinates of clicks on an image in your streamlit app
https://github.com/blackary/streamlit-image-coordinates
python streamlit streamlit-component
Last synced: about 2 months ago
JSON representation
Get the coordinates of clicks on an image in your streamlit app
- Host: GitHub
- URL: https://github.com/blackary/streamlit-image-coordinates
- Owner: blackary
- License: mit
- Created: 2022-12-22T17:29:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T17:14:17.000Z (2 months ago)
- Last Synced: 2025-05-05T18:36:02.585Z (2 months ago)
- Topics: python, streamlit, streamlit-component
- Language: Python
- Homepage: https://image-coordinates.streamlit.app/
- Size: 311 KB
- Stars: 90
- Watchers: 1
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streamlit-Image-Coordinates
[](https://pypi.org/project/streamlit-image-coordinates/)


[](https://github.com/psf/black)[](https://image-coordinates.streamlit.app)
Author: [@blackary](https://github.com/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.## Installation instructions
```sh
pip install streamlit-image-coordinates
```## Usage instructions
```python
import streamlit as stfrom streamlit_image_coordinates import streamlit_image_coordinates
value = streamlit_image_coordinates("https://placekitten.com/200/300")
st.write(value)
```