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

50 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.t;
import android.content.Context;
import bolts.Task;
import com.kofax.kmc.ken.engines.data.Image;
import com.kofax.mobile.sdk._internal.extraction.id.i;
import com.kofax.mobile.sdk._internal.extraction.id.j;
import com.kofax.mobile.sdk.extract.id.DataField;
import java.io.File;
import java.util.List;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class a extends com.kofax.mobile.sdk._internal.impl.extraction.onDevice.c {
private final d NC;
/* JADX INFO: Access modifiers changed from: package-private */
@InterfaceC13391fZD
public a(Context context, com.kofax.mobile.sdk.b.c cVar, com.kofax.mobile.sdk.b.d dVar, i iVar, j jVar) {
this(context, cVar, iVar, jVar, new d("cee"), new e());
}
private a(Context context, com.kofax.mobile.sdk.b.c cVar, i iVar, j jVar, d dVar, e eVar) {
super(cVar, new c(context, cVar, iVar, dVar, eVar), jVar);
this.NC = dVar;
}
@Override // com.kofax.mobile.sdk._internal.impl.extraction.onDevice.c, com.kofax.mobile.sdk._internal.extraction.id.b
public Task<List<DataField>> b(String str, String str2, Image image) {
if (image != null) {
File file = new File(image.getImageFilePath());
if (file.exists()) {
this.NC.az(file.getName());
} else {
this.NC.az(null);
}
e(image, "input");
}
return super.b(str, str2, image);
}
private void e(Image image, String str) {
if (image.getImageFileRep() == Image.ImageFileRep.FILE_STORED) {
this.NC.b(new File(image.getImageFilePath()), str);
} else {
this.NC.a(image.getImageBitmap(), str);
}
}
}