From ff11038a0e4993469a42fdece64573b33ac293b2 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Fri, 21 Sep 2012 12:06:42 +0200 Subject: [PATCH] Be more verbose about failures to detect --- flandmark/script/annotate.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/flandmark/script/annotate.py b/flandmark/script/annotate.py index 9ab65cf..c39ba75 100644 --- a/flandmark/script/annotate.py +++ b/flandmark/script/annotate.py @@ -115,13 +115,16 @@ def main(): output.write("%d %d %d %d %d " % ((k,) + bbox)) lstr = " ".join("%d %d" % (round(p[0]), round(p[1])) for p in landmarks) output.write(lstr + "\n") + if args.verbose and args.output is not None: + sys.stdout.write('.') + sys.stdout.flush() + else: output.write("%d 0 0 0 0\n" % k) + if args.verbose and args.output is not None: + sys.stdout.write('x') + sys.stdout.flush() - if args.verbose and args.output is not None: - sys.stdout.write('.') - sys.stdout.flush() - if args.verbose and args.output is not None: sys.stdout.write('\n') sys.stdout.flush() -- GitLab