While using opencv encountered problems with path names having non-english characters which was expected but VideoCapture had no problem with such paths.
This is my file structure
main
|
|--test.py
|--ımg
| |
| |-img.png
| |-vid.mp4
So in my folder name ımg
there is and ı
instead of i
, while this creates and error in cv2.imread
there is no problem with cv2.VideoCapture
. How one method from same library can handle while other can't? Is it due to video-image diffrence or it is due to method?
The code is
import cv2
cap = cv2.VideoCapture("ımg\\vid.mp4")
frame=cv2.imread("ımg\\img.png")
You can see succesful line and error line in here
It is python3.13 and i am on windows11 on testting this.