Updated on 2023-06-15 GMT+08:00

Initializing

This section describes how to initialize the HardSampleInferface object.

API Calling

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

Table 1 Parameters

Parameter

Description

thresholdOne

Threshold

thresholdTwo

Threshold

filterType

Type of the hard example filter. The value can be CrossEntropyFilter, IBT, or CSF. For details, see Introduction to Hard Example Upload.

If CrossEntropyFilter is used, thresholdOne corresponds to threshold_cross_entropy of CrossEntropyFilter, and thresholdTwo can be any value.

If IBT is used, thresholdOne and thresholdTwo correspond to box_threshold and img_threshold of IBT, respectively.

If CSF is used, thresholdOne and thresholdTwo correspond to box_threshold_low and box_threshold_up of CSF, respectively.

Return Value

A bool value is returned, indicating whether the initialization is successful or fails.