Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YUV-encoded image messages can not be displayed #4

Open
EbelingRene opened this issue Jan 3, 2024 · 2 comments
Open

YUV-encoded image messages can not be displayed #4

EbelingRene opened this issue Jan 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@EbelingRene
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. I cloned the repositorys (qml_ros2_plugin, ros2_babel_fish)
  2. I installed all necessary packages
  3. I tried the examples (publisher.qml and subscription.qml worked perfectly)
  4. I started the usb_cam_node_exe from the usb_cam package (rviz2 received the topic image_raw/)
  5. I tried image_subscription.qml example with my Logitech-C270 webcam
  6. The QML Window opened and I received this Error: "[ERROR] [1704280468.358788809] [qml_ros2_plugin]: Could not find compatible format for video surface."

Expected behavior
I expected to see a Video feed in the UI

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. Ubuntu 22.04]
  • ROS Version [e.g. Humble]
@EbelingRene EbelingRene added the bug Something isn't working label Jan 3, 2024
@StefanFabian
Copy link
Owner

Thank you for the bug report!
I could reproduce the issue and will investigate 👍

@StefanFabian StefanFabian changed the title ImageSubscription Example YUV-encoded image messages can not be displayed Jan 5, 2024
@StefanFabian
Copy link
Owner

Okay, it seems the current issue is that YUV is not supported.
It would require writing some extra code to convert this to a compatible format for the QML video output.
I've tried adding this by using OpenCV for the conversion but stumbled across another issue with the compression of yuv (see ros-perception/image_common#293).
So, even if I put in the work to support this encoding, it might not work correctly with compressed images.
Hence, for the moment I would advise using a different encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants