// // VNClassifyImageRequest.h // Vision // // Copyright © 2018 Apple Inc. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @class VNClassificationObservation; /*! @brief A request for classifying an image. @discussion This request will produce a collection of VNClassificationObservation objects which describe an image. */ API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) @interface VNClassifyImageRequest : VNImageBasedRequest /*! @brief Obtain the collection of classifications currently recognized by the Vision framework. @param requestRevision The revision of the request for which classifications should be reported. @param error The address of the variable that will be populated with the error when the call fails. @return the collection of classifications for the revision, or nil if an error was encountered. */ + (nullable NSArray*) knownClassificationsForRevision:(NSUInteger)requestRevision error:(NSError**)error API_DEPRECATED_WITH_REPLACEMENT("-supportedIdentifiersAndReturnError:", macos(10.15, 12.0), ios(13.0, 15.0), tvos(13.0, 15.0)); /*! @brief Obtain the collection of identifiers supported by the target request. @discussion This method will return the collection of all possible classification identifiers that are produced by the target request based on its current state of configuration at the time of the call. @param error The address of the variable that will be populated with the error if the call fails. @return The collection of classification identifiers, or nil if a failure occurs. */ - (nullable NSArray*) supportedIdentifiersAndReturnError:(NSError**)error API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)); /*! @discussion VNClassificationObservation results. */ @property (readonly, copy, nullable) NSArray* results; @end API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) static const NSUInteger VNClassifyImageRequestRevision1 = 1; NS_ASSUME_NONNULL_END