llama-index-tools-azure-cv


Namellama-index-tools-azure-cv JSON
Version 0.4.1 PyPI version JSON
download
home_pageNone
Summaryllama-index tools azure_cv integration
upload_time2025-09-08 20:48:39
maintainerajhofmann
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseNone
keywords cv image vision
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Azure Computer Vision Tool

This tool connects to a Azure account and allows an Agent to perform a variety of computer vision tasks on image urls.

You will need to set up an api key and computer vision instance using Azure, learn more here: https://azure.microsoft.com/en-ca/products/cognitive-services/computer-vision

## Usage

This tool has a more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-azure-cv/examples/azure_vision.ipynb)

Here's an example usage of the AzureCVToolSpec.

```python
from llama_index.tools.azure_cv import AzureCVToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = AzureCVToolSpec(api_key="your-key", resource="your-resource")

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(), llm=OpenAI(model="gpt-4.1")
)

await agent.run(
    "caption this image and tell me what tags are in it https://portal.vision.cognitive.azure.com/dist/assets/ImageCaptioningSample1-bbe41ac5.png"
)
await agent.run(
    "caption this image and read any text https://portal.vision.cognitive.azure.com/dist/assets/OCR3-4782f088.jpg"
)
```

`process_image`: Send an image for computer vision classification of objects, tags, captioning or OCR.

This loader is designed to be used as a way to load data as a Tool in a Agent.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-tools-azure-cv",
    "maintainer": "ajhofmann",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "cv, image, vision",
    "author": null,
    "author_email": "Your Name <you@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/15/94/37620be8ced2d6d43022819c5966c131998bb4374c0418f7ab40529a20a9/llama_index_tools_azure_cv-0.4.1.tar.gz",
    "platform": null,
    "description": "# Azure Computer Vision Tool\n\nThis tool connects to a Azure account and allows an Agent to perform a variety of computer vision tasks on image urls.\n\nYou will need to set up an api key and computer vision instance using Azure, learn more here: https://azure.microsoft.com/en-ca/products/cognitive-services/computer-vision\n\n## Usage\n\nThis tool has a more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-azure-cv/examples/azure_vision.ipynb)\n\nHere's an example usage of the AzureCVToolSpec.\n\n```python\nfrom llama_index.tools.azure_cv import AzureCVToolSpec\nfrom llama_index.core.agent.workflow import FunctionAgent\nfrom llama_index.llms.openai import OpenAI\n\ntool_spec = AzureCVToolSpec(api_key=\"your-key\", resource=\"your-resource\")\n\nagent = FunctionAgent(\n    tools=tool_spec.to_tool_list(), llm=OpenAI(model=\"gpt-4.1\")\n)\n\nawait agent.run(\n    \"caption this image and tell me what tags are in it https://portal.vision.cognitive.azure.com/dist/assets/ImageCaptioningSample1-bbe41ac5.png\"\n)\nawait agent.run(\n    \"caption this image and read any text https://portal.vision.cognitive.azure.com/dist/assets/OCR3-4782f088.jpg\"\n)\n```\n\n`process_image`: Send an image for computer vision classification of objects, tags, captioning or OCR.\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "llama-index tools azure_cv integration",
    "version": "0.4.1",
    "project_urls": null,
    "split_keywords": [
        "cv",
        " image",
        " vision"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "79c6179b6be0efb47563f203d2ba31eddcccbec73f19d6ccce13fdf31b909c34",
                "md5": "4542e783d47316d6f641081e48bd5272",
                "sha256": "cc01891acb0fb0bf447dcc224dd12d9aefdf46386d56affca2087f72e2762709"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_cv-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4542e783d47316d6f641081e48bd5272",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3879,
            "upload_time": "2025-09-08T20:48:38",
            "upload_time_iso_8601": "2025-09-08T20:48:38.324560Z",
            "url": "https://files.pythonhosted.org/packages/79/c6/179b6be0efb47563f203d2ba31eddcccbec73f19d6ccce13fdf31b909c34/llama_index_tools_azure_cv-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "159437620be8ced2d6d43022819c5966c131998bb4374c0418f7ab40529a20a9",
                "md5": "bc7171fa3045725cd77b62d3ee08efeb",
                "sha256": "8c6eb6d47be19796aea481ed50872286c1991e09ed6acd95fabc52650afede93"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_cv-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bc7171fa3045725cd77b62d3ee08efeb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 4231,
            "upload_time": "2025-09-08T20:48:39",
            "upload_time_iso_8601": "2025-09-08T20:48:39.005843Z",
            "url": "https://files.pythonhosted.org/packages/15/94/37620be8ced2d6d43022819c5966c131998bb4374c0418f7ab40529a20a9/llama_index_tools_azure_cv-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-08 20:48:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-azure-cv"
}
        
Elapsed time: 1.14391s