Face recognition based on opencv library