exec method

Future<Person?> exec(
  1. Image image
)

画像から骨格推定を実行

Implementation

Future<Person?> exec(img.Image image) async {
  try {
    final person = await _nativeHnadler.estimatePoses(image);
    return person;
  } on PlatformException {
    throw ServiceException(
      ServiceErrorType.estimatePosesError,
      ServiceErrorType.estimatePosesError.message,
    );
  } on MissingPluginException {
    throw ServiceException(
      ServiceErrorType.methodChannelError,
      ServiceErrorType.methodChannelError.message,
    );
  }
}