imaging
            crop_image(image, roi)
¶
    Crop an image given a roi in proper format.
Parameters:
- 
            
image(ndarray) –array of size HxW or HxWxC
 - 
            
roi(tuple[int, int, int, int]) –(w_upper_left, h_upper_left, w_bottom_right, h_bottom_right)
 
Returns:
- 
              
ndarray–Cropped image based on roi
 
Source code in quadra/utils/imaging.py
              7 8 9 10 11 12 13 14 15 16 17  |  | 
            keep_aspect_ratio_resize(image, size=224, interpolation=1)
¶
    Resize input image while keeping its aspect ratio.
Source code in quadra/utils/imaging.py
              20 21 22 23 24 25 26 27 28 29 30 31 32  |  |