Class VNClassifyImageRequest

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class VNClassifyImageRequest
extends VNImageBasedRequest
Since:
Available in iOS 13.0 and later.
  • Field Details

  • Constructor Details

    • VNClassifyImageRequest

      public VNClassifyImageRequest()
    • VNClassifyImageRequest

      protected VNClassifyImageRequest​(NSObject.Handle h, long handle)
    • VNClassifyImageRequest

      protected VNClassifyImageRequest​(NSObject.SkipInit skipInit)
    • VNClassifyImageRequest

      public VNClassifyImageRequest​(VoidBlock2<VNRequest,​NSError> completionHandler)
  • Method Details

    • getResults

      public NSArray<VNClassificationObservation> getResults()
      Overrides:
      getResults in class VNRequest
    • getSupportedRevisions

      public static NSIndexSet getSupportedRevisions()
      Since:
      Available in iOS 12.0 and later.
    • getDefaultRevision

      public static long getDefaultRevision()
      Since:
      Available in iOS 12.0 and later.
    • getCurrentRevision

      public static long getCurrentRevision()
      Since:
      Available in iOS 12.0 and later.
    • supportedIdentifiersAndReturnError

      public NSArray<NSString> supportedIdentifiersAndReturnError​(NSError.NSErrorPtr error)
      Since:
      Available in iOS 15.0 and later.
    • getKnownClassificationsForRevision

      @Deprecated public static NSArray<VNClassificationObservation> getKnownClassificationsForRevision​(long requestRevision) throws NSErrorException
      Deprecated.
      Deprecated in iOS 15.0. Use -supportedIdentifiersAndReturnError:
      Throws:
      NSErrorException
      Since:
      Available in iOS 13.0 and later.