what-the-bank/sources/com/kofax/mobile/sdk/o/i.java

67 lines
1.7 KiB
Java

package com.kofax.mobile.sdk.o;
import com.kofax.android.abc.machine_vision.DocumentTracker;
import com.kofax.android.abc.machine_vision.TrackedDocument;
import com.kofax.mobile.sdk._internal.k;
import java.util.Vector;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class i implements a {
private static final String TAG = "i";
private DocumentTracker bA = new DocumentTracker();
static {
System.loadLibrary("a1ac4");
System.loadLibrary("ee77d4");
System.loadLibrary("d8b3e6");
System.loadLibrary("b2681f");
}
/* JADX INFO: Access modifiers changed from: package-private */
@InterfaceC13391fZD
public i() {
}
@Override // com.kofax.mobile.sdk.o.a
public void a(b bVar) {
this.bA.initializeString(bVar.mb(), bVar.mc());
this.bA.reset();
this.bA.startup();
this.bA.RunDetection = false;
this.bA.RunLocalSearch = false;
this.bA.RunBoundaryDetection = false;
}
@Override // com.kofax.mobile.sdk.o.c
public TrackedDocument a(f fVar) {
b(fVar);
TrackedDocument mi = mi();
releaseFrame();
return mi;
}
@Override // com.kofax.mobile.sdk.o.c
public void destroy() {
this.bA.dispose();
}
private void b(f fVar) {
fVar.a(this.bA);
}
private TrackedDocument mi() {
this.bA.processFrame();
Vector<TrackedDocument> Documents = this.bA.Documents();
if (Documents.isEmpty()) {
k.b(TAG, "No documents found, returning null");
return null;
}
return Documents.firstElement();
}
private void releaseFrame() {
this.bA.releaseFrame();
}
}