torchsig.image_datasets.datasets.yolo_datasets.yolo_box_on_image

torchsig.image_datasets.datasets.yolo_datasets.yolo_box_on_image(img, box)[source]

returns an image tensor containing the portion of img that falls within box, where box is a tuple (cx, cy, width, height) in yolo format