A Python class for working with bounding boxes.
Project description
BoundingBox
A Python class for working with bounding boxes.
Requirements
- Python 3.10 or higher
Installation
bboxlib is available on PyPI (the Python Package Index), and can be installed using pip:
pip install bboxlib
Usage
Import the BoundingBox class and use it to handle bounding boxes.
from bboxlib import BoundingBox
bbox = BoundingBox(1.0, 2.0, 3.0, 4.0)
bbox.extend(0.9, 1.9, 3.1, 4.1)
print(bbox.extent)
# [0.9, 2.0, 3.0, 4.1]
Author
Håvard Vidme @vidhav
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bboxlib-0.2.0.tar.gz
(1.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bboxlib-0.2.0.tar.gz.
File metadata
- Download URL: bboxlib-0.2.0.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6fe8aa1c1b73793cff173b68ac1698a138adbc13e753b9c3e07e3a86481d6ce
|
|
| MD5 |
fc637e543df76c5cdbdfe689caf70652
|
|
| BLAKE2b-256 |
46b2e3d9276ac54c59e1e0d640c5082be8aec5629d147164d3dfc023f818cd79
|
File details
Details for the file bboxlib-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bboxlib-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07a90a02bccc0390dde2c4614ac7af6cb7c67107ac137b3693719f82efd8001a
|
|
| MD5 |
c1a517d488243341002ba079f956e086
|
|
| BLAKE2b-256 |
510198d90245ed16923b8ae8f0f2ead559ccaaf311f5bcd7ab2d44ec8485da3d
|