Contents

init(frameAnalysisSpacing:completionHandler:)

Initializes a video-based request.

Declaration

init(frameAnalysisSpacing: CMTime, 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.

  • completionHandler:

    A closure that’s invoked after the request has completed its processing. The system invokes the completion handler on the same dispatch queue as the request performs its processing.