7#define SAIGEVISION_MAJOR_DIGIT 1000
8#define SAIGEVISION_MINOR_DIGIT 100
11#define SAIGEVISION_MAJOR 1
13#define SAIGEVISION_MINOR 6
15#define SAIGEVISION_PATCHLEVEL 0
17#define SAIGEVISION_MINORPATCHLEVEL 0
19#define SAIGEVISION_VERSION (SAIGEVISION_MAJOR * SAIGEVISION_MAJOR_DIGIT + SAIGEVISION_MINOR * SAIGEVISION_MINOR_DIGIT + SAIGEVISION_PATCHLEVEL)
26#define SR_USE_DEPRECATED_FUNCTIONS
182 double averageColor[3];
204 int* nPointsOnContour;
205 int* pointsOnContour;
311static void PrintErrorType(
eErrorType errorType,
int verbosity = 2)
317 printf(
"Saige Vision SUCCESS, NO_ERROR_OUT, %d \n",
NO_ERROR_OUT);
322 printf(
"Saige Vision FAILED, NO_LICENCE: FEATURE NOT FOUND, %d \n",
NO_LICENCE);
330 printf(
"Saige Vision FAILED, NO_LICENSE_DONGLE: USB DONGLE NOT FOUND, %d \n",
NO_LICENSE_DONGLE);
350 printf(
"Saige Vision FAILED, NULL_INPUT, %d \n",
NULL_INPUT);
358 printf(
"Saige Vision FAILED, FILE_NOT_FOUND, %d \n",
FILE_NOT_FOUND);
366 printf(
"Saige Vision FAILED, EMPTY_IMAGE, %d \n",
EMPTY_IMAGE);
370 printf(
"Saige Vision FAILED, SMALL_IMAGE, %d \n",
SMALL_IMAGE);
390 printf(
"Saige Vision FAILED, LICENSE_EXPIRED, %d \n",
LICENSE_EXPIRED);
394 printf(
"Saige Vision FAILED, UNKNOWN_ERROR, %d \n",
UNKNOWN_ERROR);
Struct describing result of classification.
Definition: CommonHeaderDLL.h:289
int camImageHeight
height of a cam image
Definition: CommonHeaderDLL.h:305
int numClass
number of classes
Definition: CommonHeaderDLL.h:297
int * scoresIncludingAdd
scores including additional scores for each class
Definition: CommonHeaderDLL.h:295
int camImageWidth
width of a cam image
Definition: CommonHeaderDLL.h:303
int classIdx
index of the classified result
Definition: CommonHeaderDLL.h:291
int * scoresOriginal
original scores for each class
Definition: CommonHeaderDLL.h:293
void * camImage
data of a cam image
Definition: CommonHeaderDLL.h:307
Struct describing features of a detected box.
Definition: CommonHeaderDLL.h:250
void * croppedImage
data of a cropped image
Definition: CommonHeaderDLL.h:268
int croppedImageChannels
# of channels of a cropped image
Definition: CommonHeaderDLL.h:266
float filteringObjectRatio
ratio of overlapping area with the set region when the filtering object function is applied (in [0,...
Definition: CommonHeaderDLL.h:272
int croppedImageHeight
height of a cropped image
Definition: CommonHeaderDLL.h:264
int croppedImageWidth
width of a cropped image
Definition: CommonHeaderDLL.h:262
SR_RotatedBox box
detected box
Definition: CommonHeaderDLL.h:252
Structure describing features of a OCR object.
Definition: CommonHeaderDLL.h:277
const wchar_t * wtext
text information of a OCR object in wide characters
Definition: CommonHeaderDLL.h:282
SR_RotatedBox box
geometrical information of a OCR object
Definition: CommonHeaderDLL.h:279
const char * text
text information of a OCR object in multi-byte characters
Definition: CommonHeaderDLL.h:284
Structure describing features for a rotated rectangle.
Definition: CommonHeaderDLL.h:219
float x_tl
x coordinate of the top-left corner
Definition: CommonHeaderDLL.h:231
float x_br
x coordinate of the bottom-right corner
Definition: CommonHeaderDLL.h:235
float height
height of the object
Definition: CommonHeaderDLL.h:228
float y_tl
y coordinate of the top-left corner
Definition: CommonHeaderDLL.h:233
float angle
rotated angle of the object in degree (counter-clockwise)
Definition: CommonHeaderDLL.h:240
float x
x coordinate of the center of the object
Definition: CommonHeaderDLL.h:221
float width
width of the object
Definition: CommonHeaderDLL.h:226
float y_br
y coordinate of the bottom-right corner
Definition: CommonHeaderDLL.h:237
int classIdx
index of the object's class
Definition: CommonHeaderDLL.h:245
float score
feature score of the object (0 - 100)
Definition: CommonHeaderDLL.h:243
float y
y coordinate of the center of the object
Definition: CommonHeaderDLL.h:223
Struct describing features of a segmentation object.
Definition: CommonHeaderDLL.h:122
int nContours
Definition: CommonHeaderDLL.h:203
int croppedImageHeight
height of a cropped image
Definition: CommonHeaderDLL.h:195
float ellipseAngle
angle of the fitted ellipse to the object
Definition: CommonHeaderDLL.h:157
unsigned int yCenter
y coordinate of the center of the object
Definition: CommonHeaderDLL.h:127
float ellipseWidth
width of the fitted ellipse to the object
Definition: CommonHeaderDLL.h:148
unsigned int area
area of the object
Definition: CommonHeaderDLL.h:130
int croppedImageChannels
# of channels of a cropped image
Definition: CommonHeaderDLL.h:197
unsigned int width
width of the object
Definition: CommonHeaderDLL.h:133
float ellipseHeight
height of the fitted ellipse to the object
Definition: CommonHeaderDLL.h:154
int * hierarchies
Array of hierarchies for all contours of segmented object.
Definition: CommonHeaderDLL.h:211
unsigned int classIdx
class index of the object (except for background)
Definition: CommonHeaderDLL.h:160
void * croppedImage
data of a cropped image
Definition: CommonHeaderDLL.h:199
float ellipseYCenter
y coordinate of the center of the fitted ellipse to the object
Definition: CommonHeaderDLL.h:142
int croppedImageWidth
width of a cropped image
Definition: CommonHeaderDLL.h:193
float ellipseXCenter
x coordinate of the center of the fitted ellipse to the object
Definition: CommonHeaderDLL.h:139
unsigned int height
height of the object
Definition: CommonHeaderDLL.h:136
float filteringObjectRatio
ratio of overlapping area with the set region when the filtering object function is applied (in [0,...
Definition: CommonHeaderDLL.h:214
unsigned int xCenter
x coordinate of the center of the object
Definition: CommonHeaderDLL.h:124