Commit Graph

35 Commits (5479b5568633c0e4d30fdcfd9ada6a9224574218)

Author SHA1 Message Date
Clemens Neudecker 5479b55686
Merge pull request from OCR-D/release-v0.0.2
📦 v0.0.2
Clemens Neudecker 9a97c972d4
Merge pull request from OCR-D/image-path
🐛 read from image_path, not image
Konstantin Baierer 71b2801183 🐛 read from image_path, not image
Konstantin Baierer b10b49c6ce 📦 v0.0.2
Clemens Neudecker 4d145cc905
Merge pull request from OCR-D/altimage-comments
🐛 typo: comment{,s}, fix 
Konstantin Baierer c4b63fca47 🐛 typo: comment{,s}, fix
Konstantin Baierer 664a441a2d glob *.h5 files only in model dir, fix
Konstantin Baierer 0c31eaf6b1 ocrd cli: "model" parameter replaceable by SBB_BINARIZE_DATA envvar
Konstantin Baierer 84d6b1f693 🐛 numpy.ndarray.as{_,}type
Konstantin Baierer 6543e74deb remove "patches" parameter, always use_patches
Konstantin Baierer 2bc6ccc4c0 replace patches string comparison with use_patches boolean
Konstantin Baierer fad7b7aff1 rewrite "normal" CLI with click
Konstantin Baierer 645ec4124a ocrd-tool: disable "line" level-of-operation for now
Konstantin Baierer 1fa581283c SbbBinarizer: refactor (variable names, less instance-wide state)
Konstantin Baierer a1c8f6f465 line-level binarization independent of region-level
Konstantin Baierer e5bc5572a2 change description ht @bertsky @vahidrezanezhad
Konstantin Baierer b7a6301948 fix cv2pil ht @bertsky
Konstantin Baierer eece89b9ac patches should be true by default, ht @vahidrezanezhad
Konstantin Baierer 2eec6876fa
Append "binarized" to AlternativeImage/comments
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
Konstantin Baierer ee82d188bf
Set page_id from input file
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
Konstantin Baierer 0650bad533
image_from_segment: exclude already binarized images
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
Konstantin Baierer 12b44af329 convert between cv2 and pil, DRY binarizer call
Konstantin Baierer a4c0cf0a47 shut up keras/tensorflow
Konstantin Baierer d4c97ebf72 add OCR-D click interface
Konstantin Baierer ee26ebd7d8 implement region/line binarization
Konstantin Baierer 5909f94fab initial OCR-D interface
Konstantin Baierer ca03844c2b allow passing image directly, return image on binarize
Konstantin Baierer 389ef088d0 put CLI into its own module
Konstantin Baierer 71d44408b3 🎨 clean up code
Konstantin Baierer 150f03154f add ocrd-tool.json
b-vr103 e4715b88fa update binarization tool
Rezanezhad, Vahid 5209dcf46e Update sbb_binarize.py
Rezanezhad, Vahid 3354d4b23c Add new file
Rezanezhad, Vahid 9cc72d1918 Add new file
Rezanezhad, Vahid 1065092b69 Add new directory