---
title: "beginAnalysis(of:)"
framework: sensitivecontentanalysis
role: symbol
role_heading: Instance Method
path: "sensitivecontentanalysis/scvideostreamanalyzer/beginanalysis(of:)-78qm"
---

# beginAnalysis(of:)

Analyzes video frames for the given capture device input.

## Declaration

```swift
func beginAnalysis(of captureDeviceInput: AVCaptureDeviceInput) throws
```

## Parameters

- `captureDeviceInput`: An object that contains information about the specific camera and its captured content in the video stream.

## Discussion

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().

## See Also

### Analyzing a video stream

- [analyze(_:)](sensitivecontentanalysis/scvideostreamanalyzer/analyze(_:).md)
- [beginAnalysis(of:)](sensitivecontentanalysis/scvideostreamanalyzer/beginanalysis(of:)-9ehkx.md)
- [analysisChanges](sensitivecontentanalysis/scvideostreamanalyzer/analysischanges.md)
- [endAnalysis()](sensitivecontentanalysis/scvideostreamanalyzer/endanalysis().md)
