Skip to content

Fix API OCR color filter argument names#311

Open
lilyomo wants to merge 1 commit into
sml2h3:masterfrom
lilyomo:master
Open

Fix API OCR color filter argument names#311
lilyomo wants to merge 1 commit into
sml2h3:masterfrom
lilyomo:master

Conversation

@lilyomo

@lilyomo lilyomo commented Jun 21, 2026

Copy link
Copy Markdown

Fixes OCR API failures in /ocr and /ocr/file.

DdddOcr.classification() accepts color_filter_colors and
color_filter_custom_ranges, but the FastAPI app passed colors and
custom_color_ranges, causing:

DdddOcr.classification() got an unexpected keyword argument 'colors'

This updates the API layer to use the correct keyword arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant