what-the-bank/sources/com/kofax/android/abc/machine_vision/DocumentCropper.java

44 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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);
}
}