Package apple.vision

Class VNGeneratePersonSegmentationRequest

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class VNGeneratePersonSegmentationRequest
    extends VNStatefulRequest
    Performs person segmentation on an image generating a mask. API-Since: 15.0
    • Constructor Detail

      • VNGeneratePersonSegmentationRequest

        protected VNGeneratePersonSegmentationRequest​(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()
      • currentRevision

        public static long currentRevision()
      • debugDescription_static

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

        public static long defaultRevision()
      • description_static

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

        public static long hash_static()
      • initWithFrameAnalysisSpacingCompletionHandler

        public VNGeneratePersonSegmentationRequest initWithFrameAnalysisSpacingCompletionHandler​(CMTime frameAnalysisSpacing,
                                                                                                 @Nullable
                                                                                                 VNStatefulRequest.Block_initWithFrameAnalysisSpacingCompletionHandler completionHandler)
        Description copied from class: VNStatefulRequest
        Create a new video-based stateful request.
        Overrides:
        initWithFrameAnalysisSpacingCompletionHandler in class VNStatefulRequest
        Parameters:
        frameAnalysisSpacing - The reciprocal of maximum rate at which buffers will be processed. The request will not process buffers that fall within the frameAnalysisSpacing after it has performed the analysis. The analysis is not done by wall time but by analysis of of the time stamps of the samplebuffers being processed.
        completionHandler - The block to be invoked after the request has completed its processing. The completion handler gets executed on the same dispatch queue as the request being executed.
      • 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)
      • outputPixelFormat

        public int outputPixelFormat()
        Pixel format type of the output buffer. Valid values are kCVPixelFormatType_OneComponent32Float, kCVPixelFormatType_OneComponent16Half, and kCVPixelFormatType_OneComponent8. Default is kCVPixelFormatType_OneComponent8.
      • qualityLevel

        public long qualityLevel()
        The quality level selects which techniques will be used during the person segmentation. There are trade-offs between performance and accuracy.
      • resolveClassMethod

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

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

        @Nullable
        public @Nullable NSArray<? extends VNPixelBufferObservation> results()
        Description copied from class: VNRequest
        [@property] results The collection of VNObservations generated by the processing of the request. The only valid time to access this property is after the request has been processed by a request handler. If the request failed, this property will be nil; otherwise, it will be an array of zero or more VNObservation subclasses specific to the VNRequest subclass.
        Overrides:
        results in class VNRequest
      • setOutputPixelFormat

        public void setOutputPixelFormat​(int value)
        Pixel format type of the output buffer. Valid values are kCVPixelFormatType_OneComponent32Float, kCVPixelFormatType_OneComponent16Half, and kCVPixelFormatType_OneComponent8. Default is kCVPixelFormatType_OneComponent8.
      • setQualityLevel

        public void setQualityLevel​(long value)
        The quality level selects which techniques will be used during the person segmentation. There are trade-offs between performance and accuracy.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @NotNull
        public static @NotNull NSIndexSet supportedRevisions()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.