opendatalake/detection/utils.py
def move_detections(label, dy, dx):
    """
    Move detections in direction dx, dy.

    :param label: The label dict containing all detection lists.
    :param dy: The delta in y direction as a number.
    :param dx: The delta in x direction as a number.
    :return:
    """
    for k in label.keys():
        if k.startswith("detection"):
            detections = label[k]
            for detection in detections:
                detection.move_image(-dx, -dy)
def move_detections(label, dy, dx):
    """
    Move detections in direction dx, dy.

    :param label: The label dict containing all detection lists.
    :param dy: The delta in y direction as a number.
    :param dx: The delta in x direction as a number.
    :return:
    """
    for k in label.keys():
        if k.startswith("detection"):
            detections = label[k]
            for detection in detections:
                detection.move_image(-dx, -dy)
Move detections in direction dx, dy.

    :param label: The label dict containing all detection lists.
    :param dy: The delta in y direction as a number.
    :param dx: The delta in x direction as a number.
    :return: