How to make it easy to scan in the perspective mobile end point

I have write a code to use the mobile end point to scan the datamatrix code

Because the code are not printer well, so I have try to use perspective scan not success

But I use zebra’s demo scan software, it will be very easy to scan the data success, the hardware are the same , why Perspective module so hard to scan success ? Any improve solution?