addRequest(_:cadence:)
Adds a request to the video processor.
Declaration
final func addRequest<T>(_ request: T, cadence: VideoProcessor.Cadence? = nil) async throws -> some AsyncSequence<T.Result, any Error> where T : VisionRequest
Parameters
- request:
The request to perform.
- cadence:
The cadency that specifies how to process the frames.
Return Value
An AsyncSequence that produces a request result for each frame.
Discussion
By default, the framework processes every frame.