How to process only the character in a image.? : I have image file which python will read and convert that to hexadecimal.
the problem here is, even if i give a empty blank image its giving hexadeciaml 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))