Fixed typos
This commit is contained in:
parent
1496b7c2d4
commit
f213e0a6f3
|
@ -58,14 +58,14 @@ static const int kMicroSecondsPerMilliSecond = 1000;
|
||||||
+ (MPPGestureRecognizerResult *)
|
+ (MPPGestureRecognizerResult *)
|
||||||
gestureRecognizerResultWithHandGesturesProto:
|
gestureRecognizerResultWithHandGesturesProto:
|
||||||
(const std::vector<mediapipe::ClassificationList> &)handGesturesProto
|
(const std::vector<mediapipe::ClassificationList> &)handGesturesProto
|
||||||
handednessroto:
|
handednessProto:
|
||||||
(const std::vector<mediapipe::ClassificationList> &)
|
(const std::vector<mediapipe::ClassificationList> &)
|
||||||
handednessProto
|
handednessProto
|
||||||
handLandmarksPacket:
|
handLandmarksProto:
|
||||||
(const std::vector<mediapipe::NormalizedLandmarkList> &)
|
(const std::vector<mediapipe::NormalizedLandmarkList> &)
|
||||||
handLandmarksProto
|
handLandmarksProto
|
||||||
worldLandmarksPacket:
|
worldLandmarksProto:
|
||||||
(const std::vector<mediapipe::LandmarkList> &)worldLandmarksProto
|
(const std::vector<mediapipe::LandmarkList> &)worldLandmarksProto
|
||||||
timestampInMilliSeconds:(NSInteger)timestampInMilliseconds;
|
timestampInMilliSeconds:(NSInteger)timestampInMilliseconds;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -40,12 +40,12 @@ static const NSInteger kDefaultGestureIndex = -1;
|
||||||
+ (MPPGestureRecognizerResult *)
|
+ (MPPGestureRecognizerResult *)
|
||||||
gestureRecognizerResultWithHandGesturesProto:
|
gestureRecognizerResultWithHandGesturesProto:
|
||||||
(const std::vector<ClassificationListProto> &)handGesturesProto
|
(const std::vector<ClassificationListProto> &)handGesturesProto
|
||||||
handednessroto:
|
handednessProto:
|
||||||
(const std::vector<ClassificationListProto> &)handednessProto
|
(const std::vector<ClassificationListProto> &)handednessProto
|
||||||
handLandmarksPacket:(const std::vector<NormalizedLandmarkListProto> &)
|
handLandmarksroto:(const std::vector<NormalizedLandmarkListProto> &)
|
||||||
handLandmarksProto
|
handLandmarksProto
|
||||||
worldLandmarksPacket:
|
worldLandmarksProto:
|
||||||
(const std::vector<LandmarkListProto> &)worldLandmarksProto
|
(const std::vector<LandmarkListProto> &)worldLandmarksProto
|
||||||
timestampInMilliSeconds:(NSInteger)timestampInMilliseconds {
|
timestampInMilliSeconds:(NSInteger)timestampInMilliseconds {
|
||||||
NSMutableArray<NSMutableArray<MPPCategory *> *> *multiHandGestures =
|
NSMutableArray<NSMutableArray<MPPCategory *> *> *multiHandGestures =
|
||||||
[NSMutableArray arrayWithCapacity:(NSUInteger)handGesturesProto.size()];
|
[NSMutableArray arrayWithCapacity:(NSUInteger)handGesturesProto.size()];
|
||||||
|
@ -55,7 +55,7 @@ static const NSInteger kDefaultGestureIndex = -1;
|
||||||
arrayWithCapacity:(NSUInteger)classificationListProto.classification().size()];
|
arrayWithCapacity:(NSUInteger)classificationListProto.classification().size()];
|
||||||
for (const auto &classificationProto : classificationListProto.classification()) {
|
for (const auto &classificationProto : classificationListProto.classification()) {
|
||||||
MPPCategory *category = [MPPCategory categoryWithProto:classificationProto
|
MPPCategory *category = [MPPCategory categoryWithProto:classificationProto
|
||||||
index:kDefaultGestureIndex];
|
index:kDefaultGestureIndex];
|
||||||
[gestures addObject:category];
|
[gestures addObject:category];
|
||||||
}
|
}
|
||||||
[multiHandGestures addObject:gestures];
|
[multiHandGestures addObject:gestures];
|
||||||
|
@ -135,11 +135,11 @@ static const NSInteger kDefaultGestureIndex = -1;
|
||||||
return [MPPGestureRecognizerResult
|
return [MPPGestureRecognizerResult
|
||||||
gestureRecognizerResultWithHandGesturesProto:handGesturesPacket
|
gestureRecognizerResultWithHandGesturesProto:handGesturesPacket
|
||||||
.Get<std::vector<ClassificationListProto>>()
|
.Get<std::vector<ClassificationListProto>>()
|
||||||
handednessroto:handednessPacket
|
handednessProto:handednessPacket
|
||||||
.Get<std::vector<ClassificationListProto>>()
|
.Get<std::vector<ClassificationListProto>>()
|
||||||
handLandmarksPacket:handLandmarksPacket
|
handLandmarksProto:handLandmarksPacket.Get<
|
||||||
.Get<std::vector<NormalizedLandmarkListProto>>()
|
std::vector<NormalizedLandmarkListProto>>()
|
||||||
worldLandmarksPacket:worldLandmarksPacket
|
worldLandmarksProto:worldLandmarksPacket
|
||||||
.Get<std::vector<LandmarkListProto>>()
|
.Get<std::vector<LandmarkListProto>>()
|
||||||
timestampInMilliSeconds:timestampInMilliseconds];
|
timestampInMilliSeconds:timestampInMilliseconds];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user