init(frameAnalysisSpacing:trajectoryLength:completionHandler:)
Creates a new request to detect trajectories.
Declaration
init(frameAnalysisSpacing: CMTime, trajectoryLength: Int, completionHandler: VNRequestCompletionHandler? = nil)Parameters
- frameAnalysisSpacing:
A Cmtime value that indicates the duration between analysis operations. Increase this value to reduce the number of frames analyzed on slower devices. Set this argument to Zero to analyze all frames.
- trajectoryLength:
The number of points required to analyze to determine that a shape follows a parabolic path. This argument value must be at least 5.
- completionHandler:
A closure that’s invoked after the request completes its processing. The system invokes the completion handler on the same dispatch queue that the request uses to perform its processing.