58 lines
1.4 KiB
Java
58 lines
1.4 KiB
Java
package com.kofax.kmc.ken.engines.data;
|
|
|
|
import android.graphics.Point;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class FixedAspectRatioDetectionSettings {
|
|
private Point cH;
|
|
private double cI;
|
|
private double cJ;
|
|
|
|
public FixedAspectRatioDetectionSettings() {
|
|
this.cI = 0.6296296119689941d;
|
|
this.cJ = 8.0d;
|
|
}
|
|
|
|
public FixedAspectRatioDetectionSettings(FixedAspectRatioDetectionSettings fixedAspectRatioDetectionSettings) {
|
|
this.cI = 0.6296296119689941d;
|
|
this.cJ = 8.0d;
|
|
this.cH = fixedAspectRatioDetectionSettings.cH;
|
|
this.cI = fixedAspectRatioDetectionSettings.cI;
|
|
this.cJ = fixedAspectRatioDetectionSettings.cJ;
|
|
}
|
|
|
|
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 setCenterPoint(Point point) {
|
|
this.cH = point;
|
|
}
|
|
|
|
public double getTargetFramePaddingPercent() {
|
|
return this.cJ;
|
|
}
|
|
|
|
public double getTargetFrameAspectRatio() {
|
|
return this.cI;
|
|
}
|
|
|
|
public Point getCenterPoint() {
|
|
return this.cH;
|
|
}
|
|
}
|