ImageAnalyzer

actual class ImageAnalyzer

Intermediate Image analyzer from cameraX

Parameters

imageAnalysisBackpressureStrategy

the backpressure strategy applied to the image producer

resolutionSelector

the intended resolution for ImageAnalysis

imageAnalysisImageQueueDepth

the image queue depth of ImageAnalysis.

analyzer

receive images and perform custom processing.

See also

expect class ImageAnalyzer

Image Analyzer used to analyze camera frames.

A class wrapper for ImageAnalysis on Android and AVCaptureOutput (e.g AVCaptureMetadataOutput) on iOS, allowing real-time processing for tasks like QR code scanning, face detection, or ML.

actual class ImageAnalyzer

Constructors

Link copied to clipboard
constructor(controller: CameraController, imageAnalysisBackpressureStrategy: ImageAnalysisBackpressureStrategy = find(controller.imageAnalysisBackpressureStrategy), resolutionSelector: ResolutionSelector? = null, imageAnalysisImageQueueDepth: Int = controller.imageAnalysisImageQueueDepth, analyzer: ImageAnalysis.Analyzer)
constructor(controller: IOSCameraController, analyzer: ImageAnalyzer.Analyzer<*>)

Types

Link copied to clipboard
class Analyzer<out T : ERROR CLASS: Symbol not found for AVCaptureOutput>(val output: T, val onOutputAttached: (T) -> Unit)

Functions

Link copied to clipboard
fun dispose()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun update(imageAnalysisBackpressureStrategy: ImageAnalysisBackpressureStrategy = find( controller.imageAnalysisBackpressureStrategy, ), imageAnalysisTargetSize: ResolutionSelector? = controller.imageAnalysisResolutionSelector, imageAnalysisImageQueueDepth: Int = controller.imageAnalysisImageQueueDepth, analyzer: ImageAnalysis.Analyzer = this.analyzer)

Update actual image analysis instance.