Expand description
Pixel-exact reimplementations of the OpenCV resize kernels docling uses for TableFormer preprocessing, so the model sees byte-identical input. Verified against cv2 on docling’s own bitmaps (INTER_AREA max diff 1/255, INTER_LINEAR < 1e-4 in float).
Functions§
- inter_
area cv2.resize(..., interpolation=INTER_AREA)for shrinking — area-weighted averaging, separable (horizontal then vertical), f64 accumulation.