{ "info": { "author": "codetorex", "author_email": "627572616b@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Multimedia :: Graphics :: Editors :: Raster-Based" ], "description": "spritex\n=======\n\nA simple tool for extracting sprites from full frames. Useful for AI\nprojects. Made using Python 3, Kivy, pillow and numpy.\n\nInstallation\n------------\n\nPyPI\n~~~~\n\n``pip install spritex``\n\nAfter running this command ``spritex`` command should be accessible from\nterminal.\n\nFor development and git cloning\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThere is ``install.sh`` which will create a symbolic link from\n\"bin/spritex\" to \"/usr/local/bin\" folder. Which enables ``spritex``\ncommand to be executed from terminal.\n\nDependencies\n~~~~~~~~~~~~\n\n- numpy==1.12.1\n- Kivy>=1.10.0\n- pillow>=2.1.0\n\nYou can install dependencies via pip:\n\n``pip install -r requirements.txt --upgrade``\n\nArch Linux\n^^^^^^^^^^\n\nYou can install dependencies via pacman.\n\n``sudo pacman -S python-pillow python-kivy python-numpy``\n\nUsage\n-----\n\nYou can open image files through ``spritex path.png``. If you use SDL2\nbackend you can drag and drop image files on to application window.\n\nGeneral functionality\n~~~~~~~~~~~~~~~~~~~~~\n\n- Toggle grid: Shows pixel grid when zoomed in.\n\n - Zoom should be at least 8 screen pixels = 1 image pixel.\n\n- Select region: Allows you to select a rectangular region in image via\n mouse drag and drop.\n\n - After a region selected roughly, it is possible to fine tune by\n arrow keys.\n\n- Copy Region to Clipboard: Copies the selected region coordinates to\n clipboard in **(y1,x1,y2,x2)** format.\n\nKeyboard shortcuts\n~~~~~~~~~~~~~~~~~~\n\n- Without any modifiers arrow keys will move selection around by 1 px.\n- With Ctrl modifier selection will grow on bottom and right side by 1\n px.\n- With Alt modifier selection will grow on top and left side by 1 px.\n- With shift modifier all operations will do 5px.\n\nExtract Operations\n~~~~~~~~~~~~~~~~~~\n\n- Sprite: will create an image from selection into same folder of\n source image.\n\n - *Useful at creating training data for ANN classifiers.*\n\n- Unique colors: will extract unique colors of the selection relative\n to rest of the image. Output will be (unique color count)x1 image and\n will be saved into same folder with source.\n\n - *Useful at locating simple objects that represented by unique\n colors from screen frame.*\n\n- Unique sprite: will extract an image that is same size of selection\n but unique colors only.\n\n - *Useful at locating simple objects that represented by unique\n colors at unique positions from screen frame.*\n\n- Transparent sprite: will extract an transparent image from multiple\n images of same folder. Mismatching pixels will be discarded and\n transparent.\n\n - *Useful at extracting exact sprite. When background is animating\n but sprite is not moving.*\n\nOverlays Functionality\n^^^^^^^^^^^^^^^^^^^^^^\n\nDynamically updates the selection window with selected operation. Useful\nfor previewing the output.\n\nScreenshots\n~~~~~~~~~~~\n\n.. figure:: https://github.com/codetorex/spritex/raw/screenshots/screenshot00.png?raw=true\n :alt: Screenshot\n\n Screenshot\n\n.. figure:: https://github.com/codetorex/spritex/raw/screenshots/screenshot01.png?raw=true\n :alt: Screenshot\n\n Screenshot\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/codetorex/spritex", "keywords": "spritex", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "spritex", "package_url": "https://pypi.org/project/spritex/", "platform": "", "project_url": "https://pypi.org/project/spritex/", "project_urls": { "Homepage": "https://github.com/codetorex/spritex" }, "release_url": "https://pypi.org/project/spritex/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "A simple tool for extracting sprites from full frames. Useful for AI projects. ", "version": "0.1.3" }, "last_serial": 3175206, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "6ba03731f5e48b1864bd696c886921cc", "sha256": "e2711f0958f93f9468886e810765c78c2b15914b89a3357c49a24d49f3be0d31" }, "downloads": -1, "filename": "spritex-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6ba03731f5e48b1864bd696c886921cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9397, "upload_time": "2017-09-15T02:17:35", "url": "https://files.pythonhosted.org/packages/35/5b/daaa1bd5146d47e79c8f20996c165d334dfaa658a0acf35126ec96760f01/spritex-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ba03731f5e48b1864bd696c886921cc", "sha256": "e2711f0958f93f9468886e810765c78c2b15914b89a3357c49a24d49f3be0d31" }, "downloads": -1, "filename": "spritex-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6ba03731f5e48b1864bd696c886921cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9397, "upload_time": "2017-09-15T02:17:35", "url": "https://files.pythonhosted.org/packages/35/5b/daaa1bd5146d47e79c8f20996c165d334dfaa658a0acf35126ec96760f01/spritex-0.1.3.tar.gz" } ] }