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.3.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for opencv_utf_8-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225cc98627a4c2ee5c99408f7fcf6ebb6208774f8fde6eff00461cd4d47efccb |
|
MD5 | 6a0eb1adbff29622f38411e1054565ea |
|
BLAKE2b-256 | b2f56aa2fea93c69132e5b981ac9cf803597a72d2e679e3237f0632b117830dc |