darknet_ros icon indicating copy to clipboard operation
darknet_ros copied to clipboard

Cannot open darknet_ros/detection_image in rqt_image_viewer

Open kubs0ne opened this issue 4 years ago • 10 comments

Hi, I'm trying to integrate ROS with YOLO, and I want to be able to play the darknet_ros/detection_image topic from bag and visualise it. The problem is that when I open rqt_image_viewer and select this topic, some artefacts are visible. I tried to change formats in YoloObjectDetector.cpp but it didn't help. I'm using yolo_v4.launch to initialize. What can I do to resolve the issue? Maybe I'm using the wrong visualiser (rqt_image_viewer)? I can also add that when I launch the file, YOLO window displays correctly and detect objects. I would be grateful for any help.

kubs0ne avatar Aug 12 '20 08:08 kubs0ne

Same issue. The images cannot be visualized by rqt_image_viewer when I set 'enable_opencv' to false. But works fine when opencv window displayed.

MingheCao avatar Sep 17 '20 03:09 MingheCao

Same issue here. Getting these strange artifacts when launching the yolo_v3.launch

Screenshot from 2021-03-01 17-27-59

Tried alsoin RVIZ and same issue. Any ideas? Is there something wrong:

bool YoloObjectDetector::publishDetectionImage(const cv::Mat& detectionImage) { if (detectionImagePublisher_.getNumSubscribers() < 1) return false; cv_bridge::CvImage cvImage; cvImage.header.stamp = ros::Time::now(); cvImage.header.frame_id = "detection_image"; cvImage.encoding = sensor_msgs::image_encodings::BGR8; cvImage.image = detectionImage; detectionImagePublisher_.publish(*cvImage.toImageMsg()); ROS_DEBUG("Detection image has been published."); return true; }

?

RDaneelOlivav avatar Mar 01 '21 16:03 RDaneelOlivav

Same issue here!

iamrajee avatar Oct 08 '21 16:10 iamrajee

I use rviz and just have a frozen image from my camera with no bounding boxes.

idochi avatar Apr 11 '22 12:04 idochi

me too

GavinGaoYan avatar May 31 '22 07:05 GavinGaoYan

我使用rviz,只是从我的相机中获得了一个没有边界框的冻结图像。

me too,Did you solve the problem?

huangxiaoxiao-5 avatar Aug 16 '22 03:08 huangxiaoxiao-5

mee to, did you know how to solve the problem?

SergioFerrando avatar Apr 24 '23 16:04 SergioFerrando

mee to, did you know how to solve the problem?

Just disable the darknet's UI. Then it will be OK.

GavinGaoYan avatar Apr 25 '23 02:04 GavinGaoYan

how do i do it?

SergioFerrando avatar Apr 25 '23 05:04 SergioFerrando

how do i do it?

in config/ros.yaml

`image_view:

enable_opencv: true wait_key_delay: 1 enable_console_output: true`

set enable_opencv=false

GavinGaoYan avatar Apr 25 '23 05:04 GavinGaoYan