detectPose static method
Implementation
static Future<Pose?> detectPose({required PngImage image}) async {
final Uint8List pngImageBytes = image.bytes.buffer.asUint8List();
try {
final result = await _channel.invokeMapMethod(
'detectImagePose',
<String, dynamic>{
'pngImageBytes': pngImageBytes,
},
);
return result == null ? null : Pose.fromMap(result);
} on PlatformException catch (e) {
throw BodyDetectionException(e.code, e.message);
}
}