Skip to main content

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_KEY environment 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

output

Project details


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.7.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vlm_recog-0.1.7-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file vlm_recog-0.1.7.tar.gz.

File metadata

  • Download URL: vlm_recog-0.1.7.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for vlm_recog-0.1.7.tar.gz
Algorithm Hash digest
SHA256 0d81312ffc3d34cb2291184dc90133dd70478541a0c17133c10cb6be0391f0c3
MD5 b9ee22804e0e87c6d9c224faa0d54883
BLAKE2b-256 a4df38461ed87d546834207d37898ebff880aefd13dbf17b4e60a2b8e8735057

See more details on using hashes here.

File details

Details for the file vlm_recog-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: vlm_recog-0.1.7-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

Hashes for vlm_recog-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 da8c0c701f90860311ebf051a4a056800657129969541e232b2dbdba3453d850
MD5 33606b4bb51e3fc3f8ec3ff5261569a9
BLAKE2b-256 50e870e22b271a6e50d12e92d41782fc388d942b628eaac5b9118bc983e446b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page