SetConfidence[]

✅ Works in Interactive Notebook

Category: Process.

Set the confidence percentage by which to filter predictions

You can set the confidence threshold before or after you run Detect[] or Segment[]. The default confidence value is 50%.

Syntax

SetConfidence[]
SetConfidence[confidence]

Arguments

Examples

The following example finds cats in an image. Detect[] finds all the cats in the image. Then, a filter is applied so that only predictions with a confidence of 90% or higher are returned. Then, the predictions that meet the criteria are displayed on the image of the cat.

Load["./cat.jpg"]
Detect["cat"]
SetConfidence[90]
Show[]

See Also

Made with ❤️ by capjamesg