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.13+
- 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.0.tar.gz
(929.3 kB
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.0.tar.gz.
File metadata
- Download URL: vlm_recog-0.1.0.tar.gz
- Upload date:
- Size: 929.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
449d508112ee7015a1c9aa3a47bd4baf73501d61bf928392b01188a3024730b4
|
|
| MD5 |
c434fced6238097149a4d948ace89997
|
|
| BLAKE2b-256 |
76aabc36d9217832cd45497698adb4cfed05e2b7b8aaf6e518b4ee1a2f26b8dc
|
File details
Details for the file vlm_recog-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vlm_recog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
057efb3e5c677d376a7dafdea6c96009aad047062b4bf2a451c5fbf1d5a0c117
|
|
| MD5 |
71b1638441fb48dc00a7fc837b217a9c
|
|
| BLAKE2b-256 |
69f823462054c07469259dee56d7343743325a6b84cf687a50fa2e1749bf0ec9
|