what-the-bank/sources/com/kofax/kmc/ken/engines/data/DocumentDetectionSettings.java

71 lines
1.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.kmc.ken.engines.data;
/* loaded from: classes3.dex */
public class DocumentDetectionSettings extends DetectionSettings {
private double cO;
private double cP;
private DocumentEdgeDetection cQ;
/* loaded from: classes3.dex */
public enum DocumentEdgeDetection {
ISG,
GPU_BASED
}
public DocumentDetectionSettings() {
this.cO = 0.85d;
this.cP = 0.85d;
this.cQ = DocumentEdgeDetection.GPU_BASED;
setMinFillFraction(0.2d);
}
public DocumentDetectionSettings(DocumentDetectionSettings documentDetectionSettings) {
super(documentDetectionSettings);
this.cO = 0.85d;
this.cP = 0.85d;
this.cQ = DocumentEdgeDetection.GPU_BASED;
this.cO = documentDetectionSettings.cO;
this.cP = documentDetectionSettings.cP;
this.cQ = documentDetectionSettings.cQ;
}
public DocumentDetectionSettings(DetectionSettings detectionSettings) {
super(detectionSettings);
this.cO = 0.85d;
this.cP = 0.85d;
this.cQ = DocumentEdgeDetection.GPU_BASED;
}
public void setShortEdgeThreshold(double d) {
b(d);
this.cO = d;
}
public void setLongEdgeThreshold(double d) {
b(d);
this.cP = d;
}
private static void b(double d) {
if (d < 0.0d || d > 1.0d) {
throw new IllegalArgumentException();
}
}
public void setEdgeDetection(DocumentEdgeDetection documentEdgeDetection) {
this.cQ = documentEdgeDetection;
}
public double getShortEdgeThreshold() {
return this.cO;
}
public double getLongEdgeThreshold() {
return this.cP;
}
public DocumentEdgeDetection getEdgeDetection() {
return this.cQ;
}
}