You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Scan barcodes from a base64-encoded static image.
47
+
2. Scan documents from a file.
44
48
45
49
```ts
46
-
letresults=awaitdecodeBase64(base64);
50
+
letdetectionResults=awaitdetectFile(photoPath);
47
51
```
48
52
49
-
3. License initialization ([apply for a trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr)).
53
+
3. Normalize a document image with the detection result.
50
54
51
55
```ts
52
-
awaitinitLicense("your license");
56
+
let normalizedImageResult =awaitnormalizeFile(photoPath, detectionResult.location,{saveNormalizationResultAsFile:true});
53
57
```
54
58
55
-
### Interfaces
56
-
57
-
TextResult:
58
-
59
-
```js
60
-
TextResult{
61
-
barcodeText:string;
62
-
barcodeFormat:string;
63
-
barcodeBytesBase64:string;
64
-
x1:number;
65
-
x2:number;
66
-
x3:number;
67
-
x4:number;
68
-
y1:number;
69
-
y2:number;
70
-
y3:number;
71
-
y4:number;
72
-
}
73
-
```
74
-
75
-
Configuration:
59
+
4. License initialization ([apply for a trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=ddn)).
76
60
77
-
```js
78
-
DBRConfig{
79
-
template?:string;
80
-
license?:string;
81
-
isFront?:boolean;
82
-
rotateImage?:boolean;
83
-
}
84
-
```
85
-
86
-
`isFront` and `rotateImage` are Android-only. Since the natural camera sensor's orientation in Android is landscape, the camera image may be rotated for preview while the raw image we get is still not rotated. If we enable `rotateImage`, the plugin will rotate the image automatically to match the camera preview. If it is disabled, the plugin will rotate the returned coordinates instead of the image which may have a slight performance gain. `isFront` is needed for rotating the coordinates since the image of front camera is mirrored.
61
+
```ts
62
+
awaitinitLicense("your license");
63
+
```
87
64
88
65
## Supported Platforms
89
66
90
67
* Android
91
68
* iOS
92
69
93
-
## Supported Barcode Symbologies
94
-
95
-
* Code 11
96
-
* Code 39
97
-
* Code 93
98
-
* Code 128
99
-
* Codabar
100
-
* EAN-8
101
-
* EAN-13
102
-
* UPC-A
103
-
* UPC-E
104
-
* Interleaved 2 of 5 (ITF)
105
-
* Industrial 2 of 5 (Code 2 of 5 Industry, Standard 2 of 5, Code 2 of 5)
106
-
* ITF-14
107
-
* QRCode
108
-
* DataMatrix
109
-
* PDF417
110
-
* GS1 DataBar
111
-
* Maxicode
112
-
* Micro PDF417
113
-
* Micro QR
114
-
* PatchCode
115
-
* GS1 Composite
116
-
* Postal Code
117
-
* Dot Code
118
-
119
70
## Contributing
120
71
121
72
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
0 commit comments