what-the-bank/sources/com/kofax/mobile/sdk/n/c.java

80 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.n;
import java.util.Locale;
/* loaded from: classes3.dex */
public class c implements com.kofax.mobile.sdk.o.b {
private static final String HW = "<?xml version='1.0' encoding='iso-8859-1'?><Configuration name='Cadence'> <Section name='DocumentTracker'> <Parm name='DetectorConfig' type='DetectorConfig' value='GenericSingleConfig'/> <Parm name='MaxTrackedDocuments' type='int' value='1'/> <Parm name='FrameHistorySize' type='int' value='50'/> </Section> <Section name='GenericSingleConfig'> <Parm name='DetectorType' type='string' value='GenericSingleDetector'/> <Parm name='SegmentationConfig' type='string' value='GenericSingleSegmentationConfig'/> <Parm name='RelativeAreaRatio1' type='float' value='0.005'/> <Parm name='RelativeAreaRatio2' type='float' value='%f'/> <Parm name='IsCornerDetection' type='bool' value='yes'/> <Parm name='RelativeImageMarginX' type='float' value='0.0'/> <Parm name='RelativeImageMarginY' type='float' value='0.0'/> </Section> <Section name='GenericSingleSegmentationConfig'> <Parm name='EdgeType' type='string' value='%s'/> <Parm name='ScaleFactor' type='float' value='%f'/> <Parm name='SmoothingSize' type='int' value='3'/> <Parm name='FilterSize' type='int' value='3'/> <Parm name='EdgeLowThreshold' type='int' value='30'/> <Parm name='EdgeHighThreshold' type='int' value='255'/> <Parm name='ContrastThreshold' type='int' value='50'/> </Section></Configuration>";
private float HX = 0.2f;
private a HY = a.Ia;
private float HZ = 0.2f;
@Override // com.kofax.mobile.sdk.o.b
public String mb() {
Locale locale = Locale.US;
float f = this.HX;
return String.format(locale, HW, Float.valueOf(f), this.HY.name, Float.valueOf(this.HZ));
}
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Found several "values" enum fields: [] */
/* loaded from: classes3.dex */
public static final class a {
public static final a Ia;
public static final a Ib;
public static final a Ic;
private static final a[] Ie;
private static final a[] If;
private final String name;
public static a valueOf(String str) {
return (a) Enum.valueOf(a.class, str);
}
public static a[] values() {
return (a[]) If.clone();
}
static {
a aVar = new a("MAIN_COMPONENT", 0, "MainComponent");
Ia = aVar;
a aVar2 = new a("MAX_COLOR_VARIATION", 1, "MaxColorVariation");
Ib = aVar2;
a aVar3 = new a("COLOR_EDGE", 2, "ColorEdge");
Ic = aVar3;
If = new a[]{aVar, aVar2, aVar3};
Ie = values();
}
private a(String str, int i, String str2) {
this.name = str2;
}
public final a md() {
a[] aVarArr = Ie;
return aVarArr[(ordinal() + 1) % aVarArr.length];
}
}
@Override // com.kofax.mobile.sdk.o.b
public String mc() {
return "DocumentTracker";
}
public a ma() {
return this.HY;
}
public void j(float f) {
this.HZ = f;
}
public void i(float f) {
this.HX = f;
}
public void a(a aVar) {
this.HY = aVar;
}
}