MLKitImageLabeling Framework Reference
ImageLabelerOptions
Options for an image labeler.
-
Initializes an ImageLabelerOptions
instance with the confidenceThreshold
property
set to nil
. If it remains unset, a default confidence threshold value of 0.5
will be used.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[null,null,["Last updated 2024-07-10 UTC."],[[["ImageLabelerOptions are used to configure an image labeler."],["The `confidenceThreshold` property determines the minimum confidence required for a label to be considered, defaulting to 0.5 if unset."],["Initializing `ImageLabelerOptions` with `init()` sets `confidenceThreshold` to `nil`, allowing the default value to be used."]]],["The `ImageLabelerOptions` class provides configuration for image labeling. It's initialized using `init()`, setting the `confidenceThreshold` property to `nil`. If the `confidenceThreshold` remains unset after initialization, the system uses a default confidence threshold of `0.5` during the image labeling process. This class allows for controlling the minimum confidence level needed for a label to be considered valid.\n"]]