Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
需要帮助将 numpy 数组图像转换为全彩色图像我必须使用 PIL,因为在此过程完成后我会将图像上传到 ftp 服务器
谢谢你
cv2使用 BGR,Image使用 RGB。所以恢复频道顺序会起作用
cv2
Image
Image.fromarray(numpy_array[:,:,::-1].astype('uint8'))