<filename>save_hash.py
import pickle
import magic_card_detector as mcg


card_detector = mcg.MagicCardDetector()
card_detector.read_and_adjust_reference_images('../../MTG/Card_Images/LEA/')

hlist = []
for image in card_detector.reference_images:
    image.original = None
    image.clahe = None
    image.adjusted = None
    hlist.append(image)

with open('alpha_reference_phash.dat', 'wb') as f:
    pickle.dump(hlist, f)