Test Source.
-----------------------------------------------------------------------------
- Code: Select all
import com.spire.barcode.BarcodeScanner;
public class Scan {
public static void main(String[] args) throws Exception {
String[] s = BarcodeScanner.scan(args[0]);
System.out.println(s[0]);
}
}
-----------------------------------------------------------------------------
Testing Results
- Code: Select all
Test 1: 1 page 200dpi tiff one code3of9 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan ac3768.tif
12237201972683
real 0m26.483s
user 0m22.370s
sys 0m0.351s
-----------------------------------------------------------------------------
Test 2: 1 page 200dpi tiff one code3of9 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan ac4018.tif
12237123456789
real 0m19.051s
user 0m19.357s
sys 0m0.191s
---------------------------------------------------------------
Test 3: 1 page 200dpi tiff one code3of9 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan ac4024.tif
12237200459690
real 0m21.424s
user 0m21.776s
sys 0m0.227s
-----------------------------------------------------------------------------
Test 4: 200 pages 200dpi tiff code128 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan cx1.tif
12237300036554
real 5m52.473s
user 5m51.288s
sys 0m1.181s
** Note: there are barcodes on many pages but it only finds the
** one listed ont he first page. The other pages have vertical
** barcodes where the first page is horizontal.
-----------------------------------------------------------------------------
Test 5: 99 pages 200dpi tiff code128 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan cx2.tif
12237300038807
real 2m35.565s
user 2m35.278s
sys 0m0.767s
** Note: there are barcodes on many pages but it only finds the
** one listed ont he first page. The other pages have vertical
** barcodes where the first page is horizontal.
---------------------------------------------------------------
I could send you the tiff images but I don't want to upload them to a public forum.
Thank you.
Vince