Update object_detector_test.py

This commit is contained in:
Kinar R 2023-04-15 00:29:33 +05:30 committed by GitHub
parent d6103b41bc
commit e5e8c71390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ class ObjectDetectorTest(parameterized.TestCase):
) )
def _assert_approximately_equals_detection_result(self, result, expected_result): def _assert_approximately_equals_detection_result(self, result, expected_result):
self.assertLen(result.detections, 4) self.assertLen(result.detections, len(expected_result.detections))
for i, detection in enumerate(result.detections): for i, detection in enumerate(result.detections):
bbox = detection.bounding_box bbox = detection.bounding_box
category = detection.categories[0] category = detection.categories[0]