200844426 九、發明說明: 【發明所屬之技術領域】 本發明係有關-齡件線上機械視覺酬魏及其方法,尤指一 種包括有-工作平台、-驅動機構、一數位式攝雜置、—資料^取 卡、-影像娜f減-安裝有-檢驗軟體之魏,而能即時對待檢 測物件攝影及·對檢贼量測,而_安全,簡便,及快速檢測: 品品質之目的者。 【先前技術】 按,-般塑膠模具射出的製程,常因塑膠射出、模具間熱度、壓 力、及等問題,導致會產生毛邊、凸陷、流痕'成品不全問題產生, 且-般傳統之工廠大部分的瓣成品侧依#生產線以人玉檢測的方 式挑選成形或變形的瑕疵品,因此,利用人工於成型件之檢驗,對於 產品檢驗速度將會有影響;另—方面,—般讀亦有糊肉眼配合游 標卡尺來檢驗產品的尺寸;惟,以人工檢驗的方式,會有視覺誤差的 產生及檢驗速度丨艾等缺點,而使產品的品質控管效果較差。 一般工人在固定的工作環境中,容易因一成不變的工作而感到疲 倦、厭煩,_導致工人對於產品的品質鮮效果較差;另,在高危 險不易親近的工作環境、需要顯微鏡或放大鏡配合的工作環境、含毒 氣、輕射、高噪音、高處、太^、深海、以及靠近高壓電等都是高危 險不易接近的工作環境;此外,一些較細微的產品,工人若長期使用 顯微鏡或放大鏡,將容易損害視力造成職業傷害;再者,對於一些高 精確需求的工作環境,僅是以人的肉眼來檢驗產品,更是無法達到預 200844426 期的品質的控管效果。 由上所述得知,在處處講求品質以及生產力的今天,高生產力及 最佳品質已是卫廠中重要的課題,因此,如要考慮生產力以及品質的 提昇,就必須正確地掌握住產品品質檢驗的方式。 據查,與本發明之相關技術或已發表之文獻,如下所述: (1)鄭光宏,「應用影像視覺於超薄型表面載式電感器之線上自動 檢測」大葉大學’頌士論文,發表於2004年,主要針對超薄型表面載 式電感器發展-線上機器視覺自動檢測系統,處理技術包括影像定 位、影像崎、影像分類及字元辨鱗,以檢測超薄型表面載式電感 器^疫品,達到線上自動化檢測之目的,惟,其僅具檢測電感器的 力月匕而已,其無法廣為各個領域之產業所採用,因此,其實用價值性 不南。 、 (2 )鄭志祥,「影像次像素應用在米粒檢測之研究」,中興大學, 碩士論文,於i992年料,_影像處理技術躺農產品品質時、 寬、周長與面鮮形狀參數是品種觸與品質分麟的重要依據,而 能精確的制這些參數值,可提昇檢啊對於辩品質的辨識效能。 -般農細嘛,㈣婦_物_摘兩種組成, 在品質的奴上若僅依賴人工以目視檢測或利用簡易的量規不但作 業效率低且缺乏一套標準的作業程序。 中朱姐,「制機器視覺於農機元件之加工成品品質鑑定」, 碩地,期年,彻彡物她_農機元件品 貝的m。進行各部幾何特徵之量測與焊道品質之分析,並轉準 200844426 元件模型比對後,依誤差大小予於評分。 (4 )黃順章,「0402系列晶片包裝紙帶之影像檢測系統」,虎尾科 技大學,碩士論文。2002年,發展出0402系列的量測,就就是一套 軟體可以量測出0402不同型號的紙帶,進而反推出模具壽命,也減少 經費的消耗。 緣是,本發明人針對習用結構諸多的缺失,經本發明人等不斷地 努力研發下,終於研發出改善該習用結構缺失的本發明,並採用線上 影像的檢_理,配合如影像賴、影像定位、樣本建立、樣本比對 等之影像處穩再進比職_健,與—般人卫檢驗紅具檢驗的 方式比較’更可加快檢驗的速度,並且能夠提昇檢_精確性,而且 可藉由自動儲存不良件影像巾去觀察出損壞原因,就本發明之可靠卢 方面/可靠度職顯著水準可達1%,卩個物件所檢測出準^ 度顯著水準可達1%,耻,本發魏對可⑽合高制品冑的要求。 【發明内容】 本發明之第-目的,在於提供—種_線上影像的檢測原理而 在各種領域物件品f的檢驗健,_得以降低因人為 的 W瑕魅品,還可製定出—套良品的規範以作為監 =而且於檢測時不受待檢物件之擺放方向的影響,因此,且有 、成述力’本發明檢嶋統所細之技術手段,其中,該 ,並嶋她_彻職、綱_輯檢驗軟 曰1ΓΓ檢驗品質精確度高,還可節省人讀檢驗成本,細提 之效轉諸多特點的物件線上麵視覺檢測系統。 η 裝有可供建立-該物件之樣本物件影像的該比 影像旋轉以及影像定位的言 200844426 影像處理’當該感測器感應到該物件時,該比對檢驗軟體將該樣本物 件影像與即_取之該雜進行比對制,#該物件為合格件時則發 出-合格當該物件林合格㈣則發出合格訊號者。 為達成上述功效,本發明檢财法賴狀技術手段,其係於該 電腦安裝有可供建立—該物件之縣物件影像_輯檢驗軟體,並 對該=件的該影像進行殘·除、影像旋轉以及影像定位_影像處 理’虽减測减朗該物件時,該比對檢驗軟體將該樣本物件影像 與即_取之·像進行比對檢測,當該物件為合格件咖發出二合 格訊號,當該物件為不合格件時則發出—不合格訊號者。 σ &本發明之第二目的’在於提供一種可以量測物件影像的尺寸並 能判斷該物件是否合乎公差範_,俾使物件之檢驗品質可以達到更 為精確的要求。 為達成上述功效,本發明所採用之技術手段,其係於該電腦安裝 -影像量測軟體,並以郷像量測軟_於該物件影像尺寸的量測, 並利用里測原理1測該物件尺寸是否在公差範圍内該軟體可自動記 彔筆的>料,可供操作者觀察該物件尺寸的變化,並且具有計算不 良品件數以及料率件㈣功能’當該物件為合格件_發出-合格 訊號’當該物件為不合格件時則發出—不合格訊號者。 【實施方式】 (1 )·本發明檢測系統之基本技術特徵 明芩看第一、二圖所示,本發明主要係運用於各種領域之物件(如 Ί、射出件、電路板及各式各樣的產品)的品質檢測作業,以期能 200844426 夠提升物件產製的合格率以及節省人工的檢驗成本。本發明之檢測系 統,可分顏胳對待職件的崎檢測及量測檢測,該檢測系統包 括有: 一工作平台(1 〇 ),其可供一待檢測之物件(1)置放; 一驅動機構(,2 0),其用以驅動該工作平台(1 〇)在χγ軸的 平面上移動; 一感測器(3 0),其用以偵測該工作平台(1〇)上之該物件 (1 ),當偵測到該物件時產生一電壓訊號。其中,該感測器(3 〇) 之一種較佳實施例,更包含有一反光片(圖中未示),其設置在該工作 平台(1 0)上以及一光電感測器(圖中未示),其用以發射一光訊號 至該反光片上,再將由該反光片反射之光訊號轉換成數位式之該電壓 訊號; 一數位式攝影裝置(4 0 ),其具體實施例係包含一鏡頭(圖中未 示)及一感光元件(圖中未示),其中,該感光元件較佳實施例,係選 自電荷耦合元件C C D及互補金屬氧化物半導體cm〇 S的其中一 種; 一電腦,其安裝有一檢驗軟體,該檢驗軟體可為一比對檢驗軟體 或一量測檢驗軟體,其中,本發明具體實施例,該檢驗軟體係以200844426 IX. INSTRUCTIONS: [Technical field to which the invention pertains] The present invention relates to a mechanical visual reward and its method on a line-age piece, and particularly includes a working platform, a driving mechanism, a digital camera, and Data ^ card, - image Na f minus - installed - test software Wei, and can immediately detect the detection of object photography and · thief measurement, and _ safe, simple, and fast detection: the purpose of quality. [Prior Art] According to the process of injection molding, the plastic mold is often produced due to plastic injection, heat between the molds, pressure, and other problems, resulting in burrs, bumps, and flow marks, which are caused by incomplete finished products. Most of the factory's finished products are selected according to the #production line in the form of human jade detection. Therefore, the use of artificial inspection of the molded parts will have an impact on the inspection speed of the product; another aspect, the general reading There is also a blushing eye with a vernier caliper to check the size of the product; however, by manual inspection, there will be shortcomings such as the occurrence of visual errors and the speed of inspection, and the quality control effect of the product is poor. In a fixed working environment, the average worker is easily tired and bored by the constant work. _ The worker has a poor effect on the quality of the product. In addition, in a work environment with high risk and difficulty in close work, a working environment that requires a microscope or a magnifying glass. , toxic gas, light fire, high noise, high altitude, too ^, deep sea, and close to high-voltage electricity are high-risk and inaccessible working environment; in addition, some of the more subtle products, if workers use microscopes or magnifiers for a long time, It will easily damage the visual acuity and cause occupational injuries; in addition, for some high-precision work environments, the product is only inspected by the human eye, and the quality control effect of the pre-200844426 period cannot be achieved. From the above, it is known that quality and productivity are everywhere. High productivity and best quality are important issues in the factory. Therefore, if we consider productivity and quality, we must correctly grasp the product quality. The way of inspection. It is reported that the related art or published literature of the present invention is as follows: (1) Zheng Guanghong, "Applying image vision to automatic detection on the line of ultra-thin surface-loaded inductors" Dae University's gentleman's thesis, Published in 2004, mainly for the development of ultra-thin surface-loaded inductors - online machine vision automatic detection system, processing technology including image positioning, image, image classification and character scale to detect ultra-thin surface-loaded inductors The disease is the purpose of online automated testing. However, it only has the power to detect inductors. It cannot be widely used by industries in various fields. Therefore, its practical value is not south. (2) Zheng Zhixiang, “Research on the application of image sub-pixels in rice grain detection”, ZTE University, Master's thesis, in i992, _ image processing technology lies in the quality of agricultural products, width, perimeter and fresh shape parameters are varieties of touch With the important basis of the quality of the Lin, and the precise production of these parameters, can improve the identification of the quality of the identification. - General farming, (4) Women's _ material _ two kinds of composition, in the quality of slaves relying only on manual visual inspection or the use of simple gauges is not only inefficient and lacks a standard set of operating procedures. Zhong Zhujie, "Quality appraisal of the finished product of machine vision in agricultural machinery components", the earth, the year, the smattering of her _ agricultural machinery components. The measurement of the geometric features of each part and the analysis of the quality of the weld bead were carried out, and after the 200844426 component model comparison, the error size was given. (4) Huang Shunzhang, "Image Inspection System for 0402 Series Wafer Wrap Tapes", Huwei University of Technology, Master thesis. In 2002, the measurement of the 0402 series was developed. It is a set of software that can measure 0402 different types of paper tapes, which in turn can lead to the life of the mold and reduce the consumption of funds. On the other hand, the present inventors have been working hard to develop and improve the structure of the conventional structure by the inventors of the present invention, and have succeeded in research and development to improve the structure of the conventional structure, and to use online image detection, such as image imaging, imagery. The image of positioning, sample establishment, sample comparison, etc. is stable and re-entry. _ Jian, compared with the way of the general inspection of the red test, can speed up the test, and can improve the accuracy of the test, and can By automatically storing the defective image towel to observe the cause of the damage, the reliability level of the invention is up to 1%, and the level of detection of the object is up to 1%, shame, This Wei Wei requirements for (10) high product defects. SUMMARY OF THE INVENTION The first object of the present invention is to provide a detection method for an on-line image and to verify the health of objects in various fields, and to reduce the artificial artifacts of W. The specification is used as the supervisor = and it is not affected by the direction in which the object to be inspected is placed at the time of detection. Therefore, there is a technical means by which the invention is inspected, and The inspection of the soft and 纲 _ 曰 ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ ΓΓ η is equipped with the image rotation and image positioning for establishing the image of the sample object of the object. 200844426 Image processing 'When the sensor senses the object, the comparison inspection software images the sample object _ Take the miscellaneous comparison system, # When the object is a qualified piece, it will be issued. - If the object is qualified (4), the qualified signal will be issued. In order to achieve the above-mentioned effects, the technical method for detecting money in the invention is installed on the computer, and the software for the county object image of the object is installed, and the image of the object is disabled and removed. Image rotation and image positioning _ image processing 'When the object is reduced or decreased, the comparison test software compares the image of the sample object with the image of the image, and the object is qualified for the qualified piece. Signal, when the object is unqualified, it will be issued - the unqualified signal. σ & The second object of the present invention is to provide a method for measuring the size of an image of an object and judging whether or not the object conforms to a tolerance, so that the inspection quality of the object can be more precisely determined. In order to achieve the above-mentioned effects, the technical means adopted by the present invention is applied to the computer-mounted image measuring software, and the measurement of the image size of the object is measured by the image measurement, and the measurement principle 1 is used. Whether the object size is within the tolerance range, the software can automatically record the pen> material, and the operator can observe the change of the object size, and has the number of defective products and the material rate member (4) function 'When the object is qualified _ Issue - Qualified Signal 'When the item is unqualified, it will be issued - the unqualified signal. [Embodiment] (1) The basic technical features of the detection system of the present invention. As shown in the first and second figures, the present invention is mainly applied to objects in various fields (such as cymbals, injection parts, circuit boards, and various types). The quality inspection work of the sample product, in order to increase the qualification rate of the production of the article and save the labor inspection cost. The detection system of the present invention can measure the sacrificial detection and measurement of the workpiece, and the detection system comprises: a working platform (1 〇), which can be placed for an object to be detected (1); a driving mechanism (20) for driving the working platform (1 〇) to move on a plane of the χγ axis; a sensor (30) for detecting the working platform (1〇) The object (1) generates a voltage signal when the object is detected. A preferred embodiment of the sensor (3 〇) further includes a retroreflective sheeting (not shown) disposed on the working platform (10) and a photo-electrical sensor (not shown) The display device is configured to transmit an optical signal to the reflective sheet, and convert the optical signal reflected by the reflective sheet into a digital signal of the digital type; a digital imaging device (40), and the specific embodiment includes a a lens (not shown) and a photosensitive element (not shown), wherein the preferred embodiment of the photosensitive element is selected from one of a charge coupled device CCD and a complementary metal oxide semiconductor (CMOS); The inspection software is installed with an inspection software, and the inspection software can be a comparison inspection software or a measurement inspection software. In the specific embodiment of the present invention, the inspection soft system is
National Instruments LabVIEW 7.0 配合 IMAQ Vision Builder6 編 寫而成; 一資料擷取卡(5 0 ),其用以接收由該感測器(3 〇 )傳送之該 電壓訊號,而可啟動安裝於該電腦(6 0)之該檢驗軟體;及 200844426 體的控制而可驅動該數位式 ,再將所擷取之該影像傳送 -影像擷取卡(7G),其受該檢驗軟 攝影裝置(4 Q)以擷取該物件的該影像 到該電腦(6 0)中儲存。 ’ 祕^,若檢驗軟體為—比對檢驗軟體,則該電腦(6 0 )所安裝 二:體:供建=良品樣本影像該比對檢驗軟體可對該待測物 〜像進打影像處理,其影像處理係包括麟測物件之影像 處理,本制為了增加檢驗速度,所以在不限制擺放待 ^物件方向的設定下仍能檢測,則其影像處理又包括影像平移、影 2及f助爾__卿爾職術影像 2時練之該待測物件影像進行比對檢測,當該物件(i)為合格 、則發出-合格訊號,#該物件⑴為不合格件時則發出—不合 格§孔遽。 請參看第-、二圖所示’為精確地控制卫作平台(i Q)的移動, 上逮基本技術特徵中之具體實施例,該驅動機構(2⑸包含有. 一峨器RS232 ( 2 1 ),其與該電腦(6 〇 )電性連接; - PC3馬達控制器(2 2 ),其與該訊號器( 2 u電性連 接,而可受該電腦(6 〇)之一驅動控制程式所控制;及 至少-步進馬達(2 3 ) ’其受該PC3馬達控制器(2 2 )的控制 而可驅動該卫作平台(1 0)在X-Y軸的平面上移動。 請參看第一、二圖所示,為補強照射在待檢物件(i)上的光源, 上述基本技術特徵中之具體實施例,更包含有—可_數位式攝影裴 置(4 0)設置的置放架(〗i ),該置放架(丨】)設有—用以二: 10 200844426 該數位式攝影裳置(4 Q )輔助照明的環型L E D燈(m,該環蜜 L ED燈(1 2)係由上往下投射光源。 明參看第-,上述基本技術特徵中之具體實施例,該電腦 0 )匕3有顯不器(6 1 ),且其係選自個人電腦及筆記型電腦 之其中一種。 括有: (2 )·本發明之檢測方法 請參看第-、二圖聯’本發戰行前述檢_統之方法, 係包 提供工作平台(1〇)、一驅動機構(2〇)、 置(40)、感測器⑴)、一資料摘取卡(5〇)、-影像t攝影敦 〇 )及-包括有-顯示器的電腦(6 〇 ),該電腦 :卡(7 驗軟體; U J女骏有一檢 將待檢測物件⑴置放在工作平台(1〇)上. 以該驅動機構(2Q)驅動社作平台(ig)在 移動,使待檢測物件⑴移動至該數位式攝影 Y輛向 的位置; v 4 〇 )可攝影 以該資料擷取卡(5 〇)接收由該感測器(3 喊,並啟動該電腦(6 之檢驗㈣; k之該電壓 乂義驗L控崎f彡賴取卡(7 G )驅純含 感光請的該數位式攝 有—鏡頭及— s抑 如衣置(4 0 )擷取該物件(工)认上 所掏取找影像傳铜該電腦(6 〇 )帽存;亥影像, 該檢驗軟體可為一 對檢驗軟體或一量測檢驗軟體 、檢驗軟 200844426 體對該物件(i)的該影像進械理,其處理包括殘料除、影像旋 轉以及影像定_處理’職驗倾將該良品樣本影像與即時操取之 制物件影像聰__ ’献制鶴件⑴的財,當該物 件⑴為合格件時則發出一合格訊號,當該物件⑴為不合格件 時則發出-不合格訊號。其中若是檢驗軟體為—比對檢驗軟體則在 比對之前先於該比對檢驗軟體建立一良品樣本影像。 (3 ).本發明比對檢驗軟艟之具髖實施 3 · 1樣本介面 請參看第-、十圖所示,為供使用者建立樣本影像該比對檢驗 軟體於該賴(6 0 )之顯示^ ( 6 i )上顯村—樣本介面該樣 本介面包含顯示有-拍照鍵、輯鍵錢停缝,顯示有複數個可 供設定的參數,再將-樣本物件置於該玉作平台(i Q) i,以該數 位式攝影裝置(4 G )練該良品縣物件f彡雜,於雜本介面輸 入樣本的檔名和路徑,再按比對鍵,在該良品樣本物件影像上利用矩 形圈選出欲檢驗區(如第十-圖所示),再將該良品樣本物件影像儲存 於該電腦(6 G )中,而可建立概品樣本物件影像。 3 · 2檢驗介面 μ參看第-、九及第十二、十三圖所示’為供使用者進行物件檢 驗作業的操作,該比對檢驗軟體於該電腦(6 Q)之—顯示器(6丄) 上顯示有-檢驗介面,該檢驗介面包含顯示有—檢驗鍵、物件通過燈、 合格燈、:^合格燈以及複數個可供預先設定的參數,該參數包含有該 工作平台(1 ())移動速度、移動距離、該數位式攝影裝置(4 〇 ) 200844426 拍照時間、總件數、不合格件數、不良率以及pc3控繼(2 2 )的 接口和PCI-6519訊號傳送的頻道’在檢驗的同時由該比對檢驗軟體自 動去累加計算。 該比對檢驗軟體於該物件⑴之影像上可供選擇設定複數個特 徵檢驗區域,並财品樣本齡影像進行比對,再瓶賴果於1 驗介面中顯示,該檢驗介面於該電腦(6㈤之—顯示器(6工)中双 顯示’當檢測錄件⑴為良品時,該合格燈缺,該物件⑴ 為不良品時不良品時,該不合格燈亮起(如第忙、十三圖所示)。 3 · 3影像旋轉、定位及平移 用為了增加檢驗速度,所財不_擺財向賴定下,使 用衫像_及影像定㈣方法在比對之前做處理。 1 ·影像旋轉: 請參看第三圖所示,所擷取的影像特狀中、、w ώ 驗影像之_徵中娜X2,y2),蝴象;^點(^),與欲檢 影像偏⑽度可由式⑴求彻。:像特徵中心點差異計算角度, 旋轉。 '肖麵鄕公式如式⑵將影像 2 ·影像定位: 如弟二圖所示, ° 乂〜像特徵中心點差異計算角度义 設定影像特徵,使用影像特徵定位方法 出座::設定每張影像檢驗的區域,並-線為二 tan、 λ - y丨 Χ2 — X{ C〇s0 -sin6^T^~| cos <9 丨 j 200844426 3 ·影像平移: 在本發明的影像檢測方 量測位置,使批法可…、付竭枝將树移至固定的 點座標(X。,y。,z。)人…丨位决差,其觀念是將影像中的某- 法在本研究運用於影像平移到量測的 乂、)為新的點座標。 “mm中表不,(x•’ X.y.z. 以矩陣表示National Instruments LabVIEW 7.0 is written with IMAQ Vision Builder6; a data capture card (50) for receiving the voltage signal transmitted by the sensor (3 ,), and can be booted and installed on the computer (6) 0) The inspection software; and the control of the 200844426 body can drive the digital type, and then the captured image is transmitted - the image capture card (7G), which is subject to the inspection soft photography device (4 Q) The image of the object is taken and stored in the computer (60). ' Secret ^, if the inspection software is - comparison test software, then the computer (60) is installed two: body: for construction = good sample image, the comparison test software can be processed for the object to be tested ~ image The image processing system includes the image processing of the object of the lining object. In order to increase the inspection speed, the system can still detect without setting the direction of the object to be placed, and the image processing includes image translation, shadow 2 and f.尔 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Not qualified § 遽 遽. Please refer to the specific embodiment of the basic technical features for accurately controlling the movement of the satellite platform (i Q) as shown in the first and second figures. The drive mechanism (2(5) contains. One device RS232 ( 2 1 ), it is electrically connected to the computer (6 〇); - PC3 motor controller (2 2 ), which is electrically connected to the signal device (2 u, and can be driven by one of the computer (6 〇)) Controlled; and at least - a stepper motor (2 3 ) 'which is driven by the PC3 motor controller (2 2 ) to drive the satellite platform (10) to move in the plane of the XY axis. As shown in FIG. 2, in order to reinforce the light source that is irradiated on the object to be inspected (i), the specific embodiment of the above basic technical features further includes a shelf provided with a digital camera (40). (〗 〖i), the shelf (丨) is provided with - for two: 10 200844426 The digital photographic display (4 Q) auxiliary lighting ring LED lamp (m, the ring honey L ED lamp (1 2) Projecting the light source from top to bottom. Referring to the specific embodiment of the above-mentioned basic technical features, the computer 0) 匕3 has a display device (6 1 ), And it is selected from one of a personal computer and a notebook computer. The following includes: (2) The detection method of the present invention, please refer to the method of the first and second pictures of the present invention. Work platform (1〇), a drive mechanism (2〇), set (40), sensor (1)), a data pick-up card (5〇), - image t photography) and - including - display Computer (6 〇), the computer: card (7 software inspection; UJ female Jun has a check to place the object to be tested (1) on the work platform (1 〇). Drive the social platform (ig) with the drive mechanism (2Q) Moving, moving the object to be detected (1) to the position of the digital camera Y; v 4 〇) can capture the data with the data capture card (5 〇) received by the sensor (3 shout, and start the computer (6 test (4); k of the voltage 乂 验 L 控 控 控 控 彡 彡 ( ( ( ( ( ( ( ( ( ( 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 Take the object (work) and find the image to transfer the copper to the computer (6 〇) cap; for the image, the inspection software can be a pair of inspection software or a test Software, inspection soft 200844426 The image of the object (i) is processed by the object, and the processing includes the residual material removal, the image rotation, and the image determination_processing' job inspection to image the good sample image and the image of the object to be processed immediately. Cong __ 'The wealth of the crane piece (1), when the object (1) is a qualified piece, a qualified signal is issued, and when the object (1) is a non-conforming piece, a -failure signal is issued. If the inspection software is - comparison The test software establishes a good sample image prior to the comparison test software before the comparison. (3) The present invention compares the soft palate with the hip implementation of the 3 · 1 sample interface, as shown in the first and the tenth, For the user to create a sample image, the comparison test software is displayed on the display of the Lai (60) ^ (6 i ) - the sample interface. The sample interface includes a display-photo button, a key to stop the money, and the display has A plurality of parameters that can be set, and then the sample object is placed on the jade platform (i Q) i, and the digital device (4 G) is used to practice the object of the good product, and the sample is input in the inter-subject interface. File name and path, then press the comparison key in the good product The image of the sample object is selected by the rectangular circle (such as the tenth-picture), and the image of the good sample object is stored in the computer (6G), and an image of the sample object of the sample can be created. 3 · 2 inspection interface μ See the first, ninth and twelfth and thirteenth and thirteenth diagrams for the user to perform the object inspection operation, the comparison inspection software on the computer (6 Q) - display (6丄) The - test interface is displayed. The test interface includes a display-test key, an object pass light, a pass light, a ^^ pass light, and a plurality of pre-settable parameters including the work platform (1 ( )) Movement speed, moving distance, the digital camera (4 〇) 200844426 Photo time, total number of pieces, number of unqualified parts, defective rate, and interface of pc3 control (2 2 ) and channel transmitted by PCI-6519 signal 'The test software is automatically added to the calculation at the same time as the test. The comparison test software can select a plurality of characteristic inspection areas on the image of the object (1), and compare the images of the sample age of the product, and the bottle is displayed in the interface, and the inspection interface is on the computer ( 6 (5) - Display (6 workers) double display 'When the test recording (1) is good, the qualified light is missing, and when the object (1) is a defective product, the defective light is on (such as the busy, thirteen figure) 3) 3 image rotation, positioning and translation in order to increase the inspection speed, the money is not _ 摆 赖 赖 , , , , , , , , 衫 衫 衫 衫 衫 衫 衫 衫 及 及 及 及 及 及 及 及 及 及 及 及 及 及 影像 及 影像 影像 影像 影像 影像: Please refer to the third figure, the image of the captured image, w ώ 影像 中 娜 娜 娜 X X X, y2), butterfly image; ^ point (^), and the image to be detected (10) degrees can be Equation (1) is sought. : Calculate the angle like the feature center point difference, rotate. 'Shaw face 鄕 formula is as shown in equation (2). Image 2 · Image positioning: As shown in the second figure, ° 乂 ~ image center point difference calculation angle set image feature, use image feature positioning method to seat:: set each image The area to be tested, and the line is two tan, λ - y丨Χ2 - X{ C〇s0 - sin6^T^~| cos <9 丨j 200844426 3 · Image translation: in the image detection side measurement of the present invention Position, so that the batch method can..., exhaust the branch to move the tree to a fixed point coordinate (X., y., z.) People... 丨 position decision, the idea is to use a certain method in the image in this study The image is translated to the measured 乂,) as a new point coordinate. "mm is not shown, (x•’ X.y.z. is represented by a matrix
ZZ
χΛy. z. J ο ο ΧΊ lx 〇〗ο ΟΟ ι (3) 3·4影像殘影處理 凊參看第六、七_示,在動_攝下邊界會有殘影現象,使得 邊界模糊,在射出件外表娜地方,此殘影像素值會影響比對檢驗軟 體之觸,然而,本發明之比對檢驗軟麟姻處理的方法消除 殘影灰階值,使邊界不模糊,減用—中值濾波H過_訊讓影像檢 驗增加精準度,並利用特徵影像定位定出了影像座標,而可制定射出 件欲檢驗的區域,再使用平移比對的方法,配合LABVIEW程式中,可 調整的相似度,藉以配合所允許的裕度,設定其門檻值以增加精確度, 然而,該殘影處理係將影像常數灰階值30降低到0,此殘影灰階常數 30由IMAQ Vision Builder軟體去量測所得,並經過此運算子處理後, 使該物件之實體邊界而得以更為清楚顯示,如公式4所示。 g(^y)χΛy. z. J ο ο ΧΊ lx 〇〗 ο ΟΟ ι (3) 3·4 image afterimage processing 凊 See the sixth and seventh _ shows that there will be residual image on the boundary of the moving _, making the boundary blur, in The appearance of the shot is external, and the image value of the residual affects the touch of the comparison software. However, the method of checking the soft lining of the present invention eliminates the residual gray scale value, so that the boundary is not blurred, and the use is reduced. The value filter H _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Similarity, in order to match the allowed margin, set its threshold to increase the accuracy. However, the afterimage processing reduces the image constant grayscale value 30 to 0. This afterimage grayscale constant 30 is used by IMAQ Vision Builder software. The measurement is measured and processed by this operator to make the physical boundary of the object more clearly displayed, as shown in Equation 4. g(^y)
I 〇Jf f(x,y)<N ⑷ 200844426 3·5影像相似度 請參看第八圖所示,本發明之比對檢驗軟體包含有一相似度比對 的步驟,其包含有一相關係數y如公式5,其被定義為: L-\ K-\ - _ ΣΣ y) ~ s)(f U+i,y + j) - /(/, j)) ^--- (5) . L-\ K-i _ JL-l ΑΓ-1 _ 1I 〇Jf f(x,y)<N (4) 200844426 3·5 image similarity, as shown in the eighth figure, the comparison test software of the present invention comprises a step of similarity alignment, which comprises a correlation coefficient y As in Equation 5, it is defined as: L-\ K-\ - _ ΣΣ y) ~ s)(f U+i,y + j) - /(/, j)) ^--- (5) . L -\ Ki _ JL-l ΑΓ-1 _ 1
{TT(8^ + Uy + j) - ^)2ΣΣ(/u j) - /a;))2 V X=0:v=0 X=〇K=〇 ί= 〇,l,2,.....M — 1, j = 0,1,2....iV — 1 在AfxiV的一幅影像内尋找的子影像咖,y)之匹配, gU,>0和/Uy)之間移動關係為(/,力,g是g中之像素的平均值,/是g 在目前位置下重合的區域/中的平均值,而加總是在7和§共同座標下 進行的,y的最大值表示/最匹配g的位置,該相關係數的值從―丨到+1, T的正負符號表示相關的方向,7的絕對值恰好是丨代表完美的線性 關係’接近零,不論正或負,表示f與g很少或沒有關連,兩個變數 的相關強度是看它的絕對值,該相關係數的符號只是說明是正向(+) 或反相(-),該相關係數+〇· 9與-〇· 9代表一樣的強度,且其依比例調 整範圍0至1000。 (4 )·本發明量測檢驗軟醴之具髏實施 4·1影像量測軟髖之應用 本發明之影像量測軟體主要是用於該物件(丄)影像尺寸的量測, 並利用1測原理量_物件(i )尺寸是否在公差範_,該影像量 測軟體自動記錄四筆的㈣,可供操作者觀_物件⑴尺寸的變 化’並且具有计异不良品件數以及不良率件數的功能,當該物件(1 ) 15 200844426 為不合格件時則發出 為合格件時則發出一合格訊號,當該物件( 一不合格訊號。 、前界:像:::例中之了仃心例,该影像量測軟體係利用影像檢 別邊界與像素近鄰連接以及次像素原理量測該物件⑴尺寸,而且 該影像量測·軟體於該電腦(60)之 =且 、b 1)上•顯不一量測 ”面’該影像量測軟體係利用影像特徵定位的方法,判斷出該物件(1) 擺放方向,在定位出欲量測位置,當尺寸容許公差範圍内則於贫量 測介面上亮㈣燈,(如第十域所示),並顯示出量測數值當該物 件(1)在公差容許範圍外則點亮警示燈,並且自動計算不良件數及 不良率以及顯示四筆所量測過的資料。 4·2像素間基本關係 1 ·像素近鄰: _凊參看第十四圖所示,判斷像素間是否連通,並蚁其是否為近 I而且其㈣度是否滿足特定的相似準則,8近雜㈣娜⑽): ^ χ2、χ3、χ4、χ5、λτ6Ί8為X的8-近鄰,以乂⑻表示。 2 ·距離量測: 清參看第十五圖所示,對座標分別為(χ,y),(s,t)的像素ρ與q, ” q門的d8距離定義成叫卜—物-彳),與(x,y)^的距離 】於或等於某雛r的像素形成以(x,y)為中㈣正方形,例如與(x,y) 的A距離Λ|、於或料2的像素形成下列距離峡的輪廓,具有A的像 素是(x,y)的8-近鄰。 200844426 3 ·影像校正: 睛翏看第十六騎示,本發明之影像量測軟體包含有影像校正步 驟,用以校正該數位式攝影裝置(4 〇)操取該影像時產生的圓桶效 =_dd_rtlGn),郷像校正步驟是建立在二财同座標系統之座 仏轉換,分縣影像座齡統和鮮賴祕,再將格點影像影最左 上角格點之中灿,設為兩個座標系統的參考點,將此參考點定為座 =原點_,由原點向右為正χ軸方向,樣軸下紐γ抽方向, 计:出影像座標系統上每個格點的中心點座標,再將每個格點中心點 座標’轉魅標準鋪綠上_·置上,鮮鍊祕上每個格 點在X軸和γ軸賴隔的距離相等,座轉換完成後即可消除圓桶效應。 4 ·影像單位轉換: 尺放測軟體包含有—影像單位轉換步驟,其係將標準 β w數位式攝影裝置(4 〇 )下,量測lmm下有幾個像素, 將得到的像素除於lmm,而可求得每_個像素之縣單位。。 4· 3影像邊界檢測 1 ·微分梯度法: 么凊參看第十七騎示,本發彡像制軟體之第—種該影像邊界 檢測的方法,細齡梯度絲做騎彡像邊界制,其錢求得 概略:置,再以喃法反覆地求&較精確的位置即可制次像素精 =古虽物件⑴與背景的對比明顯時,物件⑴影像的邊緣灰階 曰遽的變化’若將影像作導數處理,其邊緣灰階變化之反曲點會 疋階導數的極大值,而二階導數處理時值為零,再利用影像—階與 200844426 ===€峨__仙軸鍋邊界。_ -月參看第十八、十九圖所示,本發明影像量 像邊界檢測的方法,係以輪 μ 4—種心 掃描方式來找出物件⑴之邊界後予以 搜尋出來的邊界點,將〃拙所奴的範圍内 , ',、邊界點連接,而可得知該物件⑴之輪廊。 4 · 4董測界面 料-、十九及二十騎示,將待測物件⑴放置平 〇)上’ _平台U 0)移動到數位式攝影裝置( =rr7G)嶋糊,細蝴蝴姻,I量 曰顯不出量測數值,物件尺寸在公差容許範圍中,盤干燈古 Ϊ料該=ΓΓ’瞻及不响及㈣吻量二 貝枓,以利品質之監控(如第十九圖所示)。 參看第-圖及第二十至二十三晒示,本翻之該影像量 抓體包g有―尺寸量測步驟,錢將該數位式攝影裝置(4 0)操 取之該影像進行影像特徵之揭取健(如第二十三圖所示),再利用該 影雜徵定位的方式去算出所欲量測的位置(如第二十圖所示)。Λ (5) ·本發明可應用的領域 本毛月藉由上述技術特徵的建立,不僅能夠檢測塑膠射出的產 品,更能針對各項企業在生產線上監控產品,在本檢測系統中,只要 更改樣本圖樣就能,即可檢測不同的產品,#物件(i)檢測後為良 品時,則出現合格的訊息,不良產品則出現不合格的訊息,藉此可= 200844426 早發現問題並解決問題,以避免發生大量生產不良品的窘境,減少因 生產失誤所造成財產上的損失。 本發明設置目的就是將檢測產品予以自動化,使傳統工廠節省人工 檢測的成本、更能結合生產、檢測為一體,而且透過線上自動檢測, 以降•低因人為疏失所產生的瑕疵產品,並可製定出一套良品的規範, 作為監控製品的品質,加快了檢驗速度同時也降低了成本人工檢驗成 本較高,進而提昇了產品的品質。 本發明之檢測系統及其方法能夠應用在相當多的產業,如金屬表 面檢視;玻璃製品之裂痕、氣泡與缺損檢視;製藥業之包裝與内容物 檢視;製藥業藥丸斑點、缺角、触裂之檢視;燈泡檢視系統:印刷 電路板之導線、焊點、與零件完整性之檢視;印刷電路板與積電路之 光罩檢視;鍵盤按鈕_與檢視;汽車業儀表自動檢視系統;監視器 線性度檢視;及食品業之包裝與内容物檢視。 (6) ·本發明具髏實施的運作 明參看第一、二圖所示,首先將使用者可於電腦(6 〇)之樣本 界面上建立-良品的樣本物件影像,再將待檢測物件(丄)透過自動 生產線而放置缸作平台(1 ◦)上,使用者可於電腦(6 〇 )中預 先設定驅動機構(2 Q)移動的距離及速度,使該工作平A (丄〇) 於設定範圍内以軸及γ軸向移動;當工作平台(i 〇 )嫩感測 為(3 0 )附近時’該感測器(3 〇 )感應該物件⑴時產生 壓訊號送至資料擷取卡(5 〇 ),該_取卡(5 〇 )啟動該電腦⑶ 200844426 彡像娜卡鶴触摘料置(切) =感倾⑴舞_取健,__取 _ (6 0)中儲存,此時,該比對檢驗軟體對該物件⑴㈣ 影像進行殘影消除、影像旋轉以及雜定位的該影像處理並且將該 樣本.物件雜與即時擷取之郷像進行複數個檢驗區域的比對及檢 則同時電細(6 0)再以影像量測軟體量測該物件的影像尺寸,並 利用里測原理物件尺寸是否在公絲_,該影像量測軟體自 動記錄四_龍,可賴作者齡該解財的·,並且具有計 算不良品件數以及料特數的魏,#該物件⑴之影像符合該 樣本影像時’則透過電腦(6 〇 )之顯示器(6 1 )發出-合格訊號, 萬忒物件為不合格件時則發出一不合格訊號。 (7) ·結檢 本發明之檢驗軟體可運用於各種的射出件,並可不限制射出件的 檢測擺放方向’喊少了檢驗上許多的關,如物品槪方向只檢 驗易損壞的部位,如此可加快檢驗的速度,而不減其精確性更能滿 足業界所需要,以現代生產的方絲看,動力韻將產品帶入大量生 產的境界,而全自動化技術將同一產品量產增加,在大量生產時期, 進而提升品質、降低成本,惟,生產、製造分戏爭激烈的環境下而 衍生出的結果導致利潤降低、因而演變成失去經營的價值。 本發明係利用影像技術建構一台線上之影像檢測系統,尤其用來 檢測塑膠射出件的損壞以及作為射出件品質的控管的依據,由於人工 檢驗會有視覺上的誤差,檢驗速度也較慢:反觀本發明之影像檢測系 200844426 統不僅速度快、穩定性高,還具有下列諸多的特點: 1.本發明已完鱗構—台可檢顧膠射出件之影像檢_統,可靠 =’由谢物著轉可達1%,請個嶋所檢 確度顯者水準可達1〇/〇。 壞=發0少檢驗上許多_,如物品擺財向、只檢驗易損 口―’加快了檢驗的速度,而不減其準確性,且影像檢測系統能 八用於母種射出件,更能滿足業界所需要。 —3·本發明可由電财觀察不良品損壞縣因触改善模具參數設 疋’再由奸率的大賴動,就得考航形的條件,立即改善影響因 素,才能真正落實品質管理。 / 4·本發明可以針對同—個射出件量測⑽次最大變動量誤差為 111可罪度顯著水準可達1%以1〇〇讎本,在比較游標卡尺量測 …U象仏/職統里測,最大誤差百分比Q _,準確度顯著 1%〇 逆 =上所述’僅為本發明之—可行實侧,並_嫌定本發明之 專利範圍,凡舉依據下列申請專利範圍所述之内容、特徵以及其精神 而為之八轉化的等效實施’皆應包含於本發明之專概圍内。本發 明之方法及其機構,除上述優點外,並深具產業之利用性,可有效改 口 t用斤產生之缺失’而且所具體界定对請專利顧之特徵,未見 於同類物件,故而具實祕與妙性,已符合㈣賴縣,麦依法 ”文提出申π ’心触依法彳好專利,以維護本中請人合法之權 益。 200844426 【圖式簡單說明】 第一圖係本發明檢測系統實施之示意圖; 务一圖係本發明檢測系統實施之另一示意圖; 第三圖係本發明影像特徵中心點差異計算角度之示音 第四圖係本發明影像旋轉之實施示意圖; 第五圖係本發明影像定位之實施示意圖; 第六圖係本發明殘影像之示意圖; 第七圖係本發明殘影處理實施之示意圖; 第八圖係本發明樣本比對關係圖; 第九圖係本發明影像比對系統介面之示意圖; 第十圖係本發明建立樣本介面實施之示意圖; 第十一圖係本發明圈選樣本介面實施之示意圖; 第十一圖係本發明檢驗介面合格顯示之示意圖; 第十二圖係本發明檢驗界面不合格顯示之示意圖; 第十四圖係本發明像素近鄰實施之示意圖; 第十五圖係本發像校正之校正圓點圖之示意圖; 第十六圖係本發明導數與物體邊緣賴係示意圖; 第十七圖係本發明輪廓搜尋之示意圖; 第十八圖係本發明邊緣檢測灰_化圖之示意圖; 第十九_本發測界面之實施示意圖; =-十圖係本發明量測物件邊界之實施示意圖; 第二十-®縣發_件量财向實施之示意圖; 200844426 第二十二圖係本發明量測物件特徵之實施示意圖; 第二十三圖係本發明量測物件特徵之結果示意圖。 【主要元件符號說明】 (1)物件 (1 1 )置放架 (2 0)驅動機構 (2 2 ) PC3馬達控制器 (3 0)感測器 (5 0)資料擷取卡 (61)顯示器 (10)工作平台 (1 2)環型LED燈 (2 1 )訊號器RS232 (2 3)步進馬達 (4 0)數位式攝影裝置 (6 0)電腦 (7 0)影像擷取卡{TT(8^ + Uy + j) - ^)2ΣΣ(/uj) - /a;))2 VX=0:v=0 X=〇K=〇ί= 〇,l,2,.... .M — 1, j = 0,1,2....iV — 1 The sub-image coffee found in an image of AfxiV, y) matches, gU, >0 and /Uy) For (/, force, g is the average of the pixels in g, / is the average of the areas in which g is coincident at the current position, and the addition is always performed under 7 and § common coordinates, the maximum value of y Indicates / most matches the position of g, the value of the correlation coefficient is from 丨 to +1, the sign of T is the relevant direction, and the absolute value of 7 is exactly 丨 represents the perfect linear relationship 'close to zero, whether positive or negative, Indicates that f and g are little or not related. The correlation strength of the two variables is the absolute value of the variable. The sign of the correlation coefficient is only a positive (+) or an inversion (-), and the correlation coefficient is +〇·9 and -〇·9 represents the same intensity, and its scale is adjusted from 0 to 1000. (4)·The invention measures the soft palate and implements the 4·1 image measurement soft hip application. The image measurement of the present invention The software is mainly used for measuring the image size of the object (丄). Using the 1 measurement principle quantity _ object (i) size is in the tolerance range _, the image measurement software automatically records four (four), for the operator to view the object (1) size change 'and has the number of defective products and The function of the number of defective parts, when the object (1) 15 200844426 is a defective piece, it will send a qualified signal when it is issued as a qualified piece, when the object (a failed signal., front boundary: like::: In the case of the heart, the image measurement soft system measures the size of the object (1) by using the image detection boundary and the pixel neighbor connection and the sub-pixel principle, and the image measurement software is used in the computer (60). b 1) On the upper and lower measurement “face” The image measurement soft system uses the image feature positioning method to determine the orientation of the object (1), and to locate the desired measurement position. Inside, the light (4) light is on the poor measurement interface (as shown in the tenth field), and the measured value is displayed. When the object (1) is outside the tolerance tolerance, the warning light is illuminated, and the number of defective parts is automatically calculated. And the rate of non-performing and the measurement of four strokes The data. 4·2 basic relationship between pixels 1 · Pixel neighbors: _凊 See the fourteenth figure, determine whether the pixels are connected, and whether the ant is near I and whether its (four) degrees meet certain similar criteria, 8 Near Miscellaneous (4) Na (10)): ^ χ2, χ3, χ4, χ5, λτ6Ί8 are 8-nearest neighbors of X, denoted by 乂(8). 2 · Distance measurement: See the fifteenth figure, the coordinates are (χ , y), (s, t) pixels ρ and q, "q gate d8 distance is defined as called - object - 彳), and (x, y) ^ distance] at or equal to a young r pixel formation Let (x, y) be the middle (four) square, for example, the distance A from (x, y) 、 |, or the pixel of material 2 to form the contour of the following distance gorge, the pixel with A is (x, y) 8- Close neighbor. 200844426 3 · Image Correction: The image measuring software of the present invention includes an image correcting step for correcting the effect of the drum generated when the digital camera (4 操) operates the image. =_dd_rtlGn), the key correction step is based on the coordinate conversion of the second-community coordinate system, the county image base age and fresh secret, and then the grid image shadow top left corner of the grid can be set to two The reference point of the coordinate system, the reference point is defined as the seat = origin _, the direction from the origin to the right is the direction of the positive χ axis, and the direction of the sample axis is γ 抽, counting: each grid point on the image coordinate system Center point coordinates, and then set the coordinates of the center point of each grid point to the enchantment standard green _·, the distance between each grid point on the X-axis and the γ-axis is equal, and the seat conversion is completed. Can eliminate the drum effect. 4 · Image unit conversion: The ruler test software includes the image unit conversion step, which is to measure the standard β w digital camera (4 〇), measure several pixels under 1mm, and divide the obtained pixels by lmm. And can be obtained for every _ pixel of the county unit. . 4·3 Image Boundary Detection 1 · Differential Gradient Method: 凊 凊 第 第 第 第 第 第 第 凊 凊 凊 凊 凊 凊 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第 第The money is rough: set, and then use the method to find the & more precise position to make the sub-pixel fine = ancient object (1) when the contrast with the background is obvious, the object (1) image edge gray scale 曰遽 change ' If the image is treated as a derivative, the inflection point of the gray-scale change of the edge will be the maximum value of the derivative of the order, and the value of the second-order derivative is zero, and then the image-order and 200844426 ===€峨__xian shaft pot boundary. _ - month, as shown in the eighteenth and nineteenth, the method for detecting the image boundary of the image of the present invention is to find the boundary point after searching for the boundary of the object (1) by using the wheel μ 4 - seed scanning method, Within the scope of the slaves, ', the boundary points are connected, and the wheel gallery of the object (1) can be known. 4 · 4 Dong measurement interface material -, 19 and 20 riding, the object to be tested (1) placed on the flat 〇) _ platform U 0) moved to the digital photographic device (= rr7G) paste, fine butterfly The amount of I can not be measured, the size of the object is within the tolerance range, and the dry light of the lamp is the same as that of the ΓΓ 瞻 瞻 瞻 瞻 四 四 四 四 四 四 四 四 四 四 四 四 四 四 枓 枓 枓 枓 枓 枓 枓 枓 枓 枓 枓 枓 枓Figure 9). Referring to the first picture and the twentieth to twenty-three sun exposure, the image capture body package g has a "size measurement step", and the image is taken by the digital camera device (40). The feature is extracted (as shown in Fig. 23), and the location of the image is calculated by using the method of positioning the image (as shown in the twentieth figure). Λ (5) · Fields in which the present invention can be applied By the establishment of the above technical features, the present invention can not only detect plastic injection products, but also monitor products on various production lines for various enterprises, as long as the detection system changes The sample pattern can be used to detect different products. When the object (i) is a good product after the test, a qualified message appears, and the defective product has an unqualified message. This can be used to determine the problem and solve the problem early. To avoid the dilemma of mass production of defective products and reduce the loss of property caused by production errors. The purpose of the invention is to automate the detection products, so that the traditional factory can save the cost of manual testing, and can combine production and testing as one, and automatically detect through the line to reduce the low-lying products caused by human error and can be formulated. A set of good specifications, as the quality of the monitoring products, speed up the inspection speed and reduce the cost of manual inspection costs, and thus improve the quality of the product. The detection system and method of the present invention can be applied to a considerable number of industries, such as metal surface inspection; cracks, bubbles and defect inspection of glass products; packaging and contents inspection of the pharmaceutical industry; spot, missing angle, and cracking of pills in the pharmaceutical industry Inspection; lamp inspection system: printed circuit board wire, solder joints, and parts integrity inspection; printed circuit board and integrated circuit reticle inspection; keyboard button _ and inspection; automotive industry instrument automatic inspection system; monitor linear Degree inspection; and food industry packaging and content inspection. (6) The operation of the present invention is as shown in the first and second figures. First, the user can create a sample image of the good object on the sample interface of the computer (6 ,), and then the object to be detected (丄) Place the cylinder platform (1 ◦) through the automatic production line. The user can pre-set the distance and speed of the drive mechanism (2 Q) in the computer (6 〇) so that the work level A (丄〇) In the setting range, the axis and γ axis move; when the working platform (i 〇) is in the vicinity of (3 0 ), the sensor (3 〇) generates the pressure signal to the data acquisition when sensing the object (1) Card (5 〇), the _ card (5 〇) starts the computer (3) 200844426 娜 like Nakahe touch material set (cut) = Sense tilt (1) dance _ take health, __ take _ (6 0) save At this time, the comparison verification software performs image processing of image removal, image rotation, and mislocalization on the image of the object (1) and (4), and compares the sample, the object, and the image of the instant capture to a plurality of inspection areas. And the inspection is performed at the same time (6 0), and then the image size of the object is measured by the image measuring software, and Using the principle of the measurement principle, whether the size of the object is in the male wire _, the image measurement software automatically records the four _ dragon, can rely on the author's age to solve the wealth, and has the number of defective pieces and the number of materials, Wei, #. (1) When the image conforms to the sample image, 'the signal is sent through the monitor (6 1) of the computer (6 )), and the unqualified signal is issued when the object is unqualified. (7) · Checking The inspection software of the present invention can be applied to various injection parts, and can not limit the detection direction of the injection parts, and the number of inspections is reduced, such as the inspection of the damaged parts. This can speed up the inspection without compromising its accuracy to meet the needs of the industry. With the modern production of square wire, the power rhyme brings the product into the realm of mass production, and the full automation technology increases the mass production of the same product. In the mass production period, the quality is improved and the cost is reduced. However, the results derived from the fierce competition in production and manufacturing lead to lower profits and thus become the value of losing business. The invention utilizes image technology to construct an on-line image detection system, especially for detecting damage of plastic injection parts and as a basis for controlling the quality of the injection parts, since the manual inspection has visual errors and the inspection speed is slow. In contrast, the image detection system 200844426 of the present invention not only has high speed and high stability, but also has the following many features: 1. The invention has completed the scale structure - the image inspection of the glue injection piece can be checked, reliable = ' It can be up to 1% by thank you, please check the level of the tester to reach 1〇/〇. Bad = send 0 less test on many _, such as goods arbitrage, only test the vulnerable mouth - 'accelerate the speed of inspection without reducing its accuracy, and the image detection system can be used for the parental injection, even more Can meet the needs of the industry. —3· The invention can be used to observe the damage of the defective products by the electricity and the damage to the county. It is necessary to test the conditions of the aircraft and immediately improve the influencing factors to truly implement the quality management. / 4· The invention can measure the same shot ejection (10) times, the maximum variation error is 111, the degree of sin can be up to 1% to 1%, and the comparison of the vernier caliper...U symbol 仏/professional In the test, the maximum error percentage Q _, the accuracy is significantly 1% hiccup = the above is only the present invention - the feasible side, and _ the scope of the patent of the present invention, according to the scope of the following patent application The equivalent implementation of the content, the features, and the spirit of the eight transformations are intended to be included in the scope of the present invention. The method and the mechanism of the invention, in addition to the above advantages, are deeply utilized by the industry, and can effectively change the lack of use of the pounds, and the specific definition of the patents is not found in the same kind of objects, so The secret and the subtlety have been met (4) Lai County, Mai Law, "Proposal to apply for π" to touch the patent according to law, in order to maintain the legitimate rights and interests of the applicant. 200844426 [Simple diagram] The first picture is the detection of the present invention Schematic diagram of system implementation; FIG. 1 is another schematic diagram of the implementation of the detection system of the present invention; FIG. 3 is a diagram showing the implementation of the image rotation of the present invention; The schematic diagram of the implementation of the image localization of the present invention; the sixth diagram is a schematic diagram of the residual image of the present invention; the seventh diagram is a schematic diagram of the implementation of the residual image processing of the present invention; the eighth diagram is the comparison diagram of the sample of the present invention; The schematic diagram of the interface of the image comparison system is invented; the tenth figure is a schematic diagram of the implementation of the sample interface of the present invention; the eleventh figure is the implementation of the circled sample interface of the present invention. The eleventh figure is a schematic diagram of the test interface qualified display of the present invention; the twelfth figure is a schematic diagram of the unqualified display of the test interface of the present invention; the fourteenth figure is a schematic diagram of the implementation of the pixel neighbor of the present invention; Schematic diagram of the correction dot pattern of the image correction; the sixteenth diagram is a schematic diagram of the derivative of the invention and the edge of the object; the seventeenth diagram is a schematic diagram of the contour search of the present invention; and the eighteenth figure is the edge detection gray of the invention Schematic diagram of the figure; 19th implementation diagram of the present measurement interface; =-10 diagram is a schematic diagram of the implementation of the boundary of the measurement object of the present invention; schematic diagram of the implementation of the twentieth-to-county issue of the amount of money; 200844426 Twelfth figure is a schematic diagram of the implementation of the characteristics of the measuring object of the present invention; Figure 23 is a schematic diagram showing the result of the characteristics of the measuring object of the present invention. [Description of main component symbols] (1) Object (1 1 ) shelf (2 0 ) drive mechanism (2 2 ) PC3 motor controller (3 0) sensor (50) data capture card (61) display (10) work platform (1 2) ring type LED light (2 1) signal device RS232 (2 3) Stepper motor (40) digital camera (6) 0) Computer (7 0) image capture card