I have an image file which Python reads and converts that to hexadecimal. The problem here is, even if I give an empty blank image its giving hexadecimal numbers as output. I need Python to process only the alphabets in the image and covert them to hexadecimal and give that as output.
Here is the program which I tired
import binascii
filename = 'a.png'
with open(filename, 'rb') as f:
content = f.read()
print(binascii.hexlify(content))