feat: add ocr_lines field to page_data structure

Add an ocr_lines slot (initially None) to each page's data dictionary
in the upload endpoint. This prepares for OCR caching so results can
be reused between the auto-detect and spot-redaction pipelines.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Alex-GilbertandClaude Opus 4.6 committed 2026-02-20 12:34:58 -06:00
1 parent 3345dde096
commit 87a59802bf
1 file changed
+1
+1
View File
@@ -93,6 +93,7 @@ async def upload_pdf(file: UploadFile):
page_data[i] = {
"original": page_img,
"analysis": None,
"ocr_lines": None,
}
_docs[doc_id] = {