def cv_imread(image_path):
cv_img = cv2.imdecode(np.fromfile(image_path, dtype=np.uint8), -1)
return cv_img
def cv_imwrite(write_path, img):
cv2.imencode('.jpg', img, )[1].tofile(write_path)
return
def cv_imread(image_path):
cv_img = cv2.imdecode(np.fromfile(image_path, dtype=np.uint8), -1)
return cv_img
def cv_imwrite(write_path, img):
cv2.imencode('.jpg', img, )[1].tofile(write_path)
return
本文标题:OpenCV解决中文不适配
本文链接:https://www.haomeiwen.com/subject/hfynvktx.html
网友评论