
# 初始化
初始化HardSampleInferface对象。
#### 接口调用
virtual bool hilens::HardSampleInferface::Init(const float thresholdOne, const float thresholdTwo, const DetectionFilterType filterType)
表1参数说明 
| 参数名          | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|:---|:---|
| thresholdOne | 阈值。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| thresholdTwo | 阈值。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| filterType   | 难例过滤器的类型，取值分别对应"CrossEntropyFilter"、"IBT"和"CSF"三种算法，详情请见[难例上传介绍及说明](https://support.huaweicloud.com/sdkreference-hilens/hilens_03_0059.html)。 取"CrossEntropyFilter"算法的时候thresholdOne为算法"CrossEntropyFilter"的参数"threshold_cross_entropy"，thresholdTwo可为任意值。 取"IBT"算法的时候thresholdOne和thresholdTwo分别对应"IBT"算法的"box_threshold"和"img_threshold"。 取"CSF"的时候thresholdOne和thresholdTwo分别对应"CSF"算法的"box_threshold_low"和"box_threshold_up"。 |
   
#### 返回值
返回bool值，表示初始化成功或失败。
