Implementation
Future<MatchResult> verifyMatch(Template template1, Template template2) async {
ReceivePort receivePort = ReceivePort();
Map<String, double> result = Map<String, double>();
_sendPort.send({
"event": _RecognizerEvents.VERIFY_MATCH,
"sendPort": receivePort.sendPort,
"template1": template1._impl.address,
"template2": template2._impl.address
});
dynamic isolateResult = await receivePort.first;
_checkException(isolateResult);
result = isolateResult;
return MatchResult(result["distance"]!, result["fa_r"]!, result["fr_r"]!, result["score"]!);
}