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: about 1 month 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T17:33:08.000Z (about 2 months ago)
- Last Synced: 2024-09-27T22:02:31.882Z (about 2 months ago)
- Topics: python, streamlit, streamlit-component
- Language: Python
- Homepage: https://image-coordinates.streamlit.app/
- Size: 303 KB
- Stars: 75
- Watchers: 1
- Forks: 10
- 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
## 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)
```