libcimbar icon indicating copy to clipboard operation
libcimbar copied to clipboard

cimbar_recv cannot extract pic from cimbar_send

Open lhx0217 opened this issue 2 years ago • 2 comments

cf3b15b929fdfcdee39d0c6c035ba3c am i doing something wrong? ![0395956D](https://github.com/sz3/libcimbar/assets/111284535/31ebe65b-4a11-44dd-b8ce-e25d70356663) I use one of the outputfigs for recv test, but cimbar_recv extract nothing. 8c644d3258f3a5195e7de111e409d71 int bytes = dec.decode_fountain(img, sink, shouldPreprocess); bytes is always 0.

lhx0217 avatar Aug 13 '23 17:08 lhx0217

Test without camera is ok.

lhx0217 avatar Aug 13 '23 17:08 lhx0217

Usually to troubleshoot, I save a few frames (e.g. cv::imwrite(img, "/tmp/foo.png")) and look at them individually to figure out if there's an obvious reason why they aren't decoding.

One possibility is that the color decode is failing. The algorithm for that part of the decode is not very good (I'm working on improving it now...)

sz3 avatar Aug 15 '23 02:08 sz3