bbox-visualizer-0.1.0
توضیحات
Different ways of visualizing objects given bounding box data
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bbox-visualizer-0.1.0 |
| نام | bbox-visualizer |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Shoumik Sharar Chowdhury |
| ایمیل نویسنده | shoumikchow@gmail.com |
| آدرس صفحه اصلی | https://github.com/shoumikchow/bbox-visualizer |
| آدرس اینترنتی | https://pypi.org/project/bbox-visualizer/ |
| مجوز | MIT license |
# bbox-visualizer
This is a simple library which has different functions that lets users draw different types of visualizations. Useful for visualizing objects after object detection.
The bounding box points are expected in the format: `(xmin, ymin, xmax, ymax)`
* Documentation: https://bbox-visualizer.readthedocs.io.
* Free software: MIT license
## Installation:
pip install bbox-visualizer
## Usage:
import bbox_visualizer as bbv

#### Photos by [Joshua Earle](https://unsplash.com/@joshuaearle), [Jonas Weckschmied](https://unsplash.com/@jweckschmied) and [Sherzod Max](https://unsplash.com/@sherzodmax) on [Unsplash](https://unsplash.com).
| **image** | **function** |
|:----------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------:|
|  | bbv.draw_rectangle(img, bbox)<br>bbv.add_label(img, label, bbox, top=True) |
|  | bbv.draw_rectangle(img, bbox)<br>bbv.add_T_label(img, label, bbox) |
|  | bbv.draw_flag_with_label(img, label, bbox) |
|  | bbv.draw_rectangle(img, bbox)<br>bbv.add_label(img, label, bbox, top=False) |
|  | bbv.draw_rectangle(image, bbox, is_opaque=True)<br>bbv.add_label(img, label, bbox, draw_bg=False, top=False) |
|  | bbv.draw_multiple_rectangles(img, bboxes)<br>bbv.add_multiple_labels(img, labels, bboxes) |
|  | bbv.draw_multiple_flags_with_labels(img, labels, bboxes) |
|  | bbv.draw_multiple_rectangles(img, bboxes)<br>bbv.add_multiple_T_labels(img, labels, bboxes) |
## There are *optional* functions that can draw multiple bounding boxes and/or write multiple labels on the same image, but it is advisable to use the above functions in a loop in order to have full control over your visualizations.
* bbv.draw_multiple_rectangles(img, bboxes)
* bbv.add_multiple_labels(img, labels, bboxes)
* bbv.add_multiple_T_labels(img, labels, bboxes)
* bbv.draw_multiple_flags_with_labels(img, labels, bboxes)
`bboxes` and `labels` are lists in the above examples.
### Credits
This package was created with Cookiecutter and the `audreyr/cookiecutter-pypackage` project template.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl bbox-visualizer-0.1.0:
pip install bbox-visualizer-0.1.0.whl
نصب پکیج tar.gz bbox-visualizer-0.1.0:
pip install bbox-visualizer-0.1.0.tar.gz