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.2.tar.gz (943.5 kB 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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vlm_recog-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0256e7f6dcdb9bf9dc916bbc132c2ad821e4745e99a1240880b018d9991af7d5
MD5 ee6b359b6897edffcc426f7e827df8b9
BLAKE2b-256 15f9ddce1c3968ef00d0bf37f8aff8ce2b384dec1a0b3b337a0434c01cc6479d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vlm_recog-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b64373268fd1f136962380c01c881a967932027c26cb1ec7043d4bcf1a2f6d8a
MD5 efc15b94cb272fcdaa00b117de6b2181
BLAKE2b-256 268e1f894d4fc911aba1f3e11841a6f460bede4e527de12c99fa3a793b613dec

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