Package apple.vision

Class VNSequenceRequestHandler

  • All Implemented Interfaces:
    NSObject

    public class VNSequenceRequestHandler
    extends NSObject
    Performs requests on a sequence of images. The VNSequenceRequestHandler is created without any specific image source. The -performRequests:on:error: methods will retain the image source for no longer than the lifetime of the call. The VNSequenceRequestHandler can choose to also cache state information related to the previously-processed image sources. API-Since: 11.0
    • Constructor Detail

      • VNSequenceRequestHandler

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

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

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

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

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

        @NotNull
        public static @NotNull 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()
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • performRequestsOnCGImageError

        public boolean performRequestsOnCGImageError​(@NotNull
                                                     @NotNull NSArray<? extends VNRequest> requests,
                                                     @NotNull
                                                     @NotNull CGImageRef image,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image in a CGImageRef.
        Parameters:
        requests - The VNRequests to be performed on the image.
        image - The CGImageRef containing the image to be processed.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnCGImageOrientationError

        public boolean performRequestsOnCGImageOrientationError​(@NotNull
                                                                @NotNull NSArray<? extends VNRequest> requests,
                                                                @NotNull
                                                                @NotNull CGImageRef image,
                                                                int orientation,
                                                                @Nullable
                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image in a CGImageRef.
        Parameters:
        requests - The VNRequests to be performed on the image.
        image - The CGImageRef containing the image to be processed.
        orientation - The orientation of the image.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnCIImageError

        public boolean performRequestsOnCIImageError​(@NotNull
                                                     @NotNull NSArray<? extends VNRequest> requests,
                                                     @NotNull
                                                     @NotNull CIImage image,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image in a CIImage.
        Parameters:
        requests - The VNRequests to be performed on the image.
        image - The CIImage containing the image to be processed.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnCIImageOrientationError

        public boolean performRequestsOnCIImageOrientationError​(@NotNull
                                                                @NotNull NSArray<? extends VNRequest> requests,
                                                                @NotNull
                                                                @NotNull CIImage image,
                                                                int orientation,
                                                                @Nullable
                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image in a CIImage.
        Parameters:
        requests - The VNRequests to be performed on the image.
        image - The CIImage containing the image to be processed.
        orientation - The orientation of the image.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnCVPixelBufferError

        public boolean performRequestsOnCVPixelBufferError​(@NotNull
                                                           @NotNull NSArray<? extends VNRequest> requests,
                                                           @NotNull
                                                           @NotNull CVBufferRef pixelBuffer,
                                                           @Nullable
                                                           @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image in a CVPixelBuffer.
        Parameters:
        requests - The VNRequests to be performed on the image.
        pixelBuffer - The CVPixelBuffer containing the image to be processed.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnCVPixelBufferOrientationError

        public boolean performRequestsOnCVPixelBufferOrientationError​(@NotNull
                                                                      @NotNull NSArray<? extends VNRequest> requests,
                                                                      @NotNull
                                                                      @NotNull CVBufferRef pixelBuffer,
                                                                      int orientation,
                                                                      @Nullable
                                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image in a CVPixelBuffer.
        Parameters:
        requests - The VNRequests to be performed on the image.
        pixelBuffer - The CVPixelBuffer containing the image to be processed.
        orientation - The orientation of the image as it is captured in the pixel buffer.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnImageDataError

        public boolean performRequestsOnImageDataError​(@NotNull
                                                       @NotNull NSArray<? extends VNRequest> requests,
                                                       @NotNull
                                                       @NotNull NSData imageData,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image with its source format in memory.
        Parameters:
        requests - The VNRequests to be performed on the image.
        imageData - The data representing the source format of the image to be processed.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnImageDataOrientationError

        public boolean performRequestsOnImageDataOrientationError​(@NotNull
                                                                  @NotNull NSArray<? extends VNRequest> requests,
                                                                  @NotNull
                                                                  @NotNull NSData imageData,
                                                                  int orientation,
                                                                  @Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image with its source format in memory.
        Parameters:
        requests - The VNRequests to be performed on the image.
        imageData - The data representing the source format of the image to be processed.
        orientation - The orientation of the image.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnImageURLError

        public boolean performRequestsOnImageURLError​(@NotNull
                                                      @NotNull NSArray<? extends VNRequest> requests,
                                                      @NotNull
                                                      @NotNull NSURL imageURL,
                                                      @Nullable
                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image referenced by an URL.
        Parameters:
        requests - The VNRequests to be performed on the image.
        imageURL - The URL of the image to be processed. If this is not a file-based URL, the method will fail.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • performRequestsOnImageURLOrientationError

        public boolean performRequestsOnImageURLOrientationError​(@NotNull
                                                                 @NotNull NSArray<? extends VNRequest> requests,
                                                                 @NotNull
                                                                 @NotNull NSURL imageURL,
                                                                 int orientation,
                                                                 @Nullable
                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on an image referenced by an URL.
        Parameters:
        requests - The VNRequests to be performed on the image.
        imageURL - The URL of the image to be processed. If this is not a file-based URL, the method will fail.
        orientation - The orientation of the image.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.
      • 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()
      • version_static

        public static long version_static()
      • performRequestsOnCMSampleBufferError

        public boolean performRequestsOnCMSampleBufferError​(@NotNull
                                                            @NotNull NSArray<? extends VNRequest> requests,
                                                            @NotNull
                                                            @NotNull CMSampleBufferRef sampleBuffer,
                                                            @Nullable
                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on the image buffer contained in the CMSampleBufferRef.
        Parameters:
        requests - The VNRequests to be performed on the image.
        sampleBuffer - A CMSampleBuffer containing an image that will be used for performing the requests. Not all types of sample buffers are supported. They need to contain a CVImageBuffer, be valid and ready.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information. API-Since: 14.0
      • performRequestsOnCMSampleBufferOrientationError

        public boolean performRequestsOnCMSampleBufferOrientationError​(@NotNull
                                                                       @NotNull NSArray<? extends VNRequest> requests,
                                                                       @NotNull
                                                                       @NotNull CMSampleBufferRef sampleBuffer,
                                                                       int orientation,
                                                                       @Nullable
                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Perform requests on the image buffer contained in the CMSampleBufferRef.
        Parameters:
        requests - The VNRequests to be performed on the image.
        sampleBuffer - A CMSampleBuffer containing an image that will be used for performing the requests. Not all types of sample buffers are supported. They need to contain a CVImageBuffer, be valid and ready.
        orientation - The orientation of the image.
        error - On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information. API-Since: 14.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.