Advertisement
Guest User

Error

a guest
Sep 15th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. ImportError Traceback (most recent call last)
  3. <ipython-input-38-b165647910bb> in <module>
  4. 13 with rosbag.Bag('images.bag', 'r') as image_bag:
  5. 14 for topic, image_message, t in image_bag.read_messages():
  6. ---> 15 cv_image = bridge.imgmsg_to_cv2(image_message, "bgr8")
  7. 16 cv2.imshow("image", cv_image)
  8. 17 break
  9.  
  10. /opt/ros/melodic/lib/python2.7/dist-packages/cv_bridge/core.py in imgmsg_to_cv2(self, img_msg, desired_encoding)
  11. 161 import cv2
  12. 162 import numpy as np
  13. --> 163 dtype, n_channels = self.encoding_to_dtype_with_channels(img_msg.encoding)
  14. 164 dtype = np.dtype(dtype)
  15. 165 dtype = dtype.newbyteorder('>' if img_msg.is_bigendian else '<')
  16.  
  17. /opt/ros/melodic/lib/python2.7/dist-packages/cv_bridge/core.py in encoding_to_dtype_with_channels(self, encoding)
  18. 97
  19. 98 def encoding_to_dtype_with_channels(self, encoding):
  20. ---> 99 return self.cvtype2_to_dtype_with_channels(self.encoding_to_cvtype2(encoding))
  21. 100
  22. 101 def compressed_imgmsg_to_cv2(self, cmprs_img_msg, desired_encoding = "passthrough"):
  23.  
  24. /opt/ros/melodic/lib/python2.7/dist-packages/cv_bridge/core.py in encoding_to_cvtype2(self, encoding)
  25. 89
  26. 90 def encoding_to_cvtype2(self, encoding):
  27. ---> 91 from cv_bridge.boost.cv_bridge_boost import getCvType
  28. 92
  29. 93 try:
  30.  
  31. ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement