Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Imshow incorrect title if non ascii characters

未关闭
#621 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python

调研方向

首先,使用提供的 Python 代码片段和 opencv-python 4.5.5.62 重现报告的 Windows 10 X86 案例。先检查仓库 README 和构建工具链的范围;payload 未提供文件或测试入口点,而报告的 imshow 行为可能属于 OpenCV,而不是这个 packaging 仓库。

由索引模型根据 Issue 内容生成。

描述

bug
Expected behaviour

I put a title on imshow like 'Données du ministère de la santé' and I expect to show it

Actual behaviour

The title show is 'Données du ministère de la santé'

Steps to reproduce
  • example code
from cv2 import imshow, waitKey, destroyAllWindows, imread

from PIL import Image, ImageDraw, ImageFont
filename = "tmp.png"
fnt = ImageFont.truetype('arial.ttf', 20)
image = Image.new(mode = "RGB", size = (400,40), color = "blue")
draw = ImageDraw.Draw(image)
draw.text((10,10), "Données du ministère de la santé", font=fnt, fill=(255,0,0))
image.save(filename)
image  = imread(filename)
imshow("Données du ministère de la santé", image)
if waitKey(0) == ord('q'):
   destroyAllWindows()
  • operating system
    - windows 10
  • architecture (e.g. x86)
    - X86
  • opencv-python version
    • 4.5.5.62
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
主要语言
Python
星标
5.4k
派生
1k
平均合并
22 小时 17 分钟
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

opencv/opencv-python 的其他 Issue

查看 opencv/opencv-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。