Commit graph

75 commits

Author SHA1 Message Date
Konstantin Baierer
2bc6ccc4c0 replace patches string comparison with use_patches boolean 2020-10-16 12:50:32 +02:00
Konstantin Baierer
fad7b7aff1 rewrite "normal" CLI with click 2020-10-16 12:48:32 +02:00
Konstantin Baierer
645ec4124a ocrd-tool: disable "line" level-of-operation for now 2020-10-16 12:35:58 +02:00
Konstantin Baierer
1fa581283c SbbBinarizer: refactor (variable names, less instance-wide state) 2020-10-16 12:30:51 +02:00
Konstantin Baierer
a1c8f6f465 line-level binarization independent of region-level 2020-10-16 11:53:26 +02:00
Konstantin Baierer
e5bc5572a2 change description ht @bertsky @vahidrezanezhad 2020-10-16 11:31:14 +02:00
Konstantin Baierer
b7a6301948 fix cv2pil ht @bertsky 2020-10-16 11:27:37 +02:00
Konstantin Baierer
eece89b9ac patches should be true by default, ht @vahidrezanezhad 2020-10-16 11:12:17 +02:00
Konstantin Baierer
2eec6876fa
Append "binarized" to AlternativeImage/comments
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
2020-10-16 11:01:11 +02:00
Konstantin Baierer
ee82d188bf
Set page_id from input file
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
2020-10-16 11:00:18 +02:00
Konstantin Baierer
0650bad533
image_from_segment: exclude already binarized images
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
2020-10-16 10:59:42 +02:00
Konstantin Baierer
12b44af329 convert between cv2 and pil, DRY binarizer call 2020-10-15 18:10:06 +02:00
Konstantin Baierer
a4c0cf0a47 shut up keras/tensorflow 2020-10-15 17:26:13 +02:00
Konstantin Baierer
d4c97ebf72 add OCR-D click interface 2020-10-15 17:12:17 +02:00
Konstantin Baierer
ee26ebd7d8 implement region/line binarization 2020-10-15 16:55:17 +02:00
Konstantin Baierer
5909f94fab initial OCR-D interface 2020-10-15 16:39:38 +02:00
Konstantin Baierer
ca03844c2b allow passing image directly, return image on binarize 2020-10-15 16:29:55 +02:00
Konstantin Baierer
389ef088d0 put CLI into its own module 2020-10-15 15:38:49 +02:00
Konstantin Baierer
71d44408b3 🎨 clean up code 2020-10-15 15:33:30 +02:00
Konstantin Baierer
150f03154f add ocrd-tool.json 2020-10-15 15:19:04 +02:00
b-vr103
e4715b88fa update binarization tool 2019-12-10 12:48:08 +01:00
Rezanezhad, Vahid
5209dcf46e Update sbb_binarize.py 2019-08-23 16:02:29 +02:00
Rezanezhad, Vahid
3354d4b23c Add new file 2019-08-23 15:51:48 +02:00
Rezanezhad, Vahid
9cc72d1918 Add new file 2019-08-23 15:51:10 +02:00
Rezanezhad, Vahid
1065092b69 Add new directory 2019-08-23 15:48:49 +02:00