package com.kofax.kmc.ken.engines.data; import android.graphics.Bitmap; import android.graphics.Point; import android.graphics.Rect; import com.kofax.kmc.kut.utilities.RectUtil; import com.kofax.mobile.sdk._internal.impl.detection.Frame; import java.util.List; /* loaded from: classes3.dex */ public abstract class DetectionResult { public final BoundingTetragon bounds; private Frame cG; protected final Rect targetRect; public abstract HorizontalGuidance getHorizontalMovementGuidance(); public abstract OrientationGuidance getOrientationGuidance(); public abstract TurnGuidance getTurnGuidance(); public abstract VerticalGuidance getVerticalMovementGuidance(); public abstract ZoomGuidance getZoomGuidance(); /* JADX INFO: Access modifiers changed from: protected */ public DetectionResult(Rect rect, List list, Frame frame) { b(rect, "targetRect"); b(frame, "frame"); this.targetRect = rect; this.bounds = RectUtil.buildBoundingTetragon(list); this.cG = frame; } public Bitmap getOriginalImage() { return this.cG.toBitmap(); } public String toString() { return String.format("GUIDANCE: %s %s %s %s", getZoomGuidance(), getHorizontalMovementGuidance(), getVerticalMovementGuidance(), getTurnGuidance()); } private static void b(Object obj, String str) { if (obj != null) { return; } StringBuilder sb = new StringBuilder(); sb.append(str); sb.append(" is null"); throw new IllegalArgumentException(sb.toString()); } public final Rect getTargetRect() { return this.targetRect; } public BoundingTetragon getBounds() { return this.bounds; } }