134 lines
2.9 KiB
Java
134 lines
2.9 KiB
Java
|
package com.kofax.kmc.ken.engines.data;
|
||
|
|
||
|
import android.graphics.Point;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public abstract class DetectionSettings {
|
||
|
private Point cH;
|
||
|
private double cI;
|
||
|
private double cJ;
|
||
|
private double cK;
|
||
|
private double cL;
|
||
|
private double cM;
|
||
|
private double cN;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public DetectionSettings() {
|
||
|
this.cI = 0.0d;
|
||
|
this.cJ = 5.0d;
|
||
|
this.cK = 0.65d;
|
||
|
this.cL = 1.3d;
|
||
|
this.cM = 10.0d;
|
||
|
this.cN = 0.15d;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public DetectionSettings(DetectionSettings detectionSettings) {
|
||
|
this.cI = 0.0d;
|
||
|
this.cJ = 5.0d;
|
||
|
this.cK = 0.65d;
|
||
|
this.cL = 1.3d;
|
||
|
this.cM = 10.0d;
|
||
|
this.cN = 0.15d;
|
||
|
this.cH = detectionSettings.cH;
|
||
|
this.cI = detectionSettings.cI;
|
||
|
this.cJ = detectionSettings.cJ;
|
||
|
this.cK = detectionSettings.cK;
|
||
|
this.cL = detectionSettings.cL;
|
||
|
this.cM = detectionSettings.cM;
|
||
|
this.cN = detectionSettings.cN;
|
||
|
}
|
||
|
|
||
|
public DetectionSettings(Point point, double d, double d2) {
|
||
|
this.cI = 0.0d;
|
||
|
this.cJ = 5.0d;
|
||
|
this.cK = 0.65d;
|
||
|
this.cL = 1.3d;
|
||
|
this.cM = 10.0d;
|
||
|
this.cN = 0.15d;
|
||
|
if (point != null) {
|
||
|
this.cH = point;
|
||
|
}
|
||
|
if (d > 0.0d) {
|
||
|
this.cI = d;
|
||
|
}
|
||
|
if (d2 >= 0.0d) {
|
||
|
this.cJ = d2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setToleranceFraction(double d) {
|
||
|
if (d >= 0.0d) {
|
||
|
this.cN = d;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setTargetFramePaddingPercent(double d) {
|
||
|
if (d < 0.0d) {
|
||
|
this.cJ = 0.0d;
|
||
|
} else if (d > 50.0d) {
|
||
|
this.cJ = 50.0d;
|
||
|
} else {
|
||
|
this.cJ = d;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setTargetFrameAspectRatio(double d) {
|
||
|
if (d <= 0.0d) {
|
||
|
this.cI = 0.0d;
|
||
|
} else {
|
||
|
this.cI = d;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setMinFillFraction(double d) {
|
||
|
if (d >= 0.0d) {
|
||
|
this.cK = d;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setMaxSkewAngle(double d) {
|
||
|
if (d >= 0.0d) {
|
||
|
this.cM = d;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setMaxFillFraction(double d) {
|
||
|
if (d >= 0.0d) {
|
||
|
this.cL = d;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setCenterPoint(Point point) {
|
||
|
this.cH = point;
|
||
|
}
|
||
|
|
||
|
public double getToleranceFraction() {
|
||
|
return this.cN;
|
||
|
}
|
||
|
|
||
|
public double getTargetFramePaddingPercent() {
|
||
|
return this.cJ;
|
||
|
}
|
||
|
|
||
|
public double getTargetFrameAspectRatio() {
|
||
|
return this.cI;
|
||
|
}
|
||
|
|
||
|
public double getMinFillFraction() {
|
||
|
return this.cK;
|
||
|
}
|
||
|
|
||
|
public double getMaxSkewAngle() {
|
||
|
return this.cM;
|
||
|
}
|
||
|
|
||
|
public double getMaxFillFraction() {
|
||
|
return this.cL;
|
||
|
}
|
||
|
|
||
|
public Point getCenterPoint() {
|
||
|
return this.cH;
|
||
|
}
|
||
|
}
|