Generated code for facial recognition