// fileUrl :为图片绝对路径。
using (FileStream fs = new FileStream(fileUrl, FileMode.Open))
{
QRCodeMultiReader qc = new QRCodeMultiReader();
Image image = Image.FromStream(fs);
Bitmap bitmap = new Bitmap(image);
LuminanceSource source = new BitmapLuminanceSource(bitmap);
BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(source));
IDictionary<DecodeHintType, object> hints = new Dictionary<DecodeHintType, object>();
hints.Add(DecodeHintType.CHARACTER_SET, "UTF-8");
hints.Add(DecodeHintType.TRY_HARDER, "3");
Result[] r = qc.decodeMultiple(binarybitmap, hints);
foreach (Result res in r)
{
Console.WriteLine(res.Text );
}
}