Project

General

Profile

Best usage for real time video rending

Added by Clément LE BIHAN over 1 year ago

Hi,

I'm using Wt to have an HIM to our algorithm running on embedded computer, especially Computer Vision algorithm.

We mostly use OpenCV images, and we are using cv::imencode to encode the image, set the encoded data in a WMemoryResource, that we use to create a Link to create an WImage.
Unfortunately, encoding images in real time, at 30 or 60fps is really hard and takes time !

We are wondering what can be the best solution to display real time images using Wt ? We tried to use WebGLWidget but even a texture need to be init with the url of the image.
Is there a way to use opengl function glTexImage2D(GL_TEXTURE_2D,0,3,image.cols, image.rows,0,GL_RGB,GL_UNSIGNED_BYTE, image.data); that directly use image data, without encoding.

Best,
Clément


Replies (1)

RE: Best usage for real time video rending - Added by Jan Sour about 1 year ago

Hi Clement,

have you found any better way to display real time images? I am going to work on a similar application and I wonder whether there is a way to achieve 30/60 fps, at least in low resolution (640x480).

Thank you, best regards,
Jan

    (1-1/1)