/point
Locate specific objects or regions in images by getting their coordinates.
Quick Start
First, install the package:
pip install moondream
Place an image file in your working directory, then:
import moondream as md from PIL import Image model = md.vl(api_key="your-api-key") # Load an image (supports PIL.Image, numpy arrays, or file paths) image = Image.open("./image.jpg") # Returns List[Dict[str, float]] points = model.point(image, "the red car") print(points) # [{"x": 0.4, "y": 0.6}] # Normalized coordinates (0,0) is top-left, (1,1) is bottom-right
The client libraries provide the simplest integration for working with the Moondream API.