MCPcopy Create free account
hub / github.com/mindee/doctr / test_sort_boxes

Function test_sort_boxes

tests/common/test_models_builder.py:205–207  ·  view source on GitHub ↗
(input_boxes, sorted_idxs)

Source from the content-addressed store, hash-verified

203 ],
204)
205def test_sort_boxes(input_boxes, sorted_idxs):
206 doc_builder = builder.DocumentBuilder()
207 assert doc_builder._sort_boxes(np.asarray(input_boxes))[0].tolist() == sorted_idxs
208
209
210@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

_sort_boxesMethod · 0.95

Tested by

no test coverage detected