ImageProcessor.Response


public interface ImageProcessor.Response


A response for returning a processed ImageProxy to CameraX.

Summary

Public methods

abstract @NonNull ImageProxy

Gets the output image returned by the ImageProcessor.

Public methods

getOutputImage

Added in 1.3.0
abstract @NonNull ImageProxy getOutputImage()

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
@NonNull ImageProxy

the output image.