mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-04-30 19:22:03 +02:00
drop relabelling all marginalia to main if no main (now unnecessary)
This commit is contained in:
parent
1f6db34adf
commit
c18deb0722
1 changed files with 0 additions and 4 deletions
|
|
@ -2363,10 +2363,6 @@ class Eynollah:
|
||||||
0.3 * image_page.size):
|
0.3 * image_page.size):
|
||||||
slope_deskew = 0
|
slope_deskew = 0
|
||||||
|
|
||||||
# if there is no main text, then relabel marginalia as main
|
|
||||||
if not np.any(text_regions_p == label_text):
|
|
||||||
text_regions_p[text_regions_p == label_marg] = label_text
|
|
||||||
|
|
||||||
t5 = time.time()
|
t5 = time.time()
|
||||||
self.logger.info("Marginalia extraction took %.1fs", t5 - t4)
|
self.logger.info("Marginalia extraction took %.1fs", t5 - t4)
|
||||||
self.logger.info("Step 3/5: Text Line Detection")
|
self.logger.info("Step 3/5: Text Line Detection")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue