-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTest.java
More file actions
24 lines (20 loc) · 717 Bytes
/
Test.java
File metadata and controls
24 lines (20 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import com.dynamsoft.barcode.*;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
if (args.length < 1) {
System.out.println("Please input an image file.");
return;
}
String fileName = args[0];
try {
NativeBarcodeReader barcodeReader = new NativeBarcodeReader();
System.out.println("Version number: " + barcodeReader.getVersion());
barcodeReader.setLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==");
barcodeReader.decodeFile(fileName);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}