MLHandKeyPoints.fromMap constructor
MLHandKeyPoints.fromMap(
- Map map
Implementation
factory MLHandKeyPoints.fromMap(Map<dynamic, dynamic> map) {
final List<MLHandKeyPoint> points = <MLHandKeyPoint>[];
if (map['handKeypoints'] != null) {
map['handKeypoints'].forEach((dynamic v) {
points.add(MLHandKeyPoint.fromMap(v));
});
}
return MLHandKeyPoints._(
handKeyPoints: points,
score: map['score'],
rect: map['border'] != null ? BodyBorder.fromMap(map['border']) : null,
);
}