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: docs/api/vision_results/ocr_result.md
+75
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,78 @@ fastdeploy.vision.OCRResult
41
41
-**rec_scores**: Member variable which indicates the confidence level of the recognized text, where the element number is the same as `boxes.size()`.
42
42
-**cls_scores**: Member variable which indicates the confidence level of the classification result of the text box, where the element number is the same as `boxes.size()`.
43
43
-**cls_labels**: Member variable which indicates the directional category of the textbox, where the element number is the same as `boxes.size()`.
44
+
45
+
46
+
## C# Definition
47
+
48
+
`fastdeploy.vision.OCRResult`
49
+
50
+
```C#
51
+
publicclassOCRResult {
52
+
publicList<int[]> boxes;
53
+
publicList<string> text;
54
+
publicList<float> rec_scores;
55
+
publicList<float> cls_scores;
56
+
publicList<int> cls_labels;
57
+
publicResultTypetype;
58
+
}
59
+
```
60
+
61
+
-**boxes**: Member variable which indicates the coordinates of all detected target boxes in a single image. `boxes.Count` indicates the number of detected boxes. Each box is represented by 8 int values to indicate the 4 coordinates of the box, in the order of lower left, lower right, upper right, upper left.
62
+
-**text**: Member variable which indicates the content of the recognized text in multiple text boxes, where the element number is the same as `boxes.Count`.
63
+
-**rec_scores**: Member variable which indicates the confidence level of the recognized text, where the element number is the same as `boxes.Count`.
64
+
-**cls_scores**: Member variable which indicates the confidence level of the classification result of the text box, where the element number is the same as `boxes.Count`.
65
+
-**cls_labels**: Member variable which indicates the directional category of the textbox, where the element number is the same as `boxes.Count`.
66
+
67
+
## C Definition
68
+
69
+
```c
70
+
struct FD_C_OCRResult {
71
+
FD_C_TwoDimArrayInt32 boxes;
72
+
FD_C_OneDimArrayCstr text;
73
+
FD_C_OneDimArrayFloat rec_scores;
74
+
FD_C_OneDimArrayFloat cls_scores;
75
+
FD_C_OneDimArrayInt32 cls_labels;
76
+
FD_C_ResultType type;
77
+
};
78
+
```
79
+
80
+
-**boxes**: Member variable which indicates the coordinates of all detected target boxes in a single image.
81
+
82
+
```c
83
+
typedefstruct FD_C_TwoDimArrayInt32 {
84
+
size_t size;
85
+
FD_C_OneDimArrayInt32* data;
86
+
} FD_C_TwoDimArrayInt32;
87
+
```
88
+
89
+
```c
90
+
typedefstruct FD_C_OneDimArrayInt32 {
91
+
size_t size;
92
+
int32_t* data;
93
+
} FD_C_OneDimArrayInt32;
94
+
```
95
+
96
+
-**text**: Member variable which indicates the content of the recognized text in multiple text boxes
97
+
98
+
```c
99
+
typedefstruct FD_C_Cstr {
100
+
size_t size;
101
+
char* data;
102
+
} FD_C_Cstr;
103
+
typedefstruct FD_C_OneDimArrayCstr {
104
+
size_t size;
105
+
FD_C_Cstr* data;
106
+
} FD_C_OneDimArrayCstr;
107
+
```
108
+
109
+
-**rec_scores**: Member variable which indicates the confidence level of the recognized text
110
+
111
+
```c
112
+
typedefstruct FD_C_OneDimArrayFloat {
113
+
size_t size;
114
+
float* data;
115
+
} FD_C_OneDimArrayFloat;
116
+
```
117
+
-**cls_scores**: Member variable which indicates the confidence level of the classification result of the text box
118
+
-**cls_labels**: Member variable which indicates the directional category of the textbox
Copy file name to clipboardExpand all lines: docs/api/vision_results/segmentation_result.md
+60
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,63 @@ struct SegmentationResult {
31
31
- **label_map**(list of int): Member variable which indicates the segmentation category of each pixel in a single image.
32
32
- **score_map**(list of float): Member variable which indicates the predicted segmentation category probability value corresponding to the label_map one-to-one, the member variable is not empty only when `--output_op none` is specified when exporting the PaddleSeg model, otherwise the member variable is empty.
33
33
- **shape**(list of int): Member variable which indicates the shape of the output image as H\*W.
34
+
35
+
36
+
## C# Definition
37
+
38
+
`fastdeploy.vision.SegmentationResult`
39
+
40
+
```C#
41
+
public class SegmentationResult{
42
+
public List<byte> label_map;
43
+
public List<float> score_map;
44
+
public List<long> shape;
45
+
public bool contain_score_map;
46
+
public ResultType type;
47
+
}
48
+
```
49
+
50
+
-**label_map**(list of int): Member variable which indicates the segmentation category of each pixel in a single image.
51
+
-**score_map**(list of float): Member variable which indicates the predicted segmentation category probability value corresponding to the label_map one-to-one, the member variable is not empty only when `--output_op none` is specified when exporting the PaddleSeg model, otherwise the member variable is empty.
52
+
-**shape**(list of int): Member variable which indicates the shape of the output image as H\*W.
53
+
54
+
55
+
56
+
## C Definition
57
+
58
+
```c
59
+
struct FD_C_SegmentationResult {
60
+
FD_C_OneDimArrayUint8 label_map;
61
+
FD_C_OneDimArrayFloat score_map;
62
+
FD_C_OneDimArrayInt64 shape;
63
+
FD_C_Bool contain_score_map;
64
+
FD_C_ResultType type;
65
+
};
66
+
```
67
+
68
+
-**label_map**(FD_C_OneDimArrayUint8): Member variable which indicates the segmentation category of each pixel in a single image.
69
+
70
+
```c
71
+
struct FD_C_OneDimArrayUint8 {
72
+
size_t size;
73
+
uint8_t* data;
74
+
};
75
+
```
76
+
77
+
-**score_map**(FD_C_OneDimArrayFloat): Member variable which indicates the predicted segmentation category probability value corresponding to the label_map one-to-one, the member variable is not empty only when `--output_op none` is specified when exporting the PaddleSeg model, otherwise the member variable is empty.
78
+
79
+
```c
80
+
struct FD_C_OneDimArrayFloat {
81
+
size_t size;
82
+
float* data;
83
+
};
84
+
```
85
+
86
+
-**shape**(FD_C_OneDimArrayInt64): Member variable which indicates the shape of the output image as H\*W.
0 commit comments