Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data Matrix Reader SDK for iOS

Tags:

sdk

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?

like image 859
yukiko Avatar asked Feb 18 '26 12:02

yukiko


1 Answers

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

like image 195
Drew H Avatar answered Feb 21 '26 13:02

Drew H



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!