Help Center> Huawei HiLens> Developer Guide> Hard Example Upload Module> Determining a Hard Example Image in a Detection Algorithm
Updated on 2022-02-22 GMT+08:00

Determining a Hard Example Image in a Detection Algorithm

This API is used to check the detection result.

  • API calling

    hard_sample_detection_filter(inputs)

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Type

    Description

    inputs

    Yes

    list

    Detection box, for example, [bbox1, bbox2, bbox3,....]. In bbox = [xmin, ymin, xmax, ymax, score, label], xmin, ymin, xmax, ymax, and score are of the float type, the value range of score is [0,1], and label is of the int type.

  • Return value

    A Bool value is returned. True indicates that the image is a hard example, and False indicates that the image is not a hard example.