Menu

#93 Trunkated data output from a QR file with binary contents

version_0.10
open
5
2019-10-21
2019-10-21
Sasho
No

I'm using zbarimg to read a QR code with a binary content. I am however unable to acces the binary data, since the output to stdout is converted to utf-8 (I need latin-1), and is truncated at the first null byte.

zbarimg.exe --raw --verbose=32 -d testQRcode.png
win_handle_event: WM_SIZE 640x480
_zbar_window_resize: 640x480 scale=13
win_handle_event: WM_SIZE 970x841
_zbar_window_resize: 970x841 scale=23
_zbar_process_image: processing: Y800(30303859) 970x970 @03F49020
_zbar_qr_decode: 810x980 finders, 12 centers:
_zbar_process_image: QR-Code: ¢Â©] (4 pts) (q=1) (new)
ló┬®]
_zbar_best_format: from Y800(30303859) to BGR3(33524742)=32 BGR4(34524742)=32 JPEG(4745504a)=-1
zbar_window_redraw: init: src=Y800(30303859) 0x0 dst=BGR3(33524742) 0x0
_zbar_window_bih_init: biCompression=0 biBitCount=24
zbar_window_redraw: scale: src=970x970 win=970x841 by 841/970 => 841x841 @64,0
win_handle_event: WM_CLOSE
WARNING: zbar processor in _zbar_processor_handle_input():
    output window is closed: user closed display window
scanned 1 barcode symbols from 1 images
win_handle_event: WM_DESTROY
dump_stats: symbol sets allocated   = 1
dump_stats:     scanner syms in use = 0         recycled  = 0
dump_stats:     image syms in use   = 0         recycled  = 0
dump_stats: symbols allocated       = 1
dump_stats:      recycled[0]        = 0
dump_stats:      recycled[1]        = 0
dump_stats:      recycled[2]        = 0
dump_stats:      recycled[3]        = 0
dump_stats:      recycled[4]        = 0
_zbar_qr_destroy: max finder lines = 1023x1023

The source image

Discussion


Log in to post a comment.

MongoDB Logo MongoDB