Package apple.vision

Class VNClassificationObservation

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject, VNRequestRevisionProviding

    public class VNClassificationObservation
    extends VNObservation
    VNClassificationObservation [@superclass] VNObservation VNClassificationObservation returns the classifcation in form of a string. VNClassificationObservation is the observation returned by VNCoreMLRequests that using a model that is a classifier. A classifier produces an arrary (this can be a single entry) of classifications which are labels (identifiers) and confidence scores.
    • Constructor Detail

      • VNClassificationObservation

        protected VNClassificationObservation​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • identifier

        public java.lang.String identifier()
        The is the label or identifier of a classification request. An example classification could be a string like 'cat' or 'hotdog'. The string is defined in the model that was used for the classification. Usually these are technical labels that are not localized and not meant to be used directly to be presented to an end user in the UI.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class VNObservation
      • version_static

        public static long version_static()
      • hasMinimumPrecisionForRecall

        public boolean hasMinimumPrecisionForRecall​(float minimumPrecision,
                                                    float recall)
        Determine whether or not the observation's operation point for a specific recall has a minimum precision value.
        Parameters:
        minimumPrecision - The minimum precision desired for an operation point.
        recall - The recall value used to select the operation point.
        Returns:
        YES if the precision value for the operation point specified by a recall value has the minimum value; otherwise, NO.
      • hasMinimumRecallForPrecision

        public boolean hasMinimumRecallForPrecision​(float minimumRecall,
                                                    float precision)
        Determine whether or not the observation's operation point for a specific precision has a minimum recall value.
        Parameters:
        minimumRecall - The minimum recall desired for an operation point.
        precision - The precision value used to select the operation point.
        Returns:
        YES if the recall value for the operation point specified by a precision value has the minimum value; otherwise, NO.
      • hasPrecisionRecallCurve

        public boolean hasPrecisionRecallCurve()
        Determine whether or not precision/recall curves are available with the observation. If this property is YES, then all other precision/recall related methods in this addition can be called.