Skip to content

2.7.0

Compare
Choose a tag to compare
@Goulartvic Goulartvic released this 08 Mar 19:54
· 72 commits to master since this release
5e6536c

💥 Breaking Changes

Before:

fun onFaceDetected(
    x: Int,
    y: Int,
    width: Int,
    height: Int
)

Now:

fun onFaceDetected(
    x: Int,
    y: Int,
    width: Int,
    height: Int,
    leftEyeOpenProbability: Float?,
    rightEyeOpenProbability: Float?,
    smilingProbability: Float?,
    headEulerAngleX: Float,
    headEulerAngleY: Float,
    headEulerAngleZ: Float
)

✨ New Feature

  • Face Analysis: add in the event onFaceDetect new parameters:

🏗️ Architectural Changes

  • Replace Google MLKit usage by the Yoonit Facefy. The motivations:
    • Modularize the face analysis code in a different project:
    • Avoid inflate Yoonit Camera project and better maintenance;
    • Enables other projects that not use the camera to analyse faces by image;

📝 Update Readme

  • Update usage (capturing faces)[https://github.com/Yoonit-Labs/android-yoonit-camera#start-capturing-face-images];
  • Update onFaceDetect event;
  • Add new section, the Face Analysis;
  • Add new section, the Head movement;

➕ New Dependencies

android-yoonit-facefy 1.0.2;