opencv / opencv/opencv-python

cv2 cant handle char é in path/filename

Open
#700 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

duplicate
Dominant language
Python
Stars
5.4k
Forks
1k
Avg merge
22h 17m
Merged PRs (30d)
3

Description

Expected behaviour

if a é or similar char is in file name it should be able to handle it as normal

Actual behaviour

Write here what went wrong.

Steps to reproduce

img = cv2.imread('c:\é\filename.jpg) comes back as None
renaming path to
img = cv2.imread('c:\e\filename.jpg) comes with results
even though file exists

windows 10

  • architecture x64
    latest version

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Windows 10 case at the cv2.imread entry point using the reported path with é, then compare it with the renamed path. The work is done when an existing image can be loaded successfully from a path containing é or a similar character.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.