• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::

            What is OpenCV?

            OpenCV means Intel® Open Source Computer Vision Library. It is a collection of C functions and a few C++ classes that implement some popular Image Processing and Computer Vision algorithms.

            What this means

            You can take advantage of high speed implementations of functions commonly used in Computer Vision/Image Processing.


            Overview:

            1. CV: Image processing and vision algorithms

            2. CXCORE: basic structures and algoritms, XML support, drawing functions

            3. ML: Machine Learning methods

            4. HighGUI: GUI, Image and Video I/O

            5. Cvaux: Auxiliary (experimental) OpenCv functions

            6. CvCam: cross-platform module for processing video stream from digital video cameras

             

            下載地址: http://opencv.willowgarage.com/wiki/

            參考手冊: http://opencv.willowgarage.com/documentation/cpp/index.html,可以在線搜索,比較方便


            在Qt中使用OpenCV:

            1. 創建一個空的工程

            2.1. 在工程的pro文件中把opencv的include目錄加入INCLUDEPATH中

            2.2. 把需要使用的opencv的庫連接文件加入工程pro文件的LIBS中

            3. 編寫main函數

            4. 編譯運行,會彈出一個窗口,里面顯示: Welcome To OpenCV

            ---------------------------------------------------------------------------------------------------------------------- 

            pro文件的內容如下:

            INCLUDEPATH += C:\opencv\include

            LIBS += C:\opencv\lib\libcv200.dll.a \

                C:\opencv\lib\libcxcore200.dll.a \

                C:\opencv\lib\libhighgui200.dll.a


            SOURCES += main.cpp


            ----------------------------------------------------------------------------------------------------------------------

            main.cpp的內容如下:

            #include <opencv/cv.h>

            #include <opencv/highgui.h>


            int main(int argc, char *argv[]) {

                //declare for the height and width of the image

                int height = 620;

                int width = 440;


                //specify the point to place the text

                CvPoint pt = cvPoint( height/4, width/2 );

                //Create an 8 bit, 3 plane image

                IplImage* hw = cvCreateImage(cvSize(height, width), 8, 3);

                //Clearing the Image

                cvSet(hw,cvScalar(0,0,0));

                //initialize the font

                CvFont font;

                cvInitFont( &font, CV_FONT_HERSHEY_COMPLEX, 1.0, 1.0, 0, 1, CV_AA);

                //place the text on the image using the font

                cvPutText(hw, "Welcome To OpenCV", pt, &font, CV_RGB(150, 0, 150) );


                //create the window container

                cvNamedWindow("Hello World", 0);

                //display the image in the container

                cvShowImage("Hello World", hw);

                //hold the output windows

                cvWaitKey(0);

                return 0;

            }


            posted on 2010-04-17 06:31 逛奔的蝸牛 閱讀(2394) 評論(0)  編輯 收藏 引用 所屬分類: C/C++Qt
            99精品久久久久久久婷婷| 亚洲国产精品久久电影欧美| 99久久免费只有精品国产| 91久久福利国产成人精品| 久久99热这里只频精品6| 久久综合亚洲欧美成人| 久久精品国产亚洲Aⅴ香蕉 | 国产精品乱码久久久久久软件| 亚洲综合日韩久久成人AV| 97精品国产97久久久久久免费| 久久精品国产亚洲av麻豆蜜芽| 国产精品久久久久久久久鸭| 精品久久久一二三区| 久久99热国产这有精品| 久久精品国产男包| 久久涩综合| 久久久久久狠狠丁香| 色偷偷88888欧美精品久久久| 久久久网中文字幕| 91久久九九无码成人网站| 97精品依人久久久大香线蕉97| 久久涩综合| 久久国产精品免费一区| 日本免费久久久久久久网站| 久久九九精品99国产精品| 亚洲精品国精品久久99热一| 97精品伊人久久大香线蕉| 狠狠色丁香婷婷久久综合五月| 久久se精品一区精品二区国产| 中文字幕一区二区三区久久网站| 99久久国语露脸精品国产| 久久亚洲AV成人无码电影| 久久精品中文騷妇女内射| 亚洲精品乱码久久久久久自慰| 亚洲综合伊人久久大杳蕉| 亚洲精品无码久久久久sm| 久久综合给合久久狠狠狠97色69| 性做久久久久久久| 国产精品视频久久久| 亚洲精品高清久久| 精品熟女少妇aⅴ免费久久|