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

# beginAnalysis(of:)

Analyzes video frames for the given decompression session.

## Declaration

```swift
func beginAnalysis(of decompressionSession: VTDecompressionSession) throws
```

## Parameters

- `decompressionSession`: An object that provides video frames for your app to analyze for sensitive content.

## Discussion

Discussion If the framework detects sensitive content in the video stream, the VTDecompressionSession produces blank frames 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:)-78qm.md)
- [analysisChanges](sensitivecontentanalysis/scvideostreamanalyzer/analysischanges.md)
- [endAnalysis()](sensitivecontentanalysis/scvideostreamanalyzer/endanalysis().md)
