Merge branch 'ios-normalized-keypoint-hash' into ios-object-detector-async-fixes
This commit is contained in:
commit
7a7f27c34b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user