Support opencv read and write image using utf-8 paths
Project description
Opencv读写文件的路径对utf-8符号(包括中文路径)的支持
Support opencv read and write 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opencv-utf-8-0.0.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for opencv_utf_8-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08e02bf52c286fbb16cb6a5c831fecb9745bd80d8add6ba22212f0c8ada1f251 |
|
MD5 | 05f46e858e04e67800bf3fd2643eb747 |
|
BLAKE2b-256 | 6376851668c2f17d6757961cdf1f21b39ef2f1350c0494b521b1d110fe73416e |