micjahn/ZXing.Net

Cannot create GenericMultipleBarcodeReader from ZXing.OpenCV.BarcodeReader

blauertee opened this issue · 3 comments

Is there any Possibility to do the following?

var Reader = new ZXing.OpenCV.BarcodeReader();
var MuReader = new ZXing.Multi.GenericMultipleBarcodeReader(Reader);

(I can cast the ZXing.OpenCV.BarcodeReader into Reader but then the Multi-Reader does not allow an OpenCV Mat as Argument anymore)

Thanks in Advance!

You can use it this way:

var Reader = new ZXing.OpenCV.BarcodeReader();
Reader.DecodeMultiple(...)

Thank's the solves the Problem. I thought that having a reader Interface which GenericMultipleBarcodeReader can take as an Argument might be cleaner and useful for other situations. It feals irritating that ZXing.OpenCV.BarcodeReader IS not a Reader. But feel free to close this if that's not any priority :)