更新时间:2022-08-18 GMT+08:00
分享

初始化

初始化HardSampleInferface对象。

接口调用

virtual bool hilens::HardSampleInferface::Init(const float thresholdOne, const float thresholdTwo, const DetectionFilterType filterType)

表1 参数说明

参数名

说明

thresholdOne

阈值。

thresholdTwo

阈值。

filterType

难例过滤器的类型,取值分别对应“CrossEntropyFilter”“IBT”“CSF”三种算法,详情请见难例上传介绍及说明

“CrossEntropyFilter”算法的时候thresholdOne为算法“CrossEntropyFilter”的参数“threshold_cross_entropy”thresholdTwo可为任意值。

“IBT”算法的时候thresholdOnethresholdTwo分别对应“IBT”算法的“box_threshold”“img_threshold”

“CSF”的时候thresholdOnethresholdTwo分别对应“CSF”算法的“box_threshold_low”“box_threshold_up”

返回值

返回bool值,表示初始化成功或失败。

分享:

    相关文档

    相关产品