MCPcopy Create free account
hub / github.com/docling-project/docling-parse / verify_bitmap_resources

Function verify_bitmap_resources

tests/test_parse.py:118–130  ·  view source on GitHub ↗
(
    true_bitmap_resources: List[BitmapResource],
    pred_bitmap_resources: List[BitmapResource],
    eps: float,
)

Source from the content-addressed store, hash-verified

116
117
118def verify_bitmap_resources(
119 true_bitmap_resources: List[BitmapResource],
120 pred_bitmap_resources: List[BitmapResource],
121 eps: float,
122) -> bool:
123 # true_bitmap_resources = _sanitize_bitmap_resources(true_bitmap_resources)
124 # pred_bitmap_resources = _sanitize_bitmap_resources(pred_bitmap_resources)
125
126 return _verify_bitmap_resources(
127 true_bitmap_resources=true_bitmap_resources,
128 pred_bitmap_resources=pred_bitmap_resources,
129 eps=eps,
130 )
131
132
133def _verify_bitmap_resources(

Callers 1

verify_SegmentedPdfPageFunction · 0.85

Calls 1

_verify_bitmap_resourcesFunction · 0.85

Tested by

no test coverage detected