fix(ocr-pipeline): pass left_x/right_x to classify_column_types in API path
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 25s
CI / test-go-edu-search (push) Successful in 26s
CI / test-python-klausur (push) Failing after 1m45s
CI / test-python-agent-core (push) Successful in 15s
CI / test-nodejs-website (push) Successful in 18s
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 25s
CI / test-go-edu-search (push) Successful in 26s
CI / test-python-klausur (push) Failing after 1m45s
CI / test-python-agent-core (push) Successful in 15s
CI / test-nodejs-website (push) Successful in 18s
The ocr_pipeline_api.py code path called classify_column_types without left_x/right_x, so margin regions were never created. Also add logging to _build_margin_regions for debugging. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2062,6 +2062,10 @@ def _build_margin_regions(
|
||||
classification_method='content_bounds',
|
||||
))
|
||||
|
||||
if margins:
|
||||
logger.info(f"Margins: {[(m.type, m.x, m.width) for m in margins]} "
|
||||
f"(left_x={left_x}, right_x={right_x}, img_w={img_w})")
|
||||
|
||||
return margins
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user