Commit dacf0fc8 authored by Philipp Zumstein's avatar Philipp Zumstein Committed by GitHub
Browse files

Merge pull request #218 from tmbdev/fix-errs

Fix ocropus-errs --erroronly
parents 986e75ea 837dbd02
......@@ -52,11 +52,11 @@ for fname,e,t,m in sorted(outputs):
total += t
missing += m
print("errors %8d"%errs)
print("missing %8d"%missing)
print("total %8d"%total)
print("err %8.3f %%"%(errs*100.0/total))
print("errnomiss %8.3f %%"%((errs-missing)*100.0/total))
if args.erroronly:
print(errs * 1.0 / total)
if not args.erroronly:
print("errors %8d"%errs)
print("missing %8d"%missing)
print("total %8d"%total)
print("err %8.3f %%"%(errs*100.0/total))
print("errnomiss %8.3f %%"%((errs-missing)*100.0/total))
print(errs * 1.0 / total)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment