{"id":23277647,"url":"https://github.com/romanjuranek/bbx","last_synced_at":"2026-02-17T00:33:29.208Z","repository":{"id":57414283,"uuid":"180377784","full_name":"RomanJuranek/bbx","owner":"RomanJuranek","description":"Bounding box manipulation for python and numpy","archived":false,"fork":false,"pushed_at":"2021-09-21T15:26:59.000Z","size":48,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-16T03:50:58.515Z","etag":null,"topics":["bounding-boxes","numpy","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RomanJuranek.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}},"created_at":"2019-04-09T13:51:28.000Z","updated_at":"2021-09-21T15:26:06.000Z","dependencies_parsed_at":"2022-08-26T20:45:40.089Z","dependency_job_id":null,"html_url":"https://github.com/RomanJuranek/bbx","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanJuranek%2Fbbx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanJuranek%2Fbbx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanJuranek%2Fbbx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanJuranek%2Fbbx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RomanJuranek","download_url":"https://codeload.github.com/RomanJuranek/bbx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230507051,"owners_count":18236944,"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","numpy","python"],"created_at":"2024-12-19T22:13:38.329Z","updated_at":"2026-02-17T00:33:29.069Z","avatar_url":"https://github.com/RomanJuranek.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Package *bbx*\n\nSimple operations over bounding boxes.\nThe package provides a class `Boxes` encapsulating a set of bounding boxes. Internally, the boxes are represented in an Nx4 matrix with x1,y1,x2,y2 coordinates. Instances of `Boxes` support arbitraty user-defined fields which can hold other properties of boxes like e.g. score.\n\n```python\nimport bbx\n\nB = bbx.Boxes([0,0,10,10])  # New instance\nB.set_field(\"score\", [1])  # Set the field\nB.width()  # [10]\nC = bbx.resize(B, 2)  # Resize and make new instance\nC.get() # [[-5,-5,15,15]]\nC.get_field(\"score\")  # [1]\nC.area()  # [400]\n```\n\n# But why?\n\n... for the glory of s... But seriously, I use bounding boxes in every other project and there is no decent small package for this. Yes I can use TF obj detection api (and I did for a while, this pkg have similar interface to it) or structures from imgaug or others. I did not find anything that suits my needs (if you know about something just let me know). You either install a big non-standard package with tons of functionality you do not need or you implement it by yourself. So I decided to make a very small package that does precisely what I need and nothing more, is portable (just numpy needed, and you already have it!).\n\nYes, I just implemented a non-standard package, so I so not need to use other non-standard packages... yes, I know...\n\n# Installation\n\nThe package is in PyPI so just use `pip`\n```\npip install bbx\n```\n\n# Contribute\n\nFeelin' brave? Contribute with code! You can also submit an issue if something is broken.\n\n# License\n\nThis code is published under [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanjuranek%2Fbbx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanjuranek%2Fbbx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanjuranek%2Fbbx/lists"}