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.4.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.4.tar.gz.
File metadata
- Download URL: vlm_recog-0.1.4.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 |
fcc3895d55fa711d7353780ebb58d48fd6abc908fd53759acd4de5aecc73b4e1
|
|
| MD5 |
4125ae8ff7f8c675f3e3f4e039d3c06c
|
|
| BLAKE2b-256 |
3301923d960855299c5a49f64651cd2751fb983efc3d12cbae7a7472f746aaba
|
File details
Details for the file vlm_recog-0.1.4-py3-none-any.whl.
File metadata
- Download URL: vlm_recog-0.1.4-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ed3f957fd376489974cf3125ad844bfe6394dd29a5093db75b5b4701b7b9e2b
|
|
| MD5 |
3908cb04dad1196fe21299a07e42e69e
|
|
| BLAKE2b-256 |
c8e72d92bdafb675425a96e860ca12ce6ccdd13e880937bac953acde36664a78
|