curious_electron
curious_electron

Reputation: 11

Display compressed Image data in Unity scene

I want to display a series of compressed image data in a Unity scene. I am receiving this continuous stream of compressed image data from ROS2. For reference the RGB bitmap looks like this :

array('B', [255, 216, 0, 1, 1, 216 ...)

The image format is rgb8; jpeg compressed bgr8.

I want to display these images (video frames) on a small portion of the screen.

Since I am fairly new to unity and still learning it please excuse this beginner-level question. So far I found the texture2D.LoadImage(imageData); to be useful.

Any inputs as to how to approach the problem would be really useful.

Sorry if there is a lot of redundant information here.

Upvotes: 1

Views: 250

Answers (0)

Related Questions