OpenCV解决中文不适配
2020-11-04 本文已影响0人
湯木
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