I was wondering how I could use the CommandLineRunner (java -cp javase
\javase.jar;core\core.jar
com.google.zxing.client.j2se.CommandLineRunner [File]) to only process
part of an image. What I have are many large resolution images with
barcodes and the coordinates of the barcode on each image.
For example, in this image (img35.imageshack[.]us/img35/5220/
barsample.png ), the barcode is inside the rectangular region with a
top left corner of coordinates (206,41) and bottom right coordinates
of (1337, 165). Of course, the real images I use are much larger and
the barcode is in a relatively smaller region.
For efficiency, can ZXing (through commandline) to directly look only
at the rectangular region holding the barcode from this image itself.
I could write this region to a temporary file and pass this to ZXing
manually, but this will be very inefficient.
Anybody have any ideas of a command I could use to do this?
Thank you in advance!
If possible, can I request this feature be added to ZXing's command
line runner as it will be useful for other users as well?
--crop=left,top,width,height
For your original example:
--crop=206,41,1131,124
Best regards.
I am using these sequence code:
$ java -cp javase
\javase.jar;core\core.jar
com.google.zxing.client.j2se.CommandLineRunne--crop=206,41,1131,124
or:
$ java -cp javase
\javase.jar;core\core.jar
com.google.zxing.client.android.CommandLineRunne--crop=206,41,1131,124
and these code:
$ adb shell am start -n com.google.zxing.client.android.CommandLineRunne
Does anyone know how to run a BS ZXing in Android terminal?
Thx for advice and tips.
It will be suffice, when someone shows me the script to run zxing barcodescanner in android terminal.
Just what is called when you click on the application icon.
Does anyone know?
THX