Commit graph

77 commits

Author SHA1 Message Date
Robert Sachunsky
cade5dda73 reintroduce TF stderr / log silencer 2023-02-14 23:09:40 +00:00
Alexander Pacha
9ef8259677 Merge branch 'master-upstream'
# Conflicts:
#	README.md
#	sbb_binarize/cli.py
#	sbb_binarize/sbb_binarize.py
2022-11-22 16:10:22 +01:00
Konstantin Baierer
aeb6804b7d 📦 v0.0.11 2022-10-24 16:57:22 +02:00
Konstantin Baierer
6fb6946531
Merge pull request #53 from bertsky/patch-3
ocrd-tool.json: register SavedModel resources
2022-10-24 16:54:22 +02:00
vahid
7c3f2176f7 issue #45 the patches option is omitted and it means that documents will be processed in patches while no patches is not desired by the tool 2022-10-11 19:18:40 +02:00
Robert Sachunsky
f8ade5d3da
ocrd-tool.json: register SavedModel resources 2022-10-11 17:19:30 +02:00
Robert Sachunsky
a69470135a load_model: also allow SavedModel directories 2022-10-11 07:21:17 +00:00
Robert Sachunsky
88d64de67b pil2cv: reduce transparency to white 2022-10-11 07:20:38 +00:00
Alexander Pacha
4a97eacc56 Removed --patches flag, as the new version automatically uses patches in an efficient way.
Updated cli.py to correctly load and initialize the changed SbbBinarizer class
2022-09-15 10:53:14 +02:00
Alexander Pacha
7edf34a815 Adding a bit more documentation 2022-08-30 11:54:04 +02:00
Alexander Pacha
9db2bcc8b0 Remove obsolete comment 2022-08-30 11:44:15 +02:00
Alexander Pacha
1c7e8c5e21 Improved formatting 2022-08-30 11:00:25 +02:00
Alexander Pacha
1baa70e382 Improving comments in the code 2022-08-30 10:58:45 +02:00
Alexander Pacha
4112c6fe71 Rewrote binarization script to always use patches, but in a much more efficient way and adding support for batch-conversion with multiple GPUs. 2022-08-30 10:58:45 +02:00
Alexander Pacha
b0a8b613e8 Improved loading of models to allow providing a directory, added a few type-hints and improved the code-style a little bit by running an auto-formatter on the entire file. 2022-08-30 10:58:45 +02:00
vahid
f11d0b0bf7 #42 is resolved 2022-08-25 23:51:16 +02:00
Alexander Pacha
55a9fba677 Small fix to raise an exception when no model was found instead of failing later with TypeError: 'int' object is not subscriptable. 2022-08-22 10:36:43 +02:00
Konstantin Baierer
c99be55af2 📦 v0.0.10 2022-07-21 15:00:31 +02:00
maxnth
dc5a5c791a use types.Path instead of click.Path to avoid NameError 2022-07-21 10:37:30 +02:00
Clemens Neudecker
0877199c68
importing types from click is enough 2022-04-26 18:24:35 +02:00
vahidrezanezhad
792619e830
Update cli.py 2022-04-26 13:16:09 +02:00
vahidrezanezhad
82e0783e01
fixing #30. Directory of model(s) is needed not model file name. 2022-04-26 13:14:04 +02:00
Clemens Neudecker
aab51dbe82
Update ocrd-tool.json 2022-04-25 21:28:25 +02:00
Clemens Neudecker
83c60d7b26
cleanup 2022-04-25 15:10:08 +02:00
cneud
b7aeb1ae8b use tensorflow Keras backend 2022-04-25 14:27:39 +02:00
Robert Sachunsky
73b7b48dfb
ocrd-tool.json: add directory content-type for model 2022-02-10 16:19:13 +01:00
Robert Sachunsky
416b5dd7e2 adapt to TF1 deprecation 2021-06-10 21:09:11 +02:00
Robert Sachunsky
ad50ed287d binarizer: reset TF session prior to predict() 2021-06-10 01:22:28 +02:00
Robert Sachunsky
02423648ec OCR-D CLI: encapsulate model loading into setup(), triggered by init 2021-06-10 01:19:43 +02:00
Konstantin Baierer
8dd05064b2 📦 v0.0.8 2021-05-07 17:20:08 +02:00
vahid
2c7cd84649 resolving error for inputs whcih have smaller scale than model patch 2021-03-22 19:59:55 +01:00
Konstantin Baierer
f41cd58550 extract page_image also for operation_level region 2021-03-22 15:44:04 +01:00
Konstantin Baierer
4a5544d985 📦 v0.0.7 2021-02-02 17:47:35 +01:00
Konstantin Baierer
a3b1e721b2 ocrd-cli: fix indentation 2021-01-28 14:16:02 +01:00
Konstantin Baierer
4ceed759ad processor: self.resolve_resource model in addition to SBB_BINARIZE_DATA 2021-01-28 12:44:47 +01:00
Konstantin Baierer
ea69494d2a 📦 v0.0.6 2020-11-23 11:04:30 +01:00
Konstantin Baierer
c9e41727bf 📦 v0.0.5 2020-11-02 12:11:21 +01:00
Lucas Sulzbach
45f1509dbc sbb_binarize: Load each model only once 2020-11-01 11:26:48 -03:00
Lucas Sulzbach
0f7d4c589a sbb_binarize: Start new session only once 2020-11-01 10:08:32 -03:00
Konstantin Baierer
b98d7f51ae 📦 v0.0.4 2020-10-27 14:33:10 +01:00
vahidrezanezhad
f363063e75
Merge pull request #9 from OCR-D/envvar-continued
combine SBB_BINARIZE_DATA and model parameter
2020-10-27 13:30:43 +01:00
Konstantin Baierer
6ebd6f0d45 📦 v0.0.3 2020-10-23 19:39:09 +02:00
Konstantin Baierer
e46b89af85 Merge branch 'release-v0.0.2' into release-v0.0.3 2020-10-23 19:35:44 +02:00
Konstantin Baierer
71b2801183 🐛 read from image_path, not image 2020-10-23 19:23:59 +02:00
Konstantin Baierer
b10b49c6ce 📦 v0.0.2 2020-10-23 17:09:54 +02:00
Clemens Neudecker
4d145cc905
Merge pull request #11 from OCR-D/altimage-comments
🐛 typo: comment{,s}, fix #8
2020-10-23 15:49:34 +02:00
Konstantin Baierer
c4b63fca47 🐛 typo: comment{,s}, fix #8 2020-10-23 13:51:52 +02:00
Konstantin Baierer
664a441a2d glob *.h5 files only in model dir, fix #7 2020-10-23 11:30:31 +02:00
Konstantin Baierer
b62b32c998 combine SBB_BINARIZE_DATA and model parameter 2020-10-23 11:19:14 +02:00
Konstantin Baierer
0c31eaf6b1 ocrd cli: "model" parameter replaceable by SBB_BINARIZE_DATA envvar 2020-10-22 18:37:08 +02:00