Added the base classes and functions for card recognition. Text recognition not implemented yet.