• <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 逛奔的蝸牛 閱讀(2397) 評論(0)  編輯 收藏 引用 所屬分類: C/C++Qt
            久久久久国色AV免费观看| 久久狠狠爱亚洲综合影院| 99国产精品久久| 99久久精品费精品国产一区二区| 色妞色综合久久夜夜| 2021少妇久久久久久久久久| 草草久久久无码国产专区| 亚洲日本va午夜中文字幕久久| 久久99这里只有精品国产| 99久久精品国产麻豆| 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久综合狠狠综合久久97色| 亚洲日本久久久午夜精品| 久久精品毛片免费观看| 久久综合久久性久99毛片| 无码超乳爆乳中文字幕久久| 久久综合九色综合久99| 久久久久亚洲AV片无码下载蜜桃| 国产精品美女久久久m| 亚洲国产成人精品91久久久 | 日本WV一本一道久久香蕉| 久久午夜电影网| 久久青青草原亚洲av无码app| 久久夜色撩人精品国产| 97久久超碰国产精品旧版| 久久久久av无码免费网| 国产A级毛片久久久精品毛片| 色狠狠久久AV五月综合| 一级A毛片免费观看久久精品| 精品久久久久久国产三级 | 狠狠色噜噜色狠狠狠综合久久| 人人狠狠综合久久亚洲88| 欧洲精品久久久av无码电影| 久久人人爽人人爽人人片AV高清 | 精品综合久久久久久88小说| 国产精品美女久久久久| 色综合久久综合中文综合网| 久久丫精品国产亚洲av不卡 | 亚洲国产成人精品91久久久| 久久99精品国产麻豆不卡| 久久精品国产欧美日韩|