Ask Your Question

Revision history [back]

cv:imwrite Python error with Windows: can't open file for writing: permission denied

Hello,

I am receiving an error message when I execute the code in Python with Windows10.

[ WARN:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-k8sx3e60\opencv\modules\imgcodecs\src\loadsave.cpp (710) cv::imwrite_ imwrite_('C:/Users/Default/Pictures/hall.jpg'): can't open file for writing: permission denied The directory initially had an special character "César": "C:\Users\César". But I also tried to save the picture in another location: "C:\Users\Default\Pictures" and the error message still continues.

Could somebody help ?