Added hash implementation for iOS normalized keypoint

This commit is contained in:
Prianka Liz Kariat 2023-05-04 17:10:07 +05:30
parent c6e3f08282
commit 381ffcb474

View File

@ -28,7 +28,12 @@
return self;
}
// TODO: Implement hash
- (NSUInteger)hash {
NSUInteger nonNullPropertiesHash =
@(self.location.x).hash ^ @(self.location.y).hash ^ @(self.score).hash;
return self.label ? nonNullPropertiesHash ^ self.label.hash : nonNullPropertiesHash;
}
- (BOOL)isEqual:(nullable id)object {
if (!object) {