如题,使用QZXing扫描二维码的时候参考了经典程序
http://www.oschina.net/code/snippet_593514_22430,由于我不需要截图,而是直接把摄像头拍下的一幅图进行解码即可,所以我就写成了
QZXing decoder;
QString qrmsg = decoder.decodeImage(image);//image是
QImage类型
if(qrmsg.isEmpty()) ……
但是总是
执行到QString qrmsg = decoder.decodeImage(image);就
出错,
错误为:
ASSERT failure in QVector<T>::at: "index out of range", file ..\..\include/QtCore/../../src/corelib/tools/qvector.h, line 388
Error - RtlWerpReportException failed with status code :-1073741696. Will try to launch the process directly
不知道是什么原因,请大神帮忙!!!