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 details)
Built Distribution
File details
Details for the file opencv-utf-8-0.0.5.tar.gz
.
File metadata
- Download URL: opencv-utf-8-0.0.5.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f659b02331289c4674eb2c236be2dbfa579ca025842887487a976382c9f2a74 |
|
MD5 | d7394d3fc2303f4bca0ccaaa204911eb |
|
BLAKE2b-256 | 53f6f151612146cc494b792260a5c19b3b9ce053b7dbc82bf90e759932a64165 |
File details
Details for the file opencv_utf_8-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: opencv_utf_8-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cba33d7111136acbd2496fb27a2c5cc6a57f9578f9e1ecf33055fef158ca68d |
|
MD5 | 775532f703823d0695be82de4828b941 |
|
BLAKE2b-256 | 1e402417fc2137f18292620be343868f00e3ce6fb9f218592bacd8b4ca62f502 |