#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
int main()
{
    Mat img=imread("1.jpg");
    Mat imgTemp=img.clone();
    Mat logo = imread("2.jpg");
    Mat roi = imgTemp(Rect(50, 50, logo.cols, logo.rows));
    logo.copyTo(roi);
    imshow("logo", imgTemp);
}