python的pyzbar二维码识别时,中文全是乱码
for image_file in sorted(image_files):
img = cv2.imread(image_file)
test = pyzbar.decode(img)
aa = test[0]
bb = aa[0]
cc = bb.decode('utf-8')
print(cc)
识别的结果中文部分全是乱码:
"³µÅÆ:¸ÓM31852,³µ¼ÜºÅ:LFV2A1156C3533424,¼ì²â½á¹û£ºÍ¨¹ý,±¨¸æ±àºÅ:360122012