Reverted copy of gesture recognizer result containers
This commit is contained in:
parent
36b7514b19
commit
d6d5a94845
|
@ -65,7 +65,7 @@ using ::mediapipe::Packet;
|
||||||
MPPCategory *category = [MPPCategory categoryWithProto:classificationProto];
|
MPPCategory *category = [MPPCategory categoryWithProto:classificationProto];
|
||||||
[gestures addObject:category];
|
[gestures addObject:category];
|
||||||
}
|
}
|
||||||
[multiHandGestures addObject:[gestures copy]];
|
[multiHandGestures addObject:gestures];
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<ClassificationListProto> &handednessClassificationListProtos =
|
const std::vector<ClassificationListProto> &handednessClassificationListProtos =
|
||||||
|
@ -80,7 +80,7 @@ using ::mediapipe::Packet;
|
||||||
MPPCategory *category = [MPPCategory categoryWithProto:classificationProto];
|
MPPCategory *category = [MPPCategory categoryWithProto:classificationProto];
|
||||||
[handedness addObject:category];
|
[handedness addObject:category];
|
||||||
}
|
}
|
||||||
[multiHandHandedness addObject:[handedness copy]];
|
[multiHandHandedness addObject:handedness];
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<NormalizedLandmarkListProto> &handLandmarkListProtos =
|
const std::vector<NormalizedLandmarkListProto> &handLandmarkListProtos =
|
||||||
|
@ -96,7 +96,7 @@ using ::mediapipe::Packet;
|
||||||
[MPPNormalizedLandmark normalizedLandmarkWithProto:normalizedLandmarkProto];
|
[MPPNormalizedLandmark normalizedLandmarkWithProto:normalizedLandmarkProto];
|
||||||
[handLandmarks addObject:normalizedLandmark];
|
[handLandmarks addObject:normalizedLandmark];
|
||||||
}
|
}
|
||||||
[multiHandLandmarks addObject:[handLandmarks copy]];
|
[multiHandLandmarks addObject:handLandmarks];
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<LandmarkListProto> &worldLandmarkListProtos =
|
const std::vector<LandmarkListProto> &worldLandmarkListProtos =
|
||||||
|
@ -112,14 +112,14 @@ using ::mediapipe::Packet;
|
||||||
[MPPLandmark landmarkWithProto:landmarkProto];
|
[MPPLandmark landmarkWithProto:landmarkProto];
|
||||||
[worldLandmarks addObject:landmark];
|
[worldLandmarks addObject:landmark];
|
||||||
}
|
}
|
||||||
[multiHandWorldLandmarks addObject:[worldLandmarks copy]];
|
[multiHandWorldLandmarks addObject:worldLandmarks];
|
||||||
}
|
}
|
||||||
|
|
||||||
MPPGestureRecognizerResult *gestureRecognizerResult =
|
MPPGestureRecognizerResult *gestureRecognizerResult =
|
||||||
[[MPPGestureRecognizerResult alloc] initWithGestures:[multiHandGestures copy]
|
[[MPPGestureRecognizerResult alloc] initWithGestures:multiHandGestures
|
||||||
handedness:[multiHandHandedness copy]
|
handedness:multiHandHandedness
|
||||||
landmarks:[multiHandLandmarks copy]
|
landmarks:multiHandLandmarks
|
||||||
worldLandmarks:[multiHandWorldLandmarks copy]
|
worldLandmarks:multiHandWorldLandmarks
|
||||||
timestampInMilliseconds:timestampInMilliseconds];
|
timestampInMilliseconds:timestampInMilliseconds];
|
||||||
|
|
||||||
return gestureRecognizerResult;
|
return gestureRecognizerResult;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user