what-the-bank/sources/com/kofax/mobile/sdk/extract/id/DataField.java

31 lines
1.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.extract.id;
import com.kofax.mobile.sdk.capture.model.Field;
import com.kofax.mobile.sdk.capture.model.FieldLocation;
import java.io.Serializable;
/* loaded from: classes3.dex */
public class DataField extends Field<String> implements Serializable {
public DataField(String str, String str2, double d, FieldLocation fieldLocation) {
super(str, str2, d, fieldLocation);
}
public static DataField fromExtractorField(com.kofax.android.abc.document.Field field) {
return new DataField(field.getLabel(), field.getValue(), field.getConfidence(), new FieldLocation(field.getRectangle().left, field.getRectangle().top, field.getRectangle().width(), field.getRectangle().height()));
}
@Override // com.kofax.mobile.sdk.capture.model.Field
public double getConfidence() {
return super.getConfidence();
}
@Override // com.kofax.mobile.sdk.capture.model.Field
public String getObject() {
String str = (String) super.getObject();
if (str != null) {
return str.trim();
}
return null;
}
}