processInputImage method
Implementation
Future<List<Face>> processInputImage(InputImage imgFile) async {
for (var i = 0; i < 3; i++) {
final List<Face> faces = await faceDetector.processImage(
imgFile,
);
if (faces.isNotEmpty) {
return faces;
}
}
return [];
}