Tossy0423 / yolov4-for-darknet_ros

This is the environment in which YOLO V4 is ported to darknet_ros.
MIT License
108 stars 53 forks source link

Read rostopic /detection_image #2

Open lsy311 opened 4 years ago

lsy311 commented 4 years ago

Hi, I got this yolov4-for-darknet_ros works, can output a window with objects are detected. But when I check the rostopics be published and try to use the rqt_image_view to load and show the rostopic /darknet_ros/detection_image , I got the problem with the topic can not be shown like this: image Do anyone have the same problem? How this can be solved?

Tossy0423 commented 4 years ago

Hi lsy311

Thank you for use yolov4-for-darknet_ros! I had a similar problem, but I was able to solve it. I solved this problem by changing enable_opencv: true to enable_opencv: false in darknet_ros/darknet_ros/config/ros.yaml.

image_view:

  enable_opencv: false
  wait_key_delay: 1
  enable_console_output: true

However, the cause of the problem is not well understood.:disappointed_relieved:

lsy311 commented 4 years ago

@Tossy0423 Thanks for your reply, I'll try it😀