Zxing二维码

http://download.csdn.net/download/whatthehell_laobi/8620387

 

http://www.pudn.com/downloads590/sourcecode/graph/texture_mapping/detail2415077.html

 

需要修改

int read_image(Ref<LuminanceSource> source, bool hybrid, string expected) 中的

if (test_mode && results.size() == 1) {
std::string result = results[0]->getText()->getText();

if (expected.empty()) {
cout << " Expected text or binary data for image missing." << endl
<< " Detected: " << CodeFormatConvert::convertUTF8ToGB2312(result.data()) << endl;
res = -6;
} else {
if (expected.compare(result) != 0) {
cout << " Expected: " << expected << endl
<< " Detected: " << CodeFormatConvert::convertUTF8ToGB2312(result.data()) << endl;
cell_result = "data did not match";
res = -6;
}
}
}

posted on 2015-12-15 17:56  zzh_smt  阅读(152)  评论(0)    收藏  举报

导航