|  View source on GitHub | 
Represents one detected object in the object detector's results.
tflite_support.task.processor.Detection(
    bounding_box: tflite_support.task.processor.BoundingBox,
    categories: List[tflite_support.task.processor.Category]
)
| Attributes | |
|---|---|
| bounding_box | A bounding_box_pb2.BoundingBoxobject. | 
| categories | A list of class_pb2.Categoryobjects. | 
Methods
create_from_pb2
@classmethodcreate_from_pb2( pb2_obj: _DetectionProto ) -> 'Detection'
Creates a Detection object from the given protobuf object.
to_pb2
to_pb2() -> _DetectionProto
Generates a protobuf object to pass to the C++ layer.
__eq__
__eq__(
    other: Any
) -> bool
Checks if this object is equal to the given object.
| Args | |
|---|---|
| other | The object to be compared with. | 
| Returns | |
|---|---|
| True if the objects are equal. |