{ "info": { "author": "Khang VU", "author_email": "khang.vu@alumni.intek.edu.vn", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "## Intro:\n  The project is generally used for detecting sprites inside an sprite sheets, providing bounding box of each sprite. It can also detect most used color. It can also draw and colorize a mask from the initial image.\n\n## Usage:\n####   Create a SpriteSheet object using:\n#####    SpriteSheet(fd, background_color=None):\n\n @fd: the name and path (a string) that references an image file in the local file system;\n OR a pathlib.Path object that references an image file in the local file system ; a file object that MUST implement read(), seek(), and tell() methods, and be opened in binary mode;\n OR a Image object.\n\n @background_color: an integer if the mode is grayscale;\n OR a tuple (red, green, blue) of integers if the mode is RGB;\n OR a tuple (red, green, blue, alpha) of integers if the mode is RGBA. The alpha element is optional. If not defined, while the image mode is RGBA, the constructor considers the alpha element to be 255.\n\n####   Class SpriteSheet provides following methods:\n\n#####    SpriteSheet.find_most_common_color(image):\n\n\tFind most used color in an Image object\n\targ: image: MUST be an Image object\n\tReturn most used color in the image with the same format image's mode\n\n#####    SpriteSheet_object.create_sprite_labels_image():\n\n\tCreate a mask image of initial image, and add a bounding box around each sprite,\n\teach sprite also have an unique random uniform color.\n\tReturn an Image object.\n\n#####    SpriteSheet_object.find_sprites():\n\n\tDetect sprites inside the image\n\tReturn a 2D label map and a dict that stores:\n\tkey: sprite's label\n\tvalue: its Sprite's object\n\targ: image: MUST be an Image object\n\n## Installation:\nThe project require Python 3.7+ to run\n\n####   FOR USER:\n#####   In Terminal, use command:\n\n\t\t pip3 install spriteutil\n\n####   FOR DEVELOPMENT:\n#####   Step 1: Clone or Downloads the project, using this command:\n\n git clone http://gitlab-students.int.intek.edu.vn/sprite-sheet/vdinh.git\n#####   Step 2: Install required libs and tools, using this command in Terminal:\n\n\t\t pip3 install -r requirements.txt\n#####   Step 3: Edit the source code as you wish.\n\n## Contact:\n    During the usage of the project, if you have any question, please contact me personally at INTEK HCM City or via my Github page: https://github.com/khagkhangg\n\n## Contributors:\n    Khang VU from INTEK Institute, HCM City\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/khagkhangg/sprite_sheet_solution", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "spriteutilkhangvu", "package_url": "https://pypi.org/project/spriteutilkhangvu/", "platform": "", "project_url": "https://pypi.org/project/spriteutilkhangvu/", "project_urls": { "Homepage": "https://github.com/khagkhangg/sprite_sheet_solution" }, "release_url": "https://pypi.org/project/spriteutilkhangvu/1.0.0/", "requires_dist": [ "bleach", "certifi", "chardet", "docutils", "idna", "numpy", "pathlib", "Pillow", "pkginfo", "Pygments", "readme-renderer", "requests", "requests-toolbelt", "six", "tqdm", "twine", "urllib3", "webencodings" ], "requires_python": ">=3.7", "summary": "An internal project for Intek Institute", "version": "1.0.0" }, "last_serial": 5906450, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a694fcb59cc9e2a6d8b3b4cb71831aa2", "sha256": "e4f54910393fa4f3ca991c50bb059bf6cd8291d651df554de27a1f7b7d5196d2" }, "downloads": -1, "filename": "spriteutilkhangvu-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a694fcb59cc9e2a6d8b3b4cb71831aa2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 6702, "upload_time": "2019-09-30T10:51:06", "url": "https://files.pythonhosted.org/packages/99/46/9c2d63c61a2ee74be28945187485a08fbbe73eb365873c7ad01556df43ed/spriteutilkhangvu-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7f2aba54c5fcd626c055a4f5df8817c", "sha256": "a8e6e09eb36766a78030e8804699f9ac8ad0e6b3182a2190add2bbc4c388f988" }, "downloads": -1, "filename": "spriteutilkhangvu-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d7f2aba54c5fcd626c055a4f5df8817c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 6279, "upload_time": "2019-09-30T10:51:09", "url": "https://files.pythonhosted.org/packages/5d/9a/f463a226f895655b0e353deddd52196484a45fec8b60830552cdb3c8b723/spriteutilkhangvu-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a694fcb59cc9e2a6d8b3b4cb71831aa2", "sha256": "e4f54910393fa4f3ca991c50bb059bf6cd8291d651df554de27a1f7b7d5196d2" }, "downloads": -1, "filename": "spriteutilkhangvu-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a694fcb59cc9e2a6d8b3b4cb71831aa2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 6702, "upload_time": "2019-09-30T10:51:06", "url": "https://files.pythonhosted.org/packages/99/46/9c2d63c61a2ee74be28945187485a08fbbe73eb365873c7ad01556df43ed/spriteutilkhangvu-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7f2aba54c5fcd626c055a4f5df8817c", "sha256": "a8e6e09eb36766a78030e8804699f9ac8ad0e6b3182a2190add2bbc4c388f988" }, "downloads": -1, "filename": "spriteutilkhangvu-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d7f2aba54c5fcd626c055a4f5df8817c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 6279, "upload_time": "2019-09-30T10:51:09", "url": "https://files.pythonhosted.org/packages/5d/9a/f463a226f895655b0e353deddd52196484a45fec8b60830552cdb3c8b723/spriteutilkhangvu-1.0.0.tar.gz" } ] }