Skip to content

Conversation

@stalker314314
Copy link
Contributor

This change extends existing landmark detection in new ways:

  1. Existing logic is hiding HOG model (frontal_face_detector)
    underneath and user cannot use other models (CNN model, for example).
  2. Bounding box is exposed as additional argument, and user
    can define custom bounding box (which is needed, if image used to detect
    faces is changed (for example scaled), and we want to crop only face
    from original image to feed into shape predictor).
  3. This approach is class-based, so no need for multiple loadings of
    shape predictor model (only once, in ctor)

This commit introduces chinese_whispers method without any "helpers" on
PHP side. Users needs to take care of everything (building edges from
128D face chip vector, for example), but this is exposed for people
that need low-level call and want to calculate distances and build edges
in PHP directly.
This change extends existing landmark detection in new ways:
1. Existing logic is hiding HOG model (frontal_face_detector)
underneath and user cannot use other models (CNN model, for example).
2. Bounding box is exposed as additional argument, and user
can define custom bounding box (which is needed, if image used to detect
faces is changed (for example scaled), and we want to crop only face
from original image to feed into shape predictor).
3. This approach is class-based, so no need for multiple loadings of
shape predictor model (only once, in ctor)
@goodspb goodspb merged commit 661c37c into goodspb:master Aug 27, 2018
@goodspb
Copy link
Owner

goodspb commented Aug 27, 2018

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants