fixed the bug: local variable 't4' referenced before assignment

This commit is contained in:
Rezanezhad, Vahid 2019-11-29 11:29:12 +01:00
parent a11f6740cb
commit 2112bb18c6

View file

@ -1460,6 +1460,7 @@ class textlineerkenner:
print( "time total = "+"{0:.2f}".format(time.time()-t1) ) print( "time total = "+"{0:.2f}".format(time.time()-t1) )
print( "time needed for page extraction = "+"{0:.2f}".format(t2-t1) ) print( "time needed for page extraction = "+"{0:.2f}".format(t2-t1) )
print( "time needed for text region extraction and get contours = "+"{0:.2f}".format(t3-t2) ) print( "time needed for text region extraction and get contours = "+"{0:.2f}".format(t3-t2) )
if len(contours)>0:
print( "time needed for textlines = "+"{0:.2f}".format(t4-t3) ) print( "time needed for textlines = "+"{0:.2f}".format(t4-t3) )
print( "time needed to get slopes of regions (deskewing) = "+"{0:.2f}".format(t5-t4) ) 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 get order of regions = "+"{0:.2f}".format(t6-t5) )