【正文】
的總體結(jié)構(gòu) ....................................................................................................... 8 系統(tǒng)的硬件結(jié)構(gòu) ....................................................................................................... 8 圖像采集的硬件結(jié)構(gòu) ........................................................................................ 9 攝像頭光源結(jié)構(gòu) ................................................................................................. 9 刺激光源與控制部分 ......................................................................................... 9 系統(tǒng)的軟件設(shè)計(jì) ..................................................................................................... 11 3 瞳孔動(dòng)態(tài)監(jiān)測(cè)算法設(shè)計(jì) ................................................................................................... 12 預(yù)處理 ..................................................................................................................... 12 腐蝕 ............................................................................................................... 12 膨脹 ............................................................................................................... 13 開運(yùn)算 ........................................................................................................... 14 閾值分割 ................................................................................................................. 15 二值化 ..................................................................................................................... 17 種子點(diǎn)定位 ............................................................................................................. 17 區(qū)域生長法 ............................................................................................................. 18 4 瞳孔動(dòng)態(tài)監(jiān)測(cè)系統(tǒng)的軟件設(shè)計(jì) ....................................................................................... 21 瞳孔動(dòng)態(tài)監(jiān)測(cè)系統(tǒng) 的模塊設(shè)計(jì) ............................................................................. 21 視頻讀取模塊 ............................................................................................... 21 視頻處理模塊 ............................................................................................... 21 畫曲線圖模塊 ............................................................................................... 22 處理后的視頻查看模塊 ............................................................................... 23 軟件的具體實(shí)現(xiàn) ..................................................................................................... 23 環(huán)境配置 ....................................................................................................... 23 整體界面設(shè)計(jì) ............................................................................................... 25 沈陽理工大學(xué)學(xué)士學(xué)位論文 IV 視頻讀取模塊的具體實(shí)現(xiàn) ........................................................................... 26 視頻處理模塊的具體實(shí)現(xiàn) ........................................................................... 27 畫曲線圖模塊的具體實(shí)現(xiàn) ........................................................................... 31 處理后的視頻查看模塊的具體實(shí)現(xiàn) ........................................................... 31 程序出現(xiàn)的異常及處理方法 ................................................................................. 32 測(cè)試 ......................................................................................................................... 32 結(jié) 論 ........................................................................................................................................ 34 致 謝 ........................................................................................................................................ 35 參考文獻(xiàn) .................................................................................................................................. 36 附錄 A 英文附錄 .................................................................................................................. 37 附錄 B 中 文附錄 .................................................................................................................. 42 附錄 C 程序附錄 .................................................................................................................. 46 附錄 D 本文中用到 OpenCV 函數(shù)的使用附錄 .................................................................. 71 沈陽理工大學(xué)學(xué)士學(xué)位論文 1 1 緒 論 課題研究背景及意義 眼睛是人類最重要的感覺器官,人體從外界接收的信息中,有一半的信息都是通過眼睛獲取的。 region growing。 Finally get accurate pupil area using region growing algorithm. Processing method based on the above, the use of OpenCV, vc + + programming tools, programming software part of the dynamic monitoring system has realized the pupil. Keywords:threshold。 關(guān)鍵詞 :二值化;開運(yùn)算;區(qū)域生長法;瞳孔定位; C++ 沈陽理工大學(xué)學(xué)士學(xué)位論文 II Abstract Based on the infrared body under the condition of recording pupil video as treatment object, the pupil video preprocessing, get with the special color identification pupil video for the output. Through the frame by frame of video file collection, the collection of image, image processing of pupil size and special color mark the pupil, then the frame synthesis for video output file. This article adopts the corrosion, expansion, with the frame of open operation, binary image preprocessing methods, such as using region growing algorithm to get the pupil area, so as to calculate the relative sizes of pupil area, can calculate the pupil size, and draw the pupil area change curve, and then synthesize processed image frames into video output file, so as to realize the dynamic analysis of the pupil. In this paper, the frame is based on the processing of binarization of coarse location and region growing method with the bination of methods, can effectively detect irregular round pupil by lesions, simple and rapid. Preprocessing of the first to use morphological open operation to remove eyelash and bright spots and keep the pupil size, the influence of the generated th