Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-13T17:33:00.000Z (15 days ago)
- Last Synced: 2025-01-20T09:02:19.170Z (9 days ago)
- Topics: python, streamlit, streamlit-component
- Language: Python
- Homepage: https://image-coordinates.streamlit.app/
- Size: 302 KB
- Stars: 86
- Watchers: 1
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streamlit-Image-Coordinates
[![Releases](https://img.shields.io/pypi/v/streamlit-image-coordinates)](https://pypi.org/project/streamlit-image-coordinates/)
![Python Versions](https://img.shields.io/pypi/pyversions/streamlit-image-coordinates.svg)
![License](https://img.shields.io/github/license/blackary/streamlit-image-coordinates)
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](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)
```