def draw_box_on_image(image: np.ndarray, box: tuple, det_path: str):
    """
    Draw a bounding box on an image and save the result to a file.

    Args:
        image (np.ndarray): The input image.
        box (tuple): The bounding box coordinates in the format (x1, y1, x2, y2).
        det_path (str): The path to save the resulting image with the bounding box.

    Returns:
        None
    """
    plot_image = image.copy()
    height, width, _ = image.shape

    x1, y1, x2, y2 = box
    x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)

    # Draw the bounding box on the image
    cv2.rectangle(plot_image, (x1, y1), (x2, y2), (0, 255, 0), 2)

    # Save the image with the bounding box to the specified path
    cv2.imwrite(det_path, plot_image)

    Draw a bounding box on an image and save the result to a file.

    Args:
        image (np.ndarray): The input image.
        box (tuple): The bounding box coordinates in the format (x1, y1, x2, y2).
        det_path (str): The path to save the resulting image with the bounding box.

    Returns:
        None
    
scripts/easyphoto_utils/tryon_utils.py