---
title: "analyze(_:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/vnvideoprocessor/analyze(_:)"
---

# analyze(_:)

Analyzes a time range of video content.

## Declaration

```swift
func analyze(_ timeRange: CMTimeRange) throws
```

## Parameters

- `timeRange`: The time range to analyze. The value must be within the time range of the video asset.

## Discussion

Discussion The system executes this method synchronously, so you typically call it from a separate dispatch queue. It returns when the video processor finishes analyzing the time range or if an error prevents processing.

## See Also

### Performing Requests

- [addRequest(_:processingOptions:)](vision/vnvideoprocessor/addrequest(_:processingoptions:).md)
- [VNVideoProcessor.RequestProcessingOptions](vision/vnvideoprocessor/requestprocessingoptions.md)
- [removeRequest(_:)](vision/vnvideoprocessor/removerequest(_:).md)
- [cancel()](vision/vnvideoprocessor/cancel().md)
- [add(_:withProcessingOptions:)](vision/vnvideoprocessor/add(_:withprocessingoptions:).md)
- [analyze(with:)](vision/vnvideoprocessor/analyze(with:).md)
