{ "info": { "author": "Praveen Ravichandran", "author_email": "pravinba9495@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Cornea\n\n![PyPI - License](https://img.shields.io/pypi/l/cornea)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea8ff99a54fb4f51990ae09014fd0978)](https://www.codacy.com/app/pravinba9495/cornea?utm_source=github.com&utm_medium=referral&utm_content=pravinba9495/cornea&utm_campaign=Badge_Grade)\n![PyPI](https://img.shields.io/pypi/v/cornea)\n\nA PyPI package to extract insightful information about an image using Machine Intelligence\n\n## Requirements\n- Python >=3.7\n\n## Installation\nThe recommended method to install this package is by using `pip` or `pip3`\n\n```bash\npip3 install cornea\nor\npython3 -m pip install cornea\n```\n\n## Setup\nThe package requires that you specify your Microsoft Azure API credentials as environment variables. Type the following commands in your terminal. ALternatively, you can also add the following lines at the end of `.bashrc` or `.bash_profile`.\n\n```bash\nexport AZURE_API_KEY={{{YOUR_API_KEY}}}\nexport AZURE_API_BASE_ENDPOINT={{{YOUR_API_REGION_BASE_URL}}}\nexport AZURE_API_VERSION={{{AZURE_API_VERSION}}}\n```\n\n**Example**:\n```bash\nexport AZURE_API_KEY=QmQZdzdQXftzrOOvCUC7tjx8wzZed8Wk\nexport AZURE_API_BASE_ENDPOINT=https://eastus.api.cognitive.microsoft.com\nexport AZURE_API_VERSION=v2.0\n```\n\n## Usage\n```python\nfrom cornea import descImgFromURL\n\nanalysis = descImgFromURL(\"https://upload.wikimedia.org/wikipedia/commons/b/b9/CyprusShorthair.jpg\")\nprint(analysis)\n```\n\n## Output\n```bash\n{'categories': [{'name': 'animal_cat', 'score': 0.99609375}], 'color': {'dominantColorForeground': 'Grey', 'dominantColorBackground': 'Grey', 'dominantColors': ['Grey'], 'accentColor': '5C4E3C', 'isBwImg': False, 'isBWImg': False}, 'description': {'tags': ['cat', 'indoor', 'laying', 'bed', 'sitting', 'white', 'brown', 'lying', 'small', 'large', 'sleeping'], 'captions': [{'text': 'a cat lying on a bed', 'confidence': 0.9512938154506553}]}, 'requestId': 'ef807a48-ecbf-4c30-883b-64a7d25683f2', 'metadata': {'width': 1024, 'height': 768, 'format': 'Jpeg'}}\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pravinba9495/cornea", "keywords": "python,image-classification,pip,pypi-package,cognitive-services,microsoft-azure,image-analysis", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cornea", "package_url": "https://pypi.org/project/cornea/", "platform": "", "project_url": "https://pypi.org/project/cornea/", "project_urls": { "Homepage": "https://github.com/pravinba9495/cornea" }, "release_url": "https://pypi.org/project/cornea/1.1.0/", "requires_dist": null, "requires_python": "~=3.7", "summary": "A PyPI package to extract insightful information about an image using Machine Intelligence", "version": "1.1.0" }, "last_serial": 5725824, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d448b1f1da5b2d7344fffd57d031ea21", "sha256": "69ea304a0a919ddf8c0cdb9795f3b2ec9709554a554f53c94eb83a7a002c52ce" }, "downloads": -1, "filename": "cornea-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d448b1f1da5b2d7344fffd57d031ea21", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.7", "size": 1867, "upload_time": "2019-08-25T01:28:48", "url": "https://files.pythonhosted.org/packages/69/32/ec0a21e3e0a665412633a5586b40524fe256af6ced12af766451acf1d3a2/cornea-0.0.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "3383c1e25ef7a772361e32420ed86f31", "sha256": "055ab457260070a6960f9d1be653f7000d3b38d8d5357048cadb6df80bc1f29d" }, "downloads": -1, "filename": "cornea-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3383c1e25ef7a772361e32420ed86f31", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.7", "size": 1846, "upload_time": "2019-08-25T01:35:17", "url": "https://files.pythonhosted.org/packages/f7/24/514a064d456c1cd6f8c5e8ca398f4772c1e1f5f32984503352c695f39d55/cornea-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "3889ff08b6c1154a2bf2e367ef9cb673", "sha256": "a1611fd034e478bf363382086b83d805c473c87efb6e6d6bca024602f4ac8529" }, "downloads": -1, "filename": "cornea-1.1.0.tar.gz", "has_sig": false, "md5_digest": "3889ff08b6c1154a2bf2e367ef9cb673", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.7", "size": 2685, "upload_time": "2019-08-25T02:12:33", "url": "https://files.pythonhosted.org/packages/dd/6e/04b3e979a2eb854f871af4ed587e4ae45928137332d828e93650ae57d592/cornea-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3889ff08b6c1154a2bf2e367ef9cb673", "sha256": "a1611fd034e478bf363382086b83d805c473c87efb6e6d6bca024602f4ac8529" }, "downloads": -1, "filename": "cornea-1.1.0.tar.gz", "has_sig": false, "md5_digest": "3889ff08b6c1154a2bf2e367ef9cb673", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.7", "size": 2685, "upload_time": "2019-08-25T02:12:33", "url": "https://files.pythonhosted.org/packages/dd/6e/04b3e979a2eb854f871af4ed587e4ae45928137332d828e93650ae57d592/cornea-1.1.0.tar.gz" } ] }