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.9.0.tar.gz (41.0 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.9.0-py3-none-any.whl (74.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kiarina_agi_image-2.9.0.tar.gz
  • Upload date:
  • Size: 41.0 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.9.0.tar.gz
Algorithm Hash digest
SHA256 2056346672331ffea5d1a822ed716d19074013bc7e0a2266d7ae238a9ab160fd
MD5 4b48fa1fac2651954c1d40d605cbf3f5
BLAKE2b-256 404938b032df36ccbf8ac558ecb2cac2a3212f7050a6193b4b604c662182c89f

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_image-2.9.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.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kiarina_agi_image-2.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69f544d5ef8d2c914a8730e911cf5980c99e5509e9b381c8cb4f2b7ae7774ea1
MD5 43b21fca4f6f4b5970afb003667ca1fc
BLAKE2b-256 d23b02b53b6bd1d8dd2c124df81ea5fe031cffc8440749127c5c62b476927148

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_image-2.9.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