I have the coordinates values of an image as:
tl = (result['topleft']['x'], result['topleft']['y'])
br = (result['bottomright']['x'], result['bottomright']['y'])
I would like to crop the original image (of sizes [720,720,3]) around that area of interest; what is the correct formula?
I have found this one:
crop_img = imgcv[y:y+h, x:x+w]
But I struggle to put the right values of the coordinate system in it;