import cv
# read img
img = cv2.imdecode(np.fromfile("测试.jpg" ,dtype=np.uint8), cv2.IMREAD_UNCHANGED)
# save img
cv2.imencode('.jpg',img)[1].tofile('测试.jpg'.)
cv读取/保存中文路径/命名图片
最新推荐文章于 2024-02-04 14:10:43 发布
import cv
# read img
img = cv2.imdecode(np.fromfile("测试.jpg" ,dtype=np.uint8), cv2.IMREAD_UNCHANGED)
# save img
cv2.imencode('.jpg',img)[1].tofile('测试.jpg'.)