I have to translate a MATLAB code to Python, and I have to crop an image by using a given window (a rectangle). In MATLAB, the syntax is the next:
recorte = imcrop(im, v)
recorte is the cropped image, im is the image and v the rectangle window I’m using to crop it. How it would work in CV? I’m looking everywhere and didn’t get a solution.