簡易檢索 / 詳目顯示

研究生: 黃敬智
Jing-chih Huang
論文名稱: 以FPGA發展嵌入式影像循邊量測系統之研究
The Edge Tracing Measurement of Image Based Embedded System by Using a FPGA
指導教授: 江茂雄
Mao-hsiung Chiang
郭中豐
Chung-feng Kuo
口試委員: 任志強
Chih-chiang Jen
學位類別: 碩士
Master
系所名稱: 工程學院 - 自動化及控制研究所
Graduate Institute of Automation and Control
論文出版年: 2008
畢業學年度: 96
語文別: 中文
論文頁數: 97
中文關鍵詞: 系統晶片FPGACMOS循邊量測Otsu門檻值決定法八連通循邊次像素I2C
外文關鍵詞: SOPC, FPGA, CMOS, An edge tracing measurement, Otsu, chain code, subpixel, I2C
相關次數: 點閱:183下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 本研究主要應用SOPC(System-on-a-programmable-chip)技術發展影像循邊量測系統,在影像循邊量測系統的晶片內,包含硬體及軟體兩大部分。
    硬體部分包含:(1)影像擷取電路:擷取CMOS(Complementary metal-oxide-semiconductor)影像感測器之訊號。(2)規劃Nios II微處理器:作為影像循邊量測程序運行的平台。
    軟體部分(Nios II 微處理器)包含:(1)I2C(Inter-integrated circuit)串列通訊介面:利用Nios II的PIO(Parallel input/output)完成寫入CMOS影像感測器的暫存器之功能。(2)影像循邊處理演算法:搭配所設計的影像擷取硬體電路,對所擷取的影像資料進行處理,其流程為:影像還原、灰階化、低通濾波、Otsu門檻值決定法、二值化、Laplacian operator 測邊、細化、去毛邊、八連通循邊及次像素定位。(3)待測物件參數演算法:利用所循得的邊點資訊,來求得該物件之相關參數,待測物件包含:圓、橢圓、平行四邊形及三角形物件,而對於其他物件可求得其最小外接矩形參數。
    在系統晶片內之硬體部分使用Verilog 硬體描述語言撰寫;軟體部分使用C 程式語言撰寫,系統晶片採用美商ALTERA 公司生產的Stratix II EP2S60F672C3N FPGA(Field-programmable gate array),CMOS影像感測器採用國內PIXART公司所生產的PAS6311LT彩色影像感測器,此感測器為解析度為648×488,最後,本論文整合一套系統,包括Nios II 發展板、三軸平行機構和CMOS影像感測器等,經由實驗結果之比較來驗證本文所設計的系統晶片之有效性與正確性。


    An edge tracing measurement integrated circuit (IC) using System-on-a-programmable-chip (SOPC) technology is presented in this thesis. In the proposed measurement IC, there are two modules. One module is implemented by hardware circuit, which functions are Complementary metal-oxide-semiconductor (CMOS) image sensor signal capture and scheme Nios II microprocessor. The other module is implemented by software using Nios II microprocessor, which functions are writing registers of CMOS image sensor using Inter-integrated circuit (I2C) and the edge tracing measurement algorithm, such as Otsu’s method, Laplacian operator, thinning, chain code, subpixel theorem and so on. The digital hardware circuits are designed by Verilog language and programed in Nios II microprocessor coded in C language. The Field-programmable gate array (FPGA) chip adopts ALTERA Stratix II EP2S60F672C3N on the development board. The CMOS color image sensor adopts PIXART PAS6311LT which resolution is 648×488 pixels. At last, an integrated experimental system that includes Nios II development board, three degree of freedom parallel mechanism and CMOS image sensor is implemented. The experimental results verify the feasibility and correctness of the proposed measurement system.

    摘要 I Abstract II 誌謝 III 目錄 IV 圖目錄 VI 表目錄 IX 第一章 緒論 1 1.1 前言 1 1.2 文獻回顧 2 1.2.1影像處理之回顧 2 1.2.2 系統晶片(SOPC)應用於影像處理之回顧 4 1.3 研究動機與目的 4 1.4 論文架構 5 第二章 影像循邊量測系統架構 6 2.1 FPGA發展板 7 2.2 CMOS影像感測器 11 2.3 光源設備 14 2.4 三軸平行機構 14 2.5 個人電腦 15 第三章 可程式系統晶片之設計 16 3.1 I2C串列同步傳輸電路 18 3.2 CMOS Sensor影像訊號擷取 21 3.3 Nios II 微處理器規劃 24 第四章 循邊量測影像處理技術 30 4.1 色彩內插演算法 31 4.2 影像灰階化 34 4.3 影像低通濾波 35 4.4 統計式門檻值決定法 37 4.5 影像二值化 41 4.6 影像測邊 42 4.6.1 Sobel Operator(一階導數) 44 4.6.2 Laplacian Operator(二階導數) 46 4.7 影像細化 48 4.8 去毛邊 51 4.9 軌跡追蹤 53 4.10 次像素法則 58 4.11 量測物件參數求法 62 4.11.1 圓或橢圓物件 62 4.11.2 平行四邊形物件 65 4.11.3 三角形物件 68 第五章 實驗結果與討論 69 5.1 循邊影像處理演算法之實驗 69 5.2 待測物件參數演算法之實驗 72 5.3 量測結果 76 5.4 實驗結果之討論 86 第六章 結論與未來展望 87 6.1 結論 87 6.2 未來展望 87 參考文獻 89 附錄一 I2C程式碼 92 附錄二 影像擷取電路程式碼 95 作者簡介 97

    [1]A. Bauchspiess, A. Absi, C. Sadek, and L. A. Dobrzanski, “Predictive sensor guided robotic manipulators in automated welding cells,”
    Journal of Materials processing Technology Vol. 109, Issue: 1-2, pp.13-19, February 1, 2001.
    [2]Y. Xiong, and F. Quek, “Machine vision for 3D mechanical part recofnition in intelligent manufacturing environments,” Proceddings of the Third International Workshop on Robot Motion and Control, RoMoCo’02, pp.441-446, 2002.
    [3]D. M. Bulanon, T. Kataoka, Y. Ota, and T. Hiroma, “Automation and Emerging Technologies: A Segmentation Algorithm for the Automatic Recognition of Fuji Apples at Harvest,” Biosystems Engineering Vol. 83, Issue: 4, pp.405-412, December 2002.
    [4]S. Hutchinson, G. D. Hager, and P. I. Corke, “A tutorial on visual servo control,” IEEE trans. Robot. Automat, Vol 12, pp.651-670, May 1996.
    [5]C. S. Lin, and L.W. Lue, “An image system for fast positioning and accuracy inspection of ball grid array boards,” Microelectronics Reliability Vol. 41, Issue: 1, pp.119-128, January 2001.
    [6]N. F. Xiao, and S. Nahavandi, “Multi-agent model for robotic assembly system,” Proceedings of the 5th Biannual World Automation Congress 2002, Vol. 14, pp.495-500, 2002.
    [7]J. Blasco, N. Aleixos, J. M. Roger, G. Gabatel, and E. Molto, “Automation and Emerging Technologies: Robotic Weed Control using Machine Vision,” Biosystems Engineering Vol.83, Issue: 2, pp.149-157, October 2002.
    [8]C. Son, “Optimal control planning strategies with fuzzy entropy and sensor fusion for robotic part assembly tasks,” International Journal of Machine Tools and Manufacture Vol. 42, Issue: 12, pp.1335-1344, September 2002.
    [9]T. I. J. Tsay, M. K. Lee, G. L. Wang, M. S. Hsu, and C. H. Lai, “Robotic eye/arm coordination via visual servoing,” Proceedings of the 2002 International Conference on Control Applications, Vol.2, pp.742-747, 2002.
    [10]R. Garrido, A. Soria, P. Castillo, and I. Vazquez, “A visual servoing architecture for controlling electromechanical systems,” in Proc. Int. Conf. Control Applications & Int. Symp. Intelligent Control, Mexico City, Mexico, Sept.5-7, 2001.
    [11]A. Nagchaudhuri, “Robotics and machine vision for introduction to flexible automation to engineering undergraduates,” Frontiers in Education, 2002. FIE 2002. 32nd Annual, Vol.1, pp.T2D-23-T2D-28, 2002.
    [12]翁偉昌, “自動對焦尋邊精密量測之研究,” 國立台北科技大學機電整合研究所碩士論文, 2003.
    [13]黃世良, “循邊式影像量測之研究,” 國立台北科技大學機電整合研究所碩士論文, 2004.
    [14]Tabatabai and Michell, “Edge Location to Subpixel Values in Digital Imagery,” IEEE Trans. Pattern Anal. Mach. Intell, Vol.PAMI-6, NO.2, pp.188-201, March 1984.
    [15]J. I. Ker, “Automated Profile Inspection Methods by Computer Vision Methods,” Ph.D. Dissertation, Department of Industrial Engineering, University of Missouri-Columbia, 1995.
    [16]Sobel, Irwin, “Camera Models and Machine Perception,” Stanford Artificial Intelligence Project, Memo AIM-121, Computer Science Department, Stanford University, May 1970.
    [17]C. H. Hsieh, Y. W. Huang and M. J. Wu, “Automatic Concentricity Measurement by Image Processing,” IEEE. Instrumentation and Measurement Technology Conference, 1994. IMTC/94. Conference Proceedings. 10th Anniversary. Advanced Technologies in I&M, pp.853-857, 1994.
    [18]R. C. Gonzalez and R. E. Woods, “Digital Image Processing,” 2nd Edition, Prentice Hall, New York, 2002.
    [19]L. G. Roberts, “Machine Perception of Three-Dimensional Solids,” in Optical and Electro-Optical Information Processing, J. T. Tippett etal, Eds. Cambridge, MA: MIT Press, pp.101-122, 1965.
    [20]Sobel and Irwin, “Camera Models and Machine Percedption,” Stanford Artificial Intelligence Project, Memo AIM-121, Computer Science Department, Stanford University, May 1970.
    [21]P. J. M. Vicar-Whelan and T. O. Binford, “Line Finding with Subpixel Precision,” Proc.SPIE, Vol.281, 1982.
    [22]Lyvers and Mitchell et al, “Subpixel Measurements Using a Moment-Based Edge Operator,” IEEE Pattern Anal. March. Intell, Vol.PAMI-11, NO.12, pp.1293-1309, December 1989.
    [23]陳賢義, “次像素邊緣尋找在精密齒輪量測的應用,” 機械工業雜誌, 1980.
    [24]W. H. Tsai, “Moment-Preserving Thresholding: A New Approach,” Computer Vision Graph. Image Processing, Vol.29, pp.377-393, 1985.
    [25]葉正昌, “二值化圖形之輪廓找尋法則及其應用,” 機械工業雜誌, 第66期, 1988.
    [26]T. H. Kim, Y. S. Moon and C. S. Han, “An Efficient Method of Estimating Edge Locations With Subpixel Accuracy In Noisy Images,” Hanyang University, Ansan, Kyonggi Do, Korea, pp.425-791, 1995.
    [27]T. Bretschneider, O. Kao and G. Joubert, “Locating straight image features to sub-pixel accuracy,” Technical University of Clausthal, 1995.
    [28]伍倉億, “即時影像物體追蹤之FPGA硬體平台實現,” 國立交通大學電機與控制工程研究所碩士論文, 2003.
    [29]詹祖懷, “快速圓形霍氏轉換FPGA架構,” 國立台灣科技大學電子工程系碩士論文, 2005.
    [30]呂元昊, “以SOPC為基礎之人臉辨識系統,” 國立台灣科技大學電子工程系碩士論文, 2005.
    [31]巫憲欣, “以系統晶片發展具機器視覺之機械手臂運動控制,” 國立台灣科技大學機械工程系碩士論文, 2006.
    [32]林岱夆, “具影像測距之二足步行機器人,” 國立台灣科技大學電機工程系碩士論文, 2007.
    [33]PAS6311 Application Notes datasheep, Version2, Pixart Imaging Inc., 2006.
    [34]Altera, “Quartus II Version 7.2 Handbook Volume 5: Embedded Peripherals,” Altera Corporation, 2007.
    [35]Altera, “Nios II Software Developer’s Handbook,” Altera Corporation, 2007
    [36]http://www.esacademy.com/faq/i2c/I2C_Bus_specification.pdf,2006.
    [37]B. E. Bayer, “Color imaging array,” U.S. Patent 3 971 065, 1976.
    [38]林明德, “色彩內插演算法之比較與FPGA硬體系統實現,” 國立高雄第一科技大學碩士論文, 2005.
    [39]鍾國亮, “影像處理與電腦視覺,” 東華書局, 2006.
    [40]連國珍, “數位影像處理,” 儒林圖書, 1992.
    [41]N. Otsu, “A threshold selection method from gray level histogram,” IEEE Trans. on Systems, Man, and Cybernetics, SMC-8, pp.62-66, 1978.
    [42]R. C. Gonzalez and R. E. Woods, 吳成格,戴善榮,程湘君和雲立實 譯, 數位影像處理, 儒林圖書有限公司, 2001.
    [43]T. Y. Zhang and C. Y. Suen, “A fast parallel algorithm for thinning digital patterns,” Communication of the ACM, Vol.27, no.3, pp.236-239, MAR 1996.
    [44]P. D. Sampson, “Fitting conic sections to ver scattered data: an iterative refinement of the bookstein algorithm,” Computer Graphics and Image Processing, Vol.18, pp.97-108, 1996.

    無法下載圖示 全文公開日期 2013/07/29 (校內網路)
    全文公開日期 本全文未授權公開 (校外網路)
    全文公開日期 本全文未授權公開 (國家圖書館:臺灣博碩士論文系統)
    QR CODE