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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vlm_recog-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 b262a6b2578539823a3473af153b7b0a4a4fbf8861a1b7577fa48448139edc6f
MD5 574cc3ae97416ad9463805d5e22fea25
BLAKE2b-256 d91363b4994c13cc2401e82baaea6288845384dc45356669c81acb21f2b44d48

See more details on using hashes here.

File details

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

File metadata

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

Hashes for vlm_recog-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d7414ccf2b651df328ce33b4eb122555c96ffdda9a3eaacb1ad6b5badff0f949
MD5 515d96876c10f5a17141c21e84f07930
BLAKE2b-256 2efc371d67e07330a1e83d35e2a5ec229faaeb67b7138396218f9d8ee2fdf419

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