With this code you can generate the color and black and white histogram of any image through an interface made in tkinter
1.Choose the image that you wanto to generate the histogram, the format must be png or jpg
I uploaded this image
2. Now you can press the Second button Generate histogram RGB
**3. If you wish generate the histogram black and white of the same image you can press the third button "CONVERTE RGB TO B/W" after Press the button Generate Histogram B/W