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

Functions

eErrorType SR_GetDetTestPixelSizeThreshold (DetTestHandle handle, int *areaThreshold)
 Get Detection's area threshold for each class. More...
 
eErrorType SR_SetDetTestPixelSizeThreshold (DetTestHandle handle, int *areaThreshold, bool writeOnModelFile=true)
 Set Detection's area threshold for each class. More...
 

Detailed Description

Detection's Area threshold

The detected boxes, whose area is below the corresponding Area threshold, are filtered out, so not gathered by SR_GetDetTestResultAllBoxesInfo.

Function Documentation

◆ SR_GetDetTestPixelSizeThreshold()

eErrorType SR_GetDetTestPixelSizeThreshold ( DetTestHandle  handle,
int *  areaThreshold 
)

Get Detection's area threshold for each class.

Parameters
handledetection file handler
[out]areaThresholdmemory address receiving area threshold. The length of memory must be equal to number of classes
See also
SR_SetDetTestPixelSizeThreshold
Examples
ExampleDetRuntime.cpp.

◆ SR_SetDetTestPixelSizeThreshold()

eErrorType SR_SetDetTestPixelSizeThreshold ( DetTestHandle  handle,
int *  areaThreshold,
bool  writeOnModelFile = true 
)

Set Detection's area threshold for each class.

Parameters
handledetection file handler
areaThresholdmemory address holding area threshold. The length of memory must be equal to number of classes
writeOnModelFileoverwrite on model file or not
See also
SR_GetDetTestPixelSizeThreshold
Examples
ExampleDetRuntime.cpp.