git clone https://github.com/avivco94/BestCombinedImage.git
FacesGroupingFromImage (FGFI) - For faces grouping
ImageHeadsSwap (IHS) - For head swaping
ImageGrading (IG) - For grading photos and extracting the highest graded photo
Add those lines to accsess Shared Code
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import config
import utils
{
"images": [
{
"path": path,
"faces": [
{
#Google Vision API response
...
}
]
},
...
],
"groups": [
[ { "image": index, "face": index }, { "image": index, "face": index }, ... ],
...
]
}
{
"image_index": index,
"faces": [
{
"group_index": index,
"group_face_index": index
},
{
"group_index": index,
"group_face_index": index
},
...
]
}