Open idemetriades opened 3 years ago
I'm afraid there is no option to improve this behavior currently. The original java version of zxing was mainly developed for mobile devices. The use case for mobile devices is that the user holds the camera more or less accurately in front of the barcode. There was no need for decoding at any angle. The option AutoRotate, which I added to the .net port, only rotates by 90 degrees. Perhaps you have to rotate it manually before decoding. If you have enough cpu cycles for processing you can try a brute force method and make up to 18 images which are rotated by 10 degrees compared to the previous image.
Hi, We have been using XZing in .net to decode QR codes from image files flawlessly for more than 8 years. Now we have a new requirement to decode Code128 barcodes that are manually placed on physical documents which are scanned and converted to TIF. Because the barcodes are stickers that are manually placed on documents, they may appear at an angle. To simulate this scenario, I generated images with a Code128 barcode at an angle from 0 degrees to 359 and tried to decode the barcode on each image and I noticed that the decoding worked only at certain angles, namely from 0 to 6, 87 to 93, 176 to 184, 268 to 272, 356 to 359.
The images can be found here.
Here is part of the code:
Is there anything I can do to improve the accuracy of the decoder so that we decode at a wider range of angles?
Your help is greatly appreciated Ioannis Demetriades