dangkhoasdc / streamlit-image-coordinates

Get the coordinates of clicks on an image in your streamlit app

Home Page:https://image-coordinates.streamlit.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamlit-Image-Coordinates

Releases Python Versions License Black

Streamlit App

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

Installation instructions

pip install streamlit-image-coordinates

Usage instructions

import streamlit as st

from streamlit_image_coordinates import streamlit_image_coordinates

value = streamlit_image_coordinates("https://placekitten.com/200/300")

st.write(value)

About

Get the coordinates of clicks on an image in your streamlit app

https://image-coordinates.streamlit.app/

License:MIT License


Languages

Language:Python 71.6%Language:JavaScript 24.3%Language:HTML 4.1%