-
public final class RecognitionA result returned by a EdgeModel describing what was recognized.
This is a generalized class to encompass common computer vision detections. All of the elements are optional because a Model may not be designed to provide all the results. Common results that you can expect for the tasks:
Classification -> id,name,displayName,confidence
Object Detections -> id,name,displayName,confidence,location
Pose Estimation -> id,name,displayName,confidence,location (maybe),keypoints
Other Tasks (coming soon)
-
-
Method Summary
Modifier and Type Method Description final IntegergetId()final StringgetName()A unique identifier for what has been recognized. final StringgetDisplayName()Display name for the recognition. final FloatgetConfidence()A sortable score for how good the recognition is relative to others. final RectFgetLocation()Optional location within the source image for the location of the recognized object. final UnitsetLocation(RectF location)Optional location within the source image for the location of the recognized object. final KeypointsgetKeypoints()StringtoString()-
-
Method Detail
-
getName
final String getName()
A unique identifier for what has been recognized. Specific to the class, not the instance of the object.
-
getDisplayName
final String getDisplayName()
Display name for the recognition.
-
getConfidence
final Float getConfidence()
A sortable score for how good the recognition is relative to others. Higher should be better.
-
getLocation
final RectF getLocation()
Optional location within the source image for the location of the recognized object.
-
setLocation
final Unit setLocation(RectF location)
Optional location within the source image for the location of the recognized object.
-
getKeypoints
final Keypoints getKeypoints()
-
-
-
-