{ "info": { "author": "Long Lam Duc", "author_email": "long.lam@f4.intek.edu.vn", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Image Sprite Detection Module\n## What is it?\nThis is a Python module used for detection sprites from an image\n\n## Why use this module?\n* **Easy to use:** You just need to pass an image an get the result\n* **Time saving:** This module is already built so you don't need to spend time for it anymore!\n\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_final\n\n####   FOR DEVELOPMENT:\n#####   Clone or Downloads the project, using this command and then edit anything you want:\n\n git clone https://github.com/intek-training-jsc/sprite-detection-longlamduc.git\n\n## A Simple Example\n\n\t\tfrom spriteutil_final.spriteutil import SpriteSheet\n\t\tspritesheet = SpriteSheet('islands.png')\n\t\tsprites, label_map = spritesheet.find_sprites()\n\t\timg_mask = spritesheet.create_sprite_labels_image()\n\t\timg_mask.save('islands_label_mask.png')\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 email: long.lam@f4.intek.edu.vn\n\n## Contributors:\n    Long LAM DUC from INTEK Institute, HCM City\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/intek-training-jsc/sprite-detection-longlamduc.git", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "spriteutil-final", "package_url": "https://pypi.org/project/spriteutil-final/", "platform": "", "project_url": "https://pypi.org/project/spriteutil-final/", "project_urls": { "Homepage": "https://github.com/intek-training-jsc/sprite-detection-longlamduc.git" }, "release_url": "https://pypi.org/project/spriteutil-final/1.0.4/", "requires_dist": null, "requires_python": ">=3.6", "summary": "A sprite detection package", "version": "1.0.4" }, "last_serial": 5999807, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "052663a952e573cbd431c816847c2aa5", "sha256": "f6c9dae331b4fe4e22147083646749b07cacc0c8f94f32e7893bf1dceea507ed" }, "downloads": -1, "filename": "spriteutil_final-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "052663a952e573cbd431c816847c2aa5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7233, "upload_time": "2019-10-18T04:03:47", "url": "https://files.pythonhosted.org/packages/a1/a7/92f5bb02e453be5e7a2600e7ab2332c670502bd8e0700f9820427a653b1d/spriteutil_final-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0bf3abaf61fcc20f85bc94f694cb7490", "sha256": "b2f25dbe12c3b5f8c8611828bbe83703f37e955c7cd365aa1d685ad6e635dac4" }, "downloads": -1, "filename": "spriteutil_final-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0bf3abaf61fcc20f85bc94f694cb7490", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4801, "upload_time": "2019-10-18T04:04:18", "url": "https://files.pythonhosted.org/packages/1e/f7/8ed71301ee6ac473b7cb300454c90f68b8a787f186bd1a05bae1c8100852/spriteutil_final-1.0.1.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "54109d8bf54d470d2bd1258100f9d09f", "sha256": "21aff2483fae73472cea13a2ff477f826aaebc88ffe5e1d441c13414c10e2cc9" }, "downloads": -1, "filename": "spriteutil_final-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "54109d8bf54d470d2bd1258100f9d09f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7279, "upload_time": "2019-10-19T13:03:27", "url": "https://files.pythonhosted.org/packages/ab/50/2e2e494ab5ba8a38d7d890cc8468c6ef2222788e535021079c6f29fb7d7f/spriteutil_final-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5904cb0bc9f364c875c85cae2630b322", "sha256": "6d1f3f8bbd68312fec3c7530a02b33e1cc29ad7a7d895c9ae0c6b4c3d7ba19aa" }, "downloads": -1, "filename": "spriteutil_final-1.0.3.tar.gz", "has_sig": false, "md5_digest": "5904cb0bc9f364c875c85cae2630b322", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4823, "upload_time": "2019-10-19T13:03:29", "url": "https://files.pythonhosted.org/packages/63/ac/052a68e43a8441d0e3bec8b73f7ebd5da344724e9027cc75c7043e476b96/spriteutil_final-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "c6ef5fdd23f763b1c587811b6d6ec595", "sha256": "f81ccaa90275a53ed409271a5cca057df40819f217148b57aadf287591402641" }, "downloads": -1, "filename": "spriteutil_final-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "c6ef5fdd23f763b1c587811b6d6ec595", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7276, "upload_time": "2019-10-19T13:12:11", "url": "https://files.pythonhosted.org/packages/b1/ea/f9bc177b3b8cbb5a7bb3b1afbc3f6f6db7e00d56cade5cf371456a23374b/spriteutil_final-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b1449022852027b9a14f1bcdb45caf99", "sha256": "a30f1bf9778581310cd0471b5e61a84b8505aefd1f01ff791a3443e780888f6a" }, "downloads": -1, "filename": "spriteutil_final-1.0.4.tar.gz", "has_sig": false, "md5_digest": "b1449022852027b9a14f1bcdb45caf99", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4814, "upload_time": "2019-10-19T13:12:13", "url": "https://files.pythonhosted.org/packages/e4/fb/86d93795570f53a6f8ada80b19124eb221b925895108b581584067363886/spriteutil_final-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c6ef5fdd23f763b1c587811b6d6ec595", "sha256": "f81ccaa90275a53ed409271a5cca057df40819f217148b57aadf287591402641" }, "downloads": -1, "filename": "spriteutil_final-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "c6ef5fdd23f763b1c587811b6d6ec595", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7276, "upload_time": "2019-10-19T13:12:11", "url": "https://files.pythonhosted.org/packages/b1/ea/f9bc177b3b8cbb5a7bb3b1afbc3f6f6db7e00d56cade5cf371456a23374b/spriteutil_final-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b1449022852027b9a14f1bcdb45caf99", "sha256": "a30f1bf9778581310cd0471b5e61a84b8505aefd1f01ff791a3443e780888f6a" }, "downloads": -1, "filename": "spriteutil_final-1.0.4.tar.gz", "has_sig": false, "md5_digest": "b1449022852027b9a14f1bcdb45caf99", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4814, "upload_time": "2019-10-19T13:12:13", "url": "https://files.pythonhosted.org/packages/e4/fb/86d93795570f53a6f8ada80b19124eb221b925895108b581584067363886/spriteutil_final-1.0.4.tar.gz" } ] }