def METHOD_NAME(self, image_file, boxes, save_path):
    import cv2
    try:
        import paddlex as pdx
    except Exception as e:
        raise Exception(
            "Error happend: {}, if you haven't installed paddlex, please try to `pip install paddlex`"
        )
    packed_result = list()
    for i in range(len(boxes)):
        label_id, score, xmin, ymin, xmax, ymax = boxes[i].flatten().tolist(
        )
        label_id = int(label_id)
        w = xmax - xmin
        h = ymax - ymin
        result = dict()
        result['category'] = str(label_id)
        result['score'] = score
        result['bbox'] = [xmin, ymin, w, h]
        packed_result.append(result)
    vis_result = pdx.det.METHOD_NAME(image_file, packed_result, 0.0, None)
    cv2.imwrite(save_path, vis_result)