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'
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?