Binary Image Classification Using Python Dictionaries And Sets