Cannot scan vertical barcodes
The app in which we have integrated this library is locked in landscape mode. We have a 1D barcode which is being scanned vertically. This bar code does not get scanned when kept vertically. But if we rotate the barcode by 90 degrees or make it horizontal then the camera scanner is able to scan it correctly So my question is -
- can the scanner scan vertical bar codes ?
- Is there a setting that we are missing that we need to set for the vertical and horizontal scans?
push :-) Hey Yuriy. Great work! Years ago I was working on an Android App using native zxing - having your wrapper is awesome! Much easier! But as some other (closed) issues already complained: Scanning vertical barcodes is a must have! After a short search, I "found out" zxing can only scan horizontal 1D Codes by default. There is a HINT called "TRY_HARDER". The scanning may take a bit longer (depending on the device naturally) but is much more precise and will also recognize vertical codes! The demo application proofs (try the "TRY_HARDER" mode in menu):
https://zxing-js.github.io/ngx-scanner/
You already use hints when creating the zxing-object - shouldn't be that hard to add a switch (SCAN-MODE FAST or PRECISE or something like that) to set "TRY_HARDER" on initialization... What do you think?
Many thanks! Will