img = np.asarray(Image.open("testtwo.tif").convert('L'))# reading and converting image
img = 1 * (img < 127)
arraysplit = np.split(img.ravel(), 24) # here we are splitting converted to 1D array
如何获取包含按某种顺序包含多个白色像素的子数组的数组?