def from_detected_objects(objects):
    """Creates a :class:`fiftyone.core.labels.Detections` from an
    ``eta.core.objects.DetectedObjectContainer``.

    Args:
        objects: a ``eta.core.objects.DetectedObjectContainer``

    Returns:
        a :class:`fiftyone.core.labels.Detections`
    """
    return fol.Detections(
        detections=[from_detected_object(dobj) for dobj in objects]
    )
Creates a :class:`fiftyone.core.labels.Detections` from an
    ``eta.core.objects.DetectedObjectContainer``.

    Args:
        objects: a ``eta.core.objects.DetectedObjectContainer``

    Returns:
        a :class:`fiftyone.core.labels.Detections`
    
fiftyone/utils/eta.py