有沒有簡單的解決方案可以在PIL中修剪圖像上的空白? ... ImageChops.difference(im, bg) bbox = diff.getbbox() if bbox: return im.crop(bbox).
確定! 回上一頁