Does an app already exist that can automatically sort graduation photos by person?

I’m looking for software that can organize hundreds of graduation/event photos into folders for each person.

Some photos contain diplomas with names, which could be used to identify and group the surrounding photos.

Before building my own solution, I’d rather use or adapt something that already exists.

Does anyone know an app, GitHub project, or AI tool that does this or something similar?

Open source, paid, cloud-based — all suggestions welcome!

I don’t know one tool that does exactly this, but you can get most of it by combining existing pieces:

  1. Face grouping: digiKam, PhotoPrism or Immich can cluster faces and let you name each person. All of them can run locally, and you can export or sort the photos per person afterwards.

  2. Diploma names: run OCR on the diploma shots (Tesseract, EasyOCR or PaddleOCR) and match the text against your list of names.

  3. Linking a diploma photo to the photos around it: use the EXIF timestamps. A person usually appears in a short burst of shots, so photos taken within a few seconds of a diploma photo can be assigned to that name, and then confirmed with the face clusters.

Expect to fix some by hand. The face step needs the most review, especially with caps, gowns and sunglasses. If you want to build your own, a face-embedding library such as InsightFace plus simple clustering is a small script.