llama-index-tools-azure-cv


Namellama-index-tools-azure-cv JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
Summaryllama-index tools azure_cv integration
upload_time2024-11-17 23:05:15
maintainerajhofmann
docs_urlNone
authorYour Name
requires_python<4.0,>=3.9
licenseMIT
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.agent.openai import OpenAIAgent

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

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())

agent.chat(
    "caption this image and tell me what tags are in it https://portal.vision.cognitive.azure.com/dist/assets/ImageCaptioningSample1-bbe41ac5.png"
)
agent.chat(
    "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": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/4f/c6/1c9fb07ff90560c6a6cac29c67b147e3ef9c38641707ce077e3dd03525fa/llama_index_tools_azure_cv-0.3.0.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.agent.openai import OpenAIAgent\n\ntool_spec = AzureCVToolSpec(api_key=\"your-key\", resource=\"your-resource\")\n\nagent = OpenAIAgent.from_tools(tool_spec.to_tool_list())\n\nagent.chat(\n    \"caption this image and tell me what tags are in it https://portal.vision.cognitive.azure.com/dist/assets/ImageCaptioningSample1-bbe41ac5.png\"\n)\nagent.chat(\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": "MIT",
    "summary": "llama-index tools azure_cv integration",
    "version": "0.3.0",
    "project_urls": null,
    "split_keywords": [
        "cv",
        " image",
        " vision"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a03a21f8da599a3fa01b9ca8e75ed4ebc1dc6cc7752191c1cd2c35ddb5097fc5",
                "md5": "3d8a4348d8074edd348ae6ce78acff60",
                "sha256": "29ee4e4e17d118f3bff30f5f763fcccc7742ef1dbb8007ed4b034cb42649d11f"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_cv-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3d8a4348d8074edd348ae6ce78acff60",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3009,
            "upload_time": "2024-11-17T23:05:13",
            "upload_time_iso_8601": "2024-11-17T23:05:13.923356Z",
            "url": "https://files.pythonhosted.org/packages/a0/3a/21f8da599a3fa01b9ca8e75ed4ebc1dc6cc7752191c1cd2c35ddb5097fc5/llama_index_tools_azure_cv-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4fc61c9fb07ff90560c6a6cac29c67b147e3ef9c38641707ce077e3dd03525fa",
                "md5": "0125beb8ddf0b7e900dcb418c571e293",
                "sha256": "27a3945feadd25216b0ea9f2535b02d59cc3c8a424ea1c221a0aaa46fa630a2d"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_cv-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0125beb8ddf0b7e900dcb418c571e293",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 2738,
            "upload_time": "2024-11-17T23:05:15",
            "upload_time_iso_8601": "2024-11-17T23:05:15.435193Z",
            "url": "https://files.pythonhosted.org/packages/4f/c6/1c9fb07ff90560c6a6cac29c67b147e3ef9c38641707ce077e3dd03525fa/llama_index_tools_azure_cv-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 23:05:15",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-azure-cv"
}
        
Elapsed time: 0.68840s