streamlit-image-coordinates
Streamlit component that displays an image and returns the coordinates when you click on it
What it is and what it does
Streamlit-Image-Coordinates is a custom Streamlit component that embeds an interactive image viewer in a Streamlit app. When a user clicks on the displayed image, the component captures and returns the pixel coordinates of the click along with the Unix timestamp of when the click occurred. This is useful for building interactive image annotation, selection, or analysis tools within Streamlit applications.
The package wraps a single runtime dependency on streamlit and is designed to integrate seamlessly into Streamlit workflows. It supports modern Python versions (3.10 through 3.13) and has been actively maintained. The component is distributed as a pure Python wheel with no compiled dependencies, making installation straightforward across platforms.
Use it for:
- Build an image annotation tool where users click to mark regions of interest and capture their pixel locations.
- Create an interactive image explorer that logs where users click to identify areas of attention.
- Develop a data labeling interface that records pixel coordinates for training computer vision models.
- Implement a point-and-click interface for selecting features or objects within an image for further analysis.
- Track user interaction patterns by recording click coordinates and timestamps on reference images.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Streamlit component that displays an image and captures pixel coordinates when clicked, returning both the x,y position and the click timestamp in Unix format.
Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a specific gap in Streamlit's built-in components. Install friction is minimal. It is worth adding if you need interactive image coordinate capture in a Streamlit app; skip it if your workflow does not require click-based image interaction.
Install
streamlit-image-coordinates on PyPI
pip
pip install streamlit-image-coordinatesuv
uv add streamlit-image-coordinatespoetry
poetry add streamlit-image-coordinatesInstalling streamlit-image-coordinates
Before you install
Low friction install with a single runtime dependency on streamlit. Actively maintained as of the latest release.
License in practice
MIT License permits unrestricted use, modification, and distribution with only the requirement to include the license notice and copyright.
Quickstart
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)
Requires Python 3.10 or later and a working Streamlit environment.
Verify before relying
- Whether the component works with local file paths in addition to URLs
- What data structure the returned value contains beyond coordinates and timestamp
- Whether the component supports image scaling or zoom interactions
- Performance characteristics with large images or rapid clicks
Package facts
| License | MIT License Copyright (c) 2022, Zachary Blackwood Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — streamlit |
| Maintenance | actively maintained — 0 days since the last release |
| First released | |
| Downloads | 297,582/month — #7,881 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: streamlit_image_coordinates-0.4.1-py3-none-any.whl
Keywords: python, streamlit, images, component, streamlit-component
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
MouseInfoMouseInfo displays the XY coordinates and RGB…
copyleft · top 5,000 on PyPI
streamlit-cardA Streamlit component that renders interactive…
permissive · top 15,000 on PyPI
streamlit-plotly-eventsCaptures click, select, and hover events from…
unclear · top 15,000 on PyPI
streamlit-sortablesStreamlit Sortables adds drag-and-drop sortable…
permissive · top 15,000 on PyPI
streamlit-avatarRenders clickable avatar icons with images,…
unclear · top 15,000 on PyPI
streamlit-pdf-viewerStreamlit component that renders PDF documents…
unclear · top 15,000 on PyPI
streamlit-camera-input-liveProvides a Streamlit component that captures…
unclear · top 15,000 on PyPI
streamlit-pdfAdds a PDF viewer component to Streamlit apps…
permissive · top 15,000 on PyPI
streamlit-foliumRenders interactive Folium maps in Streamlit…
unclear · top 15,000 on PyPI
PyScreezePyScreeze captures screenshots and locates…
permissive · top 5,000 on PyPI