Skip to content

Commit ee6fe61

Browse files
Merge pull request #24 from dynamsoft-docs/preview
Preview
2 parents a56dbf6 + c4758d6 commit ee6fe61

File tree

7 files changed

+230
-1
lines changed

7 files changed

+230
-1
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ dcv_flutter_api: /capture-vision/docs/mobile/programming/flutter/api-reference/
2828
dcp_flutter: /code-parser/docs/mobile/programming/flutter/
2929
dcp_flutter_api: /code-parser/docs/mobile/programming/flutter/api-reference/
3030

31+
dcv_react_native_api: /capture-vision/docs/mobile/programming/react-native/api-reference/
32+
3133
dcv_android_api: /capture-vision/docs/mobile/programming/android/api-reference/
3234
dcv_ios_api: /capture-vision/docs/mobile/programming/ios/api-reference/
3335
dcv_maui_api: /capture-vision/docs/mobile/programming/maui/api-reference/

programming/flutter/api-reference/parsed-result.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `ParsedResult` class represents the result of a code parsing process. It pro
1717
*Assembly:* dynamsoft_capture_vision_flutter
1818

1919
```dart
20-
class ParsedResult
20+
class ParsedResult extends CapturedResultBase
2121
```
2222

2323
## Properties
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: default-layout
3+
title: EnumMappingStatus - Dynamsoft Capture Vision React Native
4+
description: Enumeration EnumMappingStatus of Dynamsoft Capture Vision React Native Edition defines whether the field was mapped from the source data or not
5+
keywords: captured result, react native, capture vision, mapping, code parser, mapping
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: EnumMappingStatus
9+
---
10+
11+
# EnumMappingStatus
12+
13+
`EnumMappingStatus` is an enumeration that represents whether the associated field was mapped from the source data or not.
14+
15+
## Definition
16+
17+
*Assembly:* dynamsoft-capture-vision-react-native
18+
19+
```js
20+
enum EnumMappingStatus {
21+
MS_NONE,
22+
MS_SUCCEEDED,
23+
MS_FAILED
24+
}
25+
```
26+
27+
## Members
28+
29+
| Member | Description |
30+
| ------ | ----------- |
31+
| `MS_NONE` | No mapping has been performed. |
32+
| `MS_SUCCEEDED` | Mapping of this field was successful. |
33+
| `MS_FAILED` | Mapping of this field was unsuccessful. |
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: default-layout
3+
title: EnumValidationStatus - Dynamsoft Capture Vision React Native
4+
description: Enumeration EnumValidationStatus of Dynamsoft Capture Vision React Native Edition defines the status of a field's value after the internal validation checks
5+
keywords: captured result, react native, capture vision, mapping, code parser, validation
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: EnumValidationStatus
9+
---
10+
11+
# EnumValidationStatus
12+
13+
`EnumValidationStatus` is an enumeration that represents whether the associated field's value passed the internal validation checks.
14+
15+
## Definition
16+
17+
*Assembly:* dynamsoft-capture-vision-react-native
18+
19+
```js
20+
enum EnumValidationStatus {
21+
VS_NONE,
22+
VS_SUCCEEDED,
23+
VS_FAILED
24+
}
25+
```
26+
27+
## Members
28+
29+
| Member | Description |
30+
| ------ | ----------- |
31+
| `VS_NONE` | No validation check has been performed. |
32+
| `VS_SUCCEEDED` | The validation of this field was successful. |
33+
| `VS_FAILED` | The validation of this field was unsuccessful. |
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: default-layout
3+
title: ParsedField - Dynamsoft Capture Vision React Native Edition
4+
description: Interface ParsedField represents the result of a code parsing process. It provides access to the individual parsed items resulting from a document or an encrypted text.
5+
keywords: originalImageHashId, items, errorCode, ParsedField, api reference, barcode result, capture, React Native, code parser
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: ParsedField
9+
---
10+
11+
# Interface ParsedField
12+
13+
Interface `ParsedField` represents a field from the [`ParsedResultItem`](parsed-result-item.md) output of an encrypted text coming from a document or a data source. It contains the parsed value along with its mapping and validation status.
14+
15+
## Definition
16+
17+
*Assembly:* dynamsoft-capture-vision-react-native
18+
19+
```js
20+
interface ParsedField
21+
```
22+
23+
## Properties
24+
25+
| Property | Type | Description |
26+
| -------- | ---- | ----------- |
27+
| [`value`](#value) | *String* | The processed value of the parsed field. |
28+
| [`mappingStatus`](#mappingstatus) | [*EnumMappingStatus*](enum/mapping-status.md) | A status representing whether the field was mapped from the source data or not. |
29+
| [`validationStatus`](#validationstatus) | [*EnumValidationStatus*](enum/validation-status.md) | The status of a field's value after the internal validation checks. |
30+
31+
### value
32+
33+
The processed value of the parsed field.
34+
35+
```js
36+
value?: string
37+
```
38+
39+
### mappingStatus
40+
41+
A status representing whether the field was mapped from the source data or not, represented as a [`EnumMappingStatus`](enum/mapping-status.md). If the field was unsuccessful during the mapping process, the mappingStatus would be `EnumMappingStatus.failed`.
42+
43+
```js
44+
mappingStatus?: EnumMappingStatus | number
45+
```
46+
47+
### validationStatus
48+
49+
The status of a field's value after the internal validation checks, represented as a [`EnumValidationStatus`](enum/validation-status.md). Once a field is parsed by the Code Parser, it is run through validation checks to make sure that the information is accurate and correct. If a field's value does not pass, the validationStatus would be `EnumValidationStatus.failed`.
50+
51+
```js
52+
validationStatus?: EnumValidationStatus | number
53+
```
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
layout: default-layout
3+
title: ParsedResultItem - Dynamsoft Capture Vision React Native Edition
4+
description: Interface ParsedResult represents the result of a code parsing process. It provides access to the individual parsed items resulting from a document or an encrypted text.
5+
keywords: originalImageHashId, items, errorCode, ParsedResultItem, api reference, barcode result, capture, React Native, code parser
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: ParsedResultItem
9+
---
10+
11+
# Interface ParsedResultItem
12+
13+
Interface `ParsedResultItem` represents the most basic unit of a parsed result. It includes specific details relevant to the parsed data, including the code type, the raw JSON string, and a map of the individual parsed fields.
14+
15+
## Definition
16+
17+
*Assembly:* dynamsoft-capture-vision-react-native
18+
19+
```js
20+
interface ParsedResultItem extends CapturedResultItem
21+
```
22+
23+
## Properties
24+
25+
| Property | Type | Description |
26+
| -------- | ---- | ----------- |
27+
| [`parsedFields`](#parsedfields) | *Map\<String, ParsedField\>* | A map of parsed fields extracted from the parsed result. |
28+
| [`jsonString`](#jsonstring) | *String* | The raw JSON string representation of the parsed result. |
29+
| [`codeType`](#codetype) | *String* | The type of the encrypted code associated to the attached parsed result. |
30+
31+
The following methods are inherited from [`CapturedResultItem`]({{ site.dcv_react_native_api }}core/captured-result-item.html).
32+
33+
| Property | Type | Description |
34+
| -------- | ---- | ----------- |
35+
| [`targetROIDefName`]({{ site.dcv_react_native_api }}core/captured-result-item.html#targetroidefname) | *String* | The name of the target region of interest (ROI) where the captured result was found. |
36+
| [`taskName`]({{ site.dcv_react_native_api }}core/captured-result-item.html#taskname) | *String* | The name of the recognition task that produced the CapturedResultItem. |
37+
| [`type`]({{ site.dcv_react_native_api }}core/captured-result-item.html#type) | [*EnumCapturedResultItemType*]({{ site.dcv_react_native_api }}core/enum/captured-result-item-type.html) | The type of the captured result item. |
38+
39+
### parsedFields
40+
41+
A map of the parsed fields extracted from the parsed result.
42+
43+
- Key: The field names of the code. [Check the available field names]({{ site.code_types }})
44+
- Value: [`ParsedField`](parsed-field.md)
45+
46+
```js
47+
parsedFields?: Record<string, ParsedField>
48+
```
49+
50+
### jsonString
51+
52+
The text of the parsed result as a JSON string.
53+
54+
```js
55+
jsonString: string
56+
```
57+
58+
### codeType
59+
60+
The type of the encrypted code associated to the attached parsed result. The code can be a MRZ document (passport, visa, etc.), a driver license (North America or South Africa), or an Aadhar card.
61+
62+
```js
63+
codeType: string
64+
```
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
layout: default-layout
3+
title: ParsedResult - Dynamsoft Capture Vision React Native Edition
4+
description: Interface ParsedResult represents the result of a code parsing process. It provides access to the individual parsed items resulting from a document or an encrypted text.
5+
keywords: originalImageHashId, items, errorCode, ParsedResult, api reference, barcode result, capture, React Native, code parser
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: ParsedResult
9+
---
10+
11+
# Interface ParsedResult
12+
13+
Interface `ParsedResult` represents the result of a code parsing process. It provides access to the individual parsed items resulting from a document or an encrypted text.
14+
15+
## Definition
16+
17+
*Assembly:* dynamsoft-capture-vision-react-native
18+
19+
```js
20+
interface ParsedResult extends CapturedResultBase
21+
```
22+
23+
## Properties
24+
25+
| Property | Type | Description |
26+
| -------- | ---- | ----------- |
27+
| [`items`](#items) | *Array\<ParsedResultItem\>* | A list of [`ParsedResultItem`](parsed-result-item.md), the basic unit representing a single parsed result from an encrypted text. |
28+
29+
The following properties are inherited from [`CapturedResultBase`]({{ site.dcv_react_native_api }}core/captured-result-base.html):
30+
31+
| Property | Type | Description |
32+
| -------- | ---- | ----------- |
33+
| [`originalImageHashId`]({{ site.dcv_react_native_api }}core/captured-result-base.html#originalimagehashid) | *String* | The hash id of the original image. You can use this ID to get the original image via the `IntermediateResultManager` interface. |
34+
| [`rotationTransformMatrix`]({{ site.dcv_react_native_api }}core/captured-result-base.html#rotationtransformmatrix) | *Matrix4* | The rotation transformation matrix of the original image relative to the rotated image. |
35+
| [`errorCode`]({{ site.dcv_react_native_api }}core/captured-result-base.html#errorcode) | *int* | The error code associated with the capture result. |
36+
| [`errorMessage`]({{ site.dcv_react_native_api }}core/captured-result-base.html#errormessage) | *String* | The error message associated with the capture result. |
37+
38+
### items
39+
40+
A list of [`ParsedResultItem`](parsed-result-item.md), the basic unit representing a single parsed result from an encrypted text.
41+
42+
```js
43+
items?: Array<ParsedResultItem>
44+
```

0 commit comments

Comments
 (0)