python cv2 读取文件中文路径问题

    技术2022-07-13  88

    一定注意读取通道是bgr

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

    注意读取结果还是bgr 而不是rgb

    Processed: 0.017, SQL: 9