Back to Tensorflow

ImageProcessingOptions.Builder

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Builder.html

2.21.02.9 KB
Original Source

public static abstract class ImageProcessingOptions.Builder

Builder for ImageProcessingOptions.

Public Constructors

| | Builder() |

Public Methods

| ImageProcessingOptions | build() | | abstract ImageProcessingOptions.Builder | setOrientation(ImageProcessingOptions.Orientation orientation) Sets the orientation of the image.

| | abstract ImageProcessingOptions.Builder | setRoi(Rect roi) Sets the region of interest (ROI) of the image.

|

Inherited Methods

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() |

Public Constructors

public Builder ()

Public Methods

public ImageProcessingOptions build ()

public abstract ImageProcessingOptions.Builder setOrientation (ImageProcessingOptions.Orientation orientation)

Sets the orientation of the image. Defaults to ImageProcessingOptions.Orientation.TOP_LEFT.

Rotation will be applied accordingly so that inference is performed on an "upright" image.

Parameters

| orientation | |

public abstract ImageProcessingOptions.Builder setRoi (Rect roi)

Sets the region of interest (ROI) of the image. Defaults to the entire image.

Cropping according to this region of interest is prepended to the pre-processing operations.

Parameters

| roi | |