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)
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot