I have did some research on the data matrix reader but seem like there is not many free SDK can be used. Beside Zxing does any suitable sdk can be used for Ios development?
The datamatrix format is now supported by iOS 8. See AVMetadataObjectTypeDataMatrixCode
Here's some quick code to use it.
AVCaptureSession* captureSession = [[AVCaptureSession alloc] init];
dispatch_queue_t metadataQueue = dispatch_queue_create("com.mycompany.dataMatrixQueue", NULL);
metadataOutput = [[AVCaptureMetadataOutput alloc] init];
[metadataOutput setMetadataObjectsDelegate:self queue:metadataQueue];
metadataOutput.metadataObjectTypes = @[AVMetadataObjectTypeDataMatrixCode];
//Add the output to the session
[captureSession beginConfiguration];
[captureSession addOutput:self.metadataOutput];
[captureSession commitConfiguration];
Then go implement the captureSession:didOutputMetadataObjects:fromConnection delegate method
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With