tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.Builder.html
public static class ImageProcessor.Builder
The Builder to create an ImageProcessor, which could be executed later.
to add a general TensorOperatorto add an ImageOperatorcomplete the building process and get a built Processor | | Builder() |
| Builder<TensorImage> |
add(Operator<T> op)
|
| ImageProcessor.Builder |
add(TensorOperator op)
Adds a TensorOperator into the Operator chain.
|
| ImageProcessor.Builder |
add(ImageOperator op)
Adds an ImageOperator into the Operator chain.
|
| ImageProcessor |
build()
Completes the building process and gets the ImageProcessor instance.
|
From class java.lang.Object
| boolean | equals(Object arg0) | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
| op | |
Adds a TensorOperator into the Operator chain. In execution, the processor calls TensorImage.getTensorBuffer() to transform the TensorImage by transforming the underlying TensorBuffer.
| op | the Operator instance to be executed then |
Adds an ImageOperator into the Operator chain.
| op | the Operator instance to be executed then |
Completes the building process and gets the ImageProcessor instance.