69 lines
1.8 KiB
Java
69 lines
1.8 KiB
Java
package com.kofax.kmc.ken.engines.data;
|
|
|
|
import android.graphics.Point;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class CheckDetectionSettings extends DetectionSettings {
|
|
private CheckSide cD;
|
|
private double cE;
|
|
|
|
public CheckDetectionSettings() {
|
|
this.cD = CheckSide.FRONT;
|
|
this.cE = 0.0d;
|
|
setTargetFrameAspectRatio(2.1818181818181817d);
|
|
}
|
|
|
|
public CheckDetectionSettings(DetectionSettings detectionSettings) {
|
|
super(detectionSettings);
|
|
this.cD = CheckSide.FRONT;
|
|
this.cE = 0.0d;
|
|
}
|
|
|
|
public CheckDetectionSettings(CheckDetectionSettings checkDetectionSettings) {
|
|
super(checkDetectionSettings);
|
|
this.cD = CheckSide.FRONT;
|
|
this.cE = 0.0d;
|
|
this.cD = checkDetectionSettings.cD;
|
|
}
|
|
|
|
public CheckDetectionSettings(Point point, double d, double d2) {
|
|
super(point, d, d2);
|
|
this.cD = CheckSide.FRONT;
|
|
this.cE = 0.0d;
|
|
}
|
|
|
|
public void setSide(CheckSide checkSide) {
|
|
if (checkSide == null) {
|
|
throw new IllegalArgumentException("side is null");
|
|
}
|
|
this.cD = checkSide;
|
|
}
|
|
|
|
@Override // com.kofax.kmc.ken.engines.data.DetectionSettings
|
|
public double getTargetFrameAspectRatio() {
|
|
return super.getTargetFrameAspectRatio();
|
|
}
|
|
|
|
@Override // com.kofax.kmc.ken.engines.data.DetectionSettings
|
|
public void setTargetFrameAspectRatio(double d) {
|
|
if (d > 0.0d && d < 1.0d) {
|
|
d = 1.0d / d;
|
|
}
|
|
super.setTargetFrameAspectRatio(d);
|
|
}
|
|
|
|
public void setAspectRatioFraction(double d) {
|
|
if (d >= 0.0d) {
|
|
this.cE = d;
|
|
}
|
|
}
|
|
|
|
public CheckSide getSide() {
|
|
return this.cD;
|
|
}
|
|
|
|
public double getAspectRatioFraction() {
|
|
return this.cE;
|
|
}
|
|
}
|