Package apple.vision

Class VNDetectTrajectoriesRequest

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class VNDetectTrajectoriesRequest
    extends VNStatefulRequest
    A request that detects trajectories of shapes (even small ones) that follow a parabolic path in a sequence of images. This request detects objects moving and (once their path follows the constraint of a parabola), a VNTrajectoryObservation will be returned with the detected points and the equation describing the parabola.
    • Constructor Detail

      • VNDetectTrajectoriesRequest

        protected VNDetectTrajectoriesRequest​(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()
      • 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 VNDetectTrajectoriesRequest initWithFrameAnalysisSpacingCompletionHandler​(CMTime frameAnalysisSpacing,
                                                                                         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.
      • initWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler

        public VNDetectTrajectoriesRequest initWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler​(CMTime frameAnalysisSpacing,
                                                                                                         long trajectoryLength,
                                                                                                         VNDetectTrajectoriesRequest.Block_initWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler completionHandler)
        Create a new request that will detect the trajectory of a shape in motion.
        Parameters:
        frameAnalysisSpacing - The reciprocal of the 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 the time stamps of the samplebuffers being processed. This property is for instance useful to throttle the processing on slower devices. If this is set to kCMTimeZero then no frames get skipped in the analysis.
        trajectoryLength - The number of points required to analyze a parabola that indicates a trajectory. Must be at least 5.
        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

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

        public float maximumObjectSize()
      • minimumObjectSize

        public float minimumObjectSize()
      • new_objc

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

        public float objectMaximumNormalizedRadius()
        Specifies the maximum radius of the bounding circle of the object to be tracked. This can be used to filter out unwanted trajectories from larger objects moving through the scene. The default is 1.0, which means no filtering is applied. Changing the maximum from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The size is specified in normalized coordinates.
      • objectMinimumNormalizedRadius

        public float objectMinimumNormalizedRadius()
        Specifies the minimum radius of the bounding circle of the object to be tracked. This can be used to filter out noise and small objects. The default is 0.0, which means no filtering is applied. Changing the property from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The value is specified in normalized coordinates.
      • resolveClassMethod

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

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

        public void setMaximumObjectSize​(float value)
      • setMinimumObjectSize

        public void setMinimumObjectSize​(float value)
      • setObjectMaximumNormalizedRadius

        public void setObjectMaximumNormalizedRadius​(float value)
        Specifies the maximum radius of the bounding circle of the object to be tracked. This can be used to filter out unwanted trajectories from larger objects moving through the scene. The default is 1.0, which means no filtering is applied. Changing the maximum from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The size is specified in normalized coordinates.
      • setObjectMinimumNormalizedRadius

        public void setObjectMinimumNormalizedRadius​(float value)
        Specifies the minimum radius of the bounding circle of the object to be tracked. This can be used to filter out noise and small objects. The default is 0.0, which means no filtering is applied. Changing the property from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The value is specified in normalized coordinates.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static NSIndexSet supportedRevisions()
      • trajectoryLength

        public long trajectoryLength()
        The number of points required to analyze a parabola that indicates a trajectory.
      • version_static

        public static long version_static()