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