流视频在OpenCV
stream video in OpenCV
我在beaglebone上运行一个简单的OpenCV程序,出于调试目的,我希望看到输出流。我试过在命令行
中这样做 ./myprog | avconv -f rawvideo -pix_fmt bgr24 -s 160x90 -r 30 -i - -an -f mpegts udp://192.168.7.1:1234
我正在使用VLC在我的笔记本电脑上播放udp流,但这似乎不起作用,我想知道我可以通过什么其他方式实现这一点,任何帮助都会很感激。
我的程序就是,
int main()
{
VideoCapture capture(0);
if(!capture.isOpened()){
cout << "Failed to connect to the camera." << endl;
}
for(;;)
{
Mat frame;
capture >> frame;
if(frame.empty()){
cout << "Failed to capture an image" << endl;
return -1;
}
cout << frame.data;
return 0;
}
您没有关闭for
循环的括号
相关文章:
- 在macOS Mojave上尝试OpenCV视频捕获时"Abort Trap: 6"
- 当我使用RTSP摄像机流时,OpenCV视频贴中滞后
- 低FPS与OpenCV视频捕获
- OPENCV视频关注设备索引 /设备编号
- Opencv 视频帧.我只能看到最后一帧
- OpenCV视频捕获抓取和检索
- 如何将opencv视频发送到ffmpeg
- 如何在QT中有效显示OpenCV视频
- 由于捕获缓冲液,OpenCV视频贴滞后
- OpenCV视频阅读慢帧率
- OpenCV 视频处理在 iOS 中更换相机
- C/C++OpenCV视频处理
- opencv视频捕获默认设置
- OpenCV视频处理帧速率下降
- 如何:Android OpenCV视频捕获与文件
- 如何在opencv视频中添加圆圈/点
- OpenCV视频稳定算法
- opencv视频采集和虚拟机上的摄像头访问
- Opencv视频帧给我一个错误
- OpenCV视频模块教程