Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Chinese file name 让img路径支持中文的一些建议 #80

Open
doom189 opened this issue Jan 26, 2022 · 2 comments
Open

Support Chinese file name 让img路径支持中文的一些建议 #80

doom189 opened this issue Jan 26, 2022 · 2 comments

Comments

@doom189
Copy link

doom189 commented Jan 26, 2022

pyautogui.locateCenterOnScreen(img
cv2.imread(Chinese FileName) is None
文件名是中文
例如: 地鼠.png
我通过搜索, 处理了
import cv2
import numpy as np
cv2.imdecode(np.fromfile("D:\haha哈哈.png",dtype=np.uint8), cv2.IMREAD_COLOR)
cv2.imdecode(np.fromfile("D:\haha哈哈.png",dtype=np.uint8), cv2.IMREAD_GRAYSCALE)
处理后如下图:
image

@doom189
Copy link
Author

doom189 commented Jan 26, 2022

Please look at pull requests#53 opened on 4 Apr 2020 by chenxi098

@doom189 doom189 closed this as completed Jan 26, 2022
@doom189 doom189 reopened this Jan 26, 2022
@doom189
Copy link
Author

doom189 commented Jan 26, 2022

#53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant