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
上一篇 下一篇

猜你喜欢

热点阅读