beginAnalysis(of:)
Analyzes video frames for the given capture device input.
Declaration
func beginAnalysis(of captureDeviceInput: AVCaptureDeviceInput) throwsParameters
- captureDeviceInput:
An object that contains information about the specific camera and its captured content in the video stream.
Discussion
Call this method to begin analyzing a video stream from the given AVCaptureDeviceInput. If the framework detects sensitive content in the video stream, the AVCaptureDeviceInput interrupts subsequent frames with the AVCaptureSessionInterruptionReasonSensitiveContentMitigationActivated interruption reason to effectively censor the video stream on the person’s behalf. When your app is ready to show the video stream again, resume analysis by calling continueStream().