public class ImageProcessor
Class for applying chains of image processing operations.
public ImageProcessor(@NotNull
io.scanbot.sdk.process.ImageProcessor.Type type,
@NotNull
io.scanbot.sdk.blob.BlobManager blobManager)
Class for applying chains of image processing operations.
type - the type of the image processor to be initedblobManager - blob manager to load a model frompublic void dispose()
Calling this method will clear native buffer for ImageProcessor. It will be recreated if it will be called again
@Deprecated
@Nullable
public android.graphics.Bitmap process(@NotNull
android.graphics.Bitmap image,
@NotNull
java.util.List<? extends io.scanbot.sdk.process.Operation> operations,
boolean forceCpu)
Process provided image with list of operations.
image - provided imageoperations - list of operationsforceCpu - do not use GPU even if it is supported@Nullable
public android.graphics.Bitmap processBitmap(@NotNull
android.graphics.Bitmap image,
@NotNull
java.util.List<? extends io.scanbot.sdk.process.Operation> operations,
boolean forceCpu)
Process provided image with list of operations.
image - provided imageoperations - list of operationsforceCpu - do not use GPU even if it is supported@Nullable
public android.graphics.Bitmap processBitmap(@NotNull
android.graphics.Bitmap image,
@NotNull
Operation operation,
boolean forceCpu)
Process provided image with list of operations.
image - provided imageoperation - operation to applyforceCpu - 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.util.List<? extends io.scanbot.sdk.process.Operation> operations,
boolean forceCpu)
Process provided image with list of operations.
@Nullable
public android.graphics.Bitmap processNv21(@NotNull
kotlin.Array[] nv21,
int width,
int height,
@NotNull
Operation operation,
boolean forceCpu)
Process provided image with list of operations.
@Nullable
public android.graphics.Bitmap processJpeg(@NotNull
kotlin.Array[] jpeg,
@NotNull
java.util.List<? extends io.scanbot.sdk.process.Operation> operations,
boolean forceCpu)
Process provided image with list of operations.
jpeg - provided imageoperations - list of operationsforceCpu - do not use GPU even if it is supported@Nullable
public android.graphics.Bitmap processJpeg(@NotNull
kotlin.Array[] jpeg,
@NotNull
Operation operation,
boolean forceCpu)
Process provided image with list of operations.
jpeg - provided imageoperation - operation to applyforceCpu - do not use GPU even if it is supported@NotNull public io.scanbot.sdk.process.ImageProcessor.Type getType()
the type of the image processor to be inited