micjahn/ZXing.Net

ZXing have code reading from a string?

jenokizm opened this issue · 3 comments

Hello everyone, please advise. We have numeric codes instead of an image. Does the library support their parsing?
I need something like this:

string iPhone14WhiteCode = "0194253408475";
var res = Barcode.Parse(iPhone14WhiteCode);

What result value should the variable res hold after the call to Barcode.Parse?

What result value should the variable res hold after the call to Barcode.Parse?

barcode format (EAN / UPS / GTIN / etc.), country, manufacturer, product

No, ZXing.Net doesn't support your cases.
There are some other formats, especially use with QR code like vEvent, vCard, Wifi and similar.
They can be parsed by

var parsedResult = ResultParser.parseResult(result);