TW201210734A - Online measuring method and apparatus for work pieces of machine tools - Google Patents

Online measuring method and apparatus for work pieces of machine tools Download PDF

Info

Publication number
TW201210734A
TW201210734A TW099129641A TW99129641A TW201210734A TW 201210734 A TW201210734 A TW 201210734A TW 099129641 A TW099129641 A TW 099129641A TW 99129641 A TW99129641 A TW 99129641A TW 201210734 A TW201210734 A TW 201210734A
Authority
TW
Taiwan
Prior art keywords
workpiece
image
tested
control device
platform
Prior art date
Application number
TW099129641A
Other languages
Chinese (zh)
Other versions
TWI419762B (en
Inventor
Yung-Cheng Wang
Jui-Chang Lin
Shih-Fong Ciou
Fu-Tun Chang
Original Assignee
Univ Nat Yunlin Sci & Tech
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 Yunlin Sci & Tech filed Critical Univ Nat Yunlin Sci & Tech
Priority to TW99129641A priority Critical patent/TWI419762B/en
Publication of TW201210734A publication Critical patent/TW201210734A/en
Application granted granted Critical
Publication of TWI419762B publication Critical patent/TWI419762B/en

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

This invention is concerned with an online measuring method for workpieces of machine tools. The measurement apparatus includes a computer, moving equipment, a clamp device and a CCD camera. The measured workpiece is fixed by the clamp device. The image of measured workpiece can be acquired by the camera. The image data are delivered to the computer by the image acquisition device. By measuring the lineation of the workpiece, the geometrical parameters of the measured object can be figured out. By the controlling and clamp device, the workpiece can be moved and rotated against the CCD camera. For this reason, the profile of the workpiece at every side can be measured. With the developed method, the real-time measurement and the enhancement of the measurement precision can be realized.

Description

201210734 六、發明說明: 【發明所屬之技術領域】 本發明係關於一種绩μ曰 裡綠上I測方法及裝置,尤指一種用 以量測手動式工具機工件蠄、 件線上Ϊ硎方法及裝置者。 【先前技術】 目前對於手動式加工機 機工件的尺寸量測,大多透過人 工(手動或目視)或者機槠的古— 、方式進行量測,雖可量測出工件 的幾何尺寸,但既有的詈.、則古 '方法不僅容易造成量測上的誤 差,進而影響加工的準,Β & 干啼没且無法即時地於線上對於工 件進行量測,會相斜接古旦 相對匕里測時所需之的人力與成本,誠 有加以改進之處。 【發明内容】 人有鑑於目前手動 無法即時且準確量 試驗,終於發展出 目的係在於提供— 其係可即時地且準 測,進而提供一可 的,本發明係提供 流程係包含有: 備一量測裝置, 式加工機工件的尺寸 測的不足與問題,特 一種能改進現有缺失 種工具機工件線上量 確地對於工具機工件 即時量測及提高量測 —種工具機工件線上 量測裝置係設有一控 的移動裝置、一設於 因此,本發明 量測方法及裝置, 經過不斷的研究與 之本發明。 本發明之主要 測方法及其裝置, 的尺寸參數進行量 精度之目的者。 該 為達到上述目 量測方法,其操作 儀器設置:準 制裝置、一與該控制裝置相電性連接 201210734 且與該控制裝置相電性連接的夹制裝置及- 置相雷制裝置移動而設於該移動裝置上並與該控制裝 置相電性連接的影像操取裝置,其中 像處理運算能力及人機控制介面的功能;£係丄 衫像處理與量測:將一拉:目丨丨沾丫从m 寺/νί的件固定於該夾制裝置 C裝=制裝置驅動該移動裝置的方式,使該影像擷 取Pi 以件料觀進行影㈣取,並將所操 送至該控制裝置中進行影像的處理與分析,藉 外::Γ 件的外摩影像,並透過量測該待測工件的 卜郭衫像以求出該待測工件的尺寸參數;以及 =動量测.透過該控制裝置驅動該移動裝置及該夹制 取F詈^式’使待測工件可隨著夹制裝置而相對該影像擷 取裝置產生移動斑鐘細 “讓該影像㈣裝置可自動地 •;待測工件的各側外觀影像進行量測。 測工在影像處理與量測的操作步驟中,在擷取待 2 =料,係先絲㈣待心件外觀的彩色 =彩色影像傳送至該控制裝置中,對於所棟取到的彩 y進仃灰階化的轉換’使該彩色影像轉換成-灰階影 像’再對該灰階寻傻、# _ 、 換為-里白与傻' 卩二值化的轉換’使該灰階影像轉 ‘,、〜像,错以取得該待測工件的外廓影像。 t進-步’在影像處理與量測的操作步驟中,係量測 =該待測工件外廊影像的圓弧半徑、段差與直徑的尺寸參 本發明另提私,, 含有…= 機工件量測裝置’其係包 m…㈣裝n制裝置及—影像搁取 201210734 裝置,其中: 電腦及一控制器,該控制器係與 該控制裝置係設有一 該電腦相電性連接; @移動裝置係與 -、且仰电玍逑接且設有兩多軸 向移動平台及一滑動平台,兩 肉夕轴向移動平台係平行設置 且分別與該控制裝置相電性連接,其中一多軸向移動平台 係設於-工具機頂®,而該滑動平台係設於另一多軸向移 動平台上且伸設至工具機上方;201210734 VI. Description of the Invention: [Technical Field of the Invention] The present invention relates to a method and apparatus for measuring I in a green area, especially a method for measuring a workpiece on a manual machine tool Device. [Prior Art] At present, the measurement of the size of the workpiece of the manual machining machine is mostly measured by manual (manual or visual) or the ancient method of the machine. Although the geometrical dimensions of the workpiece can be measured, there are The 詈., 古古' method is not only easy to cause errors in the measurement, but also affects the accuracy of the processing, Β & dry and can not immediately measure the workpiece on the line, it will be obliquely connected to the ancient The manpower and cost required for the measurement have been improved. SUMMARY OF THE INVENTION In view of the current inability to manually and accurately test manually, it has finally been developed to provide a system that can be instantaneously and accurately measured, thereby providing a process. The present invention provides a process that includes: Measuring device, the insufficiency and problem of the size measurement of the workpiece of the processing machine, the special one can improve the existing missing tool machine tool, the online quantity is accurately measured and the measuring of the workpiece of the machine tool - the measuring device of the tool machine on-line There is a control mobile device, a measurement method and device according to the present invention, and the present invention has been continuously studied. The main measuring method and apparatus of the present invention, the dimensional parameters of the purpose of the accuracy of the purpose. In order to achieve the above-mentioned method of measuring, the operating instrument is provided: a quasi-device, a clamping device electrically connected to the control device 201210734, and electrically connected to the control device, and a phase-defining device moving An image manipulation device disposed on the mobile device and electrically connected to the control device, wherein functions such as processing computing capability and human-machine control interface; and processing of the shirt image and measurement: a pull: witness丨 丫 丫 m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m The image processing and analysis are performed in the control device, and the external image of the workpiece is measured by the external image of the workpiece, and the size parameter of the workpiece to be tested is obtained by measuring the image of the workpiece to be tested; and = momentum measurement Driving the mobile device through the control device and the F-type of the clip enables the workpiece to be tested to generate a moving spot with respect to the image capturing device along with the clamping device. "The image (4) device can be automatically •; appearance of each side of the workpiece to be tested In the operation steps of image processing and measurement, in the operation steps of image processing and measurement, the color = color image of the appearance of the heart piece is transmitted to the control device for the acquisition. The conversion of the color y into the grayscale transformation 'transforms the color image into a grayscale image' and then finds the grayscale search for stupidity, #_, and the transition to the white and stupid 卩 binary conversion The gray-scale image is transferred to ',, ~ image, wrong to obtain the outline image of the workpiece to be tested. t-step' in the image processing and measurement operation steps, the measurement = the image of the workpiece to be tested The radius of the arc, the step size and the size of the diameter are included in the invention, and include: ... machine workpiece measuring device 'the package m... (four) with the n device and the image for the 201210734 device, wherein: the computer and one a controller, the controller is electrically connected to the control device; the mobile device is connected to the - and is connected to the electric power and is provided with two multi-axial moving platforms and a sliding platform, two meats The axial movement platform is arranged in parallel and electrically connected to the control device, one of which The multi-axis moving platform is attached to the tool set top®, and the sliding platform is mounted on another multi-axial moving platform and extends above the machine tool;

該失制裝置係固設於該移動奘罢办认 θ仙 A 炒勒裒置位於工具機頂面的多 轴向移動平台上且與該控制裝 们衣置相電性連接,用以失制待 量測的工件;以及 該影像操取裝置係固設於該移動裝置的滑動平台上且 與該控制裝置相電性連接而位於待測工件的上方處,該影 像擷取裝置係、可對待測工件進行影像擷取,並將掏取社果 傳送至該控制裝置的電腦中,藉以對於該待測工件的尺寸 參數進行運算與分析。The disabling device is fixed on the mobile device, and the device is electrically connected to the control device, and is electrically connected to the control device. a workpiece to be measured; and the image capturing device is fixed on the sliding platform of the mobile device and electrically connected to the control device and located above the workpiece to be tested, the image capturing device is treatable The workpiece is measured for image capture, and the captured fruit is transmitted to the computer of the control device, thereby calculating and analyzing the size parameter of the workpiece to be tested.

進一步,_乡ϋ向移動平台係分料一第—多軸向移 動平台與-第二多軸向移動平台’其中該第一多軸向移動 平台係設於一工具機頂面,而該第二多軸向移動平台係平 行地設於該第-軸向移動平台的一側邊,該滑動平:係設 於該第二多軸向移動平台上並設有一軌道與—滑動架, 軌道係垂直設於該第二多軸向移動平台上,而該滑動架 受該控制裝置的驅動而可滑動地與該轨道相結合而位= 一多軸向移動平纟上方,該夹制裝置係固設於該移動裝 的第一多軸向移動平台的頂面,該影像擷取裝置係固設 201210734 該移動裝置的滑動架上。 再進一步’該移動裝置係分別於兩多軸向移動平台的 側邊设有一用以紀錄平台位移量的光學尺,其中透過光學 尺的債測而可得知該待測工件與該影像擷取裝置的相對位 置’且透過控制裝置計算出光學尺所偵測出的位移量。 較佳地’該影像擷取裝置係於該第一多軸向移動平台 的頂面上設有一位於待測工件下方處的背光板,其中該背 光板係可提供一白光背景,進而讓該待測工件的擷取影像 更顯清晰。 較佳地’該電腦係設有一主機、一顯示器及一輸入介 面’忒顯不器與輸入介面與該係分別與該主機相電性連接。 藉由上述之技術手段’本發明工具機工件線上量測方法 及其裝置,僅需將待測的工件固定於該夾制裝置上,即可 方便地透過該影像擷取裝置而取得夾制於該夾制裝置的待 測工件的影像,並進行灰階化轉換與三值化轉換後取得該 待測工件的外廓影像,得以精確計算該待測工件的外觀尺 寸,進而提供一可即時量測及提高量測精度之量測方法及 裝置者。 【實施方式】 為能詳細瞭解本發明的技術特徵及實用功效,並可依 照說明書的内容來實施’兹進一步以圖式(如第一至三圖所 不)所示的較佳實施例,詳細說明如后: 本發明之目的^提供—工具機工件後上量測方法及 其裒置,其係透過數位影像處理與線上即時量測的方式, 進而提供一可即時量測及提高量測精度之量測方法及裝置 201210734 者。 本發明之工具機工件線上量測方法,其操作流程係包 含有: A、儀器設置:準備一量測裝置,該量測裝置係設有一 控制裝置(10)、一移動裝置(20)、一夾制裝置(3〇)及一影像 擷取裝置(40),其中該控制裝置(1〇)係具有影像處理運算能 力及人機控制介面的功能且設有一電腦(彳彳)及一控制器 (12),该電腦(1 1)係可執行多功能的線上影像量測且設有一 • 主機(13)、_顯示器(14)及一輸入介面(15),較佳地,該主 機(13)係設有一與电荷耦合器(Charge C〇up丨^ …e, CCD)或互補金屬氧化物半導體(c〇mp丨Further, _ ϋ ϋ ϋ 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动 移动The two multi-axis moving platforms are disposed in parallel on one side of the first-axis moving platform, and the sliding flat is disposed on the second multi-axial moving platform and is provided with a track and a sliding frame, and the track system Vertically disposed on the second multi-axial moving platform, and the sliding frame is slidably coupled with the rail by the driving device and is positioned above the multi-axial moving flat, the clamping device is fastened The image capturing device is fixed to the top surface of the first multi-axial moving platform of the mobile device, and the image capturing device is fixed on the sliding frame of the mobile device 201210734. Further, the mobile device is provided with an optical scale for recording the displacement of the platform on the side of the two multi-axial moving platforms, wherein the workpiece to be tested and the image are captured through the debt measurement of the optical scale. The relative position of the device 'and the amount of displacement detected by the optical scale is calculated by the control device. Preferably, the image capturing device is provided on the top surface of the first multi-axial moving platform with a backlight located under the workpiece to be tested, wherein the backlight panel provides a white light background, thereby allowing the image to be The captured image of the measured workpiece is more clear. Preferably, the computer is provided with a host, a display and an input interface, and the input interface and the system are electrically connected to the host respectively. According to the above technical means, the method and device for measuring the workpiece on the workpiece machine of the present invention, the workpiece to be tested can be fixed to the clamping device, and the image capturing device can be conveniently obtained by the image capturing device. The image of the workpiece to be tested of the clamping device is subjected to gray-scale conversion and ternary conversion to obtain the contour image of the workpiece to be tested, so as to accurately calculate the appearance size of the workpiece to be tested, thereby providing an instant amount The method and device for measuring and improving the measurement accuracy. [Embodiment] In order to understand the technical features and practical effects of the present invention in detail, and in accordance with the contents of the specification, the preferred embodiment shown in the drawings (as shown in the first to third figures) is detailed. The description is as follows: The purpose of the present invention is to provide a method for measuring the workpiece after the workpiece and a device thereof, which are provided by means of digital image processing and online measurement, thereby providing an instant measurement and improving measurement accuracy. Measuring method and device 201210734. The measuring method of the machine tool on-line measuring method of the present invention comprises the following steps: A. Instrument setting: preparing a measuring device, wherein the measuring device is provided with a control device (10), a mobile device (20), and a measuring device. a clamping device (3〇) and an image capturing device (40), wherein the control device (1〇) has the functions of image processing computing capability and human-machine control interface, and is provided with a computer (彳彳) and a controller (12) The computer (1 1) is capable of performing multi-function on-line image measurement and is provided with a host (13), a display (14) and an input interface (15). Preferably, the host (13) ) is provided with a charge coupler (Charge C〇up丨^^, CCD) or a complementary metal oxide semiconductor (c〇mp丨)

Metal-Oxide-Semiconductor Transistor · CM〇S)f 電性連接的電氣訊號輸出人介面,該顯示器(14)與該輸入介 面Π5)係分別與該主機(1 3)相電性連接,而該控制器⑴)係 與該電腦(11)相電性連接; Μ移動裝置(20)係與該控制裝置(1〇)相電性連接且設 有兩多軸向㈣平台(21,22)及—滑動平台(23),其中兩多 軸向移動平。(21 ’ 22)係分別為—第—多抽向移動平台叫 與-第,二多軸向移動平台(22),其中該第—多袖向移動平台 (21)係设於一工具機(5〇)頂面且與該控制裝置⑽)相電性連 接’而該第二多軸向移動平台(22)係平行地設於該第—軸向 t多動平*(21)的—㈣且與該控難置(1_電性連接,兩 :軸向移動平台(21 ’ 22)係受該控制裝置(1〇)的驅動而可沿 者夕X軸與γ轴方向進行移動,該滑動平台(23)係設於該第 -夕轴向移動平台(22)上且與該控制裝置(1〇)相電性連接 201210734 並没有一軌道(231)與一滑動架(232),其中該轨道(231)係 垂直設於該第二多軸向移動平台(22)上,而該滑動架(232) 係受該控制裝置(1 〇)的驅動而可滑動地與該執道(231)相結 合而位於第一多軸向移動平台(21)上方’較佳地,該移動裝 置(20)係分別於兩多軸向移動平台(2,,22)的側邊設有一用 以紀錄平台位移量的光學尺(24); 該夾制裝置(30)係固設於該移動裝置(2〇)的第一多轴 向移動平台(21)的頂面且與該控制裝置(1〇)相電性連接用 φ 以夾制待量測的工件(60); 該影像擷取裝置(40)係固設於該移動裝置(2〇)的滑動 架(232)上且與該控制裝置(10)相電性連接而位於待測工件 (60)的上方處,該影像擷取裝置(4〇)係可對待測工件(6〇)進 行影像擷取’並將擷取結果傳送至該控制裝置(彳〇 )的電腦 (11)中,藉以對於該待測工件(60)的尺寸參數進行運算與分 析,較佳地,該影像擷取裝置(4〇)係為一电荷耦合器 (Charge-Coupled Device’ CCD),且該影像擷取裝置(4〇) 籲係於該第一多軸向移動平台(21)的頂面上設有一位於待測 工件(60)下方處的背光板(41),其中透過光學尺(24)的偵測 而可得知該待測工件(60)與該影像擷取裴置(4〇)的相對位 置,並透過該控制裝置(10)計算出光學尺(24)所偵測出的位 移量; B、影像處理與量測:將一待測的工件(60)固定於該夾 制裝置(30)上’透過該控制裝置(10)驅動該移動裝置(2〇)的 方式,使位於該滑動架(232)上的影像擷取裝置(40)可對於 該待測工件(60)的外觀進行彩色影像的擷取,其中該背光板 201210734 ⑷)係可提供-白光背景,進而讓該待測工件(6Q)的搁取影 像更顯清晰,並將所擷取的待測工件(6〇)彩色影像傳送至該 控制裝置(1Q)的電腦⑴)中進行影像的處理與分析,其中係 先對於所擷取到的彩色影像進行灰階化的轉換,使該彩色 〜像轉換成—灰階影像,再對該灰階影像進行三值化的轉 換’使該灰階影像轉換為—黑白影像,藉以取得該待測工 件(60)的外廓影像; 其中二値化(thresholding)處理又稱為臨界值處理,其 φ係為影像分割中最重要的方法之一,在影像進行分析前的 第一2是進行影像分割’以灰階臨界值來區分目標物與背 景,糟以達到影像分割的目#,其中利用一直方圖可求得 臨界值(Γ〇),並以該臨界値(Tq)作為基準將影像二値化其 中當影像中像素的灰階値大於臨界值⑹者,則該點的灰階 値隻為255,反之,當影像的灰階値小於臨界值⑹者則 灰階值變為〇,該影像二値化處理的方式係根據方程式⑴ 所求得: • g(x,y) = l255 if > τ〇 I 0 if f(x,y) < T0 (1) 透過該電腦(11)對於 值化處理的黑白影像進行量 …,、—巾/吟疋TJ置 測’由於擷取的影像範圍常會包含待測工件(6_其他部位 的影,,因此先定義出欲量測的範圍I,可更容易且準確 地取得所需的量測值,進而量測出該待測 的圓弧半徑⑻、段差(L)與直徑(D)等的尺寸參數);卜“像 =配合參看如第四圖所示,纟中係以最小平方近似圓 弧法求得其圓弧半徑⑻,以下為最小平方近似圓弧法之運 ί S3 10 201210734 算,其中一般圓的方程式係如方程式(2)所示: 义2 + 少2 + αχ + 6夕 + c = 0 , ⑵ 其中a、ύ、c為係數,x、y為圓弧邊緣上的座標點, 其中任一量測點(Xi, y,·)的誤差可表示為: (3)Metal-Oxide-Semiconductor Transistor · CM〇S)f Electrically connected electrical signal output interface, the display (14) and the input interface Π5) are electrically connected to the host (13), respectively, and the control The device (1) is electrically connected to the computer (11); the mobile device (20) is electrically connected to the control device (1) and is provided with two multi-axial (four) platforms (21, 22) and A sliding platform (23) in which two more axial movements are flat. (21 '22) are respectively - the first-to-multiple-moving mobile platform is called - and the second multi-axial mobile platform (22), wherein the first-multi-sleeve mobile platform (21) is set in a machine tool ( 5〇) a top surface and electrically connected to the control device (10)) and the second multi-axial moving platform (22) is disposed in parallel to the first-axial t-motion flat*(21)-(d) And the control is difficult (1_ electrical connection, two: the axial movement platform (21 '22) is driven by the control device (1〇) to move along the X-axis and the γ-axis direction, The sliding platform (23) is disposed on the first-axis axial moving platform (22) and electrically connected to the control device (1〇) 201210734 and does not have a track (231) and a sliding frame (232), wherein The track (231) is vertically disposed on the second multi-axial moving platform (22), and the sliding frame (232) is slidably coupled to the driving device by the driving device (1). Combinedly located above the first multi-axial moving platform (21). Preferably, the moving device (20) is provided on the side of the two multi-axial moving platforms (2, 22) for recording. platform a displacement amount of the optical scale (24); the clamping device (30) is fixed to the top surface of the first multi-axial moving platform (21) of the moving device (2〇) and with the control device (1〇) The phase electrical connection uses φ to clamp the workpiece to be measured (60); the image capturing device (40) is fixed on the sliding frame (232) of the moving device (2〇) and is connected to the control device ( 10) The electrical connection is located above the workpiece (60) to be tested, and the image capturing device (4〇) is capable of image capturing of the workpiece to be tested (6〇) and transmitting the captured result to the control In the computer (11) of the device, the size parameter of the workpiece (60) to be tested is calculated and analyzed. Preferably, the image capturing device (4〇) is a charge coupler (Charge). -Coupled Device' CCD), and the image capturing device (4〇) calls on the top surface of the first multi-axial moving platform (21) to be provided with a backlight plate under the workpiece (60) to be tested ( 41), wherein the relative position of the workpiece (60) to be tested and the image capturing device (4〇) is known through the detection of the optical ruler (24), and the control is transmitted through the control The device (10) calculates the amount of displacement detected by the optical scale (24); B. Image processing and measurement: fixing a workpiece (60) to be tested on the clamping device (30) The control device (10) drives the mobile device (2〇) such that the image capturing device (40) located on the carriage (232) can capture the color image of the workpiece (60) to be tested. The backlight board 201210734 (4)) can provide a white light background, thereby making the image of the workpiece to be tested (6Q) more clear, and transmitting the captured image of the workpiece to be tested (6 inches) to the image. The processing and analysis of the image is performed in the computer (1) of the control device (1Q), wherein the grayscale image is first converted into a grayscale image, and the color image is converted into a grayscale image, and then The grayscale image is converted into a three-valued image to convert the grayscale image into a black-and-white image, thereby obtaining an outline image of the workpiece (60) to be tested; wherein the thresholding process is also called threshold value processing. Its φ system is one of the most important methods in image segmentation. The first 2 before the image analysis is to perform image segmentation. The grayscale threshold is used to distinguish the target from the background, and the image segmentation is achieved. The threshold value (Γ〇) can be obtained by using the histogram. Using the threshold 値(Tq) as a reference, the image is binarized. When the grayscale 値 of the pixel in the image is greater than the critical value (6), the grayscale 该 of the dot is only 255. Conversely, when the grayscale 影像 of the image is smaller than the critical value For the value (6), the grayscale value becomes 〇, and the image binarization processing method is obtained according to the equation (1): • g(x, y) = l255 if > τ〇I 0 if f(x, y) < T0 (1) Through the computer (11) for the value of the black and white image of the processing ...,, / towel / 吟疋 TJ test 'Because the captured image range often contains the workpiece to be tested (6_ other parts of the Shadow, therefore, first define the range I to be measured, it is easier and more accurate to obtain the required measured value, and then measure the arc radius (8), step (L) and diameter (D) of the arc to be measured. Etc. size parameter); Bu "image = fit reference as shown in the fourth figure, the middle of the system is obtained by the least square approximate arc method Arc radius (8), the following is the least square approximation of the arc method ί S3 10 201210734 calculation, where the general circle equation is as shown in equation (2): meaning 2 + less 2 + αχ + 6 eve + c = 0, (2) where a, ύ, and c are coefficients, and x and y are coordinate points on the edge of the arc. The error of any of the measured points (Xi, y, ·) can be expressed as: (3)

Ej = xt + _y(2 + axj + byt + c 其平方和誤差為: E = iE丨2 ,=丨 (4) dE a〇 5£ _ « 2 , -^- = 12(^ +y-+axi+byi+c)(yi) = 〇 δ£_ » 2 ac = S 2^( + y' + ^ + hy*+cX〇 = 〇 ,方,式(5)整理為一矩陣型式 刀別對係數a、ό、c 一次偏料八楚认+ 竺2 人偈破刀專於零,可得方程式(5): —-Σ 2(xt + yf + aXi + by, + c)(x.) - « (5) a -魯M”^k η η 1 b 二 c rtM+yf) (6) 中 由方程式(6)可解得係數a、6 即將其代入方程式(7) ,,:¾¾測工件(60)的圓弧半徑⑻: ' 2 如方程式(8)所示,採用最小 利用兩點求距離公弋, 法求出斜線方程式, (L1、L2 與 L3): 關於待測工件(6〇)的直徑⑼, (8) 緣輪廟的座標點((y)及該移 糸將母-個上下邊 入下列方程式_,即可求料行=的位移量OW)代 寺'別工件(60)的平均直 201210734 徑(D): η 5 ^ ^ ~ ^ ^ ^ X W + VS<age )X COS(^,)] i_/ ~ ' 1 _ n (9) 其甲該W為影像解析度,(Θ1}為工件令心轴線與水平 軸線的夾角,而&,峨為光學尺所偵測出的位置參數;/以及 c、自動量測·♦透過該控制裝置(1〇)驅動該移動裝置(2〇) 及該夹制裝置(30)的方式,使待刺工件州可隨著夾制裝置 州而相對該影像擷取裝置陳生移動與轉動,藉以讓該 =擷取^置(40)可自動地對於待測工件_的各側外觀 像進彳于置測。 错由上述之技術手段,本發明工具機工件線上量測方 法及其裝置,I需將待測工件(6〇)固定於該夾制裝置(3〇) ^即可方便㈣過㈣㈣取裝置(4Q)而取得㈣於該夹 :裝置⑽)的待測卫件(6_影像,並進行灰階化轉換與二 值化轉換後取得該待測工件 _ 什的外廓影像,得以精確計算 該待測工件(60)的外觀尺寸 旦 了進而如供一可即時量測及提高 里測精度之量測方法及裝置者。 以上所述’僅是本發明的較佳實施例,並非對本發明 壬:形式上的限制’任何所屬技術領域中具有通常知識 ’若在不脫離本發明所楹柚 ap ^ 所^技術方案的範圍内,利用本發 乃所揭示技術内容所作出月 w n 局。p更動或修飾的等效實施例, 亚且未脫離本發明的技術方宏 卡电 案内谷’均仍屬於本發明技術 万案的範圍内。 【圖式簡單說明】 第一圖係本發明工且她T h 具機工件線上量測方法之操作流程 m 12 201210734 方塊圖。 第一圖係本發明量测梦署+ AL ^ J我置之外觀立體示意圖。 第三圖係本發明量測缺φ 、J裝置之局部放大外觀立體示意 圖。Ej = xt + _y(2 + axj + byt + c The sum of squared errors is: E = iE丨2 , =丨(4) dE a〇5£ _ « 2 , -^- = 12(^ +y-+ Axi+byi+c)(yi) = 〇δ£_ » 2 ac = S 2^( + y' + ^ + hy*+cX〇= 〇, square, formula (5) is organized into a matrix type knife The coefficients a, ό, c are biased at the same time. 竺2 偈2 偈 偈 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 专 ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( - « (5) a - Lu M"^k η η 1 b 二c rtM+yf) (6) The coefficients a and 6 can be solved by equation (6), which is substituted into equation (7),,: 3⁄43⁄4 Arc radius of workpiece (60) (8): ' 2 As shown in equation (8), use the minimum two points to find the distance 弋, and find the slash equation, (L1, L2 and L3): About the workpiece to be tested (6直径) diameter (9), (8) The coordinate point of the Yuanlun Temple ((y) and the shifting of the mother-upper and lower sides into the following equation _, you can find the displacement OW of the material row] (60) The average straight 201210734 diameter (D): η 5 ^ ^ ~ ^ ^ ^ XW + VS<age )X COS(^,)] i_/ ~ ' 1 _ n (9) Its A is the image analysis Degree, (Θ1} is the workpiece to make the heart axis and water The angle of the flat axis, and &, is the positional parameter detected by the optical scale; / and c, automatic measurement, ♦ driving the mobile device (2〇) through the control device (1〇) and the clamping The device (30) is arranged in such a manner that the state of the workpiece to be stabbed can move and rotate relative to the image capturing device with the state of the clamping device, so that the device can be automatically tested for the workpiece to be tested. The appearance of each side of the image is determined by the above-mentioned technical means. The method and device for measuring the workpiece on the workpiece of the present invention, I need to fix the workpiece to be tested (6〇) to the clamping device (3) 〇) ^ can be conveniently (4) through (4) (4) take the device (4Q) and obtain (4) the clip (device) (6) of the guard (6_image), and perform grayscale conversion and binarization conversion to obtain the test The external image of the workpiece _ can accurately calculate the appearance size of the workpiece (60) to be tested, and thus, for a measurement method and device capable of real-time measurement and improvement of the accuracy of the measurement. The preferred embodiment of the present invention is not intended to be a limitation of the present invention. There is a general knowledge in the 'without the scope of the technical solution of the present invention, the monthly information is made using the technical content disclosed in the present invention. Equivalent embodiments in which p is modified or modified, and which does not depart from the technical scope of the present invention, are still within the scope of the technical scope of the present invention. [Simple diagram of the diagram] The first diagram is the operation flow of the inventor and her T h machine tool online measurement method m 12 201210734 block diagram. The first figure is a three-dimensional schematic diagram of the appearance of the invention of the dream system + AL ^ J. The third figure is a perspective view of a partially enlarged appearance of the measuring device φ and J devices of the present invention.

第四圖係本發明工且拖付^ I 一機待測工件之影像側視示意圖。 【主要元件符號說明】 (11)電腦 (13)主機 (15)輸入介面The fourth figure is a schematic side view of the image of the workpiece to be tested by the inventor of the present invention. [Main component symbol description] (11) Computer (13) Main unit (15) Input interface

(1 〇)控制裝置 (12)控制器 (14)顯示器 (20) 移動装置 (21) 第一多軸向移動平台(22)第二多軸向移動平台 (23) 滑動平台 (231)執$ (232)滑動架 (24) 光學尺 (30)夹制裝置 (4〇)影像擷取裝置 (41)背光板 (50)工具機 (60)待測工件 I S] 13(1 〇) Control Device (12) Controller (14) Display (20) Mobile Device (21) First Multi-Axis Mobile Platform (22) Second Multi-Axis Mobile Platform (23) Slide Platform (231) (232) Slider (24) Optical ruler (30) clamping device (4〇) Image capture device (41) Backlight (50) Machine tool (60) Workpiece to be tested IS] 13

Claims (1)

201210734 七、申請專利範圍: 1_ 一種工具機工件線上量測 有: 法’其操作流程係包含 儀器設置:準備一量測裝置 制裝置'-與該控制裝置相電性c係設有-控 該移動裝置上且與該控制裝置相==置、-設於 可相對該夾制裝置移動而設於該移==裝置及- 罟相雪k 切及置上並與該控制裝 置相電性連接的影像擷取裝置,复 mm ^ η Λ ,、中該控制裝置係具有影 傢羼理運具硓力及人機控制介面的功能; 影像處理與量測:將一待 t , ϋ ^ ^ ^ 幻工件固疋於該夾制裝置 透u控制裝置驅動該移動裝置 敗奘署^ 使该影像擷 取裝置了對於该待測工件的外觀 取的揸、.,s β 仃〜像擷取,並將所擷 == 控制装置中進行影像的處理與分析,藉 以取仔該待測工件的外廒 …1 像’並透過量測該待測工件的 外廓衫像以求出該待測工件的尺寸參數;以及 自動量測:透過該控制裝置驅動該移動裝置及 裝f的方式’使待測工件可隨著夹制裝置而相對該影像擷 取裝置產生移動與轉動,藉以讓該影像擷取裝置可自動地 對於待〉則工件的各側外觀影像進行量測。 、2·如中請專利範㈣!項所述之工具機工件線上量測 方法其中在影像處理與量測的操作步驟中,在棟取待 工件影像時’係先擷取出該待測工件外觀的彩色影像二 將該彩色影像傳送至該控制裝置中,對於所梅取到的彩色 影像進仃灰階化的轉換,使該彩色影像轉換成一灰階影 像再對6玄灰階影像進行二值化的轉換使該灰階影像轉 201210734 換為一黑白影像,藉以取 侍4待測工件的外廓影像。 3·如申請專利範圍第1 測方法,苴中在史@ _ 一 、"工具機工件線上量 二 z、在办像處理與量測的操作步驟中 S玄待測工件外廓影像的 …里" 4 a ^ 干彳二奴差與直徑的尺寸參數。 ,、機工件線上量測裝置’其係包 置、一移動裝置、—夾财 控制裝 該控制裝置係設有一電腦及一 ,、中· 該電腦相電性連接; 工。,以上制器係與 :移動裳置係與該控制裝置相電性連接且設有兩多轴 i移動平台及一滑動平台,兩多軸向移動平台係平行設置 :編控制裝置相電性連接’其中一多軸向移動平台 f於一工具機頂面,而該滑動平台係設於另一多軸向移 動平台上且伸設至工具機上方; 軸向移 5亥夾制裝置係固設於該移動 沙動裝置位於工具機頂面的多 轴向移動平台上且盥該护制护 .〃隸㈣置相電性連接,用以夹制待 量測的工件;以及 穴列付 該影像擷取裝置係固設於 D亥移動裝置的滑動平台上且 與该控制裝置相電性連接而位於 你, 付/則工件的上方處,該影 像擷取裝置係可對待測工件進 伟、、, 仃I像擷取’並將擷取結果 傳廷至該控制裝置的電腦中’鋅 错以對於該待測工件的尺寸 參數進行運算與分析。 5.如申請專利範圍苐4項 固乐項所述之工具機工件線上量測 裝置,其中兩多軸向移動平台係 _ 刀方〗馬一第一多轴向移動 ''台與一第二多軸向移動平台, 丹宁该第一多軸向移動平 σ係设於一工具機頂面,而該第__ 弟一多軸向移動平台係平行 [S] 15 201210734 地設於該第一軸向移動平台的一側邊,該滑動平台係設於 該第二多轴向移動平台上並設有一執道與一滑動架,該軌 道係垂直设於該第二多轴向移動平台上,而該滑動架係受 該控制裝置的驅動而可滑動地與該轨道相結合而位於第一 多軸向移動平台上方,該夾制裝置係固設於該移動裝置的 第一多軸向移動平台的頂面,該影像擷取裝置係固設於該 移動裝置的滑動架上。201210734 VII. Patent application scope: 1_ A machine tool online measurement includes: Method 'The operation process includes instrument setting: Prepare a measuring device system' - and the control device is electrically connected. The mobile device is coupled to the control device, and is disposed to be movable relative to the clamping device, and is disposed on the mobile device and is electrically connected to the control device. Image capture device, complex mm ^ η Λ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , The phantom workpiece is fixed to the clamping device, and the mobile device is defeated by the control device. The image capturing device is configured to take 揸, ., sβ 仃~ image capture for the appearance of the workpiece to be tested, and The processing and analysis of the image in the 撷== control device is performed to take the outer 廒... of the workpiece to be tested and to measure the outer garment image of the workpiece to be tested to obtain the workpiece to be tested. Size parameter; and automatic measurement: through the control Driving the mobile device and mounting the method of 'fusing the workpiece to be tested to move and rotate relative to the image capturing device with the clamping device, so that the image capturing device can automatically be used for each side of the workpiece The appearance image is measured. 2, such as the patent patent (four)! In the image processing and measurement operation step, when the image of the workpiece is taken, the color image of the appearance of the workpiece to be tested is first extracted and the color image is transmitted to In the control device, the gray image is converted into a grayscale image, and the color image is converted into a grayscale image, and then the binary grayscale image is binarized to convert the grayscale image to 201210734. Change to a black and white image to take the 4 image of the workpiece to be tested. 3. If the patent application scope is the first measurement method, 苴中在史@_一,"Tool machine workpiece line quantity two z, in the image processing and measurement operation steps S Xuan to test the workpiece profile image... In " 4 a ^ Cognac dimension and diameter size parameters. , the machine workpiece on-line measuring device 'the system package, a mobile device, the clamp control device, the control device is provided with a computer and a, the middle computer is electrically connected; The above device system and the mobile skirting system are electrically connected to the control device and are provided with two multi-axis i mobile platforms and a sliding platform, and the two multi-axial mobile platforms are arranged in parallel: the control device is electrically connected. 'One of the multi-axial moving platforms f is on the top surface of a machine tool, and the sliding platform is set on another multi-axial moving platform and extends above the machine tool; the axial movement is fixed on the 5th clamping device The moving sand moving device is located on the multi-axis moving platform on the top surface of the machine tool, and the protective device is electrically connected to clamp the workpiece to be measured; and the image is applied to the hole. The pick-up device is fixed on the sliding platform of the D-hai mobile device and is electrically connected to the control device and located above the workpiece, and the image capturing device is capable of measuring the workpiece to be tested,仃I image captures 'and extracts the result to the computer of the control device' to calculate and analyze the size parameters of the workpiece to be tested. 5. As claimed in the patent scope 苐 4 items of the instrumental machine on-line measuring device, wherein two more axial moving platforms are _ knife side 〗 〖Ma Yi first multi-axial movement ''stage and one second The multi-axial moving platform, the first multi-axial moving flat σ system of the tannin is set on the top surface of a machine tool, and the first __ brother-multiple axial moving platform is parallel [S] 15 201210734 is located in the first One side of the axially movable platform, the sliding platform is disposed on the second multi-axial moving platform and is provided with an obstruction and a sliding frame, the rail is vertically disposed on the second multi-axial moving platform And the carriage is slidably coupled to the rail and is located above the first multi-axial moving platform driven by the control device, the clamping device being fixed to the first multi-axial movement of the mobile device The top surface of the platform is fixed to the sliding frame of the mobile device. '明專利範圍第4或5項所述之工具機工件線上量 、J裝置中°玄移動袭置係分別於兩多軸向移動平台的側 邊設有-用以紀錄平台位移量的光學尺,纟中透過光學尺 的偵測而可仵知该待測工件與該影像擷取裝置的相對位 且透過控制裝置計算出光學尺所债測出的位移量。 7.::請專利範圍“項所述之工具機工件線上量測 頂:上ΐΓ影像操取裝置係於該第…向移動平台的 頂面上έ又有一位於待測工件 板係可提供一白光背景方處的背光板,#中該背光 顯清晰。 讓該待測工件的擷取影像更 〇·如Τ請專利範圍第7 裳置,其令該電腦係設有述之工具機工件線上量 該顯示器與輸入介面與該係、―;顯示器及—輸入介面’ 9.如申請專利範圍第4或5、§玄主機相電性連接。 測褒置,其令該電腦係設有所述:工具機工件線上量 面,該顯示器與輸入介面與該機、一顯示器及一輸入介 八 〜分別與該主機相電性連接。 圖式·(如次頁) 16 [S1'The scope of the machine tool workpiece described in Item 4 or 5 of the patent scope, and the J-moving device in the J device are respectively provided on the side of the two multi-axial moving platforms - the optical ruler for recording the displacement of the platform In the middle, the relative position of the workpiece to be tested and the image capturing device can be known through the detection of the optical scale, and the displacement measured by the optical scale is calculated by the control device. 7.:: Please refer to the scope of the patent machine for measuring the top of the machine tool: the upper image processing device is attached to the top surface of the mobile platform, and there is another plate for the workpiece to be tested. The backlight on the white background is clear, and the backlight is clearly displayed in #. Let the image of the workpiece to be tested be more smashed. For example, please refer to the patent scope of the seventh item, which makes the computer system have the machine tool workpiece line. The display and the input interface and the system, the "display and the input interface" 9. The electrical connection is electrically connected to the fourth or fifth, § Xuan host of the patent application scope. : The machine tool is on the measuring surface of the workpiece, and the display and the input interface are electrically connected to the machine, a display and an input medium respectively. Figure (e.g., the next page) 16 [S1
TW99129641A 2010-09-02 2010-09-02 Online measuring method and apparatus for work pieces of machine tools TWI419762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99129641A TWI419762B (en) 2010-09-02 2010-09-02 Online measuring method and apparatus for work pieces of machine tools

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99129641A TWI419762B (en) 2010-09-02 2010-09-02 Online measuring method and apparatus for work pieces of machine tools

Publications (2)

Publication Number Publication Date
TW201210734A true TW201210734A (en) 2012-03-16
TWI419762B TWI419762B (en) 2013-12-21

Family

ID=46764088

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99129641A TWI419762B (en) 2010-09-02 2010-09-02 Online measuring method and apparatus for work pieces of machine tools

Country Status (1)

Country Link
TW (1) TWI419762B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109894878A (en) * 2019-04-09 2019-06-18 马鞍山瑞恒精密制造有限公司 Metal iron-clad intelligent manufacturing system with on-line checking function

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105751009B (en) * 2016-03-03 2017-11-21 山东钢铁股份有限公司 A kind of scale control method of circular big rod

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3215193B2 (en) * 1992-10-26 2001-10-02 株式会社不二越 Method and apparatus for measuring blade shape of rotary tool
JPH08257876A (en) * 1995-03-24 1996-10-08 Toshiba Mach Co Ltd Tool wearing amount automatic measuring method and tool wearing amount automatic measuring device in machine tool
JP3416091B2 (en) * 2000-01-21 2003-06-16 株式会社新川 Bonding apparatus and bonding method
TWI263774B (en) * 2004-03-05 2006-10-11 Paul P H Chiu Method for detecting the drills and detecting apparatus
JP5001521B2 (en) * 2005-04-05 2012-08-15 三菱重工業株式会社 Tool shape measuring device
TW201024005A (en) * 2008-12-31 2010-07-01 Metal Ind Res & Dev Ct Turning tool calibration method with a non-contact measurement apparatus mounted on the machine and the processing machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109894878A (en) * 2019-04-09 2019-06-18 马鞍山瑞恒精密制造有限公司 Metal iron-clad intelligent manufacturing system with on-line checking function

Also Published As

Publication number Publication date
TWI419762B (en) 2013-12-21

Similar Documents

Publication Publication Date Title
WO2015120734A1 (en) Special testing device and method for correcting welding track based on machine vision
US7747080B2 (en) System and method for scanning edges of a workpiece
US20170003113A1 (en) Coordinate measuring machine having a camera
CN109425320B (en) Control method of surface texture measuring apparatus
JP2014055864A (en) Image measurement device, manufacturing method of the same and program for image measurement device
CN111598172B (en) Dynamic target grabbing gesture rapid detection method based on heterogeneous depth network fusion
TW201538925A (en) Non-contact measurement device and method for object space information and the method thereof for computing the path from capturing the image
CN105436252A (en) Bending machine machining control method and device based on vision measurement
CN101839691B (en) Image-based test sieve automatic calibrator
TW201210734A (en) Online measuring method and apparatus for work pieces of machine tools
CN204208945U (en) The bender Working control device that a kind of view-based access control model is measured
EP3144632B1 (en) Coordinate measuring machine having a camera
TW201534424A (en) Tool inspection method and tool inspection device
CN102419157A (en) Micro-depth-dimension automatic image measuring system
JP5278347B2 (en) Material testing machine
CN110579483B (en) Terahertz wave-based internal defect imaging device and method and readable storage medium
CN210720188U (en) Rapid automatic optical detection system
CN210604518U (en) Locator for ultrasonic scanning microscope
Yang et al. A coaxial vision assembly algorithm for un-centripetal holes on large-scale stereo workpiece using multiple-dof robot
TWI374251B (en) An image-measuring apparatus for dimensional parameters of drill and method to performing the same
JP7207948B2 (en) Appearance inspection method and program
CN114113144A (en) Device and method for detecting welding quality of sealing nail
WO2020084833A1 (en) Test device and test device control method
TWI413756B (en) Destructive web thickness measuring system of microdrills and method thereof
CN106323168B (en) The method for measuring circular arc point of contact using OGP optical measuring instruments

Legal Events

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