难例图片判断
根据结果判断输入图片是否是难例。
接口调用
virtual bool Filter(const float inferResult[], const int size);
virtual bool Filter(const std::vector<Bbox> &bboxList, DetectionFilterType type);
|
参数名 |
说明 |
|---|---|
|
inferResult[] |
float数组,分类算法得到的各类别置信度。 |
|
size |
输入大小。 |
|
参数名 |
说明 |
|---|---|
|
bboxList |
std::vector<Bbox>,BBox结构体定义如下。 structBbox
{
float xmin;
float ymin;
float xmax;
float ymax;
float score;
int label;
Bbox(floatbboxXmin, floatbboxYmin, floatbboxXmax, floatbboxYmax, floatbboxScore, intbboxLabel):
xmin(bboxXmin), ymin(bboxYmin), xmax(bboxXmax), ymax(bboxYmax), score(bboxScore), label(bboxLabel){}
};
参数说明详见表3。 |
|
type |
难例过滤器的类型,取值分别对应“CrossEntropyFilter”、“IBT”和“CSF”三种算法,详情请见难例上传介绍及说明。 |
|
参数值 |
说明 |
|---|---|
|
xmin |
检测框的坐标值。 |
|
ymin |
检测框的坐标值。 |
|
xmax |
检测框的坐标值。 |
|
ymax |
检测框的坐标值。 |
|
score |
检测框的得分。 |
|
label |
检测框的类别。 |
返回值
返回bool值,表示是否是难例图片。