save data and recognize face