Camera not detect dataMatrix code

Hello, I have a problem reading a 2D data matrix type code with a camera. In the application, I use AVFoundation to operate the camera and work with 2D codes, and in the vast majority there is no problem with loading. Nothing special.

I originally thought it might be a problem in my code, but I got the same result when I tried with the Camera app integrated in IOS. It can be seen that only the LiveText API for text recognition worked.

But I am attaching the code with which the camera has a problem, even though the code looks perfectly fine at first glance. A classic handheld 2D code reader will read the code just fine.

Can someone please explain to me why the camera, which normally reads these codes at the speed of light, sometimes has a problem with the codes? Thank you

[Personal Information Edited by Moderator]

Hi there. Thanks for the report. The sample code did not come through. Could you please file a report at feedbackassistant.apple.com and include the problem DataMatrix code? Thanks.

Camera not detect dataMatrix code
 
 
Q