Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Created May 27, 2016 07:26
Show Gist options
  • Select an option

  • Save manashmandal/71ef90e0ca9e386cd183a0ad8125d0c9 to your computer and use it in GitHub Desktop.

Select an option

Save manashmandal/71ef90e0ca9e386cd183a0ad8125d0c9 to your computer and use it in GitHub Desktop.
%{Cpp:LicenseTemplate}\
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
using namespace cv;
int main(int argc, char** argv)
{
namedWindow("Output", 1);
Mat output = Mat::zeros(120, 350, CV_8UC3);
putText(output, "Hello world", cvPoint(15,70), FONT_HERSHEY_PLAIN, 3 , cvScalar(0,255,0),4);
imshow("Output", output);
waitKey(0);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment