{ "info": { "author": "Juan Francisco Chango", "author_email": "jnfran92@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Adaptive-Boxes\nPython Library for rectangular decomposition of 2D binary images.\n\n\"sample1\"\n\nSee the CUDA GPU version: adaptive-boxes-gpu\n\n## Quick Start\n\nInstall `adabox` from PiP:\n\n pip install adaptive-boxes\n\n\nCall **adaptive-boxes** library\n\n from adabox import proc\n from adabox.plot_tools import plot_rectangles, plot_rectangles_only_lines\n\nCall others too:\n\n import numpy as np\n import matplotlib.pyplot as plt\n\nLoad data in `.csv` format. File should contain data with columns: `[x1_position x2_position flag]`. \nInitially, `flag = 0` (See `sample_data` folder).\n\n\n # Input Path\n in_path = './sample_data/sample_2.csv'\n\n # Load Demo data with columns [x_position y_position flag]\n data_2d = np.loadtxt(in_path, delimiter=\",\")\n\n\nIf you want to see data, plot using:\n\n # Plot demo data\n plt.scatter(data_2d[:, 0], data_2d[:, 1])\n plt.axis('scaled') \n\nDecompose data in rectangles, it returns a list of rectangles and a separation value needed to plot them.\n\n rectangles = []\n # Number of random searches, more is better!\n searches = 2 \n (rectangles, sep_value) = proc.decompose(data_2d, searches)\n print('Number of rectangles found: ' + str(len(rectangles))) \n\n\nPlot resulting rectangles\n\n plot_rectangles(rectangles, sep_value)\n\nor \n\n plot_rectangles_only_lines(rectangles, sep_value) \n\n\n## Output\n\n`Adabox` applied over: `./sample_data/` files. Click in the images to expand.\n\n### Hi-res images\n\n#### File: `sample_1.csv`\n\n\"sample1\"\n\n#### File: `sample_2.csv`\n\n\"sample2\"\n\n## Repo Content\n\nEach folder contains the next information:\n\n- data: Files with voxel information in Blender (`.ply` extension)\n- proto: Prototype scripts\n- results: Results of the heuristic process (`.json` extension)\n- lib: library scripts\n\n## More info\n\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/jnfran92/adaptive-boxes", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "adaptive-boxes", "package_url": "https://pypi.org/project/adaptive-boxes/", "platform": "", "project_url": "https://pypi.org/project/adaptive-boxes/", "project_urls": { "Homepage": "https://github.com/jnfran92/adaptive-boxes" }, "release_url": "https://pypi.org/project/adaptive-boxes/0.0.4/", "requires_dist": [ "certifi (==2019.3.9)", "cycler (==0.10.0)", "kiwisolver (==1.1.0)", "matplotlib (==3.1.1)", "numpy (==1.17.1)", "pandas (==0.25.1)", "plyfile (==0.7)", "pyparsing (==2.4.2)", "python-dateutil (==2.8.0)", "pytz (==2019.2)", "scipy (==1.3.1)", "six (==1.12.0)" ], "requires_python": ">=3.6", "summary": "Python package for rectangular decomposition of 2D scenes/binary images", "version": "0.0.4" }, "last_serial": 5773138, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "bafe3013f0319d3d544a2867caa95d80", "sha256": "f6961aa1deb4aa673ae9847303cb4e3e73cd368452ec2b519ef47e511cedf8d0" }, "downloads": -1, "filename": "adaptive_boxes-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "bafe3013f0319d3d544a2867caa95d80", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 9948, "upload_time": "2019-09-02T23:46:05", "url": "https://files.pythonhosted.org/packages/6f/e6/ec15657d29222a6e6eab4b1c90fb2394f8d191b3596a1a479413af737893/adaptive_boxes-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3740d63050581573defa4a3218f66a9", "sha256": "ff0dab9ba854a3e2f91c06b60a224ae5af73a37c4622b7bac5f6d1dcd761cea9" }, "downloads": -1, "filename": "adaptive-boxes-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e3740d63050581573defa4a3218f66a9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9288, "upload_time": "2019-09-02T23:46:06", "url": "https://files.pythonhosted.org/packages/53/11/773b5883dc6a999e6b3173cfeb1160369d9f53048054b835ea61ba4c34d9/adaptive-boxes-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "db27a0dabbdca0aa199fc1995786d90b", "sha256": "f5dd27465dcde77c08656b44915a8c72b615f24baedc363783b68aecae663d08" }, "downloads": -1, "filename": "adaptive_boxes-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "db27a0dabbdca0aa199fc1995786d90b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 9920, "upload_time": "2019-09-02T23:53:53", "url": "https://files.pythonhosted.org/packages/0b/a2/a85de10bd21464888514025a7c6dc482754e2e5f532928af18ecb92e29d4/adaptive_boxes-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6cc488b4ae558d6f980788c43b7c38ed", "sha256": "c8734c9b468347d42f8b50ecf5b11de96a322c5c16ffc2a9652539210bf12206" }, "downloads": -1, "filename": "adaptive-boxes-0.0.4.tar.gz", "has_sig": false, "md5_digest": "6cc488b4ae558d6f980788c43b7c38ed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9271, "upload_time": "2019-09-02T23:53:55", "url": "https://files.pythonhosted.org/packages/a1/ef/7152a15d75e08a5df3c79c8ff870e4667880d47fdeb94b5d699c25ebcf79/adaptive-boxes-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db27a0dabbdca0aa199fc1995786d90b", "sha256": "f5dd27465dcde77c08656b44915a8c72b615f24baedc363783b68aecae663d08" }, "downloads": -1, "filename": "adaptive_boxes-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "db27a0dabbdca0aa199fc1995786d90b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 9920, "upload_time": "2019-09-02T23:53:53", "url": "https://files.pythonhosted.org/packages/0b/a2/a85de10bd21464888514025a7c6dc482754e2e5f532928af18ecb92e29d4/adaptive_boxes-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6cc488b4ae558d6f980788c43b7c38ed", "sha256": "c8734c9b468347d42f8b50ecf5b11de96a322c5c16ffc2a9652539210bf12206" }, "downloads": -1, "filename": "adaptive-boxes-0.0.4.tar.gz", "has_sig": false, "md5_digest": "6cc488b4ae558d6f980788c43b7c38ed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9271, "upload_time": "2019-09-02T23:53:55", "url": "https://files.pythonhosted.org/packages/a1/ef/7152a15d75e08a5df3c79c8ff870e4667880d47fdeb94b5d699c25ebcf79/adaptive-boxes-0.0.4.tar.gz" } ] }