Skip to content
This repository has been archived by the owner. It is now read-only.

DataMatrix not identified next to edges when using scanRect #48

Closed
nickw444 opened this issue Sep 25, 2015 · 1 comment
Closed

DataMatrix not identified next to edges when using scanRect #48

nickw444 opened this issue Sep 25, 2015 · 1 comment

Comments

@nickw444
Copy link

@nickw444 nickw444 commented Sep 25, 2015

There seems to be a slight issue with DataMatrix codes and using a scanRect.

Steps to reproduce:

  • Open advanced demo
  • Place scanner over DataMatrix code. Align code on the right (or left) side of the scan rect.
  • No code detected - Expected result: code detected
  • Slowly move device to align code to the centre of the scan rect. Code is detected.
  • Slowly move device to align code back to the right (or left) side. Code is detected in some places where it was not before, but does not stay detected all the way to the edge.

Perform the above steps with a QR Code, and see that it is detected no matter where it is positioned in the scan rect.

I am not sure if this is an issue with this library or an issue in Apple's implementation of QR decoding.

Screenshots of DataMatrix:

screen shot 2015-09-25 at 3 32 55 pm
screen shot 2015-09-25 at 3 33 03 pm
screen shot 2015-09-25 at 3 33 01 pm
screen shot 2015-09-25 at 3 33 01 pm

Screenshots of QR Code (Expected Behaviour)

screen shot 2015-09-25 at 3 33 26 pm
screen shot 2015-09-25 at 3 33 28 pm

@mikebuss
Copy link
Owner

@mikebuss mikebuss commented Sep 26, 2015

MTBBarcodeScanner doesn't make a distinction between a QR code scanRect and a DataMatrix scanRect, so I'm pretty sure this is an issue with AVFoundation. You may want to create a sample project with straight AVFoundation code and send it to Apple in a radar. If you find that the pure AVFoundation sample project doesn't have this issue, please let me know and we can investigate any differences.

@mikebuss mikebuss closed this Sep 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants