def pascal_pixel_2_coco_pixel(boxes, images):
    """
    Converts bounding boxes from Pascal VOC pixel format (LTRB)
    to COCO pixel format (x, y, width, height).

    @param boxes: numpy array of images (N, 4), bounding boxes in Pascal VOC format.
    @param images: tuple, the images of the image (height, width).

    @return: numpy array of images (N, 4), bounding boxes in COCO pixel format.
    """
    pascal_boxes = []
    for box in boxes:
        if box.size != 0:
            pascal_boxes.append(
                np.stack(
                    (
                        box[:, 0],
                        box[:, 1],
                        box[:, 2] - box[:, 0],
                        box[:, 3] - box[:, 1],
                    ),
                    axis=1,
                )
            )
        else:
            pascal_boxes.append(box)
    return pascal_boxes

    Converts bounding boxes from Pascal VOC pixel format (LTRB)
    to COCO pixel format (x, y, width, height).

    @param boxes: numpy array of images (N, 4), bounding boxes in Pascal VOC format.
    @param images: tuple, the images of the image (height, width).

    @return: numpy array of images (N, 4), bounding boxes in COCO pixel format.
    
python/deeplake/integrations/mmdet/mmdet_dataset_.py