<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensitiveContentAnalysis",
  "identifier" : "/documentation/SensitiveContentAnalysis/SCVideoStreamAnalyzer/beginAnalysis(of:)-78qm",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Sensitive Content Analysis",
      "SensitiveContentAnalysis"
    ],
    "preciseIdentifier" : "c:objc(cs)SCVideoStreamAnalyzer(im)beginAnalysisOfCaptureDeviceInput:error:"
  },
  "title" : "beginAnalysis(of:)"
}
-->

# beginAnalysis(of:)

Analyzes video frames for the given capture device input.

```
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

Call this method to begin analyzing a video stream from the given <doc://com.apple.documentation/documentation/AVFoundation/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()`](/documentation/SensitiveContentAnalysis/SCVideoStreamAnalyzer/continueStream()).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)