nimiq / qr-scanner

Lightweight Javascript QR Code Scanner
https://nimiq.github.io/qr-scanner/demo
MIT License
2.4k stars 523 forks source link

Data matrix #63

Open burtontanner opened 4 years ago

burtontanner commented 4 years ago

is it possible to add support for data matrix?

danimoh commented 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?

MyDeploymentTestAccount commented 3 years ago

Watching this issue. We'd use the Data Matrix as it is standard in the health industry and would love to use your library.

danimoh commented 3 years ago

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:

danimoh commented 2 years ago

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.

fbenedetti06 commented 2 years ago

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.

fbenedetti06 commented 2 years ago

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...

lenwebel commented 4 months ago

Hey @danimoh did you ever get around to implementing the Data Matrix Support ?

burtontanner commented 4 months ago

@lenwebel i just modified the scanner file manually to add it. Let me know if you want me to send it to you

lenwebel commented 4 months ago

Thanks @burtontanner that would be super helpful and very kind of you

burtontanner commented 4 months ago

@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);

burtontanner commented 4 months ago

@lenwebel Here are the full files Java https://pastebin.com/Xbm6twkK Swift https://pastebin.com/Am9iisyp

lenwebel commented 4 months ago

Thanks @burtontanner you are a legend, I'll grab the bits I need. 👍