This program select the best photo in a set of similar group photos on base with emotions analysis. Using the open source library DeepFace to detect the emotions of the people and select the photo with the most positive emotions. Also, search for the best face in all photos and provide a JSON file with the coordinates of the face and name files to merge in post-processing with Photoshop.
- Select the best photo in a set of similar group photos on base with emotions analysis.
- Search for the best face in all photos and provide a JSON file with the coordinates of the face and name files to crop from the source and paste in the best photo using Photoshop script.
Photo 1 | Photo 2 | Photo 3 | Photo 4 | Photo 5 | Best photo |
---|---|---|---|---|---|
This program is oriented for scholar group photos but I am not authorized to share the photos. The photos in the example comes from YouTube.
- Python 3.7 or later
- OpenCV
- DeepFace
- Numpy
- Pandas
- Matplotlib
- Jupyter notebook: panoramic_face_analyze
- Edit the file panoramic_face_analyze and change the variable
layer2Copy
with the name of the layer to copy the faces. - Open all the photos in Photoshop.
- Go to
File > Scripts > Browse...
- Select the file
face_crop4paste.jsx
and clickOpen
- Select the JSON file with the coordinates.