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

106 lines
2.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.android.abc.machine_vision;
import android.graphics.Bitmap;
import android.graphics.Point;
import java.util.Vector;
/* loaded from: classes3.dex */
public class GlareDetector {
private long m_frame;
private long m_impl = nativeCreate();
private boolean m_owner;
public static native String nativeGetVersion();
public static native boolean nativeStaticInitializer();
public native void nativeAdornFrame();
public native void nativeConfigure(String str, String str2);
public native void nativeConfigureFromString(String str, String str2);
public native long nativeCreate();
public native double nativeDetectGlare();
public native void nativeDispose();
public native Vector<Point> nativeGetGlareContours();
public native double nativeGetGlareFraction(Vector<Point> vector);
public native Bitmap nativeGetProcessedImage();
public native void nativeGrabImageFrame(Bitmap bitmap);
public native void nativeGrabVideoFrame(long j);
public native void nativeReleaseFrame();
public native void nativeRemoveGlare();
static {
if (!nativeStaticInitializer()) {
throw new RuntimeException("com.kofax.android.abc.machine_vision.GlareDetector: Static initializer failed.");
}
}
public void dispose() {
nativeDispose();
this.m_impl = 0L;
}
public static String getVersion() {
return nativeGetVersion();
}
public void loadConfigurationFile(String str, String str2) {
nativeConfigure(str, str2);
}
public void loadConfigurationString(String str, String str2) {
nativeConfigureFromString(str, str2);
}
public void grabVideoFrame(long j) {
nativeGrabVideoFrame(j);
}
public void grabImageFrame(Bitmap bitmap) {
nativeGrabImageFrame(bitmap);
}
public double detectGlare() {
return nativeDetectGlare();
}
public Vector<Point> getGlareContours() {
return nativeGetGlareContours();
}
public double getGlareFraction(Vector<Point> vector) {
return nativeGetGlareFraction(vector);
}
public void removeGlare() {
nativeRemoveGlare();
}
public void adornFrame() {
nativeAdornFrame();
}
public Bitmap getProcessedImage() {
return nativeGetProcessedImage();
}
public void releaseFrame() {
nativeReleaseFrame();
}
public long getPtr() {
return this.m_impl;
}
}