hope you are safe and fine. I’m sorry to bother you, but I am experiencing some problems while trying to access a pixel of an image using OpenCV and Python in RDS.
I want to read the pixels of a map.pgm file that I’ve imported in the code as
but when I try to acces the pixel as map_img[i,j] I get this error
> TypeError: 'NoneType' object has no attribute '__getitem__'
Since I checked that the way to access the pixel is correct, I think that the type of error suggests that there may be some problems in the read procedure of the image, but I don’t get any error regarding it from the console.
Thanks for the help,