系統識別號 | U0002-1807201716150700 |
---|---|
DOI | 10.6846/TKU.2017.00625 |
論文名稱(中文) | 影像基礎書畫機器手臂系統之研製 |
論文名稱(英文) | Study on Image-based Painting and Calligraphy Robot Arm System |
第三語言論文名稱 | |
校院名稱 | 淡江大學 |
系所名稱(中文) | 電機工程學系碩士班 |
系所名稱(英文) | Department of Electrical and Computer Engineering |
外國學位學校名稱 | |
外國學位學院名稱 | |
外國學位研究所名稱 | |
學年度 | 105 |
學期 | 2 |
出版年 | 106 |
研究生(中文) | 高偉恆 |
研究生(英文) | Wei-Heng Kao |
學號 | 605470011 |
學位類別 | 碩士 |
語言別 | 繁體中文 |
第二語言別 | |
口試日期 | 2017-06-22 |
論文頁數 | 52頁 |
口試委員 |
指導教授
-
許駿飛
委員 - 莊鎮嘉 委員 - 張嘉文 委員 - 蔡奇謚 |
關鍵字(中) |
繪圖系統 書寫系統 Delta機械手臂 逆運動學 邊緣測算法 大津演算法 樹莓派 |
關鍵字(英) |
Drawing System Calligraphy System Delta Robot Arm Inverse Kinematics Canny Edge Detection Otsu Algorithm Raspberry Pi |
第三語言關鍵字 | |
學科別分類 | |
中文摘要 |
本論文選用Raspberry Pi3單板電腦以及Arduino Mega2560開發板設計一套可以透過影像處理即可直接藉由機械手臂快速書寫文字與繪畫圖案,其中透過Raspberry Pi3單板電腦負責OpenCV影像處理的工作, Mega2560開發板上負責逆向運動學推導。為了驗證此系統的可行性,我們設計了圖形繪畫與文字書寫兩個任務,首先我們先將此系統應用在繪圖功能上,透過Canny邊緣檢測算法,偵測輸入圖案的邊緣特徵點並將之繪出,藉此驗證整套自動化系統之溝通的實現以及機械手臂定位的精確性。再來,本論文為了透過此套系統來實現自動書寫功能,在輸入文字影像後使用OpenCV影像處理來提取骨架及輪廓,用做判斷毛筆的抬筆高度,接著找出起始點及鄰近點的斜率來決定筆劃順序,最後再將資訊傳給Mega2560開發板來做馬達控制。由實際實驗結果可得知本論文所提出之影像基礎書畫機器手臂有一定程度之書寫與繪畫功能。 |
英文摘要 |
This thesis selects Raspberry Pi3 and Arduino Mega 2560 to design a painting and calligraphy robot arm system by using the image processing through the delta robot arm. The Raspberry Pi3 is used to do the image processing and Arduino Mega 2560 is used to do the inverse kinematics and control motors. To verify the feasibility design of the system, two missions are applied. One is Painting mission and the other one is calligraphy mission. First, we apply the system on the painting mission. By using the Canny edge detection, detecting the edge of the image that we input then drawing. Through the mission we can verify the communication of whole system and accuracy of the robot arm. After that in order to achieve the calligraphy function by using the system. We input the letter image and using OpenCV to get the skeletons and contours as height of our brush then do the path-planning. Finally transmit the information to Mega 2560 to control the motor. From the real time experimental result, it shows that the proposed robot arm system can achieve favorable performance. |
第三語言摘要 | |
論文目次 |
目錄 致謝 I 摘要 II Abstract III 目錄 IV 圖目錄 VI 第一章、 序論 1 1.1 機械手臂介紹 1 1.2 研究目的 3 1.3、 論文架構 6 第二章、 Delta手臂於繪圖應用 8 2.1、 Delta手臂之逆向運動學介紹 8 2.2、 邊緣測算法之影像處理 13 2.3、 Delta手臂控制之實現 17 2.3.1、 步進馬達之控制 17 2.3.2、 Raspberry Pi3與Arduino溝通 19 2.4、 實驗結果 20 2.4.1、 繪畫順序流程 20 2.4.2、 系統程式流程 22 2.4.3、 繪圖實現 23 第三章、 Delta手臂於書寫應用 26 3.1、 文字型圖形處理 26 3.1.1. 侵蝕及膨脹 27 3.1.2. 細線化 30 3.1.3. Canny邊緣測算法與取點至邊緣之距離 32 3.2、 筆劃順序判斷 35 3.3、 實驗結果 37 第四章、 結論與未來研究 46 4.1 、結論 46 4.2 、未來研究 47 參考文獻 49 圖目錄 圖1.1、常見的機械手臂樣式……………………………………………………………2 圖1.2、台灣科技大學所提出使用之RV-3AJ五軸機械手臂………………………….4 圖1.3、利用樂高所組成之三軸機械手臂繪圖系統………………………...………….4 圖1.4、淡江大學所提出之六軸機械手臂繪圖系統………………………...………….4 圖1.5、KUKA工業機械手臂展示書寫英文字的能力…………...………...………….5 圖1.6、DOBOT機械手臂展示書寫中文字的能力…….…………………...………….5 圖1.7、本論文所設計之系統架構圖………………………………………...………….6 圖2.1、直角座標上A、B、C各柱的位置示意圖….……………………...………….9 圖2.2、機構部位之定義示意圖……………………………………………...………….9 圖2.3、Canny邊緣測算法比較圖………………………………………….....……….14 圖2.4、大津演算法找出Canny邊緣測算法閥值………………………...…….…….15 圖2.5、其他範例………………………...………………………………………..…….16 圖2.6、Nema17步進馬達………………………………….……………...……..…….17 圖2.7、A4988腳位圖………………………………………………….……………….18 圖2.8、Raspberry Pi3單板電腦………..…………………………………………...….19 圖2.9、繪圖順序流程圖………………………………………………………….…….21 圖2.10、封閉圖形之示意圖……………………………………………………...…….22 圖2.11、流程圖………………………………………………………………...……….23 圖2.12、茶杯繪圖結果….…………………………………………………………..….24 圖2.13、卡通繪圖結果………….……………………………………………………...25 圖3.1、膨脹侵蝕…………………………………………...…..……………………….27 圖3.2、侵蝕…………….……………………………………………………………….28 圖3.3、不同結構元素之侵蝕……………………………………………….………….28 圖3.4、膨脹與侵蝕……………………………………………………….…………….29 圖3.5、細線化………………………………………………………………….……….31 圖3.6、細線化之初始設定……………..………………………………………...…….32 圖3.7、細線化與邊緣化結果………………………………………………….……….33 圖3.8、細線化至邊緣距離……………………………………………...………..…….33 圖3.9、“正” 中文細線化影像之端點示意圖…………………...…………………….35 圖3.10、路徑規劃…………………………………………………………...………….36 圖3.11、本論文所提出之筆劃順序流程圖………………………………...………….37 圖3.12、”江”字結果…………….…………………………………………………..….38 圖3.13、”高”字結果…………………….……………………………………………...40 圖3.14、不同字體之結果……………………………………………………...……….41 圖3.15、”飛”字結果……………………………………………………………………42 圖3.16、”正”字結果…………………………………………………...……………….43 圖3.17、”中”字結果……………………………………………………………...…….44 圖3.18、”淡”字結果………………………………………………………...………….45 圖4.1、書寫結果…………………………………………………………….………….48 |
參考文獻 |
參考文獻 [1] [Online] http://www.tairoa.org.tw/ [2] [Online]https://zh.wikipedia.org/wiki/%E6%A9%9F%E6%A2%B0%E6%89%8B%E8%87%82 [3] [Online] http://www.wittmann-group.tw/automation.htm [4] [Online]http://www.hiwin.tw/Products/Products_robot.aspx?type=robot&subtype=robot_scara [5] [Online]http://blog.xuite.net/minnie850422/minnie850422/8873017-%E6%A9%9F%E5%99%A8%E4%BA%BA [6] [Online]http://www.myhiwin.com.tw/index.aspx?u=mackaytest&i=89 [7] [Online]https://www.ctimes.com.tw/DispArt/tw/13051410592W.shtml [8] [Online]http://www.igus.com.tw/wpck/12274/app_3D_PrinterLOV3 [9] 洪群堯,機械手臂作畫系統基礎技術研究,台灣科技大學機械工程研究所碩士論文(指導教授:林其禹),2007年。 [10] ÁkosHámori, JánosLengyel and BarnaReskó, “3DOF drawing robot using LEGO-NXT,” 15th International Conference on Intelligent Engineering Systems, p.p.293-295, 2011. [11] 沈宜郡,基於B-Spline曲線之六軸機械手臂繪圖系統,淡江大學電機工程學系碩士論文(指導教授:翁慶昌),2013年。 [12] [Online]http://www.kuka-robotics.com/ [13] [Online]http://www.qts.tw/dobot-29986216972017132057.html [14] [Online]https://zh.wikipedia.org/wiki/%E5%A4%A7%E6%B4%A5%E7%AE%97%E6%B3%95 [15] [Online]http://blog.csdn.net/abcjennifer/article/details/6671288 [16] [Online]http://www.airspayce.com/mikem/arduino/AccelStepper/ [17] [Online]https://www.pololu.com/file/download/a4988_DMOS_microstepping_driver_with_translator.pdf?file_id=0J450 [18] [Online]https://cg2010studio.com/2011/06/06/opencv-%E8%BD%89%E6%8F%9B%E5%BD%B1%E5%83%8F%E7%82%BA%E7%81%B0%E9%9A%8E-transform-image-to-gray-level/ [19] [Online]http://docs.opencv.org/2.4/doc/tutorials/imgproc/erosion_dilatation/erosion_dilatation.html [20] [Online] http://monkeycoding.com/?p=577 [21] [Online] http://blog.csdn.net/poem_qianmo/article/details/23710721 [22] [Online]http://rgyyhawu.pixnet.net/blog/post/19314895-%E7%B4%B0%E7%B7%9A%E5%8C%96%E6%BC%94%E7%AE%97%E6%B3%95--perl [23] [Online]http://docs.opencv.org/2.4/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html [24] [Online]http://docs.opencv.org/2.4/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=pointpolygontest [25] 陳威宇,Implementation of Picture-Based RobotManipulator Drafting System,淡江大學電機工程學系碩士論文(指導教授:許駿飛),2016年。 [26] 劉几銘,基於SOPC研製井智機器人,淡江大學電機工程學系碩士論文(指導教授:許駿飛),2015年。 [27] 望熙榮和望熙貴,影像辨識處理,博碩文化股份有限公司,2015年。 [28] 毛星雲和冷雪飛,OpenCV程式設計參考手冊,松崗資產管理股份有限公司,2015年。 [29] 侯捷,C++ Primmer, 4/e中文版,基峰出版社股份有限公司,2008年。 |
論文全文使用權限 |
如有問題,歡迎洽詢!
圖書館數位資訊組 (02)2621-5656 轉 2487 或 來信