Open burtontanner opened 4 years ago
Hello. I guess it would be possible to implement this, but at a (small) cost, as the data matrix would need to be communicated back from the worker thread. What would be your use case?
Watching this issue. We'd use the Data Matrix as it is standard in the health industry and would love to use your library.
I guess I misunderstood this issue initially. I thought @burtontanner was talking about returning the qr code's bitmatrix. As for adding support for data matrix codes: not sure whether I'll ever find the time to add support for that. Also note that this project and npm package is called qr-scanner :smile:
Update: I will potentially add support for this in the future by adding additional scanner engines to choose from. Don't expect this in the next couple of months though.
Data Matrix support is a very desirable improvement for us too! We would like us it to identify cell culture dishes. Each of them have a very small dot pattern datamatrix on side.
Update: I will potentially add support for this in the future by adding additional scanner engines to choose from. Don't expect this in the next couple of months though.
@danimoh How can I contact you? I'm ready to sponsor you for this ability...
Hey @danimoh did you ever get around to implementing the Data Matrix Support ?
@lenwebel i just modified the scanner file manually to add it. Let me know if you want me to send it to you
Thanks @burtontanner that would be super helpful and very kind of you
@lenwebel this swift line will support QR and Datamatrix metaOutput!.metadataObjectTypes = [ AVMetadataObject.ObjectType.qr, AVMetadataObject.ObjectType.dataMatrix] Or if you want all code types metaOutput!.metadataObjectTypes = [AVMetadataObject.ObjectType.ean13, AVMetadataObject.ObjectType.code128, AVMetadataObject.ObjectType.qr, AVMetadataObject.ObjectType.dataMatrix, AVMetadataObject.ObjectType.pdf417, AVMetadataObject.ObjectType.code93, AVMetadataObject.ObjectType.ean8, AVMetadataObject.ObjectType.upce, AVMetadataObject.ObjectType.aztec, AVMetadataObject.ObjectType.itf14, AVMetadataObject.ObjectType.code39, AVMetadataObject.ObjectType.interleaved2of5, AVMetadataObject.ObjectType.code39Mod43]
Java lines for QR and Datamatrix formatList.add(BarcodeFormat.QR_CODE); formatList.add(BarcodeFormat.DATA_MATRIX);
Java lines for all codes formatList.add(BarcodeFormat.QR_CODE); formatList.add(BarcodeFormat.DATA_MATRIX); formatList.add(BarcodeFormat.UPC_E); formatList.add(BarcodeFormat.EAN_8); formatList.add(BarcodeFormat.EAN_13); formatList.add(BarcodeFormat.CODE_39); formatList.add(BarcodeFormat.CODE_93); formatList.add(BarcodeFormat.CODE_128); formatList.add(BarcodeFormat.ITF); formatList.add(BarcodeFormat.PDF_417); formatList.add(BarcodeFormat.AZTEC);
@lenwebel Here are the full files Java https://pastebin.com/Xbm6twkK Swift https://pastebin.com/Am9iisyp
Thanks @burtontanner you are a legend, I'll grab the bits I need. 👍
is it possible to add support for data matrix?