From d6cb7a8683b3bdfbd54926d258252be3b7343bd0 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Wed, 27 May 2020 16:31:51 -0500 Subject: [PATCH] Disable portable image tests Signed-off-by: Michael Carroll --- cv_bridge/test/conversions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv_bridge/test/conversions.py b/cv_bridge/test/conversions.py index 7bfd65f0d..a9bd576c6 100644 --- a/cv_bridge/test/conversions.py +++ b/cv_bridge/test/conversions.py @@ -42,7 +42,7 @@ def test_encode_decode_cv2(self): def test_encode_decode_cv2_compressed(self): # FIXME: remove jp2(a.k.a JPEG2000) as its JASPER codec is disabled within Ubuntu opencv library # due to security issues, but it works once you rebuild your opencv library with JASPER enabled - formats = ['jpg', 'jpeg', 'jpe', 'png', 'bmp', 'dib', 'ppm', 'pgm', 'pbm', + formats = ['jpg', 'jpeg', 'jpe', 'png', 'bmp', 'dib', 'sr', 'ras', 'tif', 'tiff'] # this formats rviz is not support cvb_en = CvBridge() @@ -56,6 +56,7 @@ def test_encode_decode_cv2_compressed(self): original = np.uint8(np.random.randint(0, 255, size=(h, w))) else: original = np.uint8(np.random.randint(0, 255, size=(h, w, channels))) + compress_rosmsg = cvb_en.cv2_to_compressed_imgmsg(original, f) newimg = cvb_de.compressed_imgmsg_to_cv2(compress_rosmsg) self.assertTrue(original.dtype == newimg.dtype)