我的要求是从扫描的图像扫描二维码。为此,我使用了ZXing动态链接库。扫描的图像为PNG格式,大小为3到5 MB。我使用的是同一文档的图像。但是Zxing解码方法对一幅图像扫描二维码,对另一幅图像失败。有没有人能解决这个问题。
我的代码如下
Bitmap bitmap = new Bitmap(path);
BarcodeReader reader = new BarcodeReader { AutoRotate = true, TryHarder = true };
Result result = reader.Decode(bitmap);
string decodedData = result.Text;https://stackoverflow.com/questions/38269190
复制相似问题