Skip to content

zVaz/BestCombinedImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestCombinedImage

Usage

git clone https://github.com/avivco94/BestCombinedImage.git

Directories

FacesGroupingFromImage (FGFI) - For faces grouping
ImageHeadsSwap         (IHS)  - For head swaping
ImageGrading           (IG)   - For grading photos and extracting the highest graded photo

Shared Code

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

Json Structures

FGFI - data.json

{
    "images": [
        {
            "path": path,
            "faces": [
                {
                    #Google Vision API response
                    ...
                }
            ]
        },
        ...
    ],
    "groups": [
        [ { "image": index, "face": index }, { "image": index, "face": index }, ... ],
        ...
    ]
}

IG - to_replace.json

{
    "image_index": index,
    "faces": [
        {
            "group_index": index, 
            "group_face_index": index
        },
        {
            "group_index": index, 
            "group_face_index": index
        },
        ...
    ]    
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages