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
Copy file name to clipboardExpand all lines: programming/android/user-guide/capabilities/parse-drivers-license.md
+102-1Lines changed: 102 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,105 @@ needGenerateH3Content: true
8
8
noTitleIndex: true
9
9
---
10
10
11
-
# Parse Drivers' License
11
+
# Parse Drivers License
12
+
13
+
## How to Enable Drivers License Parsing
14
+
15
+
1. Add code parser task.
16
+
17
+
```json
18
+
"CodeParserTaskSettingOptions": [
19
+
{
20
+
"Name": "parse-drivers-license",
21
+
"CodeSpecifications": [
22
+
"AAMVA_DL_ID",
23
+
"AAMVA_DL_ID_WITH_MAG_STRIPE",
24
+
"SOUTH_AFRICA_DL"
25
+
]
26
+
},
27
+
]
28
+
```
29
+
30
+
2. Add semantic processing options and specify the target ROI to reference.
31
+
32
+
```json
33
+
"SemanticProcessingOptions": [
34
+
{
35
+
"Name": "sp-drivers-license",
36
+
"ReferenceObjectFilter": {
37
+
"ReferenceTargetROIDefNameArray": [
38
+
"roi-drivers-license"
39
+
]
40
+
},
41
+
"TaskSettingNameArray": [
42
+
"parse-drivers-license"
43
+
]
44
+
},
45
+
]
46
+
```
47
+
48
+
3. Add the semantic processing option names to your template.
49
+
50
+
```json
51
+
"CaptureVisionTemplates": [
52
+
{
53
+
"Name": "ReadDriversLicense",
54
+
"ImageROIProcessingNameArray": [
55
+
"roi-drivers-license"
56
+
],
57
+
"SemanticProcessingNameArray": [
58
+
"sp-drivers-license"
59
+
]
60
+
}
61
+
]
62
+
```
63
+
64
+
## How to Receive Parsed Results
65
+
66
+
Receive the `ParsedResult` from the [`onParsedResultsReceived`]({{ site.dcvb_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) callback of `CapturedResultReceiver`.
You can also receive the `ParsedResult` from the [`onCapturedResultReceived`]({{ site.dcvb_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) callback if you want to use the barcode result as well.
Copy file name to clipboardExpand all lines: programming/android/user-guide/capabilities/parse-gs1.md
+106Lines changed: 106 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,109 @@ noTitleIndex: true
9
9
---
10
10
11
11
# Parse GS1 AI
12
+
13
+
## How to Enable GS1 AI Parsing
14
+
15
+
1. Add code parser task.
16
+
17
+
```json
18
+
"CodeParserTaskSettingOptions": [
19
+
{
20
+
"Name": "parse_gs1",
21
+
"CodeSpecifications": [
22
+
"GS1_AI"
23
+
]
24
+
}
25
+
]
26
+
```
27
+
28
+
2. Add semantic processing options and specify the target ROI to reference.
29
+
30
+
```json
31
+
"SemanticProcessingOptions": [
32
+
{
33
+
"Name": "sp_gs1",
34
+
"ReferenceObjectFilter": {
35
+
"ReferenceTargetROIDefNameArray": [
36
+
"roi_read_gs1"
37
+
]
38
+
},
39
+
"TaskSettingNameArray": [
40
+
"parse_gs1"
41
+
]
42
+
}
43
+
]
44
+
```
45
+
46
+
3. Add the semantic processing option names to your template.
47
+
48
+
```json
49
+
"CaptureVisionTemplates": [
50
+
{
51
+
"Name": "ReadGS1AI",
52
+
"ImageROIProcessingNameArray": [
53
+
"roi_read_gs1"
54
+
],
55
+
"SemanticProcessingNameArray": [
56
+
"sp_gs1"
57
+
]
58
+
}
59
+
]
60
+
```
61
+
62
+
## How to Receive Parsed Results
63
+
64
+
Receive the `ParsedResult` from the [`onParsedResultsReceived`]({{ site.dcvb_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) callback of `CapturedResultReceiver`.
You can also receive the `ParsedResult` from the [`onCapturedResultReceived`]({{ site.dcvb_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) callback if you want to use the barcode result as well.
0 commit comments