Updated parameter name
This commit is contained in:
parent
5429991986
commit
4873141d66
|
@ -41,7 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
* results.
|
* results.
|
||||||
*/
|
*/
|
||||||
+ (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto
|
+ (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto
|
||||||
andIndex:(NSInteger)index;
|
index:(NSInteger)index;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ using ClassificationProto = ::mediapipe::Classification;
|
||||||
@implementation MPPCategory (Helpers)
|
@implementation MPPCategory (Helpers)
|
||||||
|
|
||||||
+ (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto
|
+ (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto
|
||||||
andIndex:(NSInteger)index {
|
index:(NSInteger)index {
|
||||||
NSString *categoryName;
|
NSString *categoryName;
|
||||||
NSString *displayName;
|
NSString *displayName;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
andIndex:kDefaultGestureIndex];
|
index:kDefaultGestureIndex];
|
||||||
[gestures addObject:category];
|
[gestures addObject:category];
|
||||||
}
|
}
|
||||||
[multiHandGestures addObject:gestures];
|
[multiHandGestures addObject:gestures];
|
||||||
|
@ -137,8 +137,8 @@ static const NSInteger kDefaultGestureIndex = -1;
|
||||||
.Get<std::vector<ClassificationListProto>>()
|
.Get<std::vector<ClassificationListProto>>()
|
||||||
handednessroto:handednessPacket
|
handednessroto:handednessPacket
|
||||||
.Get<std::vector<ClassificationListProto>>()
|
.Get<std::vector<ClassificationListProto>>()
|
||||||
handLandmarksPacket:handLandmarksPacket
|
handLandmarksPacket:handLandmarksPacket.Get<
|
||||||
.Get<std::vector<NormalizedLandmarkListProto>>()
|
std::vector<NormalizedLandmarkListProto>>()
|
||||||
worldLandmarksPacket:worldLandmarksPacket
|
worldLandmarksPacket:worldLandmarksPacket
|
||||||
.Get<std::vector<LandmarkListProto>>()
|
.Get<std::vector<LandmarkListProto>>()
|
||||||
timestampInMilliSeconds:timestampInMilliseconds];
|
timestampInMilliSeconds:timestampInMilliseconds];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user