I need to scan ITF with length 4, but barcode scanner+ wants a minimum length of 6. And I don't see an entry in the settings to change the boundary lenghts for ITF.
When you try to scan ITF length 4, you can see that the barcode is read, but the result is not passed.
Is there a way to scan ITF with length 4?
I am new on android programming, but maybe someone can give me a hint and/or links to information pages so that I can try to do this by myself in an android app.
regards, jan wassenaar
The answer: use the DecodeHintType.ALLOWED_LENGTHS hint to change the default in https://github.com/zxing/zxing/blob/master/core/src/main/java/com/google/zxing/oned/ITFReader.java at line 54 private static final int[] DEFAULT_ALLOWED_LENGTHS = { 6, 8, 10, 12, 14 };
Has anyone already made a new app with this modification?
regards, jan wassenaar
A common practice in non-app scanning software is to add two boundaries for the itf length (under and upper), in the settings.
In this way each user can minimize the chance of false positives, regarding the lengths that are used in the specific situation.
Can we work together to add this in a next version of the zxing barcode scanner app? I think this will promote the use of the app.
--
You received this message because you are subscribed to the Google Groups "zxing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The situation is that a webshop uses a few thousand crates for delivery.
Each crate has a label with a number of 4 digits and its ITF barcode.
I want to facilitate the returning of the crates, in such a way that a deliverer can scan the returned crates with his/her android smartphone, and send them to the webshop, to be processed in the backoffice.
So the process should then be as follows:
1) the deliverer scans, with an android smartphone with internet connection, one or more returned crates, using the zxing barcode scanner app
2) the deliverer goes in the barcode scanner app to the history and sends to a preconfigured ftp app, which places the scans as csv file on a web server.
3) on the webserver runs a schedule to read and process the csv files in the backoffice of the webshop.
But because the zxing barcode scanner does not scan the ITF of length 4, this does not work.
I read some information about Android Studio, and also the pages you suggested, but I cannot see yet what the best way is to solve this.
Can I simply load the zxing project in Android Studio, change the DecodeHintType.ALLOWED_LENGTHS to 4 only, and generate an app with a name such as Barcode Scanner ITF4?
Or is there a smarter way to do this?
Any help is appreciated.
For your general project, the standard app can be used as a basis and the communication with the server needs to be added.
Apps can store data locally and sending such data to a server is very simple.
But if using the smartphone's data connection is no issue, why not set the data directly?
Usually data can be stored directly in a database on the server and a web application can then easily access it to show the results. No need for storing data in CSV files.
Do make sure to make backups of your webserver and it's database just in case something happens.
In case building apps yourself is hard, try to find maybe an developer on one of those rent-a-coder sites. For people with experience in building apps the modification of the existing app should be no problem at all.
A simple web application to show the data can be build in a few weeks by 1 person.
Not that not all good app developers are good at making web applications and visa versa.
So you might want to have 1 person make the actual app and 1 person the web application including an API for the app to connect to.
Looking at your name, I presume you are from Holland. (Forgive me if I'm wrong).
If that is the case, and you are not in a real rush to make it, you could also consider taking it as a project to a university because they often have to do some project at a company before graduating. I'm not sure it is free, but those kids are in general smart enough to actually build it.
Good luck!
- zxing://scan/?SCAN_FORMATS=ITF&ALLOWED_LENGTHS=4 does not give a result in the browser
- http://zxing.appspot.com/scan?SCAN_FORMATS=ITF&ALLOWED_LENGTHS=4 in the browser on the android device asks me to install the Barcode Scanner app in the Play Store. Because the app has been installed already I choose the OPEN button in Google Play Store. Scanning of ITF length 4 does not work yet.
Do I something wrong, and does ITF length 4 scan on your device with this url?
Should I try with another browser?
When I go to url http://zxing.appspot.com/scan?SCAN_FORMATS=ITF&ALLOWED_LENGTHS=4 in the browser, the Barcode Scanner app then has to open, without asking for Google Play Store install?