#include "opencv2/core/utility.hpp"
//#include "opencv2/imgproc.hpp"
//#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include <stdio.h>
using namespace cv;
using namespace std;
int main()
{
VideoCapture capture;
capture.open(0);
Mat bu = imread("BU.png");
while (1)
{
Mat frame;
capture >> frame;
Mat image;
image = frame(Rect(0, 0, bu.cols, bu.rows));
//图像拼接
addWeighted(image, 0.7, bu, 0.3, 0, image);
imshow("video", frame);
waitKey(30);
}
return 0;
}