MCPcopy Index your code
hub / github.com/PDFMathTranslate/PDFMathTranslate / YoloResult

Class YoloResult

pdf2zh/doclayout.py:54–60  ·  view source on GitHub ↗

Helper class to store detection results from ONNX model.

Source from the content-addressed store, hash-verified

52
53
54class YoloResult:
55 """Helper class to store detection results from ONNX model."""
56
57 def __init__(self, boxes, names):
58 self.boxes = [YoloBox(data=d) for d in boxes]
59 self.boxes.sort(key=lambda x: x.conf, reverse=True)
60 self.names = names
61
62
63class YoloBox:

Callers 2

test_yolo_resultMethod · 0.90
predictMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_yolo_resultMethod · 0.72