2.7.0
💥 Breaking Changes
- Add in the event
onFaceDetect
the Face Analysis parameters.
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:- Face Analysis parameters;
- Head movement detection;
- These parameters is the result of the Facefy face analysis.
🏗️ 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;