This is my code
public static string ReadQRCode(byte[] imageBytes)
{
var barcodeReader = new BarcodeReader();
barcodeReader.Options.TryHarder = true;
barcodeReader.Options.PossibleFormats = new[] { BarcodeFormat.QR_CODE };
var result = barcodeReader.Decode(imageBytes);
if (result != null) {
return result.Text;
}
return null;
}
But then I got this error message
Using the generic type 'BarcodeReader' requires 1 type arguments
Please guide me to solve the problem
This is how I solve it
First you need to install one of the packages from (ZXing.Net.Bindings.*)
First example using
Second example using