From 3225372c28d9a7d541dc13f2dca8d99b78a8a13c Mon Sep 17 00:00:00 2001 From: Jiuqiang Tang Date: Fri, 30 Sep 2022 08:10:33 +0000 Subject: [PATCH] Internal changes PiperOrigin-RevId: 477924417 --- mediapipe/python/image_test.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mediapipe/python/image_test.py b/mediapipe/python/image_test.py index a21dbdad..117d2097 100644 --- a/mediapipe/python/image_test.py +++ b/mediapipe/python/image_test.py @@ -187,16 +187,5 @@ class ImageTest(absltest.TestCase): gc.collect() self.assertEqual(sys.getrefcount(rgb_image), initial_ref_count) - def test_image_create_from_file(self): - image_path = os.path.join( - resources.GetRunfilesDir(), - 'mediapipe/tasks/testdata/vision/cat.jpg') - loaded_image = Image.create_from_file(image_path) - self.assertEqual(loaded_image.width, 600) - self.assertEqual(loaded_image.height, 400) - self.assertEqual(loaded_image.channels, 3) - self.assertEqual(loaded_image.image_format, ImageFormat.SRGB) - - if __name__ == '__main__': absltest.main()