Commit graph

434 commits

Author SHA1 Message Date
Konstantin Baierer
d40c453dad
check_dpi: raise exception if resolution == 1 to trigger except clause
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
2021-04-14 17:42:37 +02:00
Konstantin Baierer
b11558cd4d Merge branch 'ocrd-cli' of github.com:qurator-spk/eynollah into ocrd-cli 2021-04-14 17:41:19 +02:00
Konstantin Baierer
1367f82605
improve ocrd-tool descriptions
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
2021-04-14 17:31:57 +02:00
vahidrezanezhad
037210b292
update writer.py 2021-04-14 08:55:54 -04:00
Konstantin Baierer
8f7cf5d1fb setup.py: include json data 2021-04-14 11:58:12 +02:00
Konstantin Baierer
5e260eb448 setup.py: include json data 2021-04-14 11:55:44 +02:00
Konstantin Baierer
b8d818ede1 writer: don't create empty PcGts at init 2021-04-14 10:53:32 +02:00
Konstantin Baierer
8c4e9b6068 allow passing pcgts to eynollah and writer 2021-04-14 10:38:07 +02:00
Konstantin Baierer
2bc34891a5 fix CLI call 2021-04-13 17:55:22 +02:00
vahid
98f9272c4b a trivial issue is resolved 2021-04-13 11:43:44 -04:00
Konstantin Baierer
9db6edf51e OCR-D CLI 2021-04-13 17:38:02 +02:00
Konstantin Baierer
1715f0d8b3 allow overriding DPI 2021-04-13 16:03:58 +02:00
vahidrezanezhad
3e4ac11347
Merge pull request #32 from qurator-spk/ocrd-page-api-fix
Ocrd page api fix
2021-04-13 08:09:54 -04:00
Konstantin Baierer
c95529725a 🐛 typo type{,_} 2021-04-13 13:55:51 +02:00
Konstantin Baierer
93f93444ee 🐛 typo {c,C}oords 2021-04-13 13:55:31 +02:00
vahidrezanezhad
b643ced9fb
Merge pull request #31 from qurator-spk/ocrd-page-api
replace lxml with OCR-D/core PAGE API
2021-04-12 07:47:44 -04:00
Konstantin Baierer
f41d267456 Merge remote-tracking branch 'origin/main' into ocrd-page-api 2021-04-12 13:26:51 +02:00
Konstantin Baierer
416a84e542 replace lxml with OCR-D/core PAGE API 2021-04-12 13:25:29 +02:00
vahidrezanezhad
17c0f8ab11
Merge pull request #30 from qurator-spk/empty-page-fix
fix call to build xml for empty pages, fix #29
2021-04-08 05:33:07 -04:00
Konstantin Baierer
517843fe8b fix call to build xml for empty pages, fix #29 2021-04-08 10:39:56 +02:00
vahidrezanezhad
68e6f5c712
Merge pull request #28 from qurator-spk/xml-rfct
Xml rfct
2021-04-07 12:34:35 -04:00
vahidrezanezhad
7a859ffae4
Merge branch 'main' into xml-rfct 2021-04-07 12:34:23 -04:00
vahidrezanezhad
d5a9817390
back on track- freezing problem , memory error and issues with reading order by drop capitals and marginals are resolved 2021-04-07 11:35:42 -04:00
vahidrezanezhad
43b8759acf
back on track- freezing problem , memory error and issues with reading order by drop capitals and marginals are resolved 2021-04-07 11:34:35 -04:00
vahid
b473c85a59 OOM error happend with tensorflow-gpu=1.15.5 is resolved 2021-04-01 11:22:08 -04:00
Konstantin Baierer
3d9da4feaa writer: use a single counter for all regions/lines 2021-03-12 19:29:52 +01:00
Konstantin Baierer
a678bbf966 counter: add reset(); 2021-03-12 18:39:27 +01:00
Konstantin Baierer
a3465ca1a0 eliminate id_of_texts from xml_reading_order, fix plus one error 2021-03-11 19:44:42 +01:00
Konstantin Baierer
6c60d9e90a reading order: fix @index 2021-03-10 17:27:18 +01:00
Konstantin Baierer
02aa31cc66 Merge remote-tracking branch 'origin/main' into xml-rfct 2021-03-10 12:12:31 +01:00
Konstantin Baierer
c5736e9b74 fix region counting 2021-03-10 11:52:01 +01:00
vahid
67a9fc8820 .. 2021-03-09 08:55:19 -05:00
vahidrezanezhad
4b3c8a6707
bug in reading order is fixed 2021-03-09 08:33:37 -05:00
vahidrezanezhad
73b7c780ab
Update eynollah.py
reading order bug for documents with text regions less than 5: fixed
2021-03-09 08:20:33 -05:00
Konstantin Baierer
03d75f5788 simplify serialize_lines_in_region 2021-03-02 17:51:30 +01:00
Konstantin Baierer
d95fcf14c0 id_of_marginalia still necessary 2021-03-02 17:47:06 +01:00
Konstantin Baierer
56b688befe counter: allow arbitrary line/region id 2021-03-02 17:41:45 +01:00
Konstantin Baierer
fffa207658 Merge branch 'xml-rfct' of https://github.com/qurator-spk/eynollah into xml-rfct
# Conflicts:
#	qurator/eynollah/writer.py
2021-03-02 17:32:01 +01:00
Konstantin Baierer
7eb973b3aa xml_reading_order takes id_of_marginals directly 2021-03-02 17:23:31 +01:00
vahidrezanezhad
6b2a6588fa
Ein klein bug gefixt 2021-03-02 10:37:00 -05:00
Konstantin Baierer
98568402c7 counter: init-overrideable 2021-03-02 16:13:03 +01:00
Konstantin Baierer
9b1da7c023 use counter for lines too 2021-03-02 15:53:43 +01:00
Konstantin Baierer
1cd3ee1a2e simplify calculate_polygon_coords 2021-03-02 15:36:41 +01:00
Konstantin Baierer
20fcac6232 remove unnecessary if 2021-03-02 15:26:05 +01:00
Konstantin Baierer
24da879844 add EynollahIdCounter class 2021-03-02 15:24:56 +01:00
Konstantin Baierer
9f5e4af5f0 factor out marginalia ID calc from xml_reading_order 2021-03-02 14:13:56 +01:00
Konstantin Baierer
630002d96d minor clean up xml_reading_order 2021-03-02 13:54:15 +01:00
Konstantin Baierer
38ab2aa573 eliminate tartib var 2021-03-02 13:36:40 +01:00
Konstantin Baierer
62fa710f27 move order_and_id_of_texts to utils.xml 2021-03-02 13:24:33 +01:00
vahidrezanezhad
1ee219b657
Merge pull request #23 from qurator-spk/cneud-spelling
Fix spelling issues
2021-03-02 06:40:06 -05:00