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.
Metadata
Release files for opencv-utf-8 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| opencv-utf-8-0.0.5.tar.gz | 2.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opencv_utf_8-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / opencv-utf-8-0.0.5.tar.gz
| Download URL | opencv-utf-8-0.0.5.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f659b02331289c4674eb2c236be2dbfa579ca025842887487a976382c9f2a74
|
|
BLAKE2b-256 checksum How to use checksums |
53f6f151612146cc494b792260a5c19b3b9ce053b7dbc82bf90e759932a64165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / opencv_utf_8-0.0.5-py3-none-any.whl
| Download URL | opencv_utf_8-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cba33d7111136acbd2496fb27a2c5cc6a57f9578f9e1ecf33055fef158ca68d
|
|
BLAKE2b-256 checksum How to use checksums |
1e402417fc2137f18292620be343868f00e3ce6fb9f218592bacd8b4ca62f502
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for opencv-utf-8 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.