Skip to content

Add CLI options to improve JSON output#31

Open
max-mapper wants to merge 4 commits intondl-lab:masterfrom
max-mapper:json-options
Open

Add CLI options to improve JSON output#31
max-mapper wants to merge 4 commits intondl-lab:masterfrom
max-mapper:json-options

Conversation

@max-mapper
Copy link

@max-mapper max-mapper commented Mar 8, 2026

This PR:

  • comments out a debug statement that was polluting stdout
  • includes class_index in the json output
  • adds a new flag:

python ocr.py --sourcedir ./input --output ./output --json-only

--json-only prevents the .txt and .xml files from being created

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