-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),但你從未接受過答案。請接受答案並停止一次又一次發佈相同的問題。 –