#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
int main(int argc, char **argv) {
using namespace std;
IplImage *pFrame = NULL, *srcImage = NULL;
CvCapture *pCapture = NULL;
pCapture = cvCreateFileCapture("rtsp://192.168.1.10:554/user=admin&password=admin&channel=1&stream=1.sdp?real_stream");
if (!pCapture) {
printf("Can not get the video stream from the camera!\n");
return NULL;
}
while (1) {
if (srcImage == NULL)
{
pFrame = cvQueryFrame(pCaptur
citytech摄像头 opencv+rtsp获得图像
最新推荐文章于 2025-07-09 11:10:08 发布