devrimcavusoglu/pybboxes

Feature Request: support multiple boxes or array shape in `from_array()`

devrimcavusoglu opened this issue · 0 comments

Currently BoundingBox.from_array() takes only list of length 1. It can be improved s.t multiple boxes (box values) can be given as array, and it can return an array of BoundingBox objects.

from pybboxes import CocoBoundingBox

boxes = [[0,0,10,25], [5,3,16,24]]
list_of_bboxes = CocoBoundingBox.from_array(boxes)
# list_of_bboxes = [<CocoBoundingBox object>, <CocoBoundingBox object>]