{ "info": { "author": "Roman Juranek", "author_email": "rjuranek1983@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# Package *bbx*\n\nSimple operations over bounding boxes.\n_Bounding boxes_ are represented in XYWH format where `(X,Y)` is coordinate of top-left corner, and `(W,H)` its size. I.e. `bb = [0,0,64,16]` represents a rectangle of size 64x16 located at coordinate `(0,0)`. The units are always abstract - the interpretation is left for the user (usually _pixels_ are used).\n\nThe package defines several common operations - resize, aspect ratio changes, randomization.\n\n```python\nimport bbx\n\nbb = (-5,-5,10,10) # Center at (0,0)\nbb = bbx.set_aspect_ratio(bb, 2, bbx.KEEP_WIDTH)\nprint(bb) # Prints [[-5.0, -10.0, 10, 20]]\n```\n\n# Installation\n\nThe package is in PyPI so just use `pip`\n```\npip install bbx\n```\n\n# Documentation\n\nBounding boxes are defined in x,y,w,h format, but they can hold any additional information (e.g. ignore flag). All functions always work on first four elements.\n\n## `bbx.set_aspect_ratio(bbs, ar, type)`\nSet aspecr ratio `ar` to all bounding boxes in `bbs` using `type` method. The `type` can be one of:\n* `bbx.EXPAND`\n* `bbx.SHRINK`\n* `bbx.KEEP_WIDTH`\n* `bbx.KEEP_HEIGHT`\n* `bbx.KEEP_AREA`\n\nFor unknown type, the function raises `NotImplementedError`\n\n\n## `bbx.resize(bbs, scale)`\nResize `bbs` by `ratio` without moving center. The `ratio` can be:\n* scalar - all boxes are resized by the same factor\n* tuple of two scalars - resize all boxes with different scale for width and height\n\n## `bbx.scale`\n\n## `bbx.move`\n\n## `bbx.center`\n\n## `bbx.overlap`\n\n## `bbx.dist_matrix`\n\n## `bbx.nms`\n\n## `bbx.groups`\n\n## `bbx.randomize`\n\n\n# TODOs\n* Documentation\n* Tests\n\n# License\n\nThis code is published under [MIT License](LICENSE)", "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/RomanJuranek/bbx", "keywords": "bounding box,non maxima suppression", "license": "", "maintainer": "", "maintainer_email": "", "name": "bbx", "package_url": "https://pypi.org/project/bbx/", "platform": "", "project_url": "https://pypi.org/project/bbx/", "project_urls": { "Homepage": "https://github.com/RomanJuranek/bbx", "Source": "https://github.com/RomanJuranek/bbx" }, "release_url": "https://pypi.org/project/bbx/0.0.4/", "requires_dist": null, "requires_python": ">=2", "summary": "Simple bounding box operations", "version": "0.0.4" }, "last_serial": 5409583, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "287277b71bc784cbd8c1d82456950ce1", "sha256": "6f43180a84de3d962a1dbc6f9cb9243fe93b9443804de22df11418d73a932567" }, "downloads": -1, "filename": "bbx-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "287277b71bc784cbd8c1d82456950ce1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6", "size": 6583, "upload_time": "2019-04-09T14:00:16", "url": "https://files.pythonhosted.org/packages/e2/d4/37541081f8a1241344af63e050fc4a2d301a7c97b5f26986d8401e18ed65/bbx-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2eb897058c7173df249af0056f2393e", "sha256": "83f1d992250fb659d3a0ab792494f7dc79b3b4a7cd169005290d59103e8ed66c" }, "downloads": -1, "filename": "bbx-0.0.2.tar.gz", "has_sig": false, "md5_digest": "b2eb897058c7173df249af0056f2393e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6", "size": 4473, "upload_time": "2019-04-09T14:00:18", "url": "https://files.pythonhosted.org/packages/8d/cd/22cc918ab31b00b385e4662ed5133bcdb0bd29ead3aa98435ecff284132b/bbx-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1bc916cc592ec6ffb3c69a5672abe676", "sha256": "d08a9d33e82324617a0869970b4f6d45b2d9470db92b5aeac5937c14342a7b06" }, "downloads": -1, "filename": "bbx-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1bc916cc592ec6ffb3c69a5672abe676", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2", "size": 7164, "upload_time": "2019-04-10T08:50:33", "url": "https://files.pythonhosted.org/packages/b0/03/b71c50c0502b108e3a6e40cf2ff4ed6a9c347b31525570ff43c7d88b8b50/bbx-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8f6850e9e3bfbdb30eca4e1083a4770", "sha256": "f01ea6ad6bf3370cf60dace06496cc99d63721db98bbd60bc6295d3b3c5706cb" }, "downloads": -1, "filename": "bbx-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e8f6850e9e3bfbdb30eca4e1083a4770", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2", "size": 5071, "upload_time": "2019-04-10T08:50:35", "url": "https://files.pythonhosted.org/packages/ec/20/1b0adb52052ce1987179e8bf908bdc64ed180740c658f136b01caccbae6d/bbx-0.0.3.tar.gz" } ], "0.0.3.dev1": [ { "comment_text": "", "digests": { "md5": "eac816ab907af77fc1a2b3ce38dc03d6", "sha256": "8d931a6ae5697d652db06488f9f7d14934e5337b3c903cee6cb3cff3644830a4" }, "downloads": -1, "filename": "bbx-0.0.3.dev1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eac816ab907af77fc1a2b3ce38dc03d6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2", "size": 7286, "upload_time": "2019-04-12T07:20:46", "url": "https://files.pythonhosted.org/packages/77/20/8c545ecba5124b2e223fef795e7847443d0bbc787d2e62072fdcae552f6d/bbx-0.0.3.dev1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b24bd9ef7f2a1f1919fd4dc5d2cc28e", "sha256": "b4e97eb3a7e7ce6699312236075be1debfc181bb418d41daf535cf58814d07ef" }, "downloads": -1, "filename": "bbx-0.0.3.dev1.tar.gz", "has_sig": false, "md5_digest": "2b24bd9ef7f2a1f1919fd4dc5d2cc28e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2", "size": 5125, "upload_time": "2019-04-12T07:20:47", "url": "https://files.pythonhosted.org/packages/a5/a1/798b6447cd3b1e8da9fca0503efe966780aa699852d20e43f355c5517f74/bbx-0.0.3.dev1.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "34e0b004fa0be8d9921d1b3f6aa41a32", "sha256": "1c9dbb2826f2d22ae12871688094c003b26e3ec0315b2a728d58736141ba9635" }, "downloads": -1, "filename": "bbx-0.0.4.tar.gz", "has_sig": false, "md5_digest": "34e0b004fa0be8d9921d1b3f6aa41a32", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2", "size": 5140, "upload_time": "2019-06-17T10:44:56", "url": "https://files.pythonhosted.org/packages/4e/40/bf6684b2fce6728090ac3e42ddc8c114175172f142254e1584dadeca0656/bbx-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "34e0b004fa0be8d9921d1b3f6aa41a32", "sha256": "1c9dbb2826f2d22ae12871688094c003b26e3ec0315b2a728d58736141ba9635" }, "downloads": -1, "filename": "bbx-0.0.4.tar.gz", "has_sig": false, "md5_digest": "34e0b004fa0be8d9921d1b3f6aa41a32", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2", "size": 5140, "upload_time": "2019-06-17T10:44:56", "url": "https://files.pythonhosted.org/packages/4e/40/bf6684b2fce6728090ac3e42ddc8c114175172f142254e1584dadeca0656/bbx-0.0.4.tar.gz" } ] }