Get Detection's Class information.
int numOfClasses = 0;
int lengthOfClassName = 0;
for (int i = 0; i < numOfClasses; i++){
wchar_t* w_name = new wchar_t[lengthOfClassName];
delete[] w_name;
char* name = new char[lengthOfClassName];
delete[] name;
int class_color = 0;
unsigned char R = (class_color >> 16) & 0xFF;
unsigned char G = (class_color >> 8) & 0xFF;
unsigned char B = (class_color) & 0xFF;
}
◆ SR_GetDetTestMaxStrLenOfClassName()
Get a maximum length of class name.
- Parameters
-
| handle | detection file handler |
| [out] | len | maximum length of class name |
- Examples
- ExampleDetRuntime.cpp.
◆ SR_GetDetTestNumberOfClasses()
◆ SR_GetDetTestOneClassColor()
Get a color of certain class by given index.
- Parameters
-
| handle | detection file handler |
| classIdx | |
| [out] | classColor | |
- Examples
- ExampleDetRuntime.cpp.
◆ SR_GetDetTestOneClassNameWithMultiByteChar()
| eErrorType SR_GetDetTestOneClassNameWithMultiByteChar |
( |
DetTestHandle |
handle, |
|
|
const int |
classIdx, |
|
|
char * |
className |
|
) |
| |
Get a multi byte char name of certain class by given index.
- Parameters
-
| handle | detection file handler |
| classIdx | |
| [out] | className | |
- Examples
- ExampleDetRuntime.cpp.
◆ SR_GetDetTestOneClassNameWithWideChar()
Get a wide char name of certain class by given index.
- Parameters
-
| handle | detection file handler |
| classIdx | |
| [out] | className | |
- Examples
- ExampleDetRuntime.cpp.