-
Notifications
You must be signed in to change notification settings - Fork 574
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
运行get_faces_from_camera_tkinter.py输入中文名,保存图片时 显示保存成功,但目录下没有,英文名字则没问题 #63
Comments
解决了,使用cv2.imencode即可 |
怎么弄的啊大佬 |
|
使用Pillow保存图像就行了,OpenCV默认不支持非ASCII字符路径 |
好的大佬,非常感谢
丁嘉欣
***@***.***
河南大学
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年11月4日(周一) 下午4:53
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [coneypo/Dlib_face_recognition_from_camera] 运行get_faces_from_camera_tkinter.py输入中文名,保存图片时 显示保存成功,但目录下没有,英文名字则没问题 (Issue #63)
使用Pillow保存图像就行了,OpenCV默认不支持非ASCII字符路径
img_pil = Image.fromarray(self.face_ROI_image)
img_pil.save(self.current_face_dir + "/img_face_" + str(self.ss_cnt) + ".jpg")
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: