technique – Best approach for creating the average of multiple profile photos?

We’ve all seen profile photos that are a mix of hundreds, or thousands of profile photos. Here’s examples:

https://duckduckgo.com/?q=average+look+of+people+from+every+country&t=osx&iax=images&ia=images

https://www.businessinsider.com/faces-of-tomorrow-2011-2

All examples that I’ve seen were made by an artist/photographer, who took the individual photos themselves, allowing for the most optimal alignment between individual photos.

With image recognition having taken huge leaps since this technique was first developed, is there software out there that can identify faces in individual photos, and then use those to superimpose them onto each other?