From 9192fa7972490b7f94b2b9c36176d86084a38681 Mon Sep 17 00:00:00 2001 From: Sylvain Piry <85288208+spiry34@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:42:59 +0100 Subject: [PATCH] Update dmtxread.c : corners to stdout As in old(at least 2007!) versions of dmtxread the corners positions are now returned via stdout (not stderr). This is conform to the option --corners where positions are expected to prefix the message --- dmtxread/dmtxread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dmtxread/dmtxread.c b/dmtxread/dmtxread.c index 3d02372..695ad78 100644 --- a/dmtxread/dmtxread.c +++ b/dmtxread/dmtxread.c @@ -633,10 +633,10 @@ PrintStats(DmtxDecode *dec, DmtxRegion *reg, DmtxMessage *msg, fprintf(stderr, "%d:", imgPageIndex + 1); if(opt->corners == DmtxTrue) { - fprintf(stderr, "%d,%d:", (int)(p00.X + 0.5), height - 1 - (int)(p00.Y + 0.5)); - fprintf(stderr, "%d,%d:", (int)(p10.X + 0.5), height - 1 - (int)(p10.Y + 0.5)); - fprintf(stderr, "%d,%d:", (int)(p11.X + 0.5), height - 1 - (int)(p11.Y + 0.5)); - fprintf(stderr, "%d,%d:", (int)(p01.X + 0.5), height - 1 - (int)(p01.Y + 0.5)); + fprintf(stdout, "%d,%d:", (int)(p00.X + 0.5), height - 1 - (int)(p00.Y + 0.5)); + fprintf(stdout, "%d,%d:", (int)(p10.X + 0.5), height - 1 - (int)(p10.Y + 0.5)); + fprintf(stdout, "%d,%d:", (int)(p11.X + 0.5), height - 1 - (int)(p11.Y + 0.5)); + fprintf(stdout, "%d,%d:", (int)(p01.X + 0.5), height - 1 - (int)(p01.Y + 0.5)); } return DmtxPass;