Hello, I write a neural network that recognizes images. There are 2 questions!
So, 1: What is the best way to specify a pixel by a number (PIL gives the color according to RGB (255,255,255)), but I would like it either in brightness (from 0 to 255) or in some other way!
And question 2: Suppose we were able to display images in a list of values ​​(numbers), but here the next problem is that if we have an image of 500x500 pixels, then the length of the list (500 * 500) is 250,000 pickels !!! If this is applied to the input of the neural network, then it will plow for ages! It is necessary to somehow “compress the image” while preserving the main features, the DFT (discrete Fourier transform) does not help, because the length of the input and output list is the same! And we need to reduce the length!
Thanks for attention! I hope to help me!))