llama-index-tools-azure-cv


Namellama-index-tools-azure-cv JSON
Version 0.1.2 PyPI version JSON
download
home_page
Summaryllama-index tools azure_cv integration
upload_time2024-02-13 22:14:10
maintainerajhofmann
docs_urlNone
authorYour Name
requires_python>=3.8.1,<3.12
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/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/azure_vision.ipynb)

Here's an example usage of the AzureCVToolSpec.

```python
from llama_index.tools.azure_cv import AzureCVToolSpec
from llama_index.agent 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. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "llama-index-tools-azure-cv",
    "maintainer": "ajhofmann",
    "docs_url": null,
    "requires_python": ">=3.8.1,<3.12",
    "maintainer_email": "",
    "keywords": "cv,image,vision",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/79/6b/268de99d3c3a1563f43954727a43bf4b90dfe6c7426e6e61030fb0662459/llama_index_tools_azure_cv-0.1.2.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/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/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 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. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index tools azure_cv integration",
    "version": "0.1.2",
    "project_urls": null,
    "split_keywords": [
        "cv",
        "image",
        "vision"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ccce4fc55c009fb718e45ea2fd570e2f96a0688833a7f3db79be50769545c8cf",
                "md5": "a1f823bd4182a8e80f6c1d57c5927b76",
                "sha256": "7afe4e89798757603555080135a9d1e29a782711e28a35332339e37a40f28546"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_cv-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a1f823bd4182a8e80f6c1d57c5927b76",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1,<3.12",
            "size": 3210,
            "upload_time": "2024-02-13T22:14:07",
            "upload_time_iso_8601": "2024-02-13T22:14:07.180186Z",
            "url": "https://files.pythonhosted.org/packages/cc/ce/4fc55c009fb718e45ea2fd570e2f96a0688833a7f3db79be50769545c8cf/llama_index_tools_azure_cv-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "796b268de99d3c3a1563f43954727a43bf4b90dfe6c7426e6e61030fb0662459",
                "md5": "5fbb7f0f7f631076f8eddc82cb8837ee",
                "sha256": "0f312f7d1139fed7a5477d17de0abc3b9f1f867ecaf6228c983b74c1792b5e40"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_cv-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5fbb7f0f7f631076f8eddc82cb8837ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1,<3.12",
            "size": 2751,
            "upload_time": "2024-02-13T22:14:10",
            "upload_time_iso_8601": "2024-02-13T22:14:10.594557Z",
            "url": "https://files.pythonhosted.org/packages/79/6b/268de99d3c3a1563f43954727a43bf4b90dfe6c7426e6e61030fb0662459/llama_index_tools_azure_cv-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-13 22:14:10",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-azure-cv"
}
        
Elapsed time: 0.17889s