detect method
Implementation
@override
Future<PoseLandmarkerResult> detect(Uint8List bytes) async {
PoseLandmarkerResult r = PoseLandmarkerResult.empty();
final el = await _createImageFromBytes(bytes);
_landmarker!.detect(
el,
(js_plr.PoseLandmarkerResult? result) {
r = result?.toDart ?? PoseLandmarkerResult.empty();
}.toJS,
);
return r;
}