I would be very careful about using camera-only facial recognition. At least if you care that anyone simply holding up a picture of your face can unlock your doors and turn off your alarm. I have a pretty deep knowledge on how Apple's "Face ID" works, and I can tell you, it is worlds apart from just a camera recognizing your face, which offers NO security. Apple uses one laser on the upper left of the iPhone X to measure the distance of your face to the phone (using "time of flight" technology). A second laser just below that is an IR illuminator which uses the IR camera on the left of the front to start the basic facial recognition. On the right is another laser which produces 30,000 dots which cover your face. (Like those Christmas Star Showers.) The IR camera on the left records information on how the dots hit your face, and this is where a technology called "structured light" comes into play. Basically every dot on your face is measured for distance very precisely, and this is compared against previously recorded information. Only if there is a match will your phone unlock. The Apple Face ID is VERY hard to fool, but unlikely impossible.
I know some Chinese companies have tried to copy Apple's "Face ID" in smartphones using a laser dot generator and a regular camera, and the results were they worked very poorly. Qualcomm is working on an Android solution which should be available in a year or so.