Mjrovai / OpenCV-Face-Recognition

Real-time face recognition project with OpenCV and Python
1.18k stars 1.02k forks source link

cant solve error in trainer part #19

Open Sumayya-CS opened 3 years ago

Sumayya-CS commented 3 years ago

File "sample.py", line 25, in faces,ids = getImagesAndLabels(path) File "sample.py", line 16, in getImagesAndLabels PIL_img = Image.open(imagePath).convert('L') # grayscale File "C:\Users\HP\lib\site-packages\PIL\Image.py", line 2904, in open fp = builtins.open(filename, "rb") PermissionError: [Errno 13] Permission denied: 'dataset\trainer'

what to do?

bobyk commented 3 years ago

Change permission for dataset\trainer sudo chmod -R 666 dataset\trainer

Sumayya-CS commented 3 years ago

Change permission for dataset\trainer sudo chmod -R 666 dataset\trainer

how to change permission? please guide a little. thanks in advance