mirror of
https://github.com/qurator-spk/sbb_textline_detection.git
synced 2025-06-09 11:50:02 +02:00
resolving issue https://github.com/qurator-spk/sbb_textline_detection/issues/53
This commit is contained in:
parent
17069f72d2
commit
4c498fcad2
1 changed files with 82 additions and 75 deletions
|
@ -2066,7 +2066,7 @@ class textline_detector:
|
|||
gc.collect()
|
||||
t2=time.time()
|
||||
|
||||
|
||||
try:
|
||||
try:
|
||||
# extract text regions and corresponding contours and surrounding box
|
||||
text_regions=self.extract_text_regions(image_page)
|
||||
|
@ -2149,6 +2149,13 @@ class textline_detector:
|
|||
print( "time needed to get slopes of regions (deskewing) = "+"{0:.2f}".format(t5-t4) )
|
||||
print( "time needed to get order of regions = "+"{0:.2f}".format(t6-t5) )
|
||||
print( "time needed to implement deskewing = "+"{0:.2f}".format(t7-t6) )
|
||||
except:
|
||||
contours=[]
|
||||
order_of_texts=None
|
||||
id_of_texts=None
|
||||
self.write_into_page_xml(contours,page_coord,self.dir_out , order_of_texts , id_of_texts)
|
||||
print( "time total = "+"{0:.2f}".format(time.time()-t1) )
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue