I need to send IplImages fetched from camera with UDP socket. I'm using Qt. The application has two parts. The server should fetch images from digital camera and send them to a specific port via upd (broadcasting). Clients are GUI applications. They will receive images and display them on a QLabel.
I'm using OpenCV for images, so my input of camera is IplImage
. I know how to convert it to QImage
/QPixmap
and display it on a label. But can't find a way to send IplImage
through a udp socket... QUdpSocet::writeDatagram
only accepts QByteArray
so I neet to convert IplImage
to QByteArray
and this should be very fast (It's not appropriate to convert images on server).