def split(img: cv2.UMat) -> cv2.UMat: img = img.get() images = [] i = 0 height, width, _ = img.shape while i < height: section = np