runFaceMesh function
Function called by Isolate to process image
and predict anonymized face landmarks
Implementation
Map<String, dynamic>? runFaceMesh(Map<String, dynamic> params) {
final faceMesh = FaceMeshService(
Interpreter.fromAddress(params['detectorAddress']),
params["inputShape"],
params["outputsShapes"]);
final result = faceMesh.predict(params['cameraImage']!);
return result;
}