Skip to main content

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)

Uploaded Source

Built Distribution

opencv_utf_8-0.0.5-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page