public abstract class DetectorResult
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
DetectorResult.DetectionCode |
| Modifier and Type | Field and Description |
|---|---|
protected DetectorResult.DetectionCode |
mDetectionCode
Detection code which indicates the type of detection
|
protected DetectionStatus |
mDetectionStatus
Detection status which indicates the status of the detection
|
protected android.graphics.Matrix |
mTransformMatrix |
| Modifier | Constructor and Description |
|---|---|
protected |
DetectorResult(int detectionCode,
int detectionStatus,
float[] transformMatrix)
Constructor of base
DetectorResult class. |
protected |
DetectorResult(android.os.Parcel source)
Initializes the object from the given
Parcel. |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
DetectorResult.DetectionCode |
getDetectionCode()
Getter for detection code which indicates the type of detection.
|
protected java.lang.String |
getDetectionCodeName()
Returns the detection code name.
|
protected int |
getDetectionCodeOrdinal()
Returns the detection code as it is in the native library.
|
DetectionStatus |
getDetectionStatus()
Returns the detection status of the detector result.
|
protected void |
setDetectionCode(int detectionCode)
Sets the detection code member variable(s) based on detection code from native library.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
protected DetectorResult.DetectionCode mDetectionCode
protected DetectionStatus mDetectionStatus
protected android.graphics.Matrix mTransformMatrix
protected DetectorResult(int detectionCode,
int detectionStatus,
float[] transformMatrix)
DetectorResult class.detectionCode - Detection code from native library.detectionStatus - Detection status from native library.transformMatrix - Transformation matrix which can be used to transform this result's coordinate system into
coordinate system of visible camera frame normalized to unit rectangle.protected DetectorResult(android.os.Parcel source)
Parcel.source - The parcel.public DetectorResult.DetectionCode getDetectionCode()
protected void setDetectionCode(int detectionCode)
detectionCode - Detection code from native library.protected int getDetectionCodeOrdinal()
protected java.lang.String getDetectionCodeName()
public DetectionStatus getDetectionStatus()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelable