SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
Detection's score threshold

Functions

eErrorType SR_GetDetTestMinScoreThresholdForSingleClass (DetTestHandle handle, const int classIdx, int *scoreThreshold)
 Get Detection's score threshold for single class. More...
 
eErrorType SR_GetDetTestMinScoreThreshold (DetTestHandle handle, int *scoreThreshold)
 Get Detection's score threshold for each class. More...
 
eErrorType SR_SetDetTestMinScoreThreshold (DetTestHandle handle, int numOfClasses, int *scoreThreshold, bool writeOnModelFile=true)
 Set Detection's score threshold for each class. More...
 

Detailed Description

Detection's Score threshold

The detected boxes, whose score is below the corresponding Score threshold, are filtered out, so not gathered by SR_GetDetTestResultAllBoxesInfo. The default value is the last value set in the Saige Vision software, and is set to 50 if it has not been changed.

Function Documentation

◆ SR_GetDetTestMinScoreThreshold()

eErrorType SR_GetDetTestMinScoreThreshold ( DetTestHandle  handle,
int *  scoreThreshold 
)

Get Detection's score threshold for each class.

Parameters
handledetection file handler
[out]scoreThresholdmemory address receiving score thresholds. The length of memory must be equal to number of classes
See also
SR_SetDetTestMinScoreThreshold
Examples
ExampleDetRuntime.cpp.

◆ SR_GetDetTestMinScoreThresholdForSingleClass()

eErrorType SR_GetDetTestMinScoreThresholdForSingleClass ( DetTestHandle  handle,
const int  classIdx,
int *  scoreThreshold 
)

Get Detection's score threshold for single class.

Parameters
handledetection file handler
classIdx
[out]scoreThresholdmemory address receiving score threshold.
See also
SR_SetDetTestMinScoreThreshold

◆ SR_SetDetTestMinScoreThreshold()

eErrorType SR_SetDetTestMinScoreThreshold ( DetTestHandle  handle,
int  numOfClasses,
int *  scoreThreshold,
bool  writeOnModelFile = true 
)

Set Detection's score threshold for each class.

Parameters
handledetection file handler
numOfClassesnumber of classes
scoreThresholdmemory address holding score thresholds. The length of memory must be equal to numOfClasses
writeOnModelFileoverwrite on model file or not
See also
SR_GetDetTestMinScoreThreshold
Examples
ExampleDetRuntime.cpp.