使用qt5,ffmpeg6.0,opencv,os2来实现。qt并非必要,只是用惯了。 步骤是: 1.读取rtsp码流,转换成mat图像 2.发送ros::mat图像 项目结构如下: videoplayer.h #ifndef VIDEOPLAYER_H #define VIDEOPLAYER_H #include <QThread> #include <QImage> class VlcInstance; class VlcMedia; class VlcMediaPlayer; class VideoPlayer : public QThread { Q_OBJECT public: explicit VideoPlayer(); ~VideoPlayer(); void startPlay(); void stopPlay(); signals: void sig_GetOneFrame(QImage); //每获取到一帧图像 就发送此信号 void sig_GetRFrame(QImage); signals: //void SigFinished(void);...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with void
Contact void, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack