Skip to main content

Image detection, embedding, and generation for AI agents

Project description

kiarina-agi-image

English | 日本語

PyPI Python License

[!NOTE] What is this? kiarina-agi-image provides image detection, embedding, and generation for AI agents.

Dependencies

Required Dependencies

Package Version License
kiarina-agi-base >=2.7.0 MIT
kiarina-agi-data >=2.7.0 MIT
kiarina-agi-file >=2.6.0 MIT
kiarina-utils-app >=2.4.0 MIT
kiarina-utils-common >=2.3.0 MIT
kiarina-utils-file >=2.3.1 MIT
NumPy >=2.0,<3 BSD-3-Clause
OpenCV >=4.12.0,<5 Apache-2.0
Pillow >=11.3.0,<12 HPND
Pydantic >=2.11.7,<3 MIT
pydantic-settings >=2.10.1,<3 MIT
pydantic-settings-manager >=3.2.0 MIT

Optional Dependencies

Package Extras
google-genai image-embedding-provider-gemini
image-generation-provider-google
httpx image-embedding-provider-qwen3-vl
image-generation-provider-openai
kiarina-lib-google image-embedding-provider-gemini
image-generation-provider-google
kiarina-lib-openai image-generation-provider-openai
onnxruntime image-detection-provider-dfine
image-embedding-provider-siglip2
openai image-generation-provider-openai

The all Extra installs every optional dependency listed above.

Installation

pip install kiarina-agi-image

To use every provider implementation:

pip install "kiarina-agi-image[all]"

Features

  • Image Detection Detect objects and faces, crop objects, and align faces.
  • Image Embedding Create image embeddings.
  • Image Generation Generate and edit images with Google, OpenAI, and mock providers.

Model Cache

YuNet, D-FINE, SFace, and SigLIP2 download their default model on first use when model_path is None. D-FINE also downloads a verified config.json and generates default labels from it when label_map_path is None.

Files are cached under user_directory.get_user_cache_dir() / "models" / <implementation>. An explicit path always takes precedence and prevents downloading the corresponding file.

The default download URL, SHA-256 digest, and cache filename are provider settings and can be overridden through settings, environment variables, or config. When changing the source, also change the filename if an existing cached file should not be reused.

API Reference

kiarina.agi.image_detection_model

Exports image detection model settings, registries, detection helpers, and cropping helpers.

kiarina.agi.image_detection_provider

Exports the image detection provider protocol, base class, detection result view, and registry.

kiarina.agi.image_embedding_model

Exports image embedding model settings, registry, and embedding helper.

kiarina.agi.image_embedding_provider

Exports the image embedding provider protocol, base class, and registry.

kiarina.agi.image_generation_model

Exports image generation model settings, registry, and generation helper.

kiarina.agi.image_generation_provider

Exports the image generation provider protocol, base class, result view, and registry.

Import provider implementations from the matching kiarina.agi.*_provider_impl.<name> path.

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

kiarina_agi_image-2.8.0.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

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

kiarina_agi_image-2.8.0-py3-none-any.whl (74.9 kB view details)

Uploaded Python 3

File details

Details for the file kiarina_agi_image-2.8.0.tar.gz.

File metadata

  • Download URL: kiarina_agi_image-2.8.0.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kiarina_agi_image-2.8.0.tar.gz
Algorithm Hash digest
SHA256 cd3bddd97f670e1a5186bdbfd66b08987c36c3f726fbd6ee627047accce9f425
MD5 d3f5a743443f60866b89910706101119
BLAKE2b-256 b36b57bb073be401d2bdb9fffe0b4906de9a3330c51ed1766ea0400da2336356

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_image-2.8.0.tar.gz:

Publisher: release-pypi.yml on kiarina/kiarina-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kiarina_agi_image-2.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kiarina_agi_image-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70d33d701ea9b06887f7f6146480db93518effaefe1dedd9f48ff288c0cf2cf1
MD5 93174b3620a404287858c85259657bd9
BLAKE2b-256 292d071b28ec74256ce98541d9704682406dab80c2b994e777e0a96dc087f380

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_image-2.8.0-py3-none-any.whl:

Publisher: release-pypi.yml on kiarina/kiarina-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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