Skip to content

azzhu/opencv-utf-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opencv读写图像对utf-8路径(包括中文路径)的支持

Support opencv reading and writing image using utf-8 paths.

Install

Install using pip:

pip install opencv-utf-8

or:

pip install -i https://pypi.org/simple/ opencv-utf-8

Usage

import cv2_ext
import cv2

img = cv2_ext.imread(r'E:\壁纸\pc-twoup-weibu.jpg')
cv2.imshow('', img)
cv2.waitKey()

cv2_ext.imwrite(r'E:\壁纸\pc-twoup-weibu_中文.tif', img)

Thanks.

Good luck bro.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages