what-the-bank/sources/com/kofax/mobile/sdk/y/r.java

45 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.y;
import com.kofax.kmc.ken.engines.data.Image;
import com.kofax.mobile.sdk.y.v;
import java.util.Locale;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class r implements com.kofax.mobile.sdk.c.c {
private final com.kofax.mobile.sdk.c.c Sw;
@InterfaceC13391fZD
public r(@com.kofax.mobile.sdk.z.a com.kofax.mobile.sdk.c.c cVar) {
this.Sw = cVar;
}
@Override // com.kofax.mobile.sdk.c.c
public com.kofax.mobile.sdk.c.a a(String str, Image image) {
return (com.kofax.mobile.sdk.c.a) new v().a("IdImageClassifier.classify(Bitmap, int)", new v.a<com.kofax.mobile.sdk.c.a>(this, str, image) { // from class: com.kofax.mobile.sdk.y.r.1
final String Lb;
final r Sx;
final Image yB;
{
this.Sx = this;
this.Lb = str;
this.yB = image;
}
@Override // com.kofax.mobile.sdk.y.v.a
/* renamed from: qA, reason: merged with bridge method [inline-methods] */
public com.kofax.mobile.sdk.c.a run() {
com.kofax.mobile.sdk.c.a a = this.Sx.Sw.a(this.Lb, this.yB);
if (a != null) {
try {
com.kofax.mobile.sdk._internal.k.b(this.Sx.Sw.getClass().getName(), String.format(Locale.US, "Classification result (class, confidence): (%s, %f)", a.getClassId(), Float.valueOf(a.getConfidence())));
} catch (Exception unused) {
}
}
return a;
}
});
}
}