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.2.0.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.2.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vlm_recog-0.2.0.tar.gz
Algorithm Hash digest
SHA256 da23a1453258adbbf60826933ddc76adba143e26475c46ba7c0fd3f9782f905e
MD5 b9a0690d987f10e02cb01feb53c71bfa
BLAKE2b-256 bc16e663c7f953a91a7ba7d37c8c6aa002fb4e75ae4a73d86186ba8d494e0d3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vlm_recog-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for vlm_recog-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71485b617003ce5b03e783d7cb7a56e8eacf9aefdc3bfb181c9eb22ff525773a
MD5 79a073a998f491ce12489133bb441654
BLAKE2b-256 1865d578778fda34ae8e8726ca7991ffed1c2ac2e5455718a66ee5463b725745

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