Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6474695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:37:05+00:00 2026-05-25T06:37:05+00:00

In most face recognition SDK, it only provides two major functions detecting faces and

  • 0

In most face recognition SDK, it only provides two major functions

  1. detecting faces and extracting templates from photos, this is called detection.
  2. comparing two templates and returning the similar score, this is called recognition.

However, beyond those two functions, what I am looking for is an algorithm or SDK for grouping photos with similar faces together, e.g. based on similar scores.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:37:06+00:00Added an answer on May 25, 2026 at 6:37 am

    First, perform step 1 to extract the templates, then compare each template with all the others by applying step two on all the possible pairs, obtaining their similarity scores.

    Sort the matches based on this similarity score, decide on a threshold and group together those templates that exceed it.

    Take, for instance, the following case:

    Ten templates: A, B, C, D, E, F, G, H, I, J.
    Scores between: 0 and 100.
    Similarity threshold: 80.

    Similarity table:

       A   B   C   D   E   F   G   H   I   J
    A  100 85  8   0   1   50  55  88  90  10
    
    B  85  100 5   30  99  60  15  23  8   2 
    
    C  8   5   100 60  16  80  29  33  5   8
    
    D  0   30  60  100 50  50  34  18  2   66
    
    E  1   99  16  50  100 8   3   2   19  6
    
    F  50  60  80  50  8   100 20  55  13  90
    
    G  55  15  29  34  3   20  100 51  57  16
    
    H  88  23  33  18  2   55  51  100 8   0
    
    I  90  8   5   2   19  13  57  8   100 3
    
    J  10  2   8   66  6   90  16  0   3   100
    

    Sorted matches list:

    AI 90
    FJ 90
    BE 99
    AH 88
    AB 85
    CF 80
    ——- <– Threshold cutoff line
    DJ 66
    …….

    Iterate through the list until the threshold cutoff point, where the values no longer exceed it, maintain a full templates set and association sets for each template, obtaining the final groups:

    // Empty initial full templates set
    fullSet = {};
    
    // Iterate through the pairs list
    foreach (templatePair : pairList)
    {
      // If the full set contains the first template from the pair
      if (fullSet.contains(templatePair.first))
      {
         // Add the second template to its group
         templatePair.first.addTemplateToGroup(templatePair.second);
    
         // If the full set also contains the second template
         if (fullSet.contains(templatePair.second))
         {
            // The second template is removed from the full set
            fullSet.remove(templatePair.second);
    
            // The second template's group is added to the first template's group
            templatePair.first.addGroupToGroup(templatePair.second.group);
         }
      }
      else
      {
        // If the full set contains only the second template from the pair
        if (fullSet.contains(templatePair.second))
        {
          // Add the first template to its group
          templatePair.second.addTemplateToGroup(templatePair.first);
        }
      }
      else
      {
         // If none of the templates are present in the full set, add the first one
         // to the full set and the second one to the first one's group
         fullSet.add(templatePair.first);
         templatePair.first.addTemplateToGroup(templatePair.second);
      } 
    }
    

    Execution details on the list:

    AI: fullSet.add(A); A.addTemplateToGroup(I);
    FJ: fullSet.add(F); F.addTemplateToGroup(J);
    BE: fullSet.add(B); B.addTemplateToGroup(E);
    AH: A.addTemplateToGroup(H);
    AB: A.addTemplateToGroup(B); fullSet.remove(B); A.addGroupToGroup(B.group);
    CF: C.addTemplateToGroup(F);
    

    In the end, you end up with the following similarity groups:

    A - I, H, B, E
    C - F, J
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I do some stuff with XMLSerializer class. Like a most of beginners I face
Is it possible to preload or otherwise cache @font-face fonts, most likely with javascript,
There are many applications to recognize similar faces. The most popular is Picasa .
I need to retrieve data from MsAccess/SQL Server (two separate projects in which I
What is the most general and simple approach to make look fatter a face
Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever,
Most of time we represent concepts which can never be less than 0. For
Most program languages have some kind of exception handling; some languages have return codes,
Most mature C++ projects seem to have an own reflection and attribute system ,
Most of the implementations I find require a hardware instruction to do this. However

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.