Skip to content

Commit

Permalink
Disable portable image tests (#337)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored May 27, 2020
1 parent 062ddf8 commit 3437668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cv_bridge/test/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 3437668

Please sign in to comment.