MLKitImageLabelingCustom Framework Reference
CommonImageLabelerOptions
class CommonImageLabelerOptions : NSObject
Options for an image labeler.
-
The confidence threshold for labels returned by the image labeler. Labels returned by the
image labeler will have a confidence level higher or equal to the given threshold. The value must
be a floating-point value in the range [0, 1]. This property does not need to be set. For details
on behavior if the confidenceThreshold
is unset, please refer to documentation in subclass
header files. The default value is nil
.
Declaration
Swift
var confidenceThreshold: NSNumber? { get set }
-
Unavailable. Use the class methods in subclasses.
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."],[[["`CommonImageLabelerOptions` provides configuration settings for customizing image labeler behavior."],["The `confidenceThreshold` property, ranging from 0 to 1, determines the minimum confidence level for labels returned by the image labeler."],["If `confidenceThreshold` is not set, the default behavior is determined by specific subclass implementations, which should be referenced for details."],["Initialization of `CommonImageLabelerOptions` is not done directly; instead, utilize the designated class methods provided by its subclasses."]]],[]]