A low-cost hand gesture and face recognition system for non-contact applications