-1
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
如何获取内部包含一些白色像素数的子阵列阵列?如何根据每个子阵列中的白色像素数对NumPy子阵列进行排序?
你问[非常类似的问题六倍已经(HTTP://计算器.com/users/1101793/kvasdub?tab = questions),但你从未接受过答案。请接受答案并停止一次又一次发布相同的问题。 –