{ "info": { "author": "wuwenmin", "author_email": "wuwenmin1991@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Dominant Colors\nA python module for grabbing dominant colors from an image. It's much faster than colorthief.\n\n\n## Installation\n\n```bash\npip install dominantcolors\n```\n\n## Usage\n```python\nfrom dominantcolors import get_image_dominant_colors\ndominant_colors = get_image_dominant_colors(image_path='/path/to/image_path',num_colors=3)\n```\n\n## Performance\n```python\nimport time\nfrom colorthief import ColorThief\nfrom dominantcolors import get_image_dominant_colors\n\nimage_path = 'examples/image.jpg'\nstart_time = time.time()\ncolor_thief = ColorThief(image_path)\ndominant_colors = color_thief.get_palette(3, quality=1)\nprint('colorthief uses %s seconds.' % (time.time() - start_time))\n#OUTPUT: colorthief uses 1.2148401737213135 seconds.\n\nstart_time = time.time()\ndominant_colors = get_image_dominant_colors(image_path, 3)\nprint('dominantcolors uses %s seconds.' % (time.time() - start_time))\n#OUPUT: dominantcolors uses 0.11298108100891113 seconds.\n```\n\n## Thanks\nThanks to AI Shack for its [original tutorial](http://aishack.in/tutorials/dominant-color/).\n\n## Better\nIf you feel anything wrong, feedback or pull requests are welcome.\n\n\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/wenmin-wu/dominant-colors-py", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dominantcolors", "package_url": "https://pypi.org/project/dominantcolors/", "platform": "", "project_url": "https://pypi.org/project/dominantcolors/", "project_urls": { "Homepage": "https://github.com/wenmin-wu/dominant-colors-py" }, "release_url": "https://pypi.org/project/dominantcolors/0.1.0/", "requires_dist": [ "numpy", "Pillow" ], "requires_python": "", "summary": "A module to grab dominant colors from image", "version": "0.1.0" }, "last_serial": 4684557, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fba6217fc6266414b6f03eac921b4d45", "sha256": "994ab5ac1d4a9e199bcce820f784c341d6c3c0afea633f5d2cf12471af6756c0" }, "downloads": -1, "filename": "dominantcolors-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "fba6217fc6266414b6f03eac921b4d45", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15759, "upload_time": "2019-01-11T09:42:13", "url": "https://files.pythonhosted.org/packages/50/f3/28d0a19a5c769dd6df9fd52c907cf1f22b26bfd88c5245f2633d71336e85/dominantcolors-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1b8f1c0cc52ac3d6268bec5a75ddc9a2", "sha256": "4252d633bf1f5835bf33b0ca9f341db9ec15a431c767c48ca1a29a629149e5cf" }, "downloads": -1, "filename": "dominantcolors-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1b8f1c0cc52ac3d6268bec5a75ddc9a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3162, "upload_time": "2019-01-11T09:42:16", "url": "https://files.pythonhosted.org/packages/2b/c1/6e850d42e3d03c10f856e6a5ee5fd2da95f44e5be04ffeb5e08944e69cc9/dominantcolors-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fba6217fc6266414b6f03eac921b4d45", "sha256": "994ab5ac1d4a9e199bcce820f784c341d6c3c0afea633f5d2cf12471af6756c0" }, "downloads": -1, "filename": "dominantcolors-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "fba6217fc6266414b6f03eac921b4d45", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15759, "upload_time": "2019-01-11T09:42:13", "url": "https://files.pythonhosted.org/packages/50/f3/28d0a19a5c769dd6df9fd52c907cf1f22b26bfd88c5245f2633d71336e85/dominantcolors-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1b8f1c0cc52ac3d6268bec5a75ddc9a2", "sha256": "4252d633bf1f5835bf33b0ca9f341db9ec15a431c767c48ca1a29a629149e5cf" }, "downloads": -1, "filename": "dominantcolors-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1b8f1c0cc52ac3d6268bec5a75ddc9a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3162, "upload_time": "2019-01-11T09:42:16", "url": "https://files.pythonhosted.org/packages/2b/c1/6e850d42e3d03c10f856e6a5ee5fd2da95f44e5be04ffeb5e08944e69cc9/dominantcolors-0.1.0.tar.gz" } ] }