Implementation
static Future<AsyncRecognizer> create(Pointer<Void> implementation, String facerecConfDir, String dllPath, String ini_file, bool processing, bool matching,
bool processing_less_memory_consumption) async {
ReceivePort receivePort = ReceivePort();
Isolate isolate = await Isolate.spawn(_isolateImplementation, {
"implementation": implementation.address,
"facerecConfDir": facerecConfDir,
"dllPath": dllPath,
"ini_file": ini_file,
"processing": processing,
"matching": matching,
"processing_less_memory_consumption": processing_less_memory_consumption,
"sendPort": receivePort.sendPort
});
SendPort sendPort = await receivePort.first;
return AsyncRecognizer._create(isolate, sendPort, dllPath);
}