ageitgey / ageitgey/face_recognition

Batch Inference of Facial Landmarks

Open
#773 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
56.8k
Forks
13.7k
PR merge metrics
No merged PRs in 30d

Description

  • face_recognition version: 1.2.3
  • Python version: 2.7 and 3.5.2
  • Operating System: Ubuntu 16.04

I am trying to use 5 pt shape predictor for batch inference. I have a batch of face crops let says 50, and I want to get their landmarks returned in a single go.

What I Did

I tried passing the dlib.shape_predictor() function the list of images as first argument and list of respective detections as second. But it returned the following error:

TypeError: __call__(): incompatible function arguments. The following argument types are supported:
    1. (self: dlib.shape_predictor, image: array, box: dlib.rectangle) -> dlib.full_object_detection

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.

Research direction

Start by locating the existing landmark-detection entry point and reading the dlib.shape_predictor signature shown in the report; no repository file or test is named. Done should mean that a batch of face crops and corresponding detections can produce all landmark results in one operation, with coverage for the reported argument shape.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.