只需要:
1 im = Image.fromarray(np.uint8(“你的數組”)) 2 im.convert('RGB').save("MY.jpg",format = 'jpeg')
只需要:
1 im = Image.fromarray(np.uint8(“你的數組”)) 2 im.convert('RGB').save("MY.jpg",format = 'jpeg')
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。