Just a guess, but maybe they use AI to compare the live person's face to the photo on the ID to verify. Of course if they're comparing to the printed photo and not to a database photo linked to the ID, then the whole purpose of the machine is ill-conceived, as it could be bypassed with a fake ID.