Represents a detected object by
FirebaseVisionObjectDetector.
| @interface | FirebaseVisionObject.Category | Classification category of detected objects. | |
| int | CATEGORY_FASHION_GOOD | |
| int | CATEGORY_FOOD | |
| int | CATEGORY_HOME_GOOD | |
| int | CATEGORY_PLACE | |
| int | CATEGORY_PLANT | |
| int | CATEGORY_UNKNOWN |
| Rect |
getBoundingBox()
Gets the axis-aligned bounding rectangle of the detected object.
|
| int |
getClassificationCategory()
Gets the
FirebaseVisionObject.Category of the object.
|
| Float |
getClassificationConfidence()
Gets the confidence of the on-device object classification.
|
| Integer |
getTrackingId()
Gets the tracking ID of the object.
|
Gets the axis-aligned bounding rectangle of the detected object.
Gets the
FirebaseVisionObject.Category of the object. If on-device classification is
disabled, it returns
CATEGORY_UNKNOWN.
Gets the confidence of the on-device object classification. To be valid, the
confidence must be in the range [0.0, 1.0]. If the confidence is
CATEGORY_UNKNOWN, the call will return null.
Gets the tracking ID of the object. The ID is a non-negative number in
STREAM_MODE and null in
SINGLE_IMAGE_MODE.