Image detection, embedding, and generation for AI agents
Project description
kiarina-agi-image
English | 日本語
[!NOTE] What is this?
kiarina-agi-imageprovides 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-geminiimage-generation-provider-google |
| httpx | image-embedding-provider-qwen3-vlimage-generation-provider-openai |
| kiarina-lib-google | image-embedding-provider-geminiimage-generation-provider-google |
| kiarina-lib-openai | image-generation-provider-openai |
| onnxruntime | image-detection-provider-dfineimage-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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd3bddd97f670e1a5186bdbfd66b08987c36c3f726fbd6ee627047accce9f425
|
|
| MD5 |
d3f5a743443f60866b89910706101119
|
|
| BLAKE2b-256 |
b36b57bb073be401d2bdb9fffe0b4906de9a3330c51ed1766ea0400da2336356
|
Provenance
The following attestation bundles were made for kiarina_agi_image-2.8.0.tar.gz:
Publisher:
release-pypi.yml on kiarina/kiarina-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kiarina_agi_image-2.8.0.tar.gz -
Subject digest:
cd3bddd97f670e1a5186bdbfd66b08987c36c3f726fbd6ee627047accce9f425 - Sigstore transparency entry: 2111941790
- Sigstore integration time:
-
Permalink:
kiarina/kiarina-python@c9a6ae0e9e6e92f1890b5da1e6a2bf4fcbd6fdc2 -
Branch / Tag:
refs/tags/v2.8.0 - Owner: https://github.com/kiarina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c9a6ae0e9e6e92f1890b5da1e6a2bf4fcbd6fdc2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kiarina_agi_image-2.8.0-py3-none-any.whl.
File metadata
- Download URL: kiarina_agi_image-2.8.0-py3-none-any.whl
- Upload date:
- Size: 74.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70d33d701ea9b06887f7f6146480db93518effaefe1dedd9f48ff288c0cf2cf1
|
|
| MD5 |
93174b3620a404287858c85259657bd9
|
|
| BLAKE2b-256 |
292d071b28ec74256ce98541d9704682406dab80c2b994e777e0a96dc087f380
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kiarina_agi_image-2.8.0-py3-none-any.whl -
Subject digest:
70d33d701ea9b06887f7f6146480db93518effaefe1dedd9f48ff288c0cf2cf1 - Sigstore transparency entry: 2111945247
- Sigstore integration time:
-
Permalink:
kiarina/kiarina-python@c9a6ae0e9e6e92f1890b5da1e6a2bf4fcbd6fdc2 -
Branch / Tag:
refs/tags/v2.8.0 - Owner: https://github.com/kiarina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c9a6ae0e9e6e92f1890b5da1e6a2bf4fcbd6fdc2 -
Trigger Event:
push
-
Statement type: