what-the-bank/sources/com/kofax/mobile/sdk/x/ac.java

46 lines
1.5 KiB
Java

package com.kofax.mobile.sdk.x;
import com.kofax.kmc.ken.engines.data.Image;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class ac extends t {
public static final String Re = "Generic";
private static final com.kofax.mobile.sdk.c.a Rf = new com.kofax.mobile.sdk.c.a() { // from class: com.kofax.mobile.sdk.x.ac.1
@Override // com.kofax.mobile.sdk.c.a
public final float getConfidence() {
return 1.0f;
}
@Override // com.kofax.mobile.sdk.c.a
public final String getClassId() {
return ac.Re;
}
};
@InterfaceC13391fZD
public ac() {
}
@Override // com.kofax.mobile.sdk.w.k.a
public Image i(com.kofax.mobile.sdk.e.a aVar) {
return aVar.hr().NW;
}
@Override // com.kofax.mobile.sdk.w.k.a
public void a(com.kofax.mobile.sdk.e.a aVar, com.kofax.mobile.sdk.c.a aVar2, Exception exc) {
if (f(aVar, exc)) {
d(Rf);
} else {
d(aVar2);
}
setException(exc);
}
private boolean f(com.kofax.mobile.sdk.e.a aVar, Exception exc) {
return exc != null && KmcRuntimeException.class.isAssignableFrom(exc.getClass()) && ((KmcRuntimeException) exc).getErrorInfo().equals(ErrorInfo.KMC_CL_CLASSIFICATION_CONFIDENCE_LOW) && aVar.ht().equals(com.kofax.mobile.sdk.e.a.vM);
}
}