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.3.tar.gz (940.1 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.1.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vlm_recog-0.1.3.tar.gz
Algorithm Hash digest
SHA256 adbfc29a4bc14dd76dbbf19b85968371a54d844f8919c5f1dbfa5916bf1e72a7
MD5 2570a81b10c21987f097ec3bbfeeb742
BLAKE2b-256 802bb1680aff521d6ba3bf2ffefe62e610c8dd7ddfe6839a38c2c5acaae34ac2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vlm_recog-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42ed6412c4b2bf2847ef91aee708e3e5dab4d0f0061763f0add1448f91e9c41b
MD5 7a888f7d655aeaf831aaa4b55cde14e2
BLAKE2b-256 b11143c7cd4912654eb2c5941788b8675f644f914653339d5403b31857556e89

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