Sample project to explain the barcode Face detection API from Firebase MLKit
Using this you can also plot the contours
Note:
Before executing the project you have to connect it to anyone of your Firebase Project.
For more information, check out my detailed guide here : https://droidmentor.com/face-detector-using-firebase-mlkit/