Add your description here
Project description
VLM-RECog
A Python library for zero-shot object detection and segmentation using Vision-Language Models (VLMs), built on Google's Gemini 2.5 Flash model.
Installation
pip install vlm-recog
export GEMINI_API_KEY=<your_api_key>
Requirements
- Python 3.11+
- Google Gemini API key (set as
GEMINI_API_KEYenvironment variable)
Quick Start
from PIL import Image
from vlm_recog.detection import detect
from vlm_recog.visualization import draw_detections
# Load an image
image = Image.open("path/to/image.jpg")
# Detect objects by text labels
result = detect(image, ["dog", "bicycle", "person"])
# Visualize results
output_image = draw_detections(image, result)
output_image.show()
Demo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vlm_recog-0.1.10.tar.gz
(1.0 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vlm_recog-0.1.10.tar.gz.
File metadata
- Download URL: vlm_recog-0.1.10.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf2c3b5d5dff6054f1011a880741f3ad58557118f23c6cc6d8b708bd85fbacce
|
|
| MD5 |
a9afffe2292e4865fae3d384871e6a6d
|
|
| BLAKE2b-256 |
d763d3ed696481a39a641c4b50d9c6ac5c8aa02334bf66e145606cb785acc99e
|
File details
Details for the file vlm_recog-0.1.10-py3-none-any.whl.
File metadata
- Download URL: vlm_recog-0.1.10-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75ee34644e65c9abf3929059066779722b658bb2b95b51ec74c8dc859232f226
|
|
| MD5 |
574836a0c6c85197ce2d8e9e25672bb5
|
|
| BLAKE2b-256 |
379572b5faf65bcbb167c51c7e43a8955087ffa84f9bf3ec8609975d650040a3
|