public class ImageProcessor implements Disposable
Class for applying chains of image processing operations.
public ImageProcessor()
Class for applying chains of image processing operations.
public void dispose()
Disposes the native resources held by this instance.
@Deprecated
@Nullable
public android.graphics.Bitmap process(@NotNull
android.graphics.Bitmap image,
@NotNull
java.lang.String operations,
boolean forceCpu)
Process provided image with list of operations.
image - provided imageoperations - list of operations serialized to JSON formatforceCpu - do not use GPU even if it is supported@Nullable
public android.graphics.Bitmap processBitmap(@NotNull
android.graphics.Bitmap image,
@NotNull
java.lang.String operations,
boolean forceCpu)
Process provided image with list of operations.
image - provided imageoperations - list of operations serialized to JSON formatforceCpu - do not use GPU even if it is supported@Nullable
public android.graphics.Bitmap processNv21(@NotNull
kotlin.Array[] nv21,
int width,
int height,
@NotNull
java.lang.String operations,
boolean forceCpu)
Process provided image with list of operations.
@Nullable
public android.graphics.Bitmap processJpeg(@NotNull
kotlin.Array[] jpeg,
@NotNull
java.lang.String operations,
boolean forceCpu)
Process provided image with list of operations.
jpeg - provided imageoperations - list of operations serialized to JSON formatforceCpu - do not use GPU even if it is supportedpublic boolean isDisposed()