Which API to change Image Match (Content Moderator) Confidence Threshold ?

Nam Hong Phuc Dang 1 Reputation point
2022-12-21T08:22:38.763+00:00

Please supply a document about the way to change confidence threshold when using Content Moderator Image Match API. Because if the API return "isMatch = false", It does not give any score (percentage) about this false result.

Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Rohit Mungi 49,106 Reputation points Microsoft Employee Moderator
    2022-12-21T12:34:00.773+00:00

    @Nam Hong Phuc Dang As per the documentation if you need to use custom thresholds you will have to define a custom list for images that you want a score to be returned.

    If a match is found, the operation returns the identifier and the moderation tags of the matched image. The response includes this information:

    • Match score (between 0 and 1)
    • Matched image
    • Image tags (assigned during previous moderation)
    • Image labels

    To create a image list use the image lists - create API to create a new list.
    Use the list id from above with the image - Add Image API to add the images.
    Pass the image to match API with the above list id.

    I hope this helps!!

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.