Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 859 Bytes

File metadata and controls

40 lines (28 loc) · 859 Bytes

Welcome to the Computer Vision

This is the official documentation for the framework/libraries and knowledgebase by the computer vision sub team.

{% code title="helloworld.cpp" %}

#include "opencv2/opencv.hpp"
#include "opencv2/highgui/highgui.hpp"

using namespace cv;

int main(int argc, char** argv) {
    
    //create a gui window:
    namedWindow("Output",1);
    
    //initialize a 120X350 matrix of black pixels:
    Mat output = Mat::zeros( 120, 350, CV_8UC3 );
    
    //write text on the matrix:
    putText(output,
            "Hello World :)",
            cvPoint(15,70),
            FONT_HERSHEY_PLAIN,
            3,
            cvScalar(0,255,0),
            4);
    
    //display the image:
    imshow("Output", output);
    
    //wait for the user to press any key:
    waitKey(0);
    
    return 0;
    
}

{% endcode %}