{ "info": { "author": "Khang TRAN", "author_email": "haphong12@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Sprite Sheet\n\n## Project Description\n\nA sprite is a small raster graphic (a bitmap) that represents an object such as a character, a vehicle, a projectile, etc.\n\nSprites are a popular way to create large, complex scenes as you can manipulate each sprite separately from the rest of the scene. This allows for greater control over how the scene is rendered, as well as over how the players can interact with the scene.\n\nSprites are mainly used in 2D video games, such as Shoot'em up in which the hero combats a large number of enemies by shooting at them while dodging their fire.\n\n## Project Goal\n\n- Waypoint 1: Find the Most Common Color in an Image\n- Waypoint 2: Write a Class Sprite\n- Waypoint 3: Find Sprites in an Image\n- Waypoint 4: Draw Sprite Label Bounding Boxes\n- Waypoint 5: Write a Class SpriteSheet\n- Waypoint 6: Package and Distribute the Python Library\n\n## Project Benefit\n\nThree main features of this project, more useful in Computer Vision:\n\n- Find the Most Common Color in an Image\n- Find Sprites in an Image\n- Draw Sprite Label Bounding Boxes\n\nIt can split your image with many sprites and you can improve it to work in Computer Vision.\n\n## Technology\n\n- Python (PIL, Numpy)\n\n## Project Team\n\n- Lam Khang Tran\n\n## Feature\n\n### Find the Most Common Color in an Image\n\nReturns the pixel color that is the most used in this image.\n\n### Find Sprites in an Image\n\nReturns a tuple (sprites, label_map) where:\n\n- sprites: A collection of key-value pairs (a dictionary) where each key-value pair maps the key (the label of a sprite) to its associated value (a Sprite object);\n\n- label_map: A 2D array of integers of equal dimension (width and height) as the original image where the sprites are packed in. The label_map array maps each pixel of the image passed to the function to the label of the sprite this pixel corresponds to, or 0 if this pixel doesn't belong to a sprite (e.g., background color).\n\n### Draw Sprite Label Bounding Boxes\n\nDraws the masks of the sprites at the exact same position that the sprites were in the original image. Draws each sprite mask with a random uniform color (one color per sprite mask). Also draws a rectangle (bounding box) around each sprite mask, of the same color used for drawing the sprite mask.\n\n## Usage\n\n### Install packages: pillow (PIL), numpy, python 3.7.4\n\nYou have to install packages above:\n\n```bash\npip install pillow\n```\n\nand\n\n```bash\npip install numpy\n```\n\n### Install New Python 3.7.4\n\nGo to this link and download new python version: https://www.python.org/downloads/\n\n### Install my package\n\n```bash\npip install spriteutilkangkang\n```\n\n## Contact (Author & Maintainer)\n\n- Name: Khang TRAN\n- Email: haphongpk12@gmail.com\n- Facebook: https://www.facebook.com/haphongpk12\n- Phone: (+84) 909 77 8046\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/haphongpk12/Sprite-Sheet", "keywords": "", "license": "MIT", "maintainer": "Khang TRAN", "maintainer_email": "", "name": "spriteutilkangkang", "package_url": "https://pypi.org/project/spriteutilkangkang/", "platform": "", "project_url": "https://pypi.org/project/spriteutilkangkang/", "project_urls": { "Homepage": "https://github.com/haphongpk12/Sprite-Sheet" }, "release_url": "https://pypi.org/project/spriteutilkangkang/1.0.0/", "requires_dist": null, "requires_python": ">=3.7", "summary": "", "version": "1.0.0" }, "last_serial": 5927447, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a960b34c59fdf6e28e177866f66ba82a", "sha256": "45488f49efc5b271ef4643d67ff2add4a01fbea8089c23a2b15b703e9a383bc0" }, "downloads": -1, "filename": "spriteutilkangkang-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a960b34c59fdf6e28e177866f66ba82a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 8176, "upload_time": "2019-10-04T09:12:07", "url": "https://files.pythonhosted.org/packages/00/3b/14637474e0e8f3a0d9bd9bd06831861ca884531194fde66aeac152ba7cd0/spriteutilkangkang-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "32707a619f98363a71afb88e8b0422e1", "sha256": "555a6594fc2d1a20e5c8e99a43e82c98d57c186f93c948bcf97ba36e1446e1e6" }, "downloads": -1, "filename": "spriteutilkangkang-1.0.0.tar.gz", "has_sig": false, "md5_digest": "32707a619f98363a71afb88e8b0422e1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 8108, "upload_time": "2019-10-04T09:12:11", "url": "https://files.pythonhosted.org/packages/46/f8/4f2ca2049a50d3b87ed8715e2e6d290d3fc677a21756c74c8bec32ed2faa/spriteutilkangkang-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a960b34c59fdf6e28e177866f66ba82a", "sha256": "45488f49efc5b271ef4643d67ff2add4a01fbea8089c23a2b15b703e9a383bc0" }, "downloads": -1, "filename": "spriteutilkangkang-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a960b34c59fdf6e28e177866f66ba82a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 8176, "upload_time": "2019-10-04T09:12:07", "url": "https://files.pythonhosted.org/packages/00/3b/14637474e0e8f3a0d9bd9bd06831861ca884531194fde66aeac152ba7cd0/spriteutilkangkang-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "32707a619f98363a71afb88e8b0422e1", "sha256": "555a6594fc2d1a20e5c8e99a43e82c98d57c186f93c948bcf97ba36e1446e1e6" }, "downloads": -1, "filename": "spriteutilkangkang-1.0.0.tar.gz", "has_sig": false, "md5_digest": "32707a619f98363a71afb88e8b0422e1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 8108, "upload_time": "2019-10-04T09:12:11", "url": "https://files.pythonhosted.org/packages/46/f8/4f2ca2049a50d3b87ed8715e2e6d290d3fc677a21756c74c8bec32ed2faa/spriteutilkangkang-1.0.0.tar.gz" } ] }