From 114a11dc4e87d4fc69a47e83ef27262694a386b4 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Tue, 11 Apr 2023 18:11:58 +0530 Subject: [PATCH] Updated iOS tests to reflect the new orientation calculation. --- .../test/vision/object_detector/MPPObjectDetectorTests.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mediapipe/tasks/ios/test/vision/object_detector/MPPObjectDetectorTests.m b/mediapipe/tasks/ios/test/vision/object_detector/MPPObjectDetectorTests.m index 67551c984..e68b48f02 100644 --- a/mediapipe/tasks/ios/test/vision/object_detector/MPPObjectDetectorTests.m +++ b/mediapipe/tasks/ios/test/vision/object_detector/MPPObjectDetectorTests.m @@ -421,12 +421,9 @@ static const float scoreDifferenceTolerance = 1e-2f; NSArray *detections = @[ [[MPPDetection alloc] initWithCategories:@[ - [[MPPCategory alloc] initWithIndex:-1 - score:0.750000f - categoryName:@"teddy bear" - displayName:nil], + [[MPPCategory alloc] initWithIndex:-1 score:0.699219f categoryName:@"cat" displayName:nil], ] - boundingBox:CGRectMake(0, 372, 416, 276) + boundingBox:CGRectMake(0, 608, 439, 387) keypoints:nil], ];