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.2.1.tar.gz
(940.4 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.2.1.tar.gz.
File metadata
- Download URL: vlm_recog-0.2.1.tar.gz
- Upload date:
- Size: 940.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ca25c40c3c8b1c5a1ebdb0d31a3d103c2304e3ce389e6857b7139e59d0ff6ce
|
|
| MD5 |
52c315822fd35b2eb70c41c2aba217cd
|
|
| BLAKE2b-256 |
2d1e56e9f03082215c63f78c0fde12c85d2f297b762cbefbc1ef518058da72c9
|
File details
Details for the file vlm_recog-0.2.1-py3-none-any.whl.
File metadata
- Download URL: vlm_recog-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92fec8e708480dec7e0234e7c75bfda855bd85b48f9a8cedb950bd5fa4ada63c
|
|
| MD5 |
46c652ee6c25ee703e7823fa22e3e3ff
|
|
| BLAKE2b-256 |
a4280ec68efc180466432c8511747448244b91bc7b0fbcb6433b4eec4818bb37
|