{ "info": { "author": "Giv Parvaneh", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python" ], "description": "# RoyGBiv\n\nThis python module is intended to provide a set of image analysis tools. This is very much a work in progress...\n\n_by Giv Parvaneh_ \n- Demo: http://roygbiv.givp.org/\n\n## Requirements\n\n- Python 2.6+\n- Python Imaging Library (PIL)\n- NumPy\n- ColorMath\n\nThen ```pip install RoyGBiv```\n\n## Usage\n\n```python\n>>> from roygbiv import *\n>>> roy = Roygbiv('test.png')\n>>> roy.get_average_hex()\n'#468489'\n>>> roy.get_average_rgb()\n(70, 132, 137)\n>>> roy.get_palette_rgb()\n[(87, 145, 138), (52, 126, 140), (44, 97, 117), (154, 168, 145), (199, 194, 158)]\n>>> roy.get_palette_hex()\n['#57918a', '#347e8c', '#2c6175', '#9aa891', '#c7c29e']\n```\n\n## Available methods\n\n- `get_average_hex()` return the average color in the image and return as a hex string\n- `get_average_rgb()` return the average color in the image and return as RGB tuple\n- `get_palette()` return a list of all prominent colors in the image with prominence weight value\n- `get_palette_rgb()` return a list of all prominent colors in RGB\n- `get_palette_hex()` return a list of all prominent colors in hex\n\n## Credits\n\nA lot of this code is borrowed from the most excellent [Colorific](https://github.com/99designs/colorific/ \"Colorific\") project but modified to work with Python 2.6 + other tweaks", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/givp/RoyGBiv", "keywords": null, "license": "http://www.opensource.org/licenses/mit-license.php", "maintainer": null, "maintainer_email": null, "name": "RoyGBiv", "package_url": "https://pypi.org/project/RoyGBiv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/RoyGBiv/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/givp/RoyGBiv" }, "release_url": "https://pypi.org/project/RoyGBiv/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "A set of image color analysis tools", "version": "0.3.1" }, "last_serial": 826994, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "f205f524d41a4e43852caf63381c1011", "sha256": "f0932a71748443229115faedcb788820df53c97ff498c1589b3cd895f63a7fca" }, "downloads": -1, "filename": "RoyGBiv-0.2.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "f205f524d41a4e43852caf63381c1011", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 69316, "upload_time": "2013-07-29T03:15:20", "url": "https://files.pythonhosted.org/packages/46/2a/4f4159daee269ef586059165d2af22ec98c05cd80ef7bb3a7068b9109826/RoyGBiv-0.2.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "b6880f63875f156537c8767430ec7659", "sha256": "07b27060f1a3cc7960f2ffedcb380b9e0cc7797a00463996120f62a2fad5be45" }, "downloads": -1, "filename": "RoyGBiv-0.2.tar.gz", "has_sig": false, "md5_digest": "b6880f63875f156537c8767430ec7659", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5740, "upload_time": "2013-07-29T03:15:17", "url": "https://files.pythonhosted.org/packages/41/af/4312e87dc0a64a421e84909dc44284395bceb2a5a201b9aef08e3f91cb4d/RoyGBiv-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "85b7960a7ef0031c4b3909da3aa30649", "sha256": "19e5750c60bbd1184d68d0624d52fb90c614ee2cda3ba19ab1b57b7e5a6df693" }, "downloads": -1, "filename": "RoyGBiv-0.3.tar.gz", "has_sig": false, "md5_digest": "85b7960a7ef0031c4b3909da3aa30649", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5772, "upload_time": "2013-07-29T03:27:04", "url": "https://files.pythonhosted.org/packages/13/a4/a3b9ba92eadc19a63c1c434869c4a3535f22089549eb277c9770c4897604/RoyGBiv-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "713e81b392ec4c8acca5b9af6d643845", "sha256": "70023d1bef7d34d272817486bb72f459625a07dee8f5a08a76318ded061f2a42" }, "downloads": -1, "filename": "RoyGBiv-0.3.1.tar.gz", "has_sig": false, "md5_digest": "713e81b392ec4c8acca5b9af6d643845", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5969, "upload_time": "2013-07-29T05:09:26", "url": "https://files.pythonhosted.org/packages/2d/cd/81960b71f92e7363215ee8fde2c6cfbb1585020cfb0679c878d4f77d59a2/RoyGBiv-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "713e81b392ec4c8acca5b9af6d643845", "sha256": "70023d1bef7d34d272817486bb72f459625a07dee8f5a08a76318ded061f2a42" }, "downloads": -1, "filename": "RoyGBiv-0.3.1.tar.gz", "has_sig": false, "md5_digest": "713e81b392ec4c8acca5b9af6d643845", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5969, "upload_time": "2013-07-29T05:09:26", "url": "https://files.pythonhosted.org/packages/2d/cd/81960b71f92e7363215ee8fde2c6cfbb1585020cfb0679c878d4f77d59a2/RoyGBiv-0.3.1.tar.gz" } ] }