解决opencv 中读取中文路径的图片的问题

def cv_imread(file_path):
    cv_img = cv2.imdecode(np.fromfile(file_path,dtype=np.uint8),-1)
    return cv_img

猜你喜欢

转载自www.cnblogs.com/francischeng/p/9903364.html
今日推荐