Imshow incorrect title if non ascii characters
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 1k
- Avg merge
- 22h 17m
- Merged PRs (30d)
- 3
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Windows 10 X86 case with the provided Python snippet and opencv-python 4.5.5.62. Check the repository README and build-toolchain scope first; the payload provides no file or test entry point, and the reported imshow behavior may belong to OpenCV rather than this packaging repository.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100