Support opencv read and write image using utf-8 paths
Project description
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.
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.5.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for opencv_utf_8-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cba33d7111136acbd2496fb27a2c5cc6a57f9578f9e1ecf33055fef158ca68d |
|
MD5 | 775532f703823d0695be82de4828b941 |
|
BLAKE2b-256 | 1e402417fc2137f18292620be343868f00e3ce6fb9f218592bacd8b4ca62f502 |