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

Determining a Hard Example Image in a Classification Algorithm

This API is used to determine the classification result.

  • API calling

    hard_sample_classification_filter(inputs,input_size)

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Type

    Description

    inputs

    Yes

    list

    Class score, for example, [class1-score, class2-score, class2-score,....], where class-score ranges from 0 to 1

    input_size

    Yes

    int

    Number of classes

  • 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.