TWI316652B - - Google Patents

Download PDF

Info

Publication number
TWI316652B
TWI316652B TW94124029A TW94124029A TWI316652B TW I316652 B TWI316652 B TW I316652B TW 94124029 A TW94124029 A TW 94124029A TW 94124029 A TW94124029 A TW 94124029A TW I316652 B TWI316652 B TW I316652B
Authority
TW
Taiwan
Prior art keywords
image
boundary
value
punching machine
coordinate
Prior art date
Application number
TW94124029A
Other languages
Chinese (zh)
Other versions
TW200702960A (en
Inventor
Tung Kuan Liu
K F Lee
T J Su
Original Assignee
Univ Nat Kaohsiung 1St Univ Sc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Univ Nat Kaohsiung 1St Univ Sc filed Critical Univ Nat Kaohsiung 1St Univ Sc
Priority to TW094124029A priority Critical patent/TW200702960A/en
Publication of TW200702960A publication Critical patent/TW200702960A/en
Application granted granted Critical
Publication of TWI316652B publication Critical patent/TWI316652B/zh

Links

Description

13166521316652

【發明所屬之技術領域】 本案創作係為一種應用於NC沖孔機之視覺導引系統, 利用一 X γ作業平台,其上裝置一單組CCD ( Charge_ Coupled Device電荷耦合元件),藉由此套機器視覺工作 平台系統之軟硬體整合,並配合最佳沖孔路徑規劃,進 軟性電路板的鑽孔作業,由於軟性電路板材質具有伸縮 性,因此藉由視覺輔助導引修正,以提昇精度和速度之要 求,其作業流程先由張力控制系統做機械粗略定位至影像 丨之範圍定點内,再藉著CCD擷取影像作視覺迴授至ρ^ 控制器進行定位微調補償後鑽孔,再利用ccd做基 -準孔位之檢測,之後利用GA做其餘孔位之最佳路徑鑽孔, 以完成高精度定位鑽孔要求。 【先前技術】 目前軟性印刷電路板生產製程中,基板材料收縮一般 難以控制的,對軟性電路板之單品成形尺寸公差來講相對 降低;尤其以高科技產業LCD之相關產品結合方式,帶來 相當大之影響,而設備製造業者受限於模具成型技術之限 制’造成軟性電路板之定位加工精確不高(如蝕刻成型孔 丨·、模具成型孔)之影響’往往無法提昇產品品質。故為了 提高市場競爭力,降低廠商成本費用的支出,著手開發一 套具視覺輔助定位的設備’並將此技術應用在其他軟板生 產相關βχ備上’使軟板產業能快速昇級,也讓使用廠商可 以用較低廉價格取代同等級之國外產品,並進一步擴大機 、台製造商機電領域之運用層面’以使技術本土化,提升國[Technical Field of the Invention] The present invention is a visual guidance system applied to an NC punching machine, which uses an X γ working platform on which a single CCD (Charge Coupled Device) is mounted. The soft and physical integration of the machine vision work platform system, combined with the optimal punching path planning, into the drilling of the flexible circuit board, because the flexible circuit board material is flexible, it is improved by visual aiding guidance correction. The accuracy and speed requirements, the workflow is firstly mechanically positioned by the tension control system to the fixed point of the image range, and then the image is captured by the CCD for visual feedback to the ρ^ controller for positioning and fine adjustment compensation. Then use ccd as the base-quasi-hole position detection, and then use GA to do the best path drilling of the remaining hole positions to complete the high-precision positioning drilling requirements. [Prior Art] At present, in the flexible printed circuit board manufacturing process, the shrinkage of the substrate material is generally difficult to control, and the dimensional tolerance of the single product of the flexible circuit board is relatively reduced; especially in the high-tech industry LCD related product combination method brings Considerable impact, and equipment manufacturers are limited by the limitations of mold forming technology, which results in the inaccuracy of positioning of flexible circuit boards (such as the effect of etching holes, mold forming holes), which often fails to improve product quality. Therefore, in order to improve market competitiveness, reduce the cost of manufacturers' costs, and start to develop a set of visual aided positioning equipment and apply this technology to other soft board production-related equipment, the soft board industry can be upgraded quickly. Manufacturers can replace foreign products of the same grade with lower prices, and further expand the application level of machine and Taiwan manufacturers in the field of electromechanicals to localize technology and upgrade the country.

I *·—^- 齡柳4 q i;|轉換頁 1316652I *·—^- age willow 4 q i;|conversion page 1316652

M, m?A(\9Q 五、發明說明(2) 内軟板製造商之競爭優勢。 槎介面對業界品質要求日漸嚴格之趨勢,少量且多 樣化的市場雹炎,丨、里且夕 揚播If求 及因應我國加入世界關貿組織後之市 改谁爭”素’提昇軟板設備製造業往自動化方向: 文1,已是刻不容緩的事情。以往傳統定位控制設備 的方式做定位教導後,記錄各移動位置的脈波 t應用。此-定位方式經實際驗證發現,纟易在: 後產生金屬疲勞、機構的磨損’導致機械誤差量增大 使機台校正作業變成是經常性工作,如此不‘工 作效率降低及成本增加,且會延誤顧客交期,尤 產生變動性差異,無形中對商機產生非常大 響。、β 【發明内容】 ψ 為了降低設備建置成本及掌握相關技術,研發一 視覺辅助定位的設備,並將技術應用在相關設備上,、 業能快速昇級,並可以較低廉價格與服務取代國外 ;故本研究計劃以台灣優良的製造能力與人才優勢 一臺軟性電路板自動化視覺導引沖孔系統之設備,: 設備之創作主要目的在於: 此糸統 1. 設計出優良的影像處理定位控制程式。 2. 使用無張力感測元件之控制系統,以節省成本。 3. 利用數值模擬軟趙與GA的結合,去模擬張力控 響應,不但可以節省人工校正調整參數的時間,且=: 知響應效果,避免直接撰寫程式的錯誤,且在實測階段可M, m?A (\9Q V. Invention description (2) The competitive advantage of the inner soft board manufacturer. In the face of the trend of stricter quality requirements in the industry, a small and diversified market is rampant, 丨, 里且夕扬If I ask for the city's reforms in response to China's accession to the World Trade Organization, the promotion of the soft board equipment manufacturing industry to the automation direction: Text 1, has been an urgent task. In the past, the traditional positioning control equipment to do positioning teaching Record the pulse wave application of each moving position. This - the positioning method has been verified by actual verification, and it is easy to: after the metal fatigue, the wear of the mechanism' causes the mechanical error to increase, so that the machine calibration work becomes a regular work, so It does not reduce the efficiency of work and increase the cost, and it will delay the customer's delivery period, especially the variability difference, which will cause a very loud noise to the business opportunity. β [Invention content] ψ In order to reduce equipment construction costs and master relevant technologies, research and development A visual aided positioning device, and the technology is applied to related equipment, the industry can be quickly upgraded, and can replace foreign countries with lower prices and services; The research plan is to use Taiwan's excellent manufacturing capabilities and talents to optimize the equipment of a flexible circuit board to automatically guide the punching system. The main purpose of the equipment creation is: 1. Designing an excellent image processing positioning control program. Use a tension-free sensing element control system to save costs. 3. Use the combination of numerical simulation soft Zhao and GA to simulate the tension control response, which not only saves the time for manually correcting the adjustment parameters, but also = know the response effect, Avoid direct scripting errors and can be used during the measurement phase.

第6頁 1316652 案號 94124029Page 6 1316652 Case No. 94124029

JE_R 曰 修- 五、發明說明(3) 隨時修改數據,求得系統參數。 經由落實以上技術自主性及本土化生根並拓 術之關聯性,提昇國内工業技術水準,滿足電子 生產及工具機業之高精度、高速化之技術需求, 佳之外銷實績。 目前本創作是利用一 ΧΥ作業平台,其上裝 CCD(Charge-Coupled Device,電荷搞合元件), 機器視覺工作平台系統之軟硬體整合,並配合最 徑規劃,進行軟性電路板的鑽孔作業。由於軟性 >質具有伸縮特性’因此藉由視覺辅助導引修正, -度和速度之要求。其作業流程先由張力控制系統 略定位至影像之範圍定點内,再藉著Ccd擷取影 迴授至PC-Based控制器進行定位微調補償後鑽孔 CCD做基準孔位之檢測,之後利用以做其餘孔位 徑鑽孔,以完成高精度定位鑽孔要求。藉由視 閉迴路系統控制,可省去原先因機械誤差而 常性定位校正工作。 貝 【實施方式】 丨f系統設備主要應用於軟性印刷電路板之定 為能達到高精度、高速度、高0 相· . Γ λ 尚質的精密控制, 對.(一)機械視覺輔助修正、(-) 二 參數調整及最短路徑夂)二以 要系統做一整合性的創作;其中. 展關鍵技 業自動化 以創造更 置一單組 藉由此套 佳沖孔路 電路板材 以提昇精 做機械粗 像作視覺 ’再利用 之最佳路 迴授而作 進行的經 位沖孔, 本創作針 統及(三) 三大主 1316652 ^ _ 案號 94124029 五、發明說明(4) (一)機械視覺輔助修正 年 月JE_R 曰 Repair - V. Invention Description (3) Modify the data at any time to obtain system parameters. Through the implementation of the above-mentioned technology autonomy and the relevance of localization and root-to-root technology, we will upgrade the domestic industrial technology level, meet the high-precision and high-speed technical needs of the electronic production and tooling industry, and achieve good sales performance. At present, this creation is to use a smashing operation platform, which is equipped with CCD (Charge-Coupled Device), software and hardware integration of machine vision work platform system, and drilling with flexible circuit board with the most diameter planning. operation. Since the soft > quality has a telescopic property, it is required to correct the correction, the degree and the speed by visual aid. The operation flow is firstly positioned by the tension control system to the fixed point of the image range, and then the Ccd is taken back to the PC-Based controller for positioning fine adjustment compensation, and the drilling CCD is used as the reference hole position detection, and then used Do the remaining hole diameter drilling to complete the high precision positioning drilling requirements. By means of the closed loop system control, the usual positioning correction work due to mechanical errors can be eliminated. 【 [Embodiment] 丨f system equipment is mainly used in soft printed circuit boards to achieve high precision, high speed, high 0 phase · Γ λ quality control, (1) mechanical vision assisted correction, (-) Two-parameter adjustment and shortest path 夂) Secondly, the system should be an integrated creation; among them, the key technology industry automation is to create a more single set to improve the precision of the circuit board. Mechanical rough image for visual 'reuse of the best way to carry out the punching, the creation of the needle and (3) three main 1316652 ^ _ case number 94124029 five, invention description (4) (a) Mechanical vision assisted correction

B 修正 月Φ.靡:㈣頁 為能縮短程式開發的時間’本創作採用一般市面上的 影像擷取卡’配合附屬之影像處理函式,再利用 c + +程式 語言撰寫應用程式’經由機械定位至鑽孔定位點附近,再 透過CCD^取影像’萃取樣板(Temp 1 ate)之特徵值,利用 圖形比對(Pattern Matching)影像處理技術,和擷取之影 .像進行比對,得到參考座標’再經過座標轉換,經由伺服 系統進行誤差修正,待定位完成之後隨即沖孔作業。(請 參閱第1圏所示為系統軟體處理流程圖、第2圖所示為視覺 癱統架構方塊圖及第3圖視覺系統流程圖)。 :上述之視覺伺服視覺伺服是指經由攝影機提供視覺回 授資訊進而進行閉迴路之控制以構成一視覺伺服系統,必 Μ整合多種領域之研究成果,包括影像處理、機構學運 動學(kine-matic)、動力學(dynamic)及控制理論。而就 視覺飼服系統之攝影機擺設方式而論可分為:(1)攝影機 固定在移動平台上(6乂6-111_11311(1)及(2)攝影機固定在工 平台上。 定位座標的取得方式有三種:(1).直接將位置座標輸 _,此方法適合少量多樣化不同孔徑的鑽孔。但如果數量 多時,谷易因人工輸入產生錯誤,且將導致後續錯誤檢 查乾時費力。(2).讀取電路設計軟體(如Pr〇teh pCAD ' OrcadPCB等)的鑽孔檔或者底片檔,解析其檔案儲存格 式’然後將其座標和鑽頭大小等資訊轉換成可以直接處理 的格式及(3).是教導輸入’也是一般業界最常使用的方法B Revision month Φ.靡: (4) The page is to shorten the development time of the program. 'This creation uses the general image capture card on the market' to match the attached image processing function, and then use the C++ programming language to write the application' via the machine. Positioning to the vicinity of the drilling positioning point, and then taking the eigenvalue of the image 'Temp 1 ate' through the CCD ^, using the Pattern Matching image processing technology, and comparing the image with the captured image, The reference coordinate 'beyond the coordinate conversion, the error correction is performed via the servo system, and the punching operation is performed immediately after the positioning is completed. (Refer to Figure 1 for the system software flow chart, Figure 2 for the visual architecture block diagram, and Figure 3 for the visual system flow chart). The above-mentioned visual servo visual servo refers to the provision of visual feedback information through the camera and the control of closed loop to form a visual servo system. It is necessary to integrate research results in various fields, including image processing and kinematics (kine-matic). ), dynamics and control theory. As far as the camera placement method of the visual feeding system is concerned, it can be divided into: (1) the camera is fixed on the mobile platform (6乂6-111_11311(1) and (2) the camera is fixed on the working platform. How to obtain the positioning coordinate There are three types: (1). Directly transfer the position coordinate _, this method is suitable for a small number of different diameter hole drilling. However, if the quantity is large, Gu Yi generates errors due to manual input, and will cause subsequent error checking to be laborious. (2). Read the drilling file or film file of the circuit design software (such as Pr〇teh pCAD 'OrcadPCB, etc.), analyze its file storage format' and then convert its coordinates and bit size into a format that can be directly processed. (3). It is the teaching input 'which is also the most commonly used method in the industry.

生一月 曰 1316652 --^S_94124029 五、發明說明(5) ’匕是利用外力移動運動轴記錄此時光學尺迴授座標或利 用飼服作定位座標的獲得,或者自動移·動CCD的鏡頭位置 ’經由自動找尋CCD可視範圍内的鑽孔位置的座標並記錄 ,詳述如下: 1 ·手動輸入法一主要為手動輸入定位座標資訊,供基因演 '算法做最隹最短路徑規劃。 另外並增加儲存座標陣列到電腦檔案,可以利用電腦 進行編修輸出。程序步称如下: jl )、先建立X、γ各3 〇 〇點陣列,並將初始化為零。 W2 )、設定X、γ座標輸入值限制,並警示超出範圍則顯示 錯誤’並將此點座標歸零。 (3) 、圮錄輸入座標後,替換相對應的陣列值輸出至預 覽座標圖,並將輸入點數遞增1。 (4) 、利用While-i00p重覆替換,直到全部座標點數輸入 完成。 (5) 、將X、Y陣列依輸入點數瘦身,並儲存至檔案中。 2.讀取電路設计軟體的鐵孔檔___依據上游廢商所提供之孔 位座標檔,但軟性電路板於製程當中會遭受應力等^響, g =軟板產生形變,與原先所設計之孔位座標也就會有所 3.自動教導設計--本座標的教導設計,是利用和影像辨識 核心的相同技術。首先進行χγ軸歸零作業,輸入搜尋面積 ’利用影像對機械比例進位法轉換成迴圈執行次數。在記 錄類別個數後,建立類別名稱陣列和建立選項。輸入啟=生一月曰1316652 --^S_94124029 V. Description of the invention (5) '匕 is the use of external force to move the axis of motion to record the optical tape feedback coordinates or use the feeding service as the positioning coordinates, or automatically move the CCD lens The position 'automatically finds the coordinates of the drilling position in the visible range of the CCD and records it as follows: 1 · Manual input method 1 is mainly to manually input the positioning coordinate information for the gene to perform the algorithm to make the shortest path planning. In addition, the storage coordinate array is added to the computer file, and the computer can be used to edit the output. The program steps are as follows: jl), first create X, γ each 3 〇 阵列 point array, and will be initialized to zero. W2), set the X, γ coordinate input value limit, and alert the out of range to display the error 'and zero the point coordinate. (3) After recording the input coordinates, replace the corresponding array value and output it to the preview coordinate graph and increment the input point by 1. (4) Repeat with the While-i00p until all coordinate points are entered. (5), slim down the X and Y arrays according to the number of points entered and store them in the file. 2. Read the iron hole file of the circuit design software ___ according to the hole coordinate file provided by the upstream waste merchant, but the soft circuit board will suffer stress and vibration during the process, g = the soft plate is deformed, and the original The designed hole coordinates will also be 3. Automatically teach design - the coordinate design of this coordinate is the same technology that uses the core of image recognition. First, the χ γ axis zeroing operation is performed, and the input search area is converted into the number of loop executions by the image-to-machine proportional carry method. After recording the number of categories, create an array of category names and build options. Input start =

131^2案號9 五、發明說明(6) 位置之絕對座標,並事先儲存 絕對原點之座標轉換^將目前 動時採絕對座標。機械移動至 後列的順序進行孔位搜尋,若 板資料做判斷,去選擇分類孔 名稱’得到已記錄點數和資料 類輸出至檔案中,以利後續路 移動次數的計算為搜尋區 的xinm’其中視覺移動距離為 • ’再無條件進位,確保剩下 尋。而Y轴移動次數亦同理可 ’大多仰賴人工目測、手動定 擇分類,如能研擬具光學文字 經由XY自動移位,辨識其孔位 將疋未來可以繼續研發的方向 自動教導搜尋範圍示意圖 影像的前置處理作業流程 圍很廣’從光源開始到CCW暴 if ' cpu處理器、人機操作介 體的系統運作等等,中間牵涉 都有’每一個環節都至關重要 曰 月 目前位置作為 位置重置為零 啟始位置,自 搜尋到可能的 位。並記下孔 。最後將已記 徑規劃排序用 域的 Xminl^以 經過影像對機 的搜尋區域亦 證。現階段教 位或半自動定 識別 OCR的影 符號,各別分 。(如圖式中 中,數位影像 影機、影像擷 面、運動卡、 到從硬體、軟 ,但如以時間 曰後轉換成對 ,因為機械移 動運動以先行 孔位,則以樣 位記錄點數和 錄的XY座標分 Ό 視覺移動距離 械比例轉換而 能進行教導搜 導程式之輸入 位再經人工選 像處理功能, 類歸檔記錄, 第11圖所示為 處理包括的範 取卡、連接介 機械動作做整 體到理論基礎 消耗來說,影 像的前處理好壞影響最大,但最新的趨勢則朝利用物理特 性解決’避免前處理程序太多所花費的時間。實現一項影 像處理任務所需的基本步驟有很多,處理中的第一步是影131^2 Case No. 9 V. Invention Description (6) Absolute coordinates of the position, and save in advance. The coordinate conversion of the absolute origin will be the absolute coordinate at the moment. The machine moves to the back row to search for the hole position. If the board data is judged, select the classification hole name to get the recorded points and data class output to the file, so as to calculate the number of subsequent movements as the xinm of the search area. The visual movement distance is • 'and unconditional carry, ensuring the rest. The number of Y-axis movements is similar. Most of them rely on manual visual inspection and manual sorting. If you can develop optical texts via XY automatic shift, identify the hole position and automatically teach the search range in the future. The pre-processing workflow of the image is very wide. From the beginning of the light source to the CCW storm, the 'cpu processor, the system operation of the human-machine operating mediator, etc., all involve the fact that each link is crucial. As the position is reset to the zero start position, the search for possible bits. And write down the hole. Finally, the Xminl^ of the domain that has been sorted by the path plan is also verified by the search area of the image pair. The current stage teaches or semi-automatically identifies the OCR symbol, each of which is divided. (In the figure, the digital video camera, the video camera, the motion card, the slave hardware, the soft, but if the time is converted into a pair, because the mechanical movement moves to the first hole position, the sample is recorded. The number of points and the recorded XY coordinates are divided into visual shifting and mechanical ratio conversion, and the input position of the teaching and searching program can be performed by the manual selection processing function, and the class is recorded, and the 11th figure shows the processing of the included card. In terms of the overall mechanical to theoretical consumption, the pre-processing of the image has the greatest impact, but the latest trend is to solve the problem of avoiding too many pre-processing programs by using physical characteristics. Implementing an image processing task There are many basic steps required, and the first step in processing is shadowing.

第10頁 1316652 索號 94124029 五、發明說明(7) 像獲取(image acquis 像。要完成這一步,需 所產生的訊號數位化, 機,每1/30秒它產生一 可能是線掃描攝影機, 情況下,物體的運動透 影像,如CCD。如果攝 數位形式的訊號,則需 數位化。感應器的類型 >應用方式確定的。Page 10 1316652 Ref. 94124029 V. Invention Description (7) Image acquisition (image acquis image. To complete this step, the signal generated needs to be digitized, every 1/30th of a second it generates a line scan camera, In this case, the motion of the object is transmitted through the image, such as CCD. If the signal in the form of a digital image is taken, it needs to be digitized. The type of the sensor is determined by the application method.

ition),即獲取一幅類比或數位影 像感能對由感應器 =可以是單色或彩色電視攝影 ΐ幅問題域的影像。成像感應器也 匕一次能產生一條影像線。在這種 過該線掃描攝影機就產生一幅二維 影機或其它成像感應器的輸出不是 要用一個類比-數位轉換器A/D對它 以及由感應器所得的影像形式是由 得到一幅影像後,第二步是對該影像作前級處理。前 級處理的主要目的是改善不良之影像,以便增加後續處理 的成功機會。一般前級處理包括增強對比度、濾除雜訊以 及分離出其紋理與字元資訊相像的區域等等。(如圖式中 第12圖所示為影像處理之基本步驟)。 第三步是對進行分段,按廣義定義,分割(segmenta_ tion)是自一幅輸人影像中分離出它的目標物與背景物。 通常’在數位影像處理中,自動分割是最困難的任務之一 •如 果原始影像不清晰的情況下)。一方面,一種強健的分 割方法也要花費很長的處理過程,如此達不到完滿解決。 而另一方面’簡單的或有誤差的分割演算法也總是導致最 後的失敗。分割這一步的輸出通常是原始的像素數據’它 構成一個區域的邊界或在該區域内的所有點^在這兩種情 況下,將這些數據轉換為適合於計算機處理的形式是必要Align), that is, to obtain an analogy or digital image of the image that can be detected by the sensor = can be a monochrome or color television image. The imaging sensor also produces an image line at a time. In this type of scanning camera, the output of a two-dimensional camera or other imaging sensor is not obtained by an analog-to-digital converter A/D and the image obtained by the sensor. After the image, the second step is to pre-process the image. The primary purpose of the pre-processing is to improve the image of the defect in order to increase the chances of success in subsequent processing. Typical pre-processing includes enhancing contrast, filtering out noise, and separating areas whose texture is similar to character information. (Figure 12 in the figure shows the basic steps of image processing). The third step is to segment the segmentation. According to the broad definition, segmentation is the separation of its target and background from an input image. Usually, in digital image processing, automatic segmentation is one of the most difficult tasks. • If the original image is not clear. On the one hand, a robust separation method also takes a long process, so that it does not reach a perfect solution. On the other hand, a simple or error-based segmentation algorithm always leads to the final failure. The output of the split step is usually the original pixel data 'which constitutes the boundary of a region or all points within the region. ^ In both cases, it is necessary to convert the data into a form suitable for computer processing.

第11真11th true

1316652 -----案號 94124029 五、發明說明(8) 的。首先要決定的是這些數據靡 區域。當我們關心的是外部形狀示為邊界還是完整的 ,邊界表示是合適的。若關心的β 例如拐角和彎曲時 内部特性時,區域表示是合適,紋理或骨架形狀的 示是同時存在的。在本創作中 ^些應用中,兩種表 標諸,需要以邊界形狀為基礎的算:域為四方形之姓刻 座標β而本設備創作中,因得之用以計算其中心 已經有效抑制一些雜訊的產、::合理光源的選用 丨可見,所以在影像分割方面:不:::與目標物之間清晰 的計ίΠ法的選擇僅僅是將原始數據轉換為適合於後續 來描述這歧數棱,以俤隹山還要確疋一種方法 Dtin .:數據以便突出感興趣的特徵。描述(deScri- 一此威mi稱特徵選擇(featUre Selecti〇n),它提取出 興趣的定量資訊的特徵或為了將一類物體和其它物 品刀開所需要的特徵。最後一步包括識別和解釋。識 :〔e^〇gniti〇n)是對一個物體根據由其描述所提供的資 訊才曰疋個標記的過程。解釋(interpretation)是給出被 識別物體的含義。例如要識別出一個字元C,就要求將這 ’個字70的描述子與標記C連繫起來。解釋的目的是對一組 已標記的字元給出其含義。例如,一個5位的數字串或5位 數字串後跟看一短劃線再跟看4位以上的數字可以被解釋 為一個郵政編碼。 如圖式中第12圖所示之知識庫(knowledge base)和 處理模塊之間的交互作用。問題影像的知識是以知識庫的 形式被編進影像處理系統中。例如指出一幅影像中感興趣1316652 ----- Case No. 94124029 V. Description of invention (8). The first thing to decide is the data area. When we care about whether the outer shape is shown as a boundary or a complete one, the boundary representation is appropriate. If the β of interest is such as a corner and an internal characteristic when bending, the area representation is appropriate, and the texture or skeleton shape is present at the same time. In this application, in the application, the two types of labels need to be based on the shape of the boundary: the domain is the square of the last name of the coordinate β and the device is created, because it is used to calculate the center has been effectively suppressed Some noise products::: The choice of reasonable light source is visible, so in the aspect of image segmentation: no::: The clear choice between the target and the target is simply to convert the original data into a suitable one to describe this. The difference between the ridges and the ridges is to determine a method of Dtin.: data in order to highlight the features of interest. Description (deScri - This is called feature selection (featUre Selecti〇n), which extracts the characteristics of the quantitative information of interest or the features required to open a class of objects and other objects. The final step includes identification and interpretation. [e^〇gniti〇n) is the process of marking an object based on the information provided by its description. Interpretation is the meaning given to the object being identified. For example, to identify a character C, it is required to associate the descriptor of the word 70 with the marker C. The purpose of the explanation is to give a meaning to a set of marked characters. For example, a 5-digit numeric string or a 5-digit numeric string followed by a dash and then a number of 4 or more digits can be interpreted as a zip code. The interaction between the knowledge base and the processing module shown in Figure 12 in the figure. The knowledge of problem images is compiled into the image processing system in the form of a knowledge base. For example pointing out an image of interest

HH ____ — 第12頁 這樣就 能是相 毛病的 解析度 作,知 庫之間 單頭箭 以應該 機器得 知識, 含義。 各模組 位數的 懷疑兩 割的步 用知識 1316652 五、發明說明 的資訊所在的 索範園。知% 題中所有可能 中包含,個區 指導各處理模 用。處理模組 各處理模址之 組之間的通訊 基礎*·例如, •,必須給系 的其它成分的 作’也透過知 串位置正確但 可能會導致解 庫將回授要求 現影像處理任 94124029 區域, 庫也可 的主要 域的高 組的工 和知識 間是用 通常是 為了使 統賦予 位置的 識庫在 只有四 釋模組 迭給分 務中利 限制了為尋找 當複雜的,例 相互關係表或 衛星影像的影 識庫還控制模 的關係用雙頭 頭連接的。這 是什麼結果這 出一個字串是 使它能識別字 該知識不僅指 之間實現回授 數字(其中的-個數字連在一 驟讓它再做一 的一個例子。 該資訊所需的搜 如在材料檢驗問 在變化檢測應用 像資料庫。除了 組問的相互作 箭頭表示,而在 個圖說明處理模 樣的先驗知識為 郵遞區號的結 串相對於地址攔 導各模組的工 功能。例如,— "位未能被識別) 起了。透過知識 次處理就是在實 不是所有的影像處理應用都要求包括 交互作用。很多實際的應用是由外面的一 .能完成的。事實上,在某些情況下,也 I都需要。例如,對於人的視覺解釋所需 只需要前級處理能這一模組。一般來說, 的處理功能是與影像分析應用有關的。 影像邊界之搜尋: 在上圖的複雜的 圈,路所提供的 不是所有這些棋 的影像増強往往 L括識別和解釋HH ____ — page 12 This can be the resolution of the problem, knowing the meaning of the machine. The number of doubts in each module is two steps. 1316652 5. The information of the invention is located in Sofan Park. All of the possibilities in the % question are covered, and each area guides each processing model. The communication basis between the processing module groups of the processing module *· For example, • must be given to the other components of the system 'also through the correct position of the string but may cause the solution library to be returned to request the current image processing as 94192029 Areas, libraries, and high-level groups of work and knowledge of the main domain are usually used to make the location of the library of knowledge in the only four-module distribution of the sub-services to limit the search for complex, The relational table or satellite imagery library also controls the relationship of the modules connected by a double head. What is the result of this out of a string is that it can recognize the word. This knowledge not only refers to the implementation of the feedback number (the number of which is connected to a number of times to let it do another one. The search for this information) For example, in the material inspection, the change detection application is like a database. In addition to the interrogation of the group, the prior knowledge of the processing pattern is the postal code of the postal code number relative to the address to block the function of each module. For example, the -" bit was not recognized.) Through knowledge processing, it is true that not all image processing applications require interaction. A lot of practical applications are done by the outside one. In fact, in some cases, I also need it. For example, a visual interpretation of a person requires only a pre-processing module. In general, the processing functions are related to image analysis applications. Search for image boundaries: In the complex circle of the above picture, the images provided by the road are not all of these pieces of chess are often reluctant to identify and interpret

第13頁 1316652 案號 94124029 曰 修· 五、發明說明(10) 在參考圖形的邊界處,灰 ep),如第13圖所示理想狀態 ’在理想的狀態下,成像之後 分佈,也應呈現一個步階分佈 所在的位置,也就是說,邊界 到。 然而,一般的影像擷取系 此’當圖形經過CCD攝影機、 像等處理以後,所得到的影像 >常都無法達到理想的步階分佈 的情況,如第14圖所示實際情 圖。 換言之,所得到的影像, 情形’因此,會有好幾個像素 點而失去正確性,若要判別真 也就比較困難。 以下為一個灰階梯度值的 階值的分佈為一個步階(st-影像邊界灰階值分佈示意圖 的影像’其邊界處的灰階值 ,而可以清楚地分辨出邊界 剛好被單一個像素點所擷取 統,都是數位化的系統,因 影像擷取卡取樣、量化、成 ,其邊界處灰階值分佈,通 ,而呈現斜坡狀分饰(ramp) 況影像邊界灰階值分佈示意 其邊界處大都會發生模糊的 點,都有可能被認定為邊界 實邊界所在的位置,相對地 概念,就灰階梯度說明如下 丨1.將影像座標上某像素點的灰階值記為g(x,y),亦即座 標值為(x,y)的像素點,其灰階值為g(xy)。 2.針對座標值為(x,y)的像素而言,其在X方向的灰階梯 度值為:Page 13 1316652 Case No. 94124029 曰修· V. Invention Description (10) At the boundary of the reference graph, gray ep), as shown in Fig. 13, ideal state 'in the ideal state, distributed after imaging, should also be presented The position where a step distribution is located, that is, the boundary to. However, the general image capture is such that when the image is processed by a CCD camera, an image, etc., the resulting image > often fails to achieve an ideal step distribution, as shown in Fig. 14. In other words, the resulting image, the situation 'causes, there will be several pixels and lose the correctness, and it is more difficult to judge the truth. The following is the distribution of the order value of a gray gradient value as a gray scale value at the boundary of a step (the image of the gray-scale value distribution diagram of the image boundary), and it can be clearly distinguished that the boundary is just a single pixel point. The system is a digital system. Because the image capture card is sampled, quantized, and formed, the gray-scale value distribution at the boundary is passed, and the slope-like gray-scale value distribution of the image boundary is indicated. Points that are ambiguous at the boundary are likely to be identified as the location of the boundary of the boundary. Relatively speaking, the gray gradient is described as follows: 1. Record the grayscale value of a pixel on the image coordinate as g ( x, y), that is, a pixel whose coordinate value is (x, y), whose grayscale value is g(xy). 2. For a pixel whose coordinate value is (x, y), it is in the X direction. The gray gradient value is:

Gx C^c, = 1 / ligdx + 1, χ yy> 而在Υ方向的灰階梯度值為: >») = !/ 2C^C^, y + vy — g(jK, y —1))Gx C^c, = 1 / ligdx + 1, χ yy> and the gray gradient value in the Υ direction is: >») = !/ 2C^C^, y + vy — g(jK, y —1) )

第14頁 1316652Page 14 1316652

五、發明說明(11) 就影像而言,其在真實邊界處的灰階值的 大’ T此可利用灰階梯度值的概念,來列定其 法則是利用一XY平台,以微步或自動進給的方 的邊界處附近搜尋,找到灰階梯度值的絕對值 地方’即可求得真實邊界所在的位置。 影像邊界之中心座標設計流程: 本設備之影像處理,最主要的目的是找出 .座標’然後再根據實際影像與CCD中心影像座 ’計算其差異值並利用伺服馬達來做位置之修正 所不為影像邊界之中心設計流程。其詳細流程 1. 命令影像擷取卡擷取影像。 2. 使用 minimum error threshold 的方法,將 像二值化,二值化之後得到的影像,每一個像 皆只有〇與255,亦即只有全白與全黑兩種,如 界特性更加明顯。 3. 對二值化後的影像,來搜尋邊界的座標值, 下: _( 1 )由影像座標的原點開始搜尋,若為水平校 而右,逐欄(column)上往下搜尋每一個像素點 若為垂直校正’則由上而下,逐列(r〇w)由左 一個像素點的灰階值。 (2)搜尋時,在每一攔(列)中,若連續搜尋到1^ 灰階值皆為0時’則表示這些連續N個像素點中 變化量為最 邊界處,方 式,在可能 最大發生的 影像之中心 標之差異, ,如第15圖 敘述如下: 所擷取的影 素的灰階值 此可以使邊 搜尋步驟如 正,則由左 的灰階值, 向右搜尋每 個像素點的 ,第一個被V. INSTRUCTIONS (11) In the case of images, the large value of the grayscale value at the true boundary can be determined by the concept of gray gradient value, using the XY platform to microstep or Searching near the boundary of the automatically fed party and finding the absolute value of the gray gradient value can be used to find the position of the real boundary. The coordinate design process of the center of the image boundary: The main purpose of image processing of this device is to find out the coordinates 'and then calculate the difference value based on the actual image and the CCD center image block' and use the servo motor to correct the position. Design the process for the center of the image boundary. Detailed Process 1. Command the image capture card to capture the image. 2. Using the minimum error threshold method, the image obtained after binarization and binarization, each image has only 〇 and 255, that is, only white and all black, and the boundary characteristics are more obvious. 3. For the binarized image, search for the coordinate value of the boundary. Next: _( 1 ) Search from the origin of the image coordinates. If it is horizontal and right, search for each column down. If the pixel is vertically corrected, then the top-down, column-by-column (r〇w) grayscale value from the left pixel. (2) In the search, in each block (column), if the continuous search for 1^ grayscale values are all 0, then the change in these consecutive N pixels is the most boundary, in the largest possible way. The difference between the center marks of the generated images, as shown in Figure 15, is as follows: The grayscale value of the captured pixels can be such that the edge search step is positive, then the left grayscale value is searched for each pixel to the right. Point, the first one

第15頁 94124029 Λη 1316652 ----- 五、發明說明(12) — 搜尋到的像素點,為 下來取禍丨 了能的邊界點之 將其座標值紀錄 過小’可能會將雜訊點誤判為邊 大 則可能舍请溫7 士 和取過 未完成之前,參考圓j正的邊界點意的I在校正 ’所以此時所得到的f的邊界並不一疋與t像座標軸平行 同一列(攔)。 的所有初始邊界點,不一定會全部都在 4杳2整最佳之邊界閥值並劃出目標值的區域’為了對較不 影像也能得到完整之取像範園,我們在程 動的調整最佳之邊界閥值選擇開關,可以用來做最 正以觀視其所取之影像是否符合所需,它可根據來 影像之好壞,利用人的眼睛判別出所取之影像符合所需 如此/、要來源影像不模糊不清必能找出符合精度之影 像。不過上述求取影像邊界之部分有一先決條件,每一個 來源影像的差異點不可太大,進而影響區域辨識的精度。 5.取得邊界四角座標並計算其中心值,一般在未經過二值 化處理之前’如須求得目標物之中心座標,則利用影像分 割之後’影像中的物體已經被獨立出來,這時候我們可以 對物體的幾何特性加以分析算。底下為中心點之計算方 法: (1)未經過二值化處理之前的影像 物體中心點座標(X〇, y〇)可用以表*物體的落點所在位 置’其數學式為其中N為物體點素數目’X為物 體點素的橫座標值加起來,y為物體點素的縱座標值加起 來,利用以上式子可以很容易求出中心點座標(x0, y〇) 月o te修正替換頁Page 15 94142029 Λη 1316652 ----- V. Invention Description (12) — Search for the pixel points, for the downside of the energy boundary point, the coordinate value of the record is too small 'may misidentify the noise point If the edge is large, it may be possible to ask for the temperature of the 7th and before the completion of the unfinished, the reference point of the circle j is positive. I am correcting the boundary of f, so the boundary of f obtained at this time is not the same as the column parallel to the coordinate axis of t ( bar). All of the initial boundary points are not necessarily all in the area where the optimal boundary threshold is drawn and the target value is drawn. In order to get a complete image of the image, we are in the process. Adjust the optimal boundary threshold selection switch, which can be used to see if the image taken is correct or not. It can be used according to the image to determine whether the captured image meets the requirements. In this way, if the source image is not blurred, it is necessary to find an image that meets the accuracy. However, there is a precondition for the above-mentioned part of the image boundary to be obtained, and the difference point of each source image is not too large, thereby affecting the accuracy of the area recognition. 5. Obtain the coordinates of the four corners of the boundary and calculate the center value. Generally, before the binarization process is performed, 'if the center coordinates of the target are to be obtained, then after the image is segmented, the objects in the image have been separated. At this time, we The geometric properties of the object can be analyzed. The calculation method of the center point is as follows: (1) The coordinates of the center point of the image object (X〇, y〇) before the binarization process can be used to show the position of the object's drop point. The mathematical formula is where N is the object. The number of points 'X is the horizontal coordinate value of the object's point, and y is the ordinate value of the object's point. The above equation can easily find the center point coordinate (x0, y〇). Replacement page

㈣2索號__ 五'發明說明(13) (2)經過二值化處理之影像 物體中心點座標(x0,y0)之求得,主要是利用上述 法=取出影像’再由左至右,由上至下掃描每個 ·::,找出與所設定之閥值點數相同者,做為邊界之最大 利Ϊ此點劃出水平和垂直之線條圍成目標區域,最 算出中心點座標(x0,y0)。(如第16圖所示 為尋邊之後的邊界區域圖)。 (二)定張力控制系統 具有張力感測器之迴授控制架構,由於可直接 吉=為容易達成高精密度之張力控制設計。但 ί:::捲繞物的品質,故此種控制架構較不合適高速! 本創作所採用的方法,主要是透過開捲半徑量之估 ’由定張力值計算馬.達隨半徑A小變利 用轉矩迴授控制間接達成定張力控制,其中二: 獲得,基本上,定張力控制是藉由馬達 ^的編碼器’讀取馬達之轉動位移角,經估算後得 •張徑值,再由計算張力設定值,即可得定 張力對應的馬達轉矩參考命令。而轉矩控制 矩估測器’估測捲繞過程中,捲物張力 ,控制之目的,如此就不必直接藉助張=測= 凡成疋張力控制(請參閲第6圖所示為定張力系統控制方塊(4) 2 cable number __ five 'invention description (13) (2) The image center point coordinates (x0, y0) obtained by binarization are mainly obtained by using the above method = taking out the image 'from left to right, Scan each ··: from top to bottom to find the same number of thresholds as the set. As the maximum benefit of the boundary, draw the horizontal and vertical lines to form the target area, and calculate the coordinates of the center point. (x0, y0). (As shown in Figure 16 is the boundary area map after edge finding). (2) Fixed tension control system The feedback control structure with tension sensor can be designed directly for high-precision tension control. But ί::: the quality of the winding, so this control structure is not suitable for high speed! The method used in this creation is mainly through the estimation of the amount of unwinding radius 'calculation of the tension value from the fixed tension value The torque feedback control is used to indirectly achieve the constant tension control. Two of them: Obtain, basically, the constant tension control is to read the rotational displacement angle of the motor by the encoder of the motor ^, and obtain the value of the shaft diameter after estimation. By calculating the tension set value, the motor torque reference command corresponding to the tension can be obtained. The torque control moment estimator 'estimates the winding tension during the winding process, the purpose of the control, so that it is not necessary to directly rely on the tension = measurement = the tension control (see Figure 6 for the tension) System control block

丨齡4泠6 U;::Age 4泠6 U;::

—------ 五、發明說明(14) 圓、第7圖為定張力控制硬體示意圖)。 本案藉由數值模擬軟體進行捲繞 ,並根據一物理關係式,將完整系統析 並利用電腦模擬分析系統之動態響,式建立起來, 成本,採用-種無張力感測元件之閉迴降 統的迴授訊號,以達到閉迴:轉=制並二此作為捲繞系 迴路定張力控制之要f 轉控制’進而間接達成閉 ,節門ίΠ:::調節捲取馬達之轉速,$ -方面同時調 控制,其中捲取邑,金夕速度定力的閉迴路同步 控制其中捲取馬達之轉速與開捲馬達的轉矩 物半徑的變化而改變(請參閱第4圖 ,^ 力控制系統架構圖)。 為本案創作之定張 其中、上述捲取馬達與開捲馬達間之張力的數學 ,以捲取馬達與開捲馬達捲繞間的數學模式純,因有: 帶的連接,捲帶之間的拉力不管對捲取馬達或是開捲馬達 來說,皆可規為一外界的干擾源(捲帶與輪轴間之磨擦力) ,若假設兩轴之間的長度不變,且兩轴之間的捲帶張力值 I成均勻分佈的情況之下,捲帶張力值可為F = Edx,其中Ε為 捲帶之彈性係數,dx為捲帶經拉伸之後的微小變化長度。 結合以上之定速度控制系統與定張力控制系統,可描 繪出整體控制系統架構圓,進而達到捲取馬達能在張力之 限制之下完成定速度的控制,開捲馬達能在速度之限制之 下完成定張力的控制,最後達成定速度與定張力之控制系—------ V. Description of the invention (14) Round, Figure 7 is a schematic diagram of the fixed tension control hardware). The case is wound by numerical simulation software, and according to a physical relationship, the complete system is analyzed and the dynamic response of the computer simulation analysis system is established. The cost is adopted, and the closed-down system of the tension-free sensing component is adopted. The feedback signal to achieve the closed back: turn = system and two as the winding system loop tension control to turn control 'and then indirectly to achieve closed, the door Π :::: adjust the speed of the take-up motor, $ - At the same time, the control is controlled, in which the winding circuit is controlled, and the closing circuit of the Jinxi speed constant force controls the change of the rotational speed of the winding motor and the torque radius of the unwinding motor (refer to Fig. 4, the force control system) Architecture diagram). The mathematics of the tension between the winding motor and the unwinding motor in the creation of the case, the mathematical mode between the winding motor and the unwinding motor is pure, due to: the connection of the belt, between the tapes Whether the winding motor or the unwinding motor can be used as an external interference source (the friction between the tape and the axle), if the length between the two axes is constant, and the two axes are In the case where the tape tension value I is evenly distributed, the tape tension value may be F = Edx, where Ε is the elastic coefficient of the tape, and dx is the minute change length of the tape after stretching. Combined with the above fixed speed control system and constant tension control system, the overall control system architecture circle can be drawn, and then the winding motor can achieve the fixed speed control under the tension limit. The unwinding motor can be under the speed limit. Complete the control of the constant tension, and finally reach the control system of the fixed speed and the constant tension

第18頁 1316652Page 18 1316652

941瓣---~土 月 a 俨τ 五、發明說明(15) - 广第8圓所示為整體之控制系統方塊圓囷式中⑴ 為實測之張力迴授值’(2)為估測之張力迴授值)。 (二)=A對PI參數調整及最短路徑規劃之最佳化程式設計 PI,:J器是-個滯後_超前控制器的特例已成功地 :用則艮多工業控制系統中,包括位置伺服系統。由於位 置伺服系統通常對控制性能有較高的要求,更增加了人工 整的困難。本創作利用近二十年來發展起來的-,仿生物進化機制的隨機優化算&,稱為基因遺傳演算法 (GA),其特點是不需要問題的結構信息,也不會因為碰到 局部最優而失去找到全局最優的可能性,而且算法本身應 ,簡單(該基因遺傳演算法之基本流程圖如圏式中第9圖所 不),使它成為高效的ΡΙ控制器參數調整的算法。(而?1控 制器最佳參數搜尋步驟如第1〇圖所示)。 利用GA對ΡΙ控制器之參數調整,除了可避免ρΙ控制器 之參數初始值的設定問題,也能得到良好之動態響應。 本創作利用數值模擬軟體輔以電腦語言程式的聯結’ 以找出最佳PI控制器之參數優化解(請參閱第5圖所示為 GA對PI參數調整之系統架構圖)。 根據本案創作之設計,其模擬結果與分析如下: 一、影像尋求中心座標之程式設計 依據影像邊界之中心設計流程的每個步驟,經程式模 擬之後可得到以下之成果: 1.在擷取影像方面,首先打光設計部分,必須考慮光源取 得容易、裝設簡單,一般都採用正光源的方式,但實驗結941 瓣---~土月 a 俨τ V. Description of invention (15) - The 8th circle of Guang is shown as the overall control system square circle type (1) is the measured tension feedback value '(2) is estimated The tension feedback value). (b) = A optimizes the PI parameter adjustment and the shortest path planning PI, :J is a special case of the hysteresis_advance controller has been successfully used: in the multi-industrial control system, including position servo system. Since the position servo system usually has high requirements for control performance, it is more difficult to artificially complete. This creation has been developed in the past two decades - the stochastic optimization algorithm of the evolutionary mechanism of biological imitation, called the genetic algorithm (GA), which is characterized by the structural information that does not require problems, and is not caused by local Optimal and lose the possibility of finding the global optimum, and the algorithm itself should be simple (the basic flow chart of the genetic algorithm is not shown in Figure 9), making it an efficient parameter adjustment for the controller. algorithm. (And the optimal parameter search procedure for the ?1 controller is shown in Figure 1). The parameter adjustment of the GA controller for the GA can not only avoid the problem of setting the initial value of the parameter of the Ι controller, but also obtain a good dynamic response. This creation uses a numerical simulation software coupled with a computer language program to 'find the optimal PI controller's parameter optimization solution (see Figure 5 for a system architecture diagram of GA for PI parameter adjustment). According to the design of the case, the simulation results and analysis are as follows: 1. The image seeking center coordinates are designed according to each step of the central design process of the image boundary. After the program simulation, the following results can be obtained: 1. Capture the image In terms of the first part of the lighting design, it must be considered that the light source is easy to obtain and the installation is simple. Generally, the positive light source is used, but the experimental knot

第19頁 1316652Page 19 1316652

五、發明說明(16) 果因待測物為軟性印刷電路板銅落,反光強度太高無法做 有效成像,故本創作更改為背光源設計方式來改善*,'、 此方法在光源應用在待測物體輪廓時機,可提供影 之對比’且容易裝設。光源的顏色也影響實驗結果; 採用紅色LED ,經實驗證明可與軟性印刷電路板產生很= 之對比,以分離出目標物且壽命較長、價格低廉、 〇 2你本創作以經打光之後的清晰影像(如第17圖所示清晰影 f尋標)、歪斜影像(如第18圖所示歪斜影像尋標)與較模 糊影像(如第1 9囷所示較模糊影像尋標)做尋求中心之比較 ,可知在閥值為97時得到較好之中心點座標。 二、PI張力控制系統之模擬結果 本設備為軟式印刷電路板的張力控制系統,其主要目 $是能在無張力感測器的情況下,達成定張力的控制,為 =實際預測控制系統,採用數值模擬軟體預做模擬,並用 調整PI控制器之參數’以達成最佳之模擬效果;最後 再利用電腦語言產生c語言程式碼,與影像控制系統結合 ’做為本設備之系統控制。(如第20P圖所示為張力系統的 丨初始模擬數據)^ PI智慧型GA參數調整效能評估: 為解決傳統的PID控制器參數調整的整定不足,通過 f十響應曲線,求出控制性能的指標,即最大超越量、穩定 $間及上升時間,然後利用GA建立規則對PI控制器進行 數調整更新,以找出最佳解。本文以母代數15〇、子代V. Description of invention (16) Since the object to be tested is a soft printed circuit board with copper falling, the reflective intensity is too high to be effectively imaged, so this creation is changed to a backlight design to improve *, ', this method is applied in the light source. The contour of the object to be measured can provide a contrast of the shadows' and is easy to install. The color of the light source also affects the experimental results; the red LED is used to prove that it can be compared with the soft printed circuit board to separate the target and have a long life and low price. 你2 After your creation is finished Clear images (such as the sharp image f-finding shown in Figure 17), skewed images (such as the skewed image search shown in Figure 18) and the more blurred images (such as the fuzzy image search shown in Figure 19) Looking at the comparison of the centers, we can see that the center point coordinates are better when the threshold is 97. Second, PI tension control system simulation results This equipment is a flexible printed circuit board tension control system, its main purpose is to be able to achieve constant tension control in the case of tension-free sensors, = actual predictive control system, The numerical simulation software pre-simulation is used, and the parameters of the PI controller are adjusted to achieve the best simulation effect; finally, the computer language is used to generate the c language code, and combined with the image control system to be the system control of the device. (As shown in Figure 20P, the initial simulation data of the tension system) ^ PI intelligent GA parameter adjustment efficiency evaluation: In order to solve the traditional PID controller parameter adjustment insufficiency, the f-response curve is used to obtain the control performance. The indicator, that is, the maximum overrun, the stable interval between $ and the rise time, and then use the GA establishment rules to adjust the number of PI controllers to find the best solution. In this paper, the mother algebra is 15〇, the child

第20頁 1316652 . |(f和3月¢4日修正替換頁 -- 索號94ΐ24η洲__年 月 日 .修正 …一~. 五、發明說明(17) 數130及代數1〇為控制模擬依據,並利用多目標的權重法 則’求得最佳解^ (如第21圖所示為定速度調整法響應曲 線圖比較〔圖中MOGA為多目標最佳化遺傳基因演算法〕、 第22圖為定張力調整法響應曲線圖比較、第23圓為控制器 參數調整比較)。 mov,mof :速度與張力之最大超越量。 tsv,tsf :速度與張力之穩態時間。 trv,trf :速度與張力之上升時間。 分析PID參數整定發展的基礎上,指出傳統P1D參數整 定具有物理意義明確、易於掌握的優點以及其參數優化不 夠的缺點’但隨著智能控制理論的發展,模糊控制、基因 演算法及神經元控制曰益受到控制界的重視,以本文來講 透過對PI參數整定的調整,可以得到優於一般傳統P1D參 數整定方法。對現行P1參數自整定的方法做評述,指出 P1參數優化的特點。揭示先進控制理論^整定的方法融合 新型PI控制器產生的途徑。 張力控制系統模擬的效能評估: 令線速度定為1500(mm/s),根據公式可得到捲取馬達 _的初始轉速應為100(rad/s),開捲馬達的初始轉速應為33 .3 (rad/s)。在模擬階段捲取馬達的轉速會隨半徑值增加 而遞減’而開捲馬達的轉速則會隨半徑值遞減而增加。其 轉速變化情形’可經由模擬結果得到驗證。並經由以下之 比較得知使用GA調整法則優於試誤法調整(如圖第24圖所 示速度響應比較結果及第25圖所示張力響應比較結果)^ M0GA張力控制模擬結果(如第26圖所示):Page 20 1316652 . | (f and March 修正 4th revised replacement page - number 94ΐ24η洲__年月日日. Correction...一~. V. Invention description (17) Number 130 and algebra 1〇 for control simulation Based on, and use the multi-objective weighting rule 'to find the best solution ^ (as shown in Figure 21 is the fixed speed adjustment method response curve comparison [MOGA is multi-objective optimization genetic algorithm in the figure], 22nd The graph shows the response curve comparison of the constant tension adjustment method, and the 23rd circle is the controller parameter adjustment comparison. mov,mof: the maximum overshoot of speed and tension. tsv,tsf: the steady state time of speed and tension. trv,trf : The rise time of speed and tension. On the basis of analyzing the development of PID parameters, it is pointed out that the traditional P1D parameter tuning has the advantages of clear physical meaning, easy to grasp and the shortcomings of its parameter optimization. However, with the development of intelligent control theory, fuzzy control, Gene algorithm and neuron control benefits are valued by the control community. In this paper, by adjusting the PI parameter tuning, it can be better than the traditional P1D parameter tuning method. For the current P1 parameter self-tuning method Commenting, pointing out the characteristics of P1 parameter optimization. Revealing the advanced control theory ^ Tuning method to integrate the new PI controller. The effectiveness evaluation of the tension control system simulation: Let the line speed be 1500 (mm / s), according to the formula The initial speed of the take-up motor _ should be 100 (rad/s), and the initial speed of the unwinding motor should be 33.3 (rad/s). The speed of the take-up motor in the simulation phase will decrease as the radius value increases. The speed of the unwinding motor increases as the radius value decreases. The speed change condition ' can be verified by the simulation results. It is better to use the GA adjustment rule than the trial and error adjustment according to the following comparison (as shown in Figure 24). The results of the speed response comparison shown in Figure 25 and the comparison of the tension response shown in Figure 25) ^ M0GA tension control simulation results (as shown in Figure 26):

第21頁 1316652 ^ 案號 94124029 五、發明說明(18) 考慮線速度命令為1500(nini/js) 的情況之下,由上圖之模擬的結果 態之後維持在500(mm/s),張力值 在0. 5 (kg)之要求。在張力控制器 達所受之干擾轉矩與估測器所估得 狀態估測器可由估測方式獲得所需 等線速度與等張力控制理論之可行 本創作成功引用基因傳演算法 i理論應用於軟式印刷電路板沖孔系 經由PC-Based視覺輔助定位系 控制卡,再配合友善之人機介面, 沖孔達到機械視覺控制之目的。為 小’本文利用轉矩估測器,對開捲 以此作為捲繞系統的迴授訊號,以 進而間接達成閉迴路定張力控制之 半徑估測法之可行性,係可即時預 計算定張力條件下開捲馬達之匹配 智慧型之PI控制器參數調整的基本 ►軟體強大的模擬機制,再根據訂定 標值,並融合多目標-GA的思想, 可讓系統趨於穩定的狀態。 藉由本創作之視覺導引系統設 用效益: 利用本案創作成功引用基因傳 月日修正替換頁 ,整力命令為0· 5(kg) ’可知線速度值在達穩 則在達穩態之後維持值 方面,由上圖知開捲馬 之轉矩值,由模擬得知 之狀態變數。結果顯示 性。 、影像定位及張力控制 統之研發上。 統、影像擷取卡及運動 可以有效利用影像定位 了實際控制輸出張力大 馬達進行轉矩估測,並 達到閉迴路轉矩控制, 要求。由模擬結果可知 估捲軸之半徑,並藉以 轉矩值。提出了基於GA 方法’經由數值模擬 的性能指標曲線迴授目 經模擬結果可知,確實 計得達到如下的產業利 演算法、影像定位及張Page 21 1316652 ^ Case No. 94124029 V. Description of invention (18) Considering the case where the line speed command is 1500 (nini/js), the result state of the simulation from the above figure is maintained at 500 (mm/s), tension The value is in the range of 0.5 (kg). In the tension controller, the disturbance torque and the estimated state estimator can obtain the required isolinear velocity and the equal tension control theory by the estimation method. The author successfully applies the gene transfer algorithm i theory application. The punching of the flexible printed circuit board is controlled by the PC-Based vision-assisted positioning system control card, and with the friendly human-machine interface, punching achieves the purpose of mechanical vision control. For the small 'this article uses the torque estimator, the unwinding is used as the feedback signal of the winding system, in order to indirectly achieve the feasibility of the radius estimation method of the closed loop constant tension control, which can be pre-calculated under the tension condition The unwinding motor is matched with the intelligent PI controller parameter adjustment. The soft and powerful simulation mechanism, according to the set value, and the idea of multi-target-GA, can make the system stabilize. Benefits of the visual guidance system of this creation: Using the creation of this case to successfully refer to the gene transfer date correction replacement page, the force command is 0·5 (kg) 'The line speed value can be maintained after reaching steady state. In terms of value, the torque value of the open horse is known from the above figure, and the state variable is known from the simulation. The results show sexuality. , image positioning and tension control system development. System, image capture card and motion can effectively use the image to locate the actual control output tension. The motor performs torque estimation and achieves closed loop torque control. From the simulation results, the radius of the reel is estimated and the torque value is used. Based on the GA method, the numerical simulation results of the performance index curve are used to retrieve the target simulation results. It is known that the following industrial performance algorithms, image localization and Zhang are indeed calculated.

year

]31όό^2 案號 9419仙9〇 五、發明說明(19) 力控制理論應用於軟式印刷電路板沖孔系統之研 由辅助定位系,统、影像操取卡及運動控制卡 到面,可以有效利用影像定位沖孔達 ,斜ϋϊΐ控制輸出張力大小,本創作利用轉矩估測器 j開捲^進行轉矩估測’並以此作為捲繞系統的迴授 制以達到閉迴路轉矩控制’冑而間接達成閉迴路定張 力控制之要求。 ^ ^ 結果可知半徑估測法之可行性,係可即時預估 i ’並藉以計算定張力條件下開捲馬達之匹配轉 。提出了基於GA智慧型之?1控制器參數調整的基本 M =由數值模擬軟體強大的模擬機制,再根據訂定的 M = 曲線迴授目標值,並融合多目標_GA的思想,經 „ . 〇可知’確實可讓系統趨於穩定的狀態。以下為本 研究之具體成果。 r 打光刀’採用背光及紅色光源’經實測之後’對FP 二質::,可得到最清晰之影像。 ^ ^ 控制系統:能在無感測元件之下,經由軟鳢程式 ^能雜人盘^到定速度與定張力控制,在高速之情況之下也 3Hi並減少感測元件之費用支出。 ' 數值模擬軟體與GA的結合,可以節省人工校正調整 的?間、避免直接撰寫程式的錯誤及實測中隨時修改 數據’求得系統參數。 4,本設備在機構之研究上,利用簡單之設計在沖頭機構設 _ 一 第23頁 1316652 窠號.94124029 曰 修正 日修正替換頁 五、發明說明(20) 計與自動整料設計方面,對沖孔速度和材料偏差方面得到 明顯成果。 5.通過GA對PI控制器之參數調整,穫得最優或次優的控 制器之參數,利用多目標-GA整定並經由模擬,可以得到 非常優良之黎應曲線。 嗣而,本案創作「應用於NC沖孔機之視覺導引系統」 不但具有高度的思想創作技術,且於產業實質運用上更具 有優異的產業利用性與經濟效益性。]31όό^2 Case No. 9419 Xian 9〇5, invention description (19) Force control theory applied to the flexible printing circuit board punching system research by the auxiliary positioning system, system, video operation card and motion control card to the surface, can Effectively use the image to locate the punching hole, and the skewer controls the output tension. This creation uses the torque estimator j to open the coil to perform the torque estimation' and use it as the feedback system of the winding system to achieve the closed loop torque. Controlling '胄 indirectly to meet the requirements of closed loop constant tension control. ^ ^ The result shows the feasibility of the radius estimation method, which can estimate i ’ immediately and calculate the matching rotation of the unwinding motor under the constant tension condition. Based on the wisdom of GA? 1 The basic parameter of the controller parameter adjustment is the powerful simulation mechanism of the numerical simulation software, and then the target value is fed back according to the set M = curve, and the idea of multi-objective _GA is combined, and „ . 〇 knows that 'the system can be made It tends to be stable. The following are the specific results of this study. r Lighting knife' uses backlight and red light source 'after measurement' to FP binary::, the clearest image can be obtained. ^ ^ Control system: can be in no Under the sensing component, the fixed speed and constant tension control can be controlled by the soft 鳢 program, and the high speed is also 3Hi and the cost of the sensing component is reduced. 'The combination of the numerical simulation software and the GA, It can save the manual correction and adjustment, avoid the error of directly writing the program, and modify the data at any time during the actual measurement to obtain the system parameters. 4. This equipment is used in the research of the mechanism, using the simple design in the punch mechanism _ a 23rd Page 1316652 窠号.94124029 曰Revision date correction replacement page V. Invention description (20) In terms of design and automatic monolith design, significant results have been obtained in terms of punching speed and material deviation. Adjust the parameters of the PI controller to obtain the parameters of the optimal or suboptimal controller. Using the multi-target-GA tuning and simulation, a very good Li Ying curve can be obtained. In the case, the creation of the case is applied to NC punching. The machine vision guidance system not only has a high degree of ideological creation technology, but also has excellent industrial utilization and economic efficiency in the practical application of the industry.

第24頁 修正Page 24 Amendment

年月日year month day

1316652 _案號 94124029 圓式簡單說明 圖式簡單說明】 第1圖:本創作之系統軟體處理流程圖。 第2圖:本創作之視覺系統架構方塊圖。 第3圖:本創作之視覺系統流程圖。 第4圖:本創作之定張力控制系統架構圖。 第5圖:本創作之GA對PI參數調整之系統架構圖。 第6圖:定張力系統控制方塊圖。 第7圖:為定張力控制硬體示意圖。 第8圖:整體之控制系統方塊圖。 第9圖:基因遺傳演算法之基本流程圖。 第10圖:PI控制器最佳參數搜尋步驟。 第11圖:自動教導搜尋範圍示意圖。 第12圖:影像處理之基本步驟。 第1 3圖:理想狀態影像邊界灰階值分佈示意圖。 第1 4圖:實際情況影像邊界灰階值分佈示意圖。 第1 5圖:影像邊界之中心設計流程。 第16圖:尋邊之後的邊界區域圖。 第1 7圖:清.晰影像尋標。 第18圖:歪斜影像尋標。 第19圖:較模糊影像尋標。 第20圖:張力系統的初始模擬數據。 第21圖:定速度調整法響應曲線圖比較。 第22圖:定張力調整法響應曲線圖比較。 第23圖:控制器參數調整比較。1316652 _ Case No. 94124029 Simple description of the circle Simple description of the diagram] Figure 1: Flow chart of the system software processing of this creation. Figure 2: Block diagram of the visual system architecture of this creation. Figure 3: Flow chart of the visual system of this creation. Figure 4: Architecture diagram of the tension control system of this creation. Figure 5: The system architecture diagram of the GA's PI parameter adjustment. Figure 6: Block diagram of the fixed tension system control. Figure 7: Schematic diagram of the control of the tension for the tension. Figure 8: Block diagram of the overall control system. Figure 9: Basic flow chart of the genetic algorithm. Figure 10: PI controller optimal parameter search steps. Figure 11: Schematic diagram of the automatic teaching search range. Figure 12: Basic steps of image processing. Figure 1 3: Schematic diagram of grayscale value distribution of image boundary in ideal state. Figure 14: Schematic diagram of the grayscale value distribution of the actual image boundary. Figure 15: The central design flow of the image boundary. Figure 16: Diagram of the boundary area after edge finding. Figure 17: Clear and clear image search. Figure 18: Skew image search. Figure 19: Searching for more blurred images. Figure 20: Initial simulation data for the tension system. Figure 21: Comparison of the response curve of the fixed speed adjustment method. Figure 22: Comparison of the response curve of the fixed tension adjustment method. Figure 23: Comparison of controller parameter adjustments.

第25圖:張力響應比較結果。 第26圖:MOGA (多目標最佳化遺傳基因演算法) * y] 3¾ 制模擬結果。 【主要元件符號說明】 CCDCharge-Coupled Device 電荷搞合元件 PC-Based電腦為基礎 • GA遺傳基因演算法 LCDLiquidu-Crystal - Display 液晶顯示器 Protel電腦輔助設計軟體 PCAD電腦輔助設計軟體 OrcadPCB電腦輔助設計軟體 while-loopWhile 迴圈 A/D類比/數位 minimum error threshold 最小誤差閥值 LEDLight Emiting Doide 發光二極體 • M0GA多目標最佳化遺傳基因演算法 FPCFlexible Print Circuit 軟式印刷電路板 mov速度之最大超越量 mof 張力之最大超越量 tsv速度之穩態時間 tsf 張力之穩態時間Figure 25: Comparison of tension response results. Figure 26: MOGA (Multi-Objective Optimized Genetic Algorithm) * y] 33⁄4 system simulation results. [Main component symbol description] CCDCharge-Coupled Device Charge-combined component PC-Based computer-based • GA genetic algorithm LCDLiquidu-Crystal - Display Liquid crystal display Protel computer-aided design software PCAD computer-aided design software OrcadPCB computer-aided design software while- loopWhile loop A/D analog/digital minimum error threshold LEDLight Emiting Doide LEDs • M0GA multi-objective optimization genetic algorithm FPCFlexible Print Circuit Soft printed circuit board mov speed maximal excess mof tension Maximum overrun tsv speed steady state time tsf tension steady state time

第26頁 1316652 案號 94124029 年月日 修正Page 26 1316652 Case No. 94124029 Date of the month Amendment

圖式簡單說明 trv速度之上升時間。 trf 張力之上升時間。The diagram simply illustrates the rise time of the trv speed. The rise time of trf tension.

Training Phase 訓練狀態 Object Model Image目標模型影像 Image Processing 景多像處理Training Phase Object Model Image Model Image Image Image Image Processing

Object ImageModel Building目標影像模型建立 Object Recognition 目標辨識 Robot Visual Serving機械手臂視覺伺服 Fd張力 _ Ru轉矩Object ImageModel Building Target Image Model Creation Object Recognition Target Recognition Robot Visual Serving Robotic Arm Visual Servo Fd Tension _ Ru Torque

Vd速度 Rr 半徑 Pixel像素 SIMULINK軟體名稱 C0UT次數Vd speed Rr radius Pixel pixel SIMULINK software name C0UT times

Gray Leve 1 灰階 Pos i t i on 位置 Kp比例控制參數 g K i積分控制參數 K2p第二組比例控制參數 Κ2 i第二組積分控制參數 K3p第三組比例控制參數 K3i第三組積分控制參數 Web Dynamic捲筒基板動特性Gray Leve 1 Gray scale Pos iti on Position Kp proportional control parameter g K i Integral control parameter K2p Second group proportional control parameter Κ 2 i Second group integral control parameter K3p Third group proportional control parameter K3i Third group integral control parameter Web Dynamic Roll substrate dynamic characteristics

第27頁 1316652 案號 94124029 年月日_修正 ^^月4日修正替換頁i 圖式簡單說明Page 27 1316652 Case No. 94124029 Year Month Day_Revision ^^ Month 4th Revision Replacement Page i Schematic Description

On-line Phase實際線上狀態 第28頁On-line Phase Actual Online Status Page 28

Claims (1)

13166521316652 六、申請專利範圍 1、一種應用於NC沖孔機之視覺導引系統,是經由機械定 位至鑽孔定位點附近,再透過CCD擷取影像,萃取樣板 (Template)之特徵值,利用圖形比對(Pattern肫忧“叫 )影像處理技術,和擷取之影像進行比對,得到參考座標 再經過座標轉換’經由伺服系統進行誤差修正待定位11完 成,後隨即沖孔作業;其係利用一XY作業平台,其上裝2 一單組CCD (Charge-Coupled Device,電荷耦合元件), 藉由此套機器視覺工作平台系統之軟硬艎整合,並配合視 覺輔助導引修正,以提昇精度和速度之要求;其系 丨流程包括: 列f杀 張力控制系統做機械粗略定位至影像之範圍定點内; 藉CCD擷取影像作視覺迴授至PC-Based控制器進行定 位微調補償後鑽孔; 再利用CCD做基準孔位之檢測,之後利用GA做其餘孔 位之最佳路徑鑽孔,以完成高精度定位鑽孔。 2、依申請專利範圍第1項所述應用於NC沖孔機之視覺導 引系統,其中該張力控制系統係藉由數值模擬軟體進行捲 繞系統各部分建模分析,並根據一物理關係式,將完整系 •統數學模型建立起來,並利用電腦模擬分析系統之動態響 應。 3、依申請專利範圍第丄項所述應用於NC沖孔機之視覺導 引系統’其中該張力控制系統藉無張力感測元件之閉迴路 控制法及利用轉矩估測器,對開捲馬達進行轉矩估測,並 以此作為捲繞系統的迴授訊號,以達到閉迴路轉矩控制,Sixth, the scope of application for patents 1. A visual guidance system applied to the NC punching machine is to locate the vicinity of the drilling positioning point by mechanical positioning, and then capture the image through the CCD, extract the characteristic value of the template, and use the graphic ratio. (Pattern worry about "calling" image processing technology, and the captured image is compared, get the reference coordinates and then coordinate conversion 'error correction through the servo system to be positioned 11 completed, then punching operation; The XY working platform is equipped with a single set of CCD (Charge-Coupled Device), which is integrated with the soft and hard 由此 of the machine vision working platform system, and is matched with visual aid guiding correction to improve the accuracy and Speed requirements; the system process includes: column f kill tension control system to do mechanical coarse positioning to the fixed range of the image; CCD capture image for visual feedback to the PC-Based controller for positioning fine adjustment compensation after drilling; Then use the CCD to make the reference hole position detection, and then use GA to do the best path drilling of the remaining hole positions to complete the high-precision positioning drilling. The visual guidance system applied to the NC punching machine according to Item 1 of the scope, wherein the tension control system performs modeling and analysis of various parts of the winding system by numerical simulation software, and according to a physical relationship, the complete system is • The mathematical model is established, and the dynamic response of the system is analyzed by computer simulation. 3. The visual guidance system applied to the NC punching machine according to the scope of the patent application section [where the tension control system is operated by tension-free sensing The closed loop control method of the component and the torque estimator are used to estimate the torque of the unwinding motor, and use this as a feedback signal of the winding system to achieve closed loop torque control. 第29頁Page 29 1316652 fem 94124029 六、申請專利範面 進而間接達成閉迴路定張力控制。 弓1系m利範圍第1項所述應用於阢沖孔機之視覺導 引:統,其中該張力控制系統是一面調節捲取馬達之:: ,另一方面同時調節開捲馬達的轉矩,以實現 = 張力的閉迴路同步控制,其中捲取馬達之轉速與開 的轉矩’會隨捲繞物半徑的變化而改變。 、 5、 依申請專利範圍第i項所述應用於Nc沖孔機之視覺導 引系統,其中該機械視覺輔助修正係採用影像擷取卡配 ^附屬之影像處理函式,再利用c + +程式語言撰寫應用程 式,經由機械定位至鑽孔定位點附近,再透過CCD擷取影 像,萃取樣板(TemPlate)之特徵值,利用圖形比對(Pattern Matching) 影像處理技術 ,和擷取之影 像進行比對, 得到參考座標,再經過座標轉換,經由伺服系統進行誤差 修正,待定位完成之後隨即沖孔作業。 6、 依申請專利範圍第1項所述應用於Nc沖孔機之視覺導 引系統’其中該GA對PI參數調整及最短路徑規劃之最佳 化程式設計係利用數值模擬軟體,輔以電腦語言程式的聯 結,找出最佳PI控制器之參數優化解。 ,7、依申請專利範圍第1項所述應用於NC沖孔機之視覺導 引系統’其中該擷取影像的影像邊界中心座標設計流程的 影像處理’是找出影像中心座標,然後再根據實際影像與 CCD中心影像座標之差異,計算其差異值並利用伺服馬達 來做位置之修正》 8、依申請專利範圍第1項所述應用於nc沖孔機之視覺導1316652 fem 94124029 VI. Applying for a patent specification and indirectly achieving a closed loop constant tension control. The bow 1 system is the visual guide for the punching machine described in the first item, wherein the tension control system adjusts the winding motor by one side:: on the other hand, the torque of the unwinding motor is simultaneously adjusted. In order to achieve = closed-loop synchronous control of tension, where the speed of the take-up motor and the torque of the opening 'change with the radius of the winding. 5. The visual guidance system applied to the Nc punching machine according to the item i of the patent application scope, wherein the mechanical vision assisting correction system uses an image capturing function and an attached image processing function, and then uses c + + The programming language compose application, which is mechanically positioned near the drilling anchor point, then captures the image through the CCD, extracts the feature value of the TemPlate, and uses the Pattern Matching image processing technology and the captured image. The comparison obtains the reference coordinate, and then the coordinate conversion is performed through the coordinate conversion of the coordinate system, and the punching operation is performed immediately after the positioning is completed. 6. The visual guidance system applied to the Nc punching machine according to the first paragraph of the patent application scope. The optimization program design of the GA for PI parameter adjustment and shortest path planning utilizes numerical simulation software, supplemented by computer language. The program is linked to find the optimal solution for the parameters of the best PI controller. 7. According to the scope of claim 1 of the patent application, the visual guidance system applied to the NC punching machine, wherein the image processing of the image boundary center coordinate design process of the captured image is to find the image center coordinate, and then according to The difference between the actual image and the CCD center image coordinate, calculate the difference value and use the servo motor to make the position correction. 8. Apply the visual guide to the nc punching machine according to the first item of the patent application scope. 第30頁 1316652 \ffmm -- 案號 94124029_年月日_^正 L—™—---——— 六、申請專利範圍 引系統,該擷取影像的影像邊界中心座標設計流程為: 1 ·命令影像擷取卡擷取影像; 2. 使用minimum error threshold 的方法,將所擷取 的影像二值化; 3. 對二值化後的影像,來搜尋邊界的座標值; 4. 調整最佳之邊界閥值並劃出目標值的區域, 5. 取得邊界四角座標並計算其中心值。 9 '依申請專利範圍第1項所述應用於NC沖孔機之視覺導 _引系統’其中該擷取影像處理中對二值化之後得到的影像 ’每一個像素的灰階值皆只有〇與255,亦即只有全白與全 黑兩種,如此可以使邊界特性更加明顯》 10、依申請專利範圍第1項所述應用於NC沖孔機之視覺導 引系統’其中該擷取影像處理中運用二值化後的影像,來 搜尋邊界的座標值之搜尋步驟如下: 〇)由影像座標的原點開始搜尋,若為水平校正,則 由左而右’逐攔上往下搜尋每一個像素點的灰階值,若為 垂直校正’則由上而下,逐列由左向右搜尋每一個像素點 的灰階值; * (2)搜尋時,在每一欄(列)中,若連續搜尋到N個像素 &的灰階值皆為〇時’則表示這些連續N個像素點中,第一 Μ被搜尋到的像素點,為可能的邊界點之―,將其座標值 紀錄下來’ Ν取過小’可能會將雜訊點誤判為邊界點,ν 取過大丄則可能會遣漏了真正的邊界點;要注意的是,在 校JL未完成之前’參考圖形的邊界並不一定與影像座標軸Page 30 1316652 \ffmm -- Case No. 94124029_年月日日_^正L—TM—---———— VI. Applying for the patent range introduction system, the design process of the image boundary center coordinates of the captured image is: 1 · Command the image capture card to capture the image; 2. Use the minimum error threshold method to binarize the captured image; 3. For the binarized image, search for the coordinates of the boundary; 4. Adjust the most The boundary value of the good boundary and the area where the target value is drawn. 5. Obtain the coordinates of the four corners of the boundary and calculate the center value. 9 'Applicable to the visual guide system of the NC punching machine according to item 1 of the patent application scope, wherein the image obtained after binarization in the image processing is 'the gray scale value of each pixel is only 〇 And 255, that is, only two whites and all blacks, so that the boundary characteristics can be made more obvious. 10. The visual guidance system applied to the NC punching machine according to the first application of the patent scope, wherein the captured image The process of searching for the coordinate values of the boundary using the binarized image in the process is as follows: 〇) Searching from the origin of the image coordinates, if it is horizontal correction, then searching from left to right The grayscale value of a pixel, if it is vertical correction 'from top to bottom, search for the grayscale value of each pixel from left to right column by column; * (2) in the search, in each column (column) If the grayscale values of N pixels & are consecutively searched for 〇, then the pixels of the consecutive N pixels that are searched for, the possible boundary points, and their coordinates The value recorded is 'too small' may cause miscellaneous noise Boundary point, ν Shang take excessive removal might leak true boundary points; is to be noted that, before the correction is not completed JL 'boundary of the reference pattern is not necessarily the image coordinate axes 第31頁 1316652 a 正 月。6日修正替換頁I 六、申請專利範圍 平行’所以此時所得到的所有初始邊界點,不一定會全部 都在同一列(欄)。 11、依申請專利範圍第1項所述應用於NC沖孔機之視覺導 引系統,其中該擷取影像處理為了對較不清晰之影像也能 得到完整之取像範圍,在程式中設定一個手動的調整最佳 之邊界閥值選擇開關,可以用來做最初之校正以觀視其所 取之影像是否符合所需,它可根據來源影像之好壞,利用 人的眼睛判別出所取之影像符合所需,如此只要來源影像 不模糊不清,必能找出符合精度之影像。 、依申請專利範圍第1項所述應用於NC沖孔機之視覺導 引系統,其中該擷取影像處理中對未經過二值化處理之前 的影像邊界四角座標計算其中心值之中心點計算方法: 物體中心點座標(X〇,y〇)可用以表示物體的落點所在 位置,其數學式為泣其中N為物體點素數目,χ為物體 點素的橫座標值加起來’y為物體點素的縱座標值加起來 ’利用以上式子可以很容易求出中心點座標(χ〇, y〇)。 13、 依申請專利範圍第丄項所述應用於NC沖孔機之視覺導 引系統,其中該擷取影像處理中對經過二值化處理之前的 藝影像邊界四角座標計算其中心值之中心點計算方法: 先擷取出影像,再由左至右,由上至下掃描每個點 素,找出與所設定之閥值點數相同者,做為邊界之最大變 化點利用此點劃出水平和垂直之線 標區 再利用幾何計算出中心點座標(x〇 y〇)。 磷敢後 14、 依中晴專利圍第i項所述應用於沖孔機之視覺導Page 31 1316652 a The first month. On the 6th, the replacement page I is amended. VI. The scope of the patent application is parallel. Therefore, all the initial boundary points obtained at this time may not all be in the same column (column). 11. The visual guidance system applied to the NC punching machine according to the first aspect of the patent application scope, wherein the captured image processing can obtain a complete image capturing range for a less clear image, and set a program in the program. Manually adjust the optimal boundary threshold selection switch, which can be used to make the initial calibration to see if the image taken meets the requirements. It can use the human eye to distinguish the image according to the source image. Meet the requirements, so as long as the source image is not blurred, you will be able to find images that match the accuracy. According to the first aspect of the patent application scope, the vision guiding system applied to the NC punching machine, wherein the center point calculation of the center value of the image boundary quadrangular coordinate before the binarization processing is performed in the captured image processing Method: The coordinates of the center point of the object (X〇, y〇) can be used to indicate the position of the falling point of the object. The mathematical formula is weeping, where N is the number of points in the object, and the value of the abscissa of the object is added. The ordinate values of the object points are added up. 'The center point coordinates (χ〇, y〇) can be easily obtained by using the above formula. 13. The visual guidance system applied to the NC punching machine according to the scope of the patent application scope, wherein the center point of the central value of the art image boundary before the binarization processing is calculated in the captured image processing Calculation method: first extract the image, then scan each pixel from top to bottom from left to right to find the same number of threshold points as the maximum change point of the boundary. Use this point to draw the level. And the vertical line area reuse geometry to calculate the center point coordinates (x〇y〇). Phosphorus dare 14. The visual guide applied to the punching machine as described in item i of the patent of Yizhongqing 第32頁 1316652 索號.94124029 Λ__a. B 修正 修正替換頁Page 32 1316652 Cable No. 94142029 Λ__a. B Correction Correction Replacement Page 六、申請專利範圍 引系統,其中該擷取影像方面,首先打光設計部分,因待 測物為軟性印刷電路板銅箔’故以背光源設計方式來打光 〇 15、 依申 引系統, 16、 依申 引系統, 歪斜影像 97時得到 •1 7、依申 引系統, 並用GA調 最後再利 系統結合 請專利範圍第1項所述應用於NC沖孔機之視覺導 其中該擁取影像方面,打光光源採用紅色LED。 請專利範圍第1項所述應用於NC沖孔機之視覺導 其中該擷取影像方面,以打光之後的清晰影像、 與較模糊影像做尋求中心之比較,可知在閥值為 較好之中心點座標。 利範圍第1項所述應用於NC沖孔機之視覺導 ^ 張力控制系統採用數值模擬軟體預做模擬, Ϊ控^制器之參數,以達成最佳之模擬效果; ,腦語s程式產生C語言程式碼,與影像控制 為本創作的系統控制。Sixth, apply for the patent range introduction system, in which the image is captured first, the light design part is first, because the object to be tested is a soft printed circuit board copper foil, so the backlight design is used to light the light, according to the indexing system, 16. According to the indexing system, when the skewed image is 97, it is obtained by the system, and the system is applied to the NC. In terms of image, the light source is a red LED. Please refer to the visual guide of the NC punching machine mentioned in the first paragraph of the patent, in which the image is captured, and the clear image after the light is compared with the fuzzy image to find the center. Center point coordinates. The visual guide for the NC punching machine mentioned in the first item of the benefit range uses the numerical simulation software to perform the simulation and control the parameters of the controller to achieve the best simulation effect; C language code, and image control are the system control of the creation. 第33頁Page 33
TW094124029A 2005-07-15 2005-07-15 Visual guiding system applied to NC puncturing machine TW200702960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW094124029A TW200702960A (en) 2005-07-15 2005-07-15 Visual guiding system applied to NC puncturing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW094124029A TW200702960A (en) 2005-07-15 2005-07-15 Visual guiding system applied to NC puncturing machine

Publications (2)

Publication Number Publication Date
TW200702960A TW200702960A (en) 2007-01-16
TWI316652B true TWI316652B (en) 2009-11-01

Family

ID=45073267

Family Applications (1)

Application Number Title Priority Date Filing Date
TW094124029A TW200702960A (en) 2005-07-15 2005-07-15 Visual guiding system applied to NC puncturing machine

Country Status (1)

Country Link
TW (1) TW200702960A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI391800B (en) * 2009-04-21 2013-04-01 Univ Shu Te Applied to the Proportional Integral Differential Controller
CN105873376B (en) * 2016-04-29 2018-10-26 北京小米移动软件有限公司 Pcb board assembly method based on AR and auxiliary assembling apparatus
JP6688172B2 (en) * 2016-06-24 2020-04-28 東京エレクトロン株式会社 Substrate processing system and method
TWM616680U (en) * 2020-06-29 2021-09-11 新代科技股份有限公司 System for planning template parameters of drilling machine
CN114083289B (en) * 2021-11-01 2022-10-04 佛山汇百盛激光科技有限公司 Edge-finding welding punching machine

Also Published As

Publication number Publication date
TW200702960A (en) 2007-01-16

Similar Documents

Publication Publication Date Title
CN109308693B (en) Single-binocular vision system for target detection and pose measurement constructed by one PTZ camera
CN101213440B (en) Method for forming master data for inspecting protruding and recessed figure
TWI316652B (en)
JP5092711B2 (en) Object recognition apparatus and robot apparatus
CN103196374B (en) Satellite air floating platform two dimensional motion attitude parameter measurement apparatus
CN101034154A (en) Direct-reading instrument full-automatic verification method and device thereof
CN1902464A (en) Method and device for measuring, determining and controlling flatness of a metal strip
CN109270079B (en) Workpiece surface defect accurate detection method based on point cloud model
CN110936355A (en) Mechanical arm guiding system and method based on visual speed measurement positioning
CN110146017A (en) Industrial robot repetitive positioning accuracy measurement method
CN113269723A (en) Unordered grasping system for three-dimensional visual positioning and mechanical arm cooperative work parts
CN109631764B (en) Dimension measuring system and method based on RealSense camera
CN114241469A (en) Information identification method and device for electricity meter rotation process
CN115294198A (en) Vision-based global performance measurement system and method for mechanical arm
Zhang et al. Reading recognition of pointer meter based on pattern recognition and dynamic three-points on a line
CN112990190A (en) Method and device for identifying reading of pointer instrument
CN111189396B (en) Displacement detection method of incremental absolute grating ruler based on neural network
CN116091401A (en) Spacecraft assembly part identification positioning method based on target detection and composite target code
Zhao Application of computer-based machine vision measurement system in industrial on-line detection
Wei et al. Object dimension measurement based on mask R-CNN
Metzner et al. Automatic camera calibration and sensor registration of a multi-sensor fringe measurement system using hexapod positioning
CN112461130A (en) Positioning method for visual inspection tool frame of adhesive product
CN113034418A (en) Circuit board identification and pad/chip rapid positioning method for electronic industry
Upadhyay et al. Real-time deep learning–based image processing for pose estimation and object localization in autonomous robot applications
Chang et al. In Situ labeling and monitoring technology based on projector-camera synchronization for human–machine collaboration

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees