44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package com.kofax.android.abc.machine_vision;
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class DocumentCropper {
|
|
private long m_impl = nativeCreate();
|
|
|
|
public static native boolean nativeInit();
|
|
|
|
public native long nativeCreate();
|
|
|
|
public native Bitmap nativeCropImage(Bitmap bitmap);
|
|
|
|
public native void nativeDispose();
|
|
|
|
public native void nativeInitializeFromFile(String str, String str2);
|
|
|
|
public native void nativeInitializeFromString(String str, String str2);
|
|
|
|
static {
|
|
if (!nativeInit()) {
|
|
throw new RuntimeException("com.kofax.android.abc.machine_vision: Static initializer failed.");
|
|
}
|
|
}
|
|
|
|
public void dispose() {
|
|
nativeDispose();
|
|
this.m_impl = 0L;
|
|
}
|
|
|
|
public void initializeFile(String str, String str2) {
|
|
nativeInitializeFromFile(str, str2);
|
|
}
|
|
|
|
public void initializeString(String str, String str2) {
|
|
nativeInitializeFromString(str, str2);
|
|
}
|
|
|
|
public Bitmap cropImage(Bitmap bitmap) {
|
|
return nativeCropImage(bitmap);
|
|
}
|
|
}
|