ImageAnalyzer

class ImageAnalyzer(cameraState: CameraState, imageAnalysisBackpressureStrategy: ImageAnalysisBackpressureStrategy, imageAnalysisTargetSize: ImageTargetSize?, imageAnalysisImageQueueDepth: Int, analyzer: ImageAnalysis.Analyzer)

Intermediate Image analyzer from cameraX

Parameters

imageAnalysisBackpressureStrategy

the backpressure strategy applied to the image producer

imageAnalysisTargetSize

the intended output size for ImageAnalysis

imageAnalysisImageQueueDepth

the image queue depth of ImageAnalysis.

analyzer

receive images and perform custom processing.

See also

Constructors

Link copied to clipboard
constructor(cameraState: CameraState, imageAnalysisBackpressureStrategy: ImageAnalysisBackpressureStrategy, imageAnalysisTargetSize: ImageTargetSize?, imageAnalysisImageQueueDepth: Int, analyzer: ImageAnalysis.Analyzer)

Functions

Link copied to clipboard
fun update(imageAnalysisBackpressureStrategy: ImageAnalysisBackpressureStrategy = ImageAnalysisBackpressureStrategy.find( cameraState.imageAnalysisBackpressureStrategy ), imageAnalysisTargetSize: ImageTargetSize? = ImageTargetSize(cameraState.imageAnalysisTargetSize), imageAnalysisImageQueueDepth: Int = cameraState.imageAnalysisImageQueueDepth, analyzer: ImageAnalysis.Analyzer = this.analyzer)

Update actual image analysis instance.