使用g++ opencv_demo.cpp -o test 会报以下错误
这是我的代码:
#include
#include
#include
#include
#include
#include
#include
#include
//#pragma comment(lib, "")
using namespace std;
using namespace cv;
void Video_to_Image(Mat& frame);
int main()
{
//string filename = "Wildlife.wmv";
string filename = "rtsp://admin:abc.1234@10.12.18.131:554";
Mat frame;
VideoCapture cap;
cap.open(filename);
if (!cap.isOpened()) {
cerr << "ERROR! Unable to open camera\n";
return -1;
}
//--- GRAB AND WRITE LOOP