matching small faces on passport pictures

Open
#866 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the report with Python 2.7, face_recognition 1.2.2, Windows, and the passport images; inspect the calls to face_encodings, load_image_file, compare_faces, and face_distance. Done requires a reproducible example, a clear explanation of why small faces compare as true, and a verified correction or documented limitation.

Written by the indexing model from the issue text.

Description

  • face_recognition version:1.2.2
  • Python version:2.7
  • Operating System:windows
Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
i have tried to match faces in full picture though it was really slow, but I did get results now i m trying to match faces on passport photographs of small sizes and its all returning true for all faces

What I Did
Paste the command(s) you ran and the output.
 @staticmethod
    def face_encodings(filetopath):
        return face_recognition.face_encodings(face_recognition.load_image_file(filetopath))[0]

    def check_recorg_val(self, picked_ytbecoded_file, next_ytbencoded_tocheck_file):
        if ((
                face_recognition.compare_faces([picked_ytbecoded_file], next_ytbencoded_tocheck_file))):
         picked_ytbecoded_file,next_ytbencoded_tocheck_file,face_recognition.face_distance([picked_ytbecoded_file], next_ytbencoded_tocheck_file))
            return True
        else:
            return False
    def check_label_prob(self,increment_val_):
     
        dummy_inc_val = increment_val_
        self.ckecklistner = 0
        while True:
            print self.ckecklistner
            self.bool_val = self.check_recorg_val(self.face_encodings(self.loaded_img_weights.values()[dummy_inc_val]),
                                     self.face_encodings(self.loaded_img_weights.values()[increment_val_-1]))
           
       
If there was a crash, please include the traceback here.
Dominant language
Python
Stars
56.8k
Forks
13.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ageitgey/face_recognition

All issues in ageitgey/face_recognition

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.