exec method
Implementation
List<List<double>> exec(Person person, List<List<double>> threshold) {
/// 閾値を取得
final inputData = threshold;
/// personのkeyPointsをflattenedに変換([y, x, score]の順)
final List<double> flattened = person.keyPoints
.expand((keyPoint) =>
[keyPoint.coordinate.dy, keyPoint.coordinate.dx, keyPoint.score])
.toList();
/// 残りの249をnan埋め
flattened.addAll(List.filled(249, double.nan));
/// inputDataの先頭にflattenedを追加
inputData.insert(0, flattened);
return inputData;
}