Ask Your Question

Converting a Compressed Image to QImage

asked 2015-03-25 10:03:15 -0500

David L-B gravatar image

Hi all,

I need to create a camera feed viewer that will need to run on very limited bandwidth networks. As such I want to use Compressed images instead of the raw image.

My application is python and uses PyQt for the gui.

How can I convert the /sensor_msgs/Compressed message to a QtGui.Qimage ?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-14 08:32:11 -0500

David L-B gravatar image

Found it myself:

qimage = QtGui.QImage.fromData(
imageMain = QtGui.QPixmap.fromImage(qimage)
edit flag offensive delete link more


from PyQt4 import QtGui

peci1 gravatar imagepeci1 ( 2015-09-14 20:50:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-03-25 10:03:15 -0500

Seen: 875 times

Last updated: Apr 14 '15