#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
using
namespace
cv;
using
namespace
std;
int
main(
int
argc,
char
** argv)
{
Mat image = imread(
"C:/Users/harsh/Downloads/geeks.png"
,
IMREAD_COLOR);
if
(!image.data) {
cout <<
"Could not open or"
<<
" find the image"
<< std::endl;
return
0;
}
Point org(1, 30);
putText(image,
"Geeks For Geeks"
, org,
FONT_HERSHEY_SCRIPT_COMPLEX, 1.0,
Scalar(0, 255, 0), 2, LINE_AA);
imshow(
"Output"
, image);
waitKey(0);
return
0;
}