Merge branch 'ios-normalized-keypoint-hash' into ios-object-detector-async-fixes

This commit is contained in:
Prianka Liz Kariat 2023-05-04 17:21:36 +05:30
commit 7a7f27c34b

View File

@ -28,7 +28,12 @@
return self; 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 { - (BOOL)isEqual:(nullable id)object {
if (!object) { if (!object) {