debug: log RapidOCR upscale dimensions to verify scaling
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4769,6 +4769,8 @@ def _ocr_cell_crop(
|
||||
bgr_crop, min_dim=150, max_scale=3,
|
||||
)
|
||||
up_h, up_w = upscaled_bin.shape[:2]
|
||||
logger.info("_ocr_cell_crop R%02d_C%d: rapid upscale %dx%d -> %dx%d",
|
||||
row_idx, col_idx, cw, ch, up_w, up_h)
|
||||
scale_x = up_w / max(cw, 1)
|
||||
scale_y = up_h / max(ch, 1)
|
||||
was_scaled = (up_w != cw or up_h != ch)
|
||||
|
||||
Reference in New Issue
Block a user