Head Pose and Gaze Direction Estimation Using Convolutional Neural Networks