SqueezeBrains SDK 1.18
cs_res.h
1#pragma once
2namespace sb_cs
3{
16 public enum class SbSurfaceImageTruth :int {
37 };
38
42 public ref class SbSurfaceRes
43 {
44 public:
73 array<SbBlob^>^ blobs;
74 internal:
75 SbSurfaceRes(const sb_t_surface_res* const sb_res);
76 SbError CopyFromNative(const sb_t_surface_res* const sb_res);
77 };
78
82 public ref class SbResModel {
83 public:
88 int tp;
89
94 int tn;
95
100 int fp;
101
106 int fn;
107
112 int op;
113
118 int on;
119
125
131
137 internal:
138 const sb_t_par* par;
139 SbResModel(const sb_t_res_model* const res, const sb_t_par* const par);
140 SbError CopyFromNative(const sb_t_res_model* const res);
141 };
142
146 public ref class SbResOCR {
147 public:
151 String ^str;
155 int words;
159 int lines;
160 internal:
161 const sb_t_ocr_res* ocr;
162 SbResOCR(const sb_t_ocr_res* const ocr);
163 SbError CopyFromNative(const sb_t_ocr_res* const ocr);
164 };
165
169 public enum class SbTileType :int {
182 };
183
188 public ref class SbTile {
189 public:
198 internal:
199 SbTile(const sb_t_tile* const tile);
200 SbError CopyFromNative(const sb_t_tile* const tile);
201 };
202
207 public ref class SbTilesInfo {
208 public:
220 array<SbTile^>^ tiles;
221 internal:
222 SbTilesInfo(const sb_t_tiles_info* const tiles);
223 SbError CopyFromNative(const sb_t_tiles_info* const tiles);
224 };
225
229 public ref class SbRes {
230 public:
240 array<SbResModel^>^ models;
250 array<SbSample^>^ samples;
265 long long timeUs;
290 internal:
291 ~SbRes();
292 SbRes(const sb_t_res* const sb_res);
293 SbError CopyFromNative(const sb_t_res* const sb_res);
294 }; // group_cs_results // group_cs
297}
Defines computing device types that wraps the sb_t_devices_par structure
Definition: cs_par.h:248
SbImage class that wraps the sb_t_image structure. You must call the Dispose() method to free all the...
Definition: cs_image.h:66
Surface res Class that wraps the sb_t_surface_res structure
Definition: cs_sb.h:301
Parameters Class that wraps the sb_t_par structure. You must call the Dispose() method to free all th...
Definition: cs_par.h:751
Point class that wraps the sb_t_point structure
Definition: cs_sb.h:170
Rectangle class that wraps the sb_t_rect structure
Definition: cs_sb.h:214
Class of the results of the image elaboration with the SbProject::Detection method....
Definition: cs_res.h:229
SbVersion svl_version
Library version used to run the SVL with which the current results are obtained.
Definition: cs_res.h:289
SbResOCR ocr
Result of OCR analysis
Definition: cs_res.h:255
SbDevicesPar devices
Devices used to get the current results.
Definition: cs_res.h:279
long long timeUs
Detection time
Definition: cs_res.h:265
int img_width_circular
Original width of the image, before the extension in the x-axis
Definition: cs_res.h:270
SbPar par
Parameters
Definition: cs_res.h:245
SbResModel global
Global results
Definition: cs_res.h:235
SbTilesInfo tiles
Information about the tiles used to process the image.
Definition: cs_res.h:284
array< SbResModel^> models
Models results
Definition: cs_res.h:240
bool isValid
Flag that indicate that the results contain valid data
Definition: cs_res.h:274
SbError err
Detection error
Definition: cs_res.h:260
array< SbSample^> samples
Samples results. Only Retina projects
Definition: cs_res.h:250
Model res Class that wraps the sb_t_res_model structure
Definition: cs_res.h:82
int on
: Count of Optional Negative.
Definition: cs_res.h:118
int tp
: Count of True Positive.
Definition: cs_res.h:88
int tn
: Count of True Negative.
Definition: cs_res.h:94
int op
: Count of Optional Positive.
Definition: cs_res.h:112
int fp
: Count of False Positive.
Definition: cs_res.h:100
int disabled
: Count of samples with model disabled.
Definition: cs_res.h:130
int fn
: Count of False Negative.
Definition: cs_res.h:106
int out_of_roi
: Count of Out Of ROI.
Definition: cs_res.h:124
SbSurfaceRes surface
: Surface specific results.
Definition: cs_res.h:136
Results of OCR analysis. The class wraps the sb_t_ocr_res structure
Definition: cs_res.h:146
String str
OCR result in string format
Definition: cs_res.h:151
int words
Number of the words identified
Definition: cs_res.h:155
int lines
Number of the lines identified
Definition: cs_res.h:159
Size class that wraps the sb_t_size_flt structure
Definition: cs_sb.h:104
Size class that wraps the sb_t_size structure
Definition: cs_sb.h:82
Surface res Class that wraps the sb_t_surface_res structure
Definition: cs_res.h:43
SbSurfaceImageTruth image_truth
Image truth
Definition: cs_res.h:68
SbPoint ul
Upper left coordinate of the planes images
Definition: cs_res.h:48
SbImage truth
Truth plane image
Definition: cs_res.h:60
array< SbBlob^> blobs
Array of the blobs found
Definition: cs_res.h:73
SbImage model
Model res image
Definition: cs_res.h:56
SbImage weight
Weight plane image
Definition: cs_res.h:64
SbMetrics pixel_metrics
Pixel metrics
Definition: cs_res.h:52
Results of OCR analysis. The class wraps the sb_t_ocr_res structure sb_t_tile
Definition: cs_res.h:188
SbTileType type
Tile type
Definition: cs_res.h:197
SbRect rect
Rectangle of the tile on the elaborated image
Definition: cs_res.h:193
Information about the tiles used to process the image sb_t_tiles_info
Definition: cs_res.h:207
SbSize factor
Number of horizontal and vertical tiles used to process the image
Definition: cs_res.h:212
SbSizeFlt scale
Scale factor
Definition: cs_res.h:216
array< SbTile^> tiles
Tiles array
Definition: cs_res.h:220
Version class that wraps the sb_t_version structure
Definition: cs_common.h:199
SbError
Enum error codes
Definition: cs_common.h:13
SbTileType
Enumerates the tile types and wraps the sb_t_tile_type enum
Definition: cs_res.h:169
SbSurfaceImageTruth
Surface image truth that wraps the sb_t_surface_image_truth enum
Definition: cs_res.h:16
@ SB_TILE_TYPE_USED
The tile is used.
@ SB_TILE_TYPE_USED_SVL
The tile is used for svl by sb_svl_run function.
@ SB_TILE_TYPE_NOT_USED
The tile is not used because it has no pixels in the ROI analysis.
@ SB_IMAGE_TRUTH_OVERKILL
False defects found.
@ SB_IMAGE_TRUTH_ESCAPE
Defects not found.
@ SB_IMAGE_TRUTH_GOOD
No defects.
@ SB_IMAGE_TRUTH_UNDEFINED
Undefined truth.
@ SB_IMAGE_TRUTH_NO_GOOD
Defects found.
SB Namespace
Definition: cs_common.h:3
Results of OCR analysis.
Definition: sb.h:12288
Project parameters.
Definition: sb.h:11797
Defines the results of a model.
Definition: sb.h:12452
Results of detection.
Definition: sb.h:12672
Defines the result of the Surface analysis.
Definition: sb.h:12353
Defines a tile.
Definition: sb.h:12575
Information about the tiles used to process the image.
Definition: sb.h:12593