ImageProcessor.Response


interface ImageProcessor.Response


A response for returning a processed ImageProxy to CameraX.

Summary

Public functions

ImageProxy

Gets the output image returned by the ImageProcessor.

Public functions

getOutputImage

Added in 1.3.0
fun getOutputImage(): ImageProxy

Gets the output image returned by the ImageProcessor.

ImageProcessor should implement the ImageProxy and ImageProxy.PlaneProxy interfaces to create the return value. Once return, CameraX will inject the image back to the processing pipeline.

The ImageProxy must follow the instruction in the request, or CameraX may throw error. For example, the image format must match the description of the getOutputFormat.

Returns
ImageProxy

the output image.