qurator-spk / eynollah

Document Layout Analysis
Apache License 2.0
332 stars 27 forks source link

Improve timing messages #62

Closed mikegerber closed 2 years ago

mikegerber commented 2 years ago

Could the timing messages be made more human-readable? For example:

18:31:40.369 INFO eynollah - Enhancing took 369.5891568660736s
19:01:28.031 INFO eynollah - Textregion detection took 1787.6620445251465s
19:01:36.604 INFO eynollah - Graphics detection took 8.571088552474976s
19:08:15.645 INFO eynollah - textline detection took 399.04073786735535s
19:26:32.451 INFO eynollah - deskewing took 1096.8060252666473s
19:26:33.040 INFO eynollah - detection of marginals took 0.5885534286499023s

All those only need 1 digit precision after the decimal point.

mikegerber commented 2 years ago

64 should improve this

mikegerber commented 2 years ago

Example output now:

17:07:38.678 INFO eynollah - Enhancing took 20.6s 
[...]
17:20:56.378 INFO eynollah - Textregion detection took 797.7s 
17:21:11.233 INFO eynollah - Graphics detection took 14.9s