Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Detect Face Rectangle #1

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Test Detect Face Rectangle #1

wants to merge 18 commits into from

Conversation

HevaWu
Copy link
Owner

@HevaWu HevaWu commented May 15, 2020

Overview

Try to implement face detection by using

  • Vision
  • MLKit

And compare the result of them.

Description

We could use either Vision or MLKit to implement this part. After comparing, I will attach the result here.
The mainly comparison are:

  • face detection number
  • execution time

Result

  • Execution Time:
    • For most cases, MLKit is faster than Vision Framework. As far as I test for now, the execution for Vision or MLKit is <= 0.6s. **
  • Face Detection Number:
    • It decide case by case. Vision could quickly fetch the frontal face. But MLKit could also detect more faces when people are wearing mask/hat.
  • Image Size:
    • Large Image: Both Vision and MLKit could processing the large image(ex: I pick one of image is 3840*2560, and the processing time is: Vision(0.534s), MLKit(0.409s)).
    • Small Image: The smallest image I pick here is 195*259, which could be processed for both Vision(0.05s) & MLKit(0.03s).
  • Take Photo:
    • Both Vision & MLKit could handle the token picture.
  • Accuracy:
    • I only use the default settings for Vision & MLKit for now. If the person picture is frontal face, the result is almost same, sometimes Vision could detect more, sometimes MLKit could detect more. But if the person picture wearing some decoration (ex: mask, hat, glasses), MLKit have higher accuracy.

Notice

This testing result is only based on the face frame part, which is not related to other facial landmarks part(the result might different if we try to detect different facial parts).

Reference

Vision: https://developer.apple.com/documentation/vision
MLKit: https://firebase.google.com/docs/ml-kit/detect-faces

Test Result

Screen Shot 2020-05-15 at 16 15 21

Screen Shot 2020-05-14 at 15 41 55

Screen Shot 2020-05-14 at 15 41 40

Screen Shot 2020-05-14 at 15 41 21

Screen Shot 2020-05-14 at 15 41 02

Screen Shot 2020-05-14 at 15 40 41

Screen Shot 2020-05-14 at 15 40 20

Screen Shot 2020-05-14 at 15 39 52

Screen Shot 2020-05-14 at 15 39 34

Screen Shot 2020-05-14 at 15 39 18

Screen Shot 2020-05-14 at 15 38 59

Screen Shot 2020-05-15 at 16 17 24

Screen Shot 2020-05-15 at 16 19 24

Screen Shot 2020-05-15 at 16 19 45

Screen Shot 2020-05-15 at 16 20 02

Screen Shot 2020-05-15 at 16 20 32

Screen Shot 2020-05-15 at 16 20 54

Screen Shot 2020-05-15 at 16 21 19

Screen Shot 2020-05-15 at 17 13 54

Screen Shot 2020-05-15 at 17 25 39

@HevaWu HevaWu self-assigned this May 15, 2020
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.

1 participant