A framework for hand gesture recognition using 2D cameras