Stay organized with collections Save and categorize content based on your preferences.

ImageProcessor.Response

public interface ImageProcessor.Response


A response for returning a processed ImageProxy to CameraX.

Summary

Public methods

abstract @Nullable ImageProxy

Gets the output image returned by the ImageProcessor.

Public methods

getOutputImage

abstract @Nullable 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
@Nullable ImageProxy

the output image.