You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The functions imread for reading images and imshow for setting image titles can support Chinese characters
Actual behaviour
1.When using the imread function to read an image with a path that includes Chinese characters, the function returns None.
2.When using the imshow function to display an image with a Chinese title set, the displayed title appears as corrupted text.
After reviewing the relevant documentation, I remain unclear on how to resolve the issue.
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
I'm using the latest version of opencv-python
The text was updated successfully, but these errors were encountered:
Expected behaviour
The functions imread for reading images and imshow for setting image titles can support Chinese characters
Actual behaviour
1.When using the imread function to read an image with a path that includes Chinese characters, the function returns None.
2.When using the imshow function to display an image with a Chinese title set, the displayed title appears as corrupted text.
After reviewing the relevant documentation, I remain unclear on how to resolve the issue.
Steps to reproduce
`import cv2
def read_img(img_path):
img = cv2.imread(img_path)
return img
def show_img(img,title):
cv2.imshow(title,img)
cv2.waitKey()
img=read_img(r'D:\测试\lenna.png')
print(img) # the result is None
img=read_img(r'D:\Test\lenna.png')
show_img(img,'测试')`
Issue submission checklist
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
I'm using the latest version of
opencv-python
The text was updated successfully, but these errors were encountered: