public class QuadDetectorResult extends DetectorResult
DetectorResult.DetectionCode| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<QuadDetectorResult> |
CREATOR
The parcelable CREATOR
|
protected Quadrilateral |
mDetectionLocation
The detection location.
|
protected Quadrilateral |
mDisplayLocation
The detection location modified for display in UI
|
mDetectionCode, mDetectionStatus, mTransformMatrix| Constructor and Description |
|---|
QuadDetectorResult(int detectionCode,
int detectionStatus,
float[] transformMatrix,
float[] detectionLocation,
float[] displayLocation)
Constructor which uses the given parameters to initialize the object.
|
QuadDetectorResult(android.os.Parcel source)
Initializes the object from the given
Parcel. |
| Modifier and Type | Method and Description |
|---|---|
Quadrilateral |
getDetectionLocation()
Returns the location of detection in coordinate system of image on which detection was performed.
|
Quadrilateral |
getDisplayLocation()
Returns the display location in coordinate system of image on which detection was performed.
|
Quadrilateral |
getTransformedDetectionLocation()
Returns the location of detection in normalized coordinate system of visible camera frame.
|
Quadrilateral |
getTransformedDisplayLocation()
Returns the display location in normalized coordinate system of visible camera frame.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
describeContents, getDetectionCode, getDetectionCodeName, getDetectionCodeOrdinal, getDetectionStatus, setDetectionCodeprotected Quadrilateral mDetectionLocation
protected Quadrilateral mDisplayLocation
public static final android.os.Parcelable.Creator<QuadDetectorResult> CREATOR
public QuadDetectorResult(int detectionCode,
int detectionStatus,
float[] transformMatrix,
float[] detectionLocation,
float[] displayLocation)
detectionCode - Detection code from native library.detectionStatus - Detection status from native library.transformMatrix - Transformation matrix from native library.detectionLocation - Location of the detection.public QuadDetectorResult(android.os.Parcel source)
Parcel.source - The parcel.public Quadrilateral getDetectionLocation()
public Quadrilateral getTransformedDetectionLocation()
public Quadrilateral getDisplayLocation()
getDetectionLocation(),
however sometimes it can be different. While detection location is actually used to perform searching
of fields that need to be recognised, the display location is usually used for displaying the detection
feedback in UI.public Quadrilateral getTransformedDisplayLocation()
getDisplayLocation().public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class DetectorResultpublic java.lang.String toString()
toString in class DetectorResult