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): ...@@ -52,11 +52,11 @@ for fname,e,t,m in sorted(outputs):
total += t total += t
missing += m missing += m
print("errors %8d"%errs) if not args.erroronly:
print("missing %8d"%missing) print("errors %8d"%errs)
print("total %8d"%total) print("missing %8d"%missing)
print("err %8.3f %%"%(errs*100.0/total)) print("total %8d"%total)
print("errnomiss %8.3f %%"%((errs-missing)*100.0/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) print(errs * 1.0 / total)
Markdown is supported
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