{"id":13653331,"url":"https://github.com/nalepae/bounding-box","last_synced_at":"2025-04-10T10:06:07.378Z","repository":{"id":41368643,"uuid":"191819071","full_name":"nalepae/bounding-box","owner":"nalepae","description":"Bounding Box is a library to plot pretty bounding boxes with a simple Python API.","archived":false,"fork":false,"pushed_at":"2024-05-14T21:28:57.000Z","size":3804,"stargazers_count":99,"open_issues_count":9,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:55:13.222Z","etag":null,"topics":["bounding-boxes","computer-vision","python","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nalepae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-13T19:08:16.000Z","updated_at":"2025-02-18T13:20:21.000Z","dependencies_parsed_at":"2024-10-15T00:41:39.598Z","dependency_job_id":null,"html_url":"https://github.com/nalepae/bounding-box","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalepae%2Fbounding-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalepae%2Fbounding-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalepae%2Fbounding-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalepae%2Fbounding-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nalepae","download_url":"https://codeload.github.com/nalepae/bounding-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198879,"owners_count":21063628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bounding-boxes","computer-vision","python","visualization"],"created_at":"2024-08-02T02:01:08.772Z","updated_at":"2025-04-10T10:06:07.354Z","avatar_url":"https://github.com/nalepae.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Bounding Box\n**Bounding Box** is a library to plot pretty bounding boxes with a simple Python API.\n\n*Please notice this lib does **not** do object detection for you, but only helps to display pretty bounding boxes with a carefully chosen set of colors.*\n\n\u003ctable\u003e\n\u003ctr\u003e\n  \u003ctd\u003eLatest Release\u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"https://pypi.org/project/bounding-box/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/bounding-box.svg\" alt=\"latest release\" /\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003eLicense\u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"https://github.com/nalepae/bounding-box/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/l/bounding-box.svg\" alt=\"license\" /\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n**WARNING:** Version 1.0 of this library is not yet released. API breaking changes could still occur! \n\nPlease see below some examples of bounding boxes plotted with this library.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/winton_bb.png\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/nao-romeo-pepper_bb.png\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/khatia_bb.png\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/selfie_bb.png\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/paragliders_bb.png\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/ski-paraglider_bb.png\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/pobb_bb.png\"\u003e\n  \u003cimg src=\"https://github.com/nalepae/bounding-box/blob/master/docs/images/clarifloue_bb.png\"\u003e\n\u003c/p\u003e\n\n## Installation\n`$ pip install bounding-box [--user]`\n\n## API\nFirst, you have to import `bounding_box`:\n```python\nfrom bounding_box import bounding_box as bb\n```\n\nThen, just add the bounding box on an image.\n ```python\nbb.add(image, left, top, right, bottom, label, color)\n```\n\nThis method takes 5 mandatory parameters:\n- `image`: A numpy array, channel last (ie. height x width x colors) with\nchannels in **BGR** order (same as **openCV** format).\n- `left`: A integer representing the left side of the bounding box.\n- `top`: A integer representing the top side of the bounding box.\n- `right`: A integer representing the right side of the bounding box.\n- `bottom`: A integer representing the bottom side of the bounding box.\n\nThis method takes also 2 optional parameters:\n- `label`: A string representing the label of the bounding box.\nIf not specified, then no label is displayed.\n- `color`: A string representing the color of the bounding box.\nPossible values are: `navy`, `blue`, `aqua`, `teal`, `olive`, `green`,\n`lime`, `yellow`, `orange`, `red`, `maroon`, `fuchsia`, `purple`,\n`black`, `gray` ,`silver`.\nIf `label` is specified and `color` is not, then a color depending\non the `label` is randomly chosen.\nIf neither `color` and `label` is specified then the bounding box\ncolor is defaulted to `green`.\n\n## Examples\nThe script to plot exemples of this **README** is available\n[here](https://github.com/nalepae/bounding-box/blob/master/docs/examples.py).\n\nTo run it, go in top level of this git repository then write:\n ```bash\npython docs/examples.py\n```\n\nIf you run `examples.py` in an other directory it won't work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalepae%2Fbounding-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnalepae%2Fbounding-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalepae%2Fbounding-box/lists"}