what-the-bank/sources/com/kofax/mobile/sdk/l/a.java

49 lines
2.0 KiB
Java

package com.kofax.mobile.sdk.l;
import com.kofax.kmc.ken.engines.ICheckDetector;
import com.kofax.kmc.ken.engines.data.CheckDetectionSettings;
import com.kofax.kmc.kui.uicontrols.PreviewFrameEvent;
import com.kofax.mobile.sdk.k.o;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class a extends c<ICheckDetector, CheckDetectionSettings> {
@Override // com.kofax.mobile.sdk.l.c, com.kofax.mobile.sdk._internal.capture.c
public /* bridge */ /* synthetic */ void a(com.kofax.mobile.sdk._internal.capture.a aVar) {
super.a(aVar);
}
@InterfaceC13391fZD
public a(ICheckDetector iCheckDetector) {
super(iCheckDetector, new CheckDetectionSettings());
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.kofax.mobile.sdk._internal.capture.c
public com.kofax.mobile.sdk._internal.capture.d a(PreviewFrameEvent previewFrameEvent) {
try {
return m.a(((ICheckDetector) this.GV).detect((CheckDetectionSettings) this.GW, previewFrameEvent.getBitmapLandscape()), previewFrameEvent, previewFrameEvent.getRotation() - previewFrameEvent.getRotationLandscape());
} catch (IllegalArgumentException e) {
com.kofax.mobile.sdk._internal.k.e("Detection failed", new RuntimeException(e));
return m.e(previewFrameEvent);
}
}
@Override // com.kofax.mobile.sdk._internal.capture.c
public void doCleanUp() {
((ICheckDetector) this.GV).destroy();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.kofax.mobile.sdk._internal.capture.c
public double getMaxFillFraction() {
return ((CheckDetectionSettings) this.GW).getMaxFillFraction();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.kofax.mobile.sdk._internal.capture.c
public o bt() {
return new o(((CheckDetectionSettings) this.GW).getTargetFrameAspectRatio(), ((CheckDetectionSettings) this.GW).getTargetFramePaddingPercent(), ((CheckDetectionSettings) this.GW).getCenterPoint());
}
}