# ImageAnalysisScope

Artifact: [androidx.camera:camera-core](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/core/CameraXDsl.kt+class:androidx.camera.core.ImageAnalysisScope) Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

*** ** * ** ***


```
@CameraXDsl
class ImageAnalysisScope : InteropConfigurableScope<ImageAnalysis.Builder>
```

<br />

*** ** * ** ***

Scope class for `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis` configuration DSL.

## Summary

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/java/util/concurrent/Executor.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#backgroundExecutor()` Sets or gets the background executor for image analysis tasks. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#backpressureStrategy()` Sets or gets the backpressure strategy for this use case. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#imageQueueDepth()` Sets or gets the image queue depth for this use case. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#isOutputImageRotationEnabled()` Sets or gets whether output image rotation is enabled for this use case. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#outputImageFormat()` Sets or gets the output image format for this use case. |
| `https://developer.android.com/reference/kotlin/androidx/camera/core/resolutionselector/ResolutionSelector` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#resolutionSelector()` Sets or gets the resolution selector for this use case. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#targetName()` Sets or gets the target name for this use case configuration. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysisScope#targetRotation()` Sets or gets the target rotation for this use case. |

## Public properties

### backgroundExecutor

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var backgroundExecutor: Executor
```

Sets or gets the background executor for image analysis tasks.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setBackgroundExecutor(java.util.concurrent.Executor)` |   |

### backpressureStrategy

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var backpressureStrategy: Int
```

Sets or gets the backpressure strategy for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setBackpressureStrategy(int)` |   |

### imageQueueDepth

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var imageQueueDepth: Int
```

Sets or gets the image queue depth for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setImageQueueDepth(int)` |   |

### isOutputImageRotationEnabled

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var isOutputImageRotationEnabled: Boolean
```

Sets or gets whether output image rotation is enabled for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setOutputImageRotationEnabled(boolean)` |   |

### outputImageFormat

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var outputImageFormat: Int
```

Sets or gets the output image format for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setOutputImageFormat(int)` |   |

### resolutionSelector

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var resolutionSelector: ResolutionSelector
```

Sets or gets the resolution selector for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setResolutionSelector(androidx.camera.core.resolutionselector.ResolutionSelector)` |   |

### targetName

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var targetName: String
```

Sets or gets the target name for this use case configuration.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setTargetName(java.lang.String)` |   |

### targetRotation

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
var targetRotation: Int
```

Sets or gets the target rotation for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setTargetRotation(int)` |   |