CN103722449B - Machine Tool Machining Positioning Method and Device - Google Patents
Machine Tool Machining Positioning Method and Device Download PDFInfo
- Publication number
- CN103722449B CN103722449B CN201210392978.8A CN201210392978A CN103722449B CN 103722449 B CN103722449 B CN 103722449B CN 201210392978 A CN201210392978 A CN 201210392978A CN 103722449 B CN103722449 B CN 103722449B
- Authority
- CN
- China
- Prior art keywords
- workpiece
- image
- center point
- standard
- coordinates
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000003754 machining Methods 0.000 title claims abstract description 28
- 238000012545 processing Methods 0.000 claims abstract description 38
- 238000006243 chemical reaction Methods 0.000 claims description 23
- 238000003860 storage Methods 0.000 claims description 15
- 238000005259 measurement Methods 0.000 abstract description 7
- 238000004364 calculation method Methods 0.000 description 16
- 238000013519 translation Methods 0.000 description 9
- 230000014616 translation Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 239000000523 sample Substances 0.000 description 7
- 238000006073 displacement reaction Methods 0.000 description 5
- 238000009434 installation Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23Q—DETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
- B23Q15/00—Automatic control or regulation of feed movement, cutting velocity or position of tool or work
- B23Q15/20—Automatic control or regulation of feed movement, cutting velocity or position of tool or work before or after the tool acts upon the workpiece
- B23Q15/22—Control or regulation of position of tool or workpiece
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23Q—DETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
- B23Q17/00—Arrangements for observing, indicating or measuring on machine tools
- B23Q17/22—Arrangements for observing, indicating or measuring on machine tools for indicating or measuring existing or desired position of tool or work
- B23Q17/2233—Arrangements for observing, indicating or measuring on machine tools for indicating or measuring existing or desired position of tool or work for adjusting the tool relative to the workpiece
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23Q—DETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
- B23Q17/00—Arrangements for observing, indicating or measuring on machine tools
- B23Q17/24—Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves
- B23Q17/2409—Arrangements for indirect observation of the working space using image recording means, e.g. a camera
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明系关于一种工具机加工定位方法及其装置,尤指一种适用于计算机数值控制(ComputerNumericalControl,CNC)工具机上对工件之加工位置进行定位的方法,及执行该方法的装置。The present invention relates to a machine tool machining positioning method and its device, especially a method suitable for positioning the machining position of a workpiece on a computer numerical control (CNC) machine tool, and a device for executing the method.
背景技术Background technique
以目前工具机的技术领域而言,对于工件之加工位置的定位始终维持传统方式,即以探头对工件的四周量测,以求出工件之中心或特定特征点。As far as the current technical field of machine tools is concerned, the positioning of the machining position of the workpiece has always been maintained in the traditional way, that is, the probe is used to measure the surroundings of the workpiece to find the center or specific feature points of the workpiece.
详言之,以一般矩型工件而言,欲求出其中心的加工点,必须以探头量测工件之四周侧壁、及顶壁,亦即量测工件分别于X轴、Y轴、及Z轴上所占之长度距离后,再透过运算求取其工件之中心点。这样的量测方式以最简单的矩型工件而言,就必须进行五次量测。然而,一旦欲加工的工件是复杂、或不规则的形状,或是工件摆放的角度有变化,则就必须进行更多次的量测,相当耗时费工。In detail, for a general rectangular workpiece, in order to find the processing point in its center, the probe must be used to measure the surrounding side walls and the top wall of the workpiece, that is, to measure the workpiece on the X-axis, Y-axis, and Z axis respectively. After calculating the length and distance occupied by the axis, calculate the center point of the workpiece through calculation. In such a measurement method, for the simplest rectangular workpiece, five measurements must be performed. However, once the workpiece to be processed has a complex or irregular shape, or the angle of the workpiece is changed, more measurements must be performed, which is time-consuming and labor-intensive.
而且。对于每个欲进行加工之工件都必须重新量测、定位,非常不利于大量生产。再者,对于小工件的定位,探头量测的方式会变的非常的困难,甚至无法执行。另外,以探头量测的方式,很容易因为使用者操作不甚,而使探头碰撞工件,导致工件或探头毁损。此外,以探头量测的方式非常仰赖操作者的经验及技术,不熟练的操作者容易耗费更多时间,且容易产生量测误差。and. For each workpiece to be processed, it must be re-measured and positioned, which is very unfavorable for mass production. Furthermore, for the positioning of small workpieces, the method of probe measurement will become very difficult, or even impossible to implement. In addition, in the way of measuring with a probe, it is easy for the probe to collide with the workpiece due to poor operation by the user, resulting in damage to the workpiece or the probe. In addition, the method of measuring with a probe is very dependent on the experience and technology of the operator, and unskilled operators are likely to consume more time and easily cause measurement errors.
发明内容Contents of the invention
本发明之主要目的系在提供一种工具机加工定位方法及其装置,俾能自动测量每一个工件的中心坐标,进而快速地对每一个工件进行加工位置的自动定位,可以大幅降低习知工件定位所耗时间,且可显著地提高定位的精准度。The main purpose of the present invention is to provide a tool machining positioning method and its device, so as to automatically measure the center coordinates of each workpiece, and then quickly automatically locate the processing position of each workpiece, which can greatly reduce the number of conventional workpieces. The positioning time is reduced, and the positioning accuracy can be significantly improved.
为达成上述目的,本发明一种工具机加工定位方法,其系用于对复数工件的加工位置进行定位,复数工件具有一外观轮廓,且复数工件包括一标准工件、及至少一待加工件,方法包括以下步骤:首先,拍摄标准工件以获得一标准影像,并于标准影像上输入一特征轮廓,特征轮廓系至少局部地对应于复数工件之外观轮廓,标准工件与至少一待加工件之间具有一工件间距。再者,计算标准影像之中心点实际坐标。接着,拍摄至少一待加工件以获得一工件影像,又以特征轮廓对准工件影像上之外观轮廓后,计算工件影像之中心点实际坐标。最后,计算工件影像与标准影像之中心点实际坐标间的差值,并将之加上工件间距,而获得至少一待加工件之一加工坐标数据。In order to achieve the above object, the present invention provides a positioning method for tool machining, which is used to locate the processing positions of multiple workpieces, the multiple workpieces have an appearance profile, and the multiple workpieces include a standard workpiece and at least one workpiece to be processed, The method includes the following steps: firstly, photographing a standard workpiece to obtain a standard image, and inputting a characteristic contour on the standard image, the characteristic contour is at least partially corresponding to the appearance contours of a plurality of workpieces, and the distance between the standard workpiece and at least one workpiece to be processed is There is a work distance. Furthermore, the actual coordinates of the center point of the standard image are calculated. Next, at least one workpiece to be processed is photographed to obtain a workpiece image, and the actual coordinates of the center point of the workpiece image are calculated after the feature contour is aligned with the appearance contour on the workpiece image. Finally, calculate the difference between the actual coordinates of the center point of the workpiece image and the standard image, and add the distance between the workpieces to obtain the processing coordinate data of at least one workpiece to be processed.
据此,本发明系利用标准影像上所输入之特征轮廓来对应工件影像上的外观轮廓,并计算对应后工件影像的中心点实际坐标。然后,再计算标准影像与工件影像之中心点实际坐标的差值,并加上原本已知二者的工件间距,即可准确得知待加工件之加工坐标数据。换言之,本发明仅需进行拍摄及处理运算步骤,无须机械式的移动量测,便可快速、精准地定位多个待加工件。Accordingly, the present invention uses the input feature contour on the standard image to correspond to the appearance contour on the workpiece image, and calculates the actual coordinates of the center point of the corresponding workpiece image. Then, calculate the difference between the actual coordinates of the center point of the standard image and the workpiece image, and add the previously known distance between the two workpieces, so that the processing coordinate data of the workpiece to be processed can be accurately obtained. In other words, the present invention only needs to perform photographing and processing steps, without mechanical movement measurement, and can quickly and accurately locate multiple workpieces to be processed.
其中,本发明所提供的自动定位方法中,关于计算标准影像之中心点实际坐标的步骤中,可先计算标准影像之中心点像素坐标值后,再将之转换为中心点实际坐标。同样地,在计算工件影像之中心点实际坐标的步骤中,可先计算工件影像之中心点像素坐标值后,再将之转换为中心点实际坐标。据此,本发明系可利用影像中之像素作为坐标值,并藉此转换成实际加工尺寸的坐标值。Wherein, in the automatic positioning method provided by the present invention, in the step of calculating the actual coordinates of the center point of the standard image, the pixel coordinate value of the center point of the standard image can be calculated first, and then converted into the actual coordinates of the center point. Similarly, in the step of calculating the actual coordinates of the center point of the workpiece image, the pixel coordinate value of the center point of the workpiece image can be calculated first, and then converted into the actual coordinates of the center point. Accordingly, the present invention can use the pixels in the image as coordinate values, and thereby convert them into coordinate values of the actual processing size.
然而,上述将影像中之像素值来转换成实际加工尺寸,可以透过一尺寸转换比例值来进行。关于尺寸转换比例值,本发明提供以下步骤来获得:首先,拍摄标准工件而获得一第一工件影像;接着,移动标准工件一特定距离后,拍摄标准工件而获得一第二工件影像;最后,计算第一工件影像与第二工件影像之中心点像素坐标值间的差值与特定距离间的比值。其中,工件所移动之特定距离较佳为二个轴向的移动距离。换言之,本发明所提供之方法系利用工件的实际位移量与影像中的像素坐标的位移量间之比值,即可获得上述之尺寸转换比例值。However, the above-mentioned conversion of the pixel values in the image into the actual processing size can be performed through a size conversion ratio value. Regarding the size conversion ratio value, the present invention provides the following steps to obtain: first, photographing the standard workpiece to obtain a first workpiece image; then, after moving the standard workpiece for a certain distance, photographing the standard workpiece to obtain a second workpiece image; finally, Calculate the ratio of the difference between the pixel coordinates of the center point of the first workpiece image and the second workpiece image to a specific distance. Wherein, the specific distance moved by the workpiece is preferably the moving distance in two axial directions. In other words, the method provided by the present invention uses the ratio between the actual displacement of the workpiece and the displacement of the pixel coordinates in the image to obtain the above-mentioned size conversion ratio.
再者,本发明所提供的自动定位方法中,关于计算标准影像之中心点实际坐标可以包括以下步骤:首先,分割标准影像为复数兴趣域,而标准影像上之每一兴趣域包括有特征轮廓;接着,分别计算每一兴趣域之几何中心像素坐标;最后,计算复数兴趣域上之几何中心像素坐标间之中心点,其即为标准影像之中心点像素坐标值。据此,上述所提之方法可以精准且快速地算出所输入之特征轮廓的中心点像素坐标值。Furthermore, in the automatic positioning method provided by the present invention, the calculation of the actual coordinates of the center point of the standard image may include the following steps: first, segment the standard image into multiple interest domains, and each interest domain on the standard image includes a characteristic contour ; Next, calculate the pixel coordinates of the geometric center of each domain of interest; finally, calculate the center point between the pixel coordinates of the geometric center of the multiple domains of interest, which is the pixel coordinate value of the center point of the standard image. Accordingly, the above-mentioned method can accurately and quickly calculate the pixel coordinate value of the center point of the input feature contour.
承上,本发明所提供的自动定位方法中,工件影像可以包括复数比对区,且复数比对区系对应于复数兴趣域,而关于计算工件影像之中心点实际坐标可以包括以下步骤:首先,以标准影像之复数兴趣域上的特征轮廓分别比对工件影像之复数比对区上的外观轮廓;接着,分别计算每一比对区之几何中心像素坐标;最后,计算复数比对区上之几何中心像素坐标间之中心点,其即为中心点像素坐标值。Continuing from the above, in the automatic positioning method provided by the present invention, the workpiece image may include complex comparison areas, and the complex comparison areas correspond to complex domains of interest, and the calculation of the actual coordinates of the center point of the workpiece image may include the following steps: first , using the feature contours on the multiple regions of interest of the standard image to compare the appearance contours on the multiple comparison areas of the workpiece image; then, calculate the pixel coordinates of the geometric center of each comparison area; finally, calculate the The center point between the pixel coordinates of the geometric center is the pixel coordinate value of the center point.
换言之,本发明可以透过将所输入之特征轮廓分割成多个局部的特征轮廓,并以其分别去比对工件影像上所对应的外观轮廓,待所有部分特征轮廓比对完成时,才计算中心坐标。据此,本发明可以适用不同尺寸但具相同外观轮廓之工件的定位,亦即不论是工件尺寸放大或缩小,只要特征轮廓符合即可进行比对。因此,本发明可适用的尺寸范围大,且藉由多特征部分的比对方式可得到绝佳之精准度。In other words, the present invention can divide the input feature contour into multiple partial feature contours, and use them to compare the corresponding appearance contours on the workpiece image, and only calculate when all the partial feature contours are compared. center coordinates. Accordingly, the present invention can be applied to the positioning of workpieces of different sizes but with the same appearance profile, that is, no matter whether the size of the workpiece is enlarged or reduced, as long as the feature contours match, the comparison can be performed. Therefore, the applicable size range of the present invention is large, and excellent accuracy can be obtained by comparing multiple characteristic parts.
另外,本发明所提供的自动定位方法中,于最初始的步骤可定位标准工件之中心点于一拍摄中心点。而且,在计算标准影像之中心点实际坐标的步骤中,可包括计算标准影像之中心点实际坐标与拍摄中心点之坐标间的差值为一输入偏移值。再且,于计算待加工件之加工坐标数据之步骤时,除了将工件影像与标准影像之中心点实际坐标间的差值加上工件间距外,再加上前述输入偏移值。In addition, in the automatic positioning method provided by the present invention, the center point of the standard workpiece can be positioned at a shooting center point in the initial step. Moreover, in the step of calculating the actual coordinates of the center point of the standard image, it may include calculating the difference between the actual coordinates of the center point of the standard image and the coordinates of the shooting center point as an input offset value. Furthermore, in the step of calculating the processing coordinate data of the workpiece to be processed, in addition to adding the workpiece distance to the difference between the actual coordinates of the center point of the workpiece image and the standard image, the aforementioned input offset value is added.
然而,上述步骤之主要用意在于,因为本发明之特征轮廓可由人为输入,而人为输入时操作者很难精准、完整地描绘输入,故有可能会产生误差值。有鉴于此,本发明特别考虑特征轮廓与中心原点间的输入偏移值,将其计入待加工件之加工坐标数据的计算内,据此除可提高定位的精准度外,使用者于输入特征轮廓时无须费心地精准描绘,可大幅节省描绘所耗时间。However, the main purpose of the above steps is that because the feature profile of the present invention can be input manually, it is difficult for the operator to accurately and completely describe the input during manual input, so error values may be generated. In view of this, the present invention particularly considers the input offset value between the feature contour and the center origin, and includes it in the calculation of the processing coordinate data of the workpiece to be processed. In addition to improving the positioning accuracy, the user can input There is no need to worry about accurate drawing of the feature outline, which can greatly save the time spent on drawing.
此外,在通常的情况下,拍摄的中心点不会位于加工中心点上。鉴于此点,本发明特提供下述方法,将拍摄之中心点与加工中心点间的间距定义为一中心间距。其中,关于计算待加工件之加工坐标数据之步骤时,除了将工件影像与标准影像之中心点实际坐标间的差值加上工件间距、及输入偏移值外,再加上中心间距。In addition, under normal circumstances, the center point of the shooting will not be located on the machining center point. In view of this point, the present invention provides the following method, which defines the distance between the shooting center point and the machining center point as a center distance. Wherein, in the step of calculating the processing coordinate data of the workpiece to be processed, in addition to adding the difference between the actual coordinates of the center point of the workpiece image and the standard image to the workpiece distance and the input offset value, the center distance is added.
为达成本发明之目的,本发明又提供一种工具机加工定位装置,其可用于对复数工件的加工位置进行定位,而复数工件具有一外观轮廓,复数工件包括一标准工件、及至少一待加工件,标准工件与至少一待加工件之间具有一工件间距,而该装置主要包括:一影像撷取单元、一输入装置、以及一控制器。其中,影像撷取单元系设置于工具机之一主轴头上,且影像撷取单元系用于拍摄标准工件以获得一标准影像,并拍摄至少一待加工件以获得一工件影像。再者,输入装置系用以于标准影像上输入一特征轮廓,而特征轮廓系至少局部地对应于复数工件之外观轮廓。另外,控制器电性连接影像撷取单元、及输入装置。其中,控制器系先计算标准影像之中心点实际坐标;当影像撷取单元依据特征轮廓对应于工件影像上之外观轮廓后,控制器系计算工件影像之中心点实际坐标;并且,控制器计算标准影像、及工件影像之中心点实际坐标间的差值,将之加上工件间距,而获得至少一待加工件之一加工坐标数据。In order to achieve the purpose of the present invention, the present invention also provides a positioning device for tool machining, which can be used to locate the processing positions of multiple workpieces, and the multiple workpieces have an appearance profile, and the multiple workpieces include a standard workpiece and at least one waiting There is a workpiece distance between the standard workpiece and at least one workpiece to be processed, and the device mainly includes: an image capture unit, an input device, and a controller. Wherein, the image capture unit is arranged on a spindle head of the machine tool, and the image capture unit is used to capture a standard workpiece to obtain a standard image, and capture at least one workpiece to be processed to obtain a workpiece image. Furthermore, the input device is used for inputting a feature profile on the standard image, and the feature profile at least partially corresponds to the appearance profile of the plurality of workpieces. In addition, the controller is electrically connected to the image capture unit and the input device. Among them, the controller first calculates the actual coordinates of the center point of the standard image; when the image capture unit corresponds to the appearance contour on the workpiece image according to the feature contour, the controller calculates the actual coordinates of the center point of the workpiece image; and, the controller calculates The difference between the standard image and the actual coordinates of the center point of the workpiece image is added to the distance between workpieces to obtain processing coordinate data of at least one workpiece to be processed.
较佳的是,本发明一种工具机加工定位装置之控制器可以为一计算机数值控制器。也就是说,当本发明运用于计算机数值控制工具机(以下简称CNC工具机)时,只要加装前述影像撷取单元,无须其它额外设备。因此,本发明可以以现有的CNC工具机为基础,并不会大幅提高设备建置成本。而且,影像撷取单元可以很轻易地、快速的装设于CNC工具机上。据此,本发明所提供之加工位置自动定位装置,设备成本低廉、设置简单,又无须机械式的移动量测,便可快速、精准地定位多个工件。Preferably, the controller of the machining positioning device of the present invention can be a computer numerical controller. That is to say, when the present invention is applied to a computer numerical control machine tool (hereinafter referred to as a CNC machine tool), only the above-mentioned image capture unit needs to be installed, and no other additional equipment is needed. Therefore, the present invention can be based on the existing CNC machine tool without greatly increasing the equipment construction cost. Moreover, the image capture unit can be easily and quickly installed on the CNC machine tool. Accordingly, the automatic processing position positioning device provided by the present invention has low equipment cost, simple installation, and can quickly and accurately position multiple workpieces without mechanical movement measurement.
再且,本发明一种工具机加工定位装置之影像撷取单元可包括有一微处理器、及一摄像镜头,而微处理器系电性连接摄像镜头;另外,控制器可包括一主处理器、及一储存模块,主处理器系电性连接储存模块,且储存模块储存有一尺寸转换比例值,而尺寸转换比例值系为影像撷取单元所拍摄之像素尺寸与实际加工尺寸间的比例值。其中,影像撷取单元之微处理器分别计算标准影像、及工件影像之中心点像素坐标值,主处理器根据储存模块所储存之尺寸转换比例值将标准影像、及工件影像之中心点像素坐标值转换成中心点实际坐标。据此,本发明系可利用影像中之像素值来转换成实际加工尺寸,而可以精准且快速地算出实际加工尺寸。Moreover, the image capture unit of a tool machining positioning device of the present invention may include a microprocessor and a camera lens, and the microprocessor is electrically connected to the camera lens; in addition, the controller may include a main processor , and a storage module, the main processor is electrically connected to the storage module, and the storage module stores a size conversion ratio value, and the size conversion ratio value is the ratio between the pixel size captured by the image capture unit and the actual processing size . Among them, the microprocessor of the image capture unit calculates the pixel coordinates of the center point of the standard image and the workpiece image respectively, and the main processor converts the pixel coordinates of the standard image and the center point of the workpiece image according to the size conversion ratio value stored in the storage module. The value is converted to the actual coordinates of the center point. Accordingly, the present invention can convert the pixel value in the image into the actual processing size, and can calculate the actual processing size accurately and quickly.
又,本发明一种工具机加工定位装置之影像撷取单元拍摄标准工件之标准影像时已预先将标准工件定位于摄像镜头之正中心位置。使用者藉由输入装置于标准影像上输入特征轮廓后,控制器计算特征轮廓之中心点实际坐标与摄像镜头之中心位置间之一输入偏移值。据此,至少一待加工件之该加工坐标数据包括工件影像与标准影像之中心点实际坐标间的差值加上工间距、及输入偏移值。据此,藉由加入计算输入偏移值后,除可提高定位的精准度外,使用者于输入特征轮廓时无须费心地精准描绘,可大幅节省描绘所耗时间。In addition, the image capture unit of the machine tool positioning device of the present invention has pre-positioned the standard workpiece at the exact center of the camera lens when shooting the standard image of the standard workpiece. After the user inputs the feature outline on the standard image through the input device, the controller calculates an input offset value between the actual coordinates of the center point of the feature outline and the center position of the camera lens. Accordingly, the processing coordinate data of at least one workpiece to be processed includes the difference between the actual coordinates of the center point of the workpiece image and the standard image, plus the working distance, and the input offset value. Accordingly, by adding the calculation of the input offset value, in addition to improving the positioning accuracy, the user does not need to worry about accurately drawing when inputting the feature contour, which can greatly save the time spent on drawing.
更且,本发明一种工具机加工定位装置之摄像镜头之中心位置与工具机之主轴头的加工中心点间具有一中心间距,而至少一待加工件之加工坐标数据包括工件影像与标准影像之中心点实际坐标间的差值加上工件间距、输入偏移值、及中心间距。据此,本发明已充分考虑摄像镜头与加工中心点间之间距,更提高定位的精准度。Moreover, there is a center distance between the center position of the camera lens of the tool machining positioning device of the present invention and the machining center point of the spindle head of the machine tool, and the machining coordinate data of at least one workpiece to be processed includes the workpiece image and the standard image The difference between the actual coordinates of the center points plus the workpiece distance, input offset value, and center distance. Accordingly, the present invention fully considers the distance between the camera lens and the machining center point, further improving the positioning accuracy.
此外,本发明一种工具机加工定位装置之影像撷取单元的微处理器可控制特征轮廓旋转以对应于至少一待加工件之外观轮廓。换言之,本发明在面对待加工件载置位置与角度不一时,透过影像撷取单元之微处理器的处理,可实时旋转特征轮廓,使其顺利对应到至少一待加工件之外观轮廓。因此,本发明可适用于任何不规则设置之待加工件。In addition, the microprocessor of the image capture unit of the tool machining positioning device of the present invention can control the rotation of the feature contour to correspond to the appearance contour of at least one workpiece to be processed. In other words, the present invention can rotate the feature contour in real time through the processing of the microprocessor of the image capture unit when the placement position and angle of the workpiece to be processed are different, so that it can smoothly correspond to the appearance contour of at least one workpiece to be processed. Therefore, the present invention is applicable to any irregularly arranged workpieces to be processed.
附图说明Description of drawings
以下将结合附图并参照具体实施例进一步详细地描述本发明,其中:The present invention will be described in further detail below in conjunction with accompanying drawing and with reference to specific embodiment, wherein:
图1系本发明一较佳实施例之示意图。Fig. 1 is a schematic diagram of a preferred embodiment of the present invention.
图2系本发明一较佳实施例之系统架构图。Fig. 2 is a system architecture diagram of a preferred embodiment of the present invention.
图3系本发明一较佳实施例计算尺寸转换比例值之流程图。Fig. 3 is a flow chart of calculating the size conversion ratio value in a preferred embodiment of the present invention.
图4系本发明一较佳实施例之流程图。Fig. 4 is a flowchart of a preferred embodiment of the present invention.
图5A系本发明一较佳实施例标准影像之中心点像素坐标值的计算流程图。FIG. 5A is a flow chart of calculating the pixel coordinate value of the center point of a standard image in a preferred embodiment of the present invention.
图5B系本发明一较佳实施例工件影像之中心点像素坐标值的计算流程图。FIG. 5B is a flow chart of calculating the pixel coordinate value of the center point of the workpiece image in a preferred embodiment of the present invention.
图6系本发明一较佳实施例之标准影像与特征轮廓Pf之示意图。Fig. 6 is a schematic diagram of a standard image and a feature profile Pf of a preferred embodiment of the present invention.
图7A至图7E系本发明一较佳实施例对五种不同设置位置或角度之工件的定位坐标图。Fig. 7A to Fig. 7E are positioning coordinate diagrams of workpieces with five different installation positions or angles in a preferred embodiment of the present invention.
1CNC工具机1CNC machine tool
11主轴头11 spindle head
2影像撷取单元2 image capture unit
21微处理器21 microprocessors
22摄像镜头22 camera lens
3控制器3 controllers
31主处理器31 main processor
32储存模块32 storage modules
4输入装置4 input device
Cd中心间距Cd center distance
Cv尺寸转换比例值Cv size conversion scale value
D工件间距D work distance
Os外观轮廓Os appearance profile
Pf特征轮廓Pf feature profile
Ps标准影像Ps standard image
Psc,Pwc中心点像素坐标值Psc, Pwc center point pixel coordinate value
Pw工件影像Pw workpiece image
ROI_2~ROI_5兴趣域ROI_2~ROI_5 domain of interest
RM_2~RM_5比对区RM_2~RM_5 comparison area
w工件w workpiece
Ws标准工件Ws standard workpiece
Wt待加工件Wt workpiece to be processed
具体实施方式detailed description
请同时参阅图1、及图2,图1系本发明一较佳实施例之示意图,图2系本发明一较佳实施例之系统架构图。以下实施例将以CNC工具机1为执行主体,其中只需加装一影像撷取单元2,无须其它额外设备,亦无须对CNC工具机1进行额外的改装,而所有的运算及处理只需透过影像撷取单元2内之微处理器21、及CNC工具机1本身的控制器3即可。Please refer to FIG. 1 and FIG. 2 at the same time. FIG. 1 is a schematic diagram of a preferred embodiment of the present invention, and FIG. 2 is a system architecture diagram of a preferred embodiment of the present invention. The following embodiments will use the CNC machine tool 1 as the execution subject, wherein only an image capture unit 2 needs to be installed, no other additional equipment is required, and no additional modification is required to the CNC machine tool 1, and all calculations and processing only need It can be done through the microprocessor 21 in the image capture unit 2 and the controller 3 of the CNC machine tool 1 itself.
如图中所示,本实施例主要包括一影像撷取单元2、一输入装置4、以及一控制器3,而控制器3则电性连接影像撷取单元2、及输入装置4。在本实施例中,影像撷取单元2包括有一微处理器21、及一摄像镜头22,微处理器21系电性连接摄像镜头22,而影像撷取单元2是设置于工具机1之主轴头11(spindlehead)上,且摄像镜头22之中心位置与工具机1之主轴头11的加工中心点间具有一中心间距Cd。然而,本实施例之影像撷取单元2的焦距、及设置于主轴头11的高度是固定的,而影像撷取单元2可以是一般摄像装置,其唯一限制就是必须可以与CNC工具机1之控制器3进行通讯并可受其控制。As shown in the figure, this embodiment mainly includes an image capture unit 2 , an input device 4 , and a controller 3 , and the controller 3 is electrically connected to the image capture unit 2 and the input device 4 . In this embodiment, the image capture unit 2 includes a microprocessor 21 and a camera lens 22, the microprocessor 21 is electrically connected to the camera lens 22, and the image capture unit 2 is arranged on the main shaft of the machine tool 1 There is a center distance Cd between the center position of the camera lens 22 and the machining center point of the spindle head 11 of the machine tool 1 . However, the focal length of the image capture unit 2 of this embodiment and the height set on the spindle head 11 are fixed, and the image capture unit 2 can be a general camera device. The only limitation is that it must be compatible with the CNC machine tool 1. The controller 3 communicates and can be controlled by it.
至于,控制器3为CNC工具机1本身自带之计算机数值控制器,其包括一主处理器31、及一储存模块32,主处理器31系电性连接储存模块32。储存模块32内储存有上述之中心间距Cd、及一尺寸转换比例值Cv。而输入装置4亦为CNC工具机1本身自带或另外加装之输入装置皆可,如鼠标、轨迹球、绘图板、或触控屏幕皆可,当然本实施例以触控屏幕为实施手段。As for, the controller 3 is a computer numerical controller of the CNC machine tool 1 itself, which includes a main processor 31 and a storage module 32 , and the main processor 31 is electrically connected to the storage module 32 . The storage module 32 stores the above-mentioned center distance Cd and a size conversion ratio value Cv. And the input device 4 can also be the input device that the CNC machine tool 1 itself carries or additionally installed, such as a mouse, a trackball, a drawing tablet, or a touch screen. Of course, the present embodiment takes the touch screen as the means of implementation. .
本发明主要系用于对复数工件w的加工位置进行定位,如图1中所示,本实施例系对六种不同设置位置或角度之工件w之定位进行说明。如图中所示,该六个工件w具有相同的外观轮廓Os(请见图7),其中第一个为标准工件Ws,其它为待加工件Wt。而且,标准工件Ws与每一个待加工件Wt之间具有一工件间距D,当然此工件间距D可为两两工件w间的间距,或每一待加工件Wt与标准工件Ws间的间距。The present invention is mainly used for positioning the machining positions of a plurality of workpieces w, as shown in FIG. 1 , this embodiment describes the positioning of workpieces w at six different positions or angles. As shown in the figure, the six workpieces w have the same appearance profile Os (see FIG. 7 ), wherein the first one is a standard workpiece Ws, and the others are workpieces Wt to be processed. Moreover, there is a workpiece distance D between the standard workpiece Ws and each workpiece Wt to be processed. Of course, the workpiece distance D can be the distance between two workpieces w, or the distance between each workpiece Wt to be processed and the standard workpiece Ws.
请参阅图3,图3系本发明一较佳实施例计算尺寸转换比例值之流程图。在实际对工件w进行定位之前,先求取尺寸转换比例值Cv,而尺寸转换比例值Cv系为影像撷取单元2所拍摄之像素尺寸与实际加工尺寸间的比例值。首先,拍摄标准工件Ws而获得一第一工件影像,即步骤S100。接着,移动标准工件Ws一特定距离后,拍摄标准工件Ws而获得一第二工件影像,即步骤S105。其中,标准工件Ws所移动之特定距离为二个轴向的移动距离,即同时包括X轴、及Y轴之移动。最后,计算第一工件影像与第二工件影像之中心点像素坐标值间的差值与特定距离间比值,即步骤S110,据此即可获得尺寸转换比例值Cv,并将之储存于控制器3之储存模块3内。其中,所谓中心点像素坐标值乃指以图像之像素(Pixel)为坐标值之单位。Please refer to FIG. 3 . FIG. 3 is a flow chart of calculating the size conversion ratio in a preferred embodiment of the present invention. Before the actual positioning of the workpiece w, the size conversion ratio Cv is calculated first, and the size conversion ratio Cv is the ratio between the pixel size captured by the image capture unit 2 and the actual processing size. First, the standard workpiece Ws is photographed to obtain a first workpiece image, ie step S100 . Next, after moving the standard workpiece Ws for a certain distance, the standard workpiece Ws is photographed to obtain a second workpiece image, ie step S105 . Wherein, the specific distance moved by the standard workpiece Ws is the moving distance of the two axes, that is, the movement of the X axis and the Y axis are included at the same time. Finally, calculate the ratio between the difference between the pixel coordinates of the center point of the first workpiece image and the second workpiece image and the specific distance, that is, step S110, according to which the size conversion ratio Cv can be obtained and stored in the controller 3 in the storage module 3. Wherein, the so-called pixel coordinate value of the center point refers to the pixel (Pixel) of the image as the unit of the coordinate value.
换言之,本实施例所提供之方法系利用工件的实际位移量与所拍摄的影像中之像素位移量间的比值,即可获得上述之尺寸转换比例值Cv。当然,本发明也不以为限,亦可采用传统校正卡的方式来获得该尺寸转换比例值Cv。传统校正卡的方式说明如后,先放一个固定尺寸之校正卡于工作台上,拍摄该校正卡后,求取所拍摄之图像上校正卡所占之像素与校正卡之实际尺寸间的比值。In other words, the method provided in this embodiment uses the ratio between the actual displacement of the workpiece and the pixel displacement in the captured image to obtain the above-mentioned size conversion ratio Cv. Of course, the present invention is not limited thereto, and the size conversion ratio value Cv can also be obtained by using a traditional calibration card. The method of the traditional calibration card is described as follows. First, put a fixed-size calibration card on the workbench. After shooting the calibration card, calculate the ratio between the pixels occupied by the calibration card on the captured image and the actual size of the calibration card. .
请参阅图4,图4系本发明一较佳实施例之流程图。首先,先将标准工件Ws之中心点定位于一拍摄中心点,如步骤S200所示。接着,影像撷取单元2拍摄标准工件Ws以获得一标准影像Ps,并于标准影像Ps上输入一特征轮廓Pf,该特征轮廓Pf是随着标准工件Ws之外观轮廓而描绘出。其中,因为标准工件Ws与待加工件Wt间具有相同的外观轮廓Os,故所输入之特征轮廓Pf应该至少局部地会对应于复数工件w之外观轮廓Os,如步骤S205所示。Please refer to FIG. 4, which is a flowchart of a preferred embodiment of the present invention. Firstly, the center point of the standard workpiece Ws is positioned at a shooting center point, as shown in step S200. Next, the image capturing unit 2 shoots the standard workpiece Ws to obtain a standard image Ps, and inputs a feature profile Pf on the standard image Ps, and the feature profile Pf is drawn along with the appearance profile of the standard workpiece Ws. Wherein, since the standard workpiece Ws and the workpiece Wt have the same appearance profile Os, the input feature profile Pf should at least partially correspond to the appearance profile Os of the plurality of workpieces w, as shown in step S205.
再者,计算标准影像Ps之中心点实际坐标,并计算特征轮廓Pf之中心点实际坐标与拍摄中心点之坐标间的差值为一输入偏移值,如步骤S210所示。其中,所谓中心点实际坐标乃指以实际加工尺寸(如mm或μtm)作为坐标值之单位。请同时参阅图5A、及图6,图5A系本发明一较佳实施例标准影像之中心点像素坐标值的计算流程图,图6系本发明一较佳实施例之标准影像与特征轮廓Pf之示意图。Furthermore, the actual coordinates of the center point of the standard image Ps are calculated, and the difference between the actual coordinates of the center point of the feature profile Pf and the coordinates of the shooting center point is calculated as an input offset value, as shown in step S210. Among them, the so-called actual coordinates of the center point refer to the actual processing size (such as mm or μtm) as the unit of the coordinate value. Please refer to Fig. 5A and Fig. 6 at the same time, Fig. 5A is a calculation flow chart of the center point pixel coordinate value of a standard image of a preferred embodiment of the present invention, Fig. 6 is a standard image and feature contour Pf of a preferred embodiment of the present invention The schematic diagram.
在本实施例中用来计算标准影像Ps之中心点实际坐标包括以下步骤:首先,分割标准影像Ps为四个兴趣域(RegionofInterest)ROI_2~5,而标准影像Ps上之每一兴趣域ROI_2~5都包括有特征轮廓Pf之局部,如图5A所示之步骤S300;接着,分别计算每一兴趣域ROI_2~5之几何中心像素坐标Pc2~5,即图5A所示之步骤S305;再来,计算复数兴趣域ROI_2~5上之几何中心像素坐标Pc2~5间之中心点,此即为标准影像Ps之中心点像素坐标值Psc,此步骤即如图5A所示之步骤S310。最后,控制器3之主处理器31依据储存模块3所储存之尺寸转换比例值Cv将标准影像Ps之中心点像素坐标值Psc转换为中心点实际坐标。The actual coordinates used to calculate the center point of the standard image Ps in this embodiment include the following steps: First, segment the standard image Ps into four regions of interest (Region of Interest) ROI_2~5, and each ROI_2~5 on the standard image Ps 5 includes a part of the characteristic contour Pf, step S300 shown in Figure 5A; then, calculate the geometric center pixel coordinates Pc2~5 of each ROI_2~5 respectively, that is, step S305 shown in Figure 5A; and then, Calculate the center point between the geometric center pixel coordinates Pc2~5 of the complex regions of interest ROI_2~5, which is the center point pixel coordinate value Psc of the standard image Ps. This step is step S310 shown in FIG. 5A. Finally, the main processor 31 of the controller 3 converts the pixel coordinate value Psc of the center point of the standard image Ps into the actual coordinate of the center point according to the size conversion ratio value Cv stored in the storage module 3 .
另外,关于特征轮廓Pf之中心点实际坐标与拍摄中心点之坐标间的输入偏移值,主要是因为本实施例之特征轮廓Pf系由人为描绘输入,而操作者很难精准、且完整地描绘输入,故有可能会产生误差值。有鉴于此,本实施例于计算出特征轮廓Pf之中心点实际坐标后,特别在计算特征轮廓Pf之中心点实际坐标与拍摄中心点之坐标间的差值,即为输入偏移值。In addition, the input offset value between the actual coordinates of the center point of the feature profile Pf and the coordinates of the shooting center point is mainly because the feature profile Pf in this embodiment is manually drawn and input, and it is difficult for the operator to accurately and completely Since the input is drawn, error values may occur. In view of this, after the actual coordinates of the center point of the feature profile Pf are calculated in this embodiment, especially the difference between the actual coordinates of the center point of the feature profile Pf and the coordinates of the shooting center point is calculated as the input offset value.
换言之,本实施例特别考虑特征轮廓Pf与实际中心原点间的位移偏移值,将其计入待加工件Wt之加工坐标数据的计算内。据此,除了可提高定位的精准度外,操作者于输入特征轮廓Pf时,无须费心地精准描绘,可大幅节省描绘所耗时间。In other words, this embodiment particularly considers the displacement offset between the feature profile Pf and the actual center origin, and includes it into the calculation of the processing coordinate data of the workpiece Wt to be processed. Accordingly, in addition to improving the accuracy of positioning, the operator does not need to worry about accurately drawing when inputting the feature contour Pf, which can greatly save the time spent on drawing.
接着,如图4所示之步骤S215,拍摄一待加工件Wt以获得一工件影像Pw。并且,以特征轮廓Pf对准工件影像Pw上之外观轮廓Os后,计算工件影像Pw之中心点实际坐标,即步骤S220。在本实施例中实际进行以下步骤,首先以标准影像Ps之特征轮廓Pf比对工件影像Pw,因标准影像Ps上已划分有四个兴趣域ROI_2~5上,故便以四个兴趣域ROI_2~5上之特征轮廓Pf分别比对工件影像Pw。Next, in step S215 shown in FIG. 4 , a workpiece Wt to be processed is photographed to obtain a workpiece image Pw. And, after aligning the appearance contour Os on the workpiece image Pw with the feature contour Pf, calculate the actual coordinates of the center point of the workpiece image Pw, ie step S220. In this embodiment, the following steps are actually carried out. First, the feature profile Pf of the standard image Ps is used to compare the workpiece image Pw. Since the standard image Ps has been divided into four regions of interest ROI_2~5, the four regions of interest ROI_2 are used. The feature profile Pf on ~5 is compared with the workpiece image Pw respectively.
另一方面,工件影像Pw上的外观轮廓Os为了对应到兴趣域ROI_2~5上之特征轮廓Pf,也将自动形成四个比对区RM_2~5,此即图5B所示之步骤S400。接着,分别计算每一比对区RM_2~5之几何中心像素坐标,即步骤S405。并且,计算四个比对区RM_2~5上之几何中心像素坐标间之中心点,此亦即工件影像Pw之中心点像素坐标值Pwc,即图5B所示之步骤S410。最后,控制器3之主处理器31依据储存模块3所储存之尺寸转换比例值Cv将工件影像Pw之中心点像素坐标值Pwc转换为中心点实际坐标。On the other hand, for the appearance contour Os on the workpiece image Pw to correspond to the feature contour Pf on the region of interest ROI_2~5, four comparison regions RM_2~5 are automatically formed, which is step S400 shown in FIG. 5B. Next, calculate the geometric center pixel coordinates of each comparison area RM_2~5 respectively, ie step S405. And, calculate the center point among the geometric center pixel coordinates of the four comparison regions RM_2~5, which is also the center point pixel coordinate value Pwc of the workpiece image Pw, which is step S410 shown in FIG. 5B. Finally, the main processor 31 of the controller 3 converts the pixel coordinate value Pwc of the center point of the workpiece image Pw into the actual coordinate of the center point according to the size conversion ratio value Cv stored in the storage module 3 .
换言之,本实施例系透过将所输入之特征轮廓Pf依据多个兴趣域ROI_2~5而分割成多个部分,并分别用特征轮廓Pf的每一个部分逐一去比对工件影像Pw上所对应的外观轮廓Os,待特征轮廓Pf之所有部分皆已比对完成时,才计算中心坐标。据此,本实施例可以适用不同尺寸但具相同外观轮廓Os之工件的定位,亦即不论是工件尺寸放大或缩小,只要特征轮廓Pf符合即可进行比对。因此,本实施例可适用的尺寸范围大,且藉由多部分比对的方式可得到绝佳之精准度。In other words, in this embodiment, the input feature profile Pf is divided into multiple parts according to multiple regions of interest ROI_2~5, and each part of the feature profile Pf is used to compare the corresponding parts on the workpiece image Pw one by one. The appearance profile Os of the feature profile Pf is not calculated until all parts of the feature profile Pf have been compared. Accordingly, this embodiment can be applied to the positioning of workpieces of different sizes but having the same appearance profile Os, that is, no matter whether the size of the workpiece is enlarged or reduced, as long as the feature profile Pf is consistent, the comparison can be performed. Therefore, the applicable size range of this embodiment is large, and excellent accuracy can be obtained by means of multi-part comparison.
值得一提的是,在本实施例中,影像撷取单元2之微处理器21分别控制用每一个部分的特征轮廓Pf逐一去比对工件影像Pw上所对应的外观轮廓Os时,微处理器21将控制特征轮廓Pf旋转以完全对应于待加工件Wt之外观轮廓Os。换言之,在面对待加工件Wt之角度不一时,透过影像撷取单元2之微处理器21的处理,可实时旋转特征轮廓Pf,使其顺利对应到待加工件Wt之外观轮廓Os。因此,本实施例可适用于任何不规则设置之待加工件Wt。It is worth mentioning that, in this embodiment, when the microprocessor 21 of the image capture unit 2 controls the characteristic contour Pf of each part to compare the corresponding appearance contour Os on the workpiece image Pw one by one, the microprocessor 21 The device 21 will control the rotation of the feature profile Pf to completely correspond to the appearance profile Os of the workpiece Wt to be processed. In other words, when the workpiece Wt has different angles, through the processing of the microprocessor 21 of the image capture unit 2, the feature profile Pf can be rotated in real time so that it can smoothly correspond to the appearance profile Os of the workpiece Wt. Therefore, this embodiment is applicable to any irregularly arranged workpieces Wt to be processed.
最终,如图4之步骤S225所示,计算工件影像Pw与标准影像Ps之中心点实际坐标间的差值,并将之加上工件间距D、输入偏移值、及中心间距Cd,便可获得待加工件Wt之一加工坐标数据。至于,后续待加工件Wt之加工位置的定位,即逐一重复图4之步骤S215、步骤S220、以及步骤S225即可。Finally, as shown in step S225 of FIG. 4, calculate the difference between the actual coordinates of the center point of the workpiece image Pw and the standard image Ps, and add the workpiece distance D, the input offset value, and the center distance Cd to it. Obtain the processing coordinate data of one of the workpieces Wt to be processed. As for the subsequent positioning of the processing position of the workpiece Wt to be processed, it is enough to repeat step S215 , step S220 , and step S225 in FIG. 4 one by one.
然而,在本实施例中,前述所有的运算处理中,除了影像的拍摄、比对、及求取中心点像素坐标值是在影像撷取单元2内之微处理器21处理外,其它的运算均由CNC工具机1本身的控制器3进行即可。而且,经过实际统计,每一个待加工件Wt的定位前后花费不到1秒的时间,快速且准确,非常有利于同规格工件之大规模量产。However, in this embodiment, in all the above-mentioned calculation processes, except that the photographing of the image, comparison, and calculation of the pixel coordinate value of the center point are processed by the microprocessor 21 in the image capture unit 2, other calculations All can be performed by the controller 3 of the CNC machine tool 1 itself. Moreover, according to actual statistics, it takes less than 1 second before and after the positioning of each workpiece Wt to be processed, which is fast and accurate, and is very conducive to mass production of workpieces of the same specification.
请参阅图7A至图7E,图7A至图7E系本发明一较佳实施例对五种不同设置位置或角度之工件的定位坐标图。详言之,以下将以图7A至图7E分别说明无平移且无旋转之工件的定位、无平移但逆时针旋转5度之工件的定位、无平移但顺时针旋转5度之工件的定位、以及有平移且又有逆时针旋转5度之工件的定位。Please refer to FIG. 7A to FIG. 7E . FIG. 7A to FIG. 7E are positioning coordinate diagrams of workpieces with five different installation positions or angles in a preferred embodiment of the present invention. In detail, the positioning of the workpiece without translation and rotation, the positioning of the workpiece without translation but rotated 5 degrees counterclockwise, the positioning of the workpiece without translation but rotated 5 degrees clockwise will be described below with reference to FIG. 7A to FIG. And the positioning of the workpiece with translation and 5 degrees counterclockwise rotation.
如图7A所示,图中已显示有各比对区RM_2~5之几何中心像素坐标分别为(-201.9,160.0)、(-201.7,-155.0)、(201.1,160.9)、(201.2,-155.2),故再求取上述四个几何中心像素坐标,即为图7A所对应之待加工件Wt的中心点像素坐标值Pwc,在本例之计算结果为(0.55,2.675)。另外,利用反三角函数定理(arctan)即可求出旋转角度为0.128度。据此,很显的本例的平移及旋转角度都相当微幅。As shown in Figure 7A, the pixel coordinates of the geometric center of each comparison area RM_2~5 are shown in the figure as (-201.9, 160.0), (-201.7, -155.0), (201.1, 160.9), (201.2,- 155.2), so the pixel coordinates of the above four geometric centers are obtained again, which is the pixel coordinate value Pwc of the center point of the workpiece Wt corresponding to Fig. 7A, and the calculation result in this example is (0.55, 2.675). In addition, using the inverse trigonometric function theorem (arctan), the rotation angle can be found to be 0.128 degrees. Accordingly, it is obvious that the translation and rotation angles of this example are quite small.
如图7B所示,图中已显示有各比对区RM_2~5之几何中心像素坐标分别为(-232.6,128.3)、(-232.3,-186.5)、(170.6,129.4)、(170.2,-187.5),故再求取上述四个几何中心像素坐标,即为图7B所对应之待加工件Wt的中心点像素坐标值Pwc,在本例之计算结果为(-31.025,-29.075)。另外,利用反三角函数定理(arctan)即可求出旋转角度为0.156。据此,本例在X轴及Y轴上有很显的平移,但旋转角度相当微幅。As shown in Figure 7B, the pixel coordinates of the geometric center of each comparison area RM_2~5 are shown in the figure as (-232.6, 128.3), (-232.3, -186.5), (170.6, 129.4), (170.2,- 187.5), so the pixel coordinates of the above four geometric centers are calculated again, which is the pixel coordinate value Pwc of the center point of the workpiece Wt corresponding to Fig. 7B, and the calculation result in this example is (-31.025, -29.075). In addition, using the inverse trigonometric function theorem (arctan), the rotation angle can be found to be 0.156. Accordingly, in this example, there are obvious translations on the X-axis and Y-axis, but the rotation angle is quite small.
如图7C所示,图中已显示有各比对区RM_2~5之几何中心像素坐标分别为(-214.3,141.0)、(-187.0,-170.8)、(187.7,176.7)、(214.4,-137.5),故再求取上述四个几何中心像素坐标,即为图7C所对应之待加工件Wt的中心点像素坐标值Pwc,在本例之计算结果为(0.2,1.85)。另外,利用反三角函数定理(arctan)即可求出旋转角度为5.075度。据此,本例有很显的逆时针旋转,但平移相当微幅。As shown in Figure 7C, the pixel coordinates of the geometric center of each comparison area RM_2~5 are shown in the figure as (-214.3, 141.0), (-187.0, -170.8), (187.7, 176.7), (214.4,- 137.5), so the pixel coordinates of the above four geometric centers are obtained again, which is the pixel coordinate value Pwc of the center point of the workpiece Wt corresponding to Fig. 7C, and the calculation result in this example is (0.2, 1.85). In addition, using the inverse trigonometric function theorem (arctan), the rotation angle can be found to be 5.075 degrees. Accordingly, this example has a significant counterclockwise rotation, but a fairly slight translation.
如图7D所示,图中已显示有各比对区RM_2~5之几何中心像素坐标分别为(-186.5,175.9)、(-214.2,-139.1)、(215.9,141.3)、(186.6,-173.7),故再求取上述四个几何中心像素坐标,即为图7D所对应之待加工件Wt的中心点像素坐标值Pwc,在本例之计算结果为(0.45,1.1)。另外,利用反三角函数定理(arctan)即可求出旋转角度为-4.9144度。据此,本例有很显的顺时针旋转,但平移相当微幅。As shown in Figure 7D, the pixel coordinates of the geometric center of each comparison area RM_2~5 are shown in the figure as (-186.5, 175.9), (-214.2, -139.1), (215.9, 141.3), (186.6,- 173.7), so the pixel coordinates of the above four geometric centers are calculated again, which is the pixel coordinate value Pwc of the center point of the workpiece Wt corresponding to Fig. 7D, and the calculation result in this example is (0.45, 1.1). In addition, using the inverse trigonometric function theorem (arctan), the rotation angle can be found to be -4.9144 degrees. Accordingly, this example has a significant clockwise rotation, but a fairly slight translation.
如图7E所示,图中已显示有各比对区RM_2~5之几何中心像素坐标分别为(-246.1,140.7)、(-217.6,-173.9)、(157.1,176.7)、(183.2,-137.0),故再求取上述四个几何中心像素坐标,即为图7E所对应之待加工件Wt的中心点像素坐标值Pwc,在本例之计算结果为(-30.85,1.625)。另外,利用反三角函数定理(arctan)即可求出旋转角度为5.1022度。据此,本例在X轴上有明显的平移,而且也有明显的逆时针旋转。As shown in Figure 7E, the pixel coordinates of the geometric center of each comparison area RM_2~5 are shown in the figure as (-246.1, 140.7), (-217.6, -173.9), (157.1, 176.7), (183.2,- 137.0), so the pixel coordinates of the above four geometric centers are calculated again, which is the pixel coordinate value Pwc of the center point of the workpiece Wt corresponding to Fig. 7E, and the calculation result in this example is (-30.85, 1.625). In addition, using the inverse trigonometric function theorem (arctan), the rotation angle can be found to be 5.1022 degrees. Accordingly, this example has an obvious translation on the X axis, but also an obvious counterclockwise rotation.
上述实施例仅系为了方便说明而举例而已,本发明所主张之权利范围自应以申请专利范围所述为准,而非仅限于上述实施例。The above-mentioned embodiments are only examples for convenience of description, and the scope of rights claimed by the present invention should be based on the scope of the patent application, rather than limited to the above-mentioned embodiments.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210392978.8A CN103722449B (en) | 2012-10-16 | 2012-10-16 | Machine Tool Machining Positioning Method and Device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210392978.8A CN103722449B (en) | 2012-10-16 | 2012-10-16 | Machine Tool Machining Positioning Method and Device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103722449A CN103722449A (en) | 2014-04-16 |
CN103722449B true CN103722449B (en) | 2016-06-29 |
Family
ID=50446871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210392978.8A Active CN103722449B (en) | 2012-10-16 | 2012-10-16 | Machine Tool Machining Positioning Method and Device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103722449B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104181861B (en) * | 2014-09-02 | 2017-05-17 | 上海维宏电子科技股份有限公司 | Biaxial numerical control machine tool correction positioning implementation method and system based on counterpoint platform |
CN104551866A (en) * | 2015-01-29 | 2015-04-29 | 周玉红 | Automatically-view-finding camera for assembly line |
CN105277137B (en) * | 2015-10-08 | 2018-06-05 | 莆田市荣兴机械有限公司 | Scavenging air valve detects alignment method |
CN105252376A (en) * | 2015-10-14 | 2016-01-20 | 中国人民解放军国防科学技术大学 | Workpiece self-locating device for high-precision polishing machine tool and machining method |
CN105397568A (en) * | 2015-12-24 | 2016-03-16 | 湖州以创精工机械有限公司 | Calculating method for turning tool center height error of lathe |
US10359266B2 (en) * | 2016-04-19 | 2019-07-23 | Okuma Corporation | Position measurement method of object in machine tool and position measurement system of the same |
CN106181585A (en) * | 2016-09-19 | 2016-12-07 | 深圳大宇精雕科技有限公司 | It is applicable to the carving milling Apparatus and method for of intermetallic composite coating |
CN107977953A (en) * | 2016-10-20 | 2018-05-01 | 英业达科技有限公司 | Workpiece conductive features inspection method and workpiece conductive features check system |
CN108247428A (en) * | 2016-12-29 | 2018-07-06 | 中村留精密工业株式会社 | Work mechanism |
CN107356202A (en) * | 2017-07-27 | 2017-11-17 | 中国科学院光电研究院 | A kind of laser scanning measurement system target sights method automatically |
TWI710748B (en) * | 2019-04-15 | 2020-11-21 | 財團法人工業技術研究院 | Contour accuracy measuring system and method thereof |
CN113675121A (en) * | 2020-05-13 | 2021-11-19 | 苏州能讯高能半导体有限公司 | Positioning method and device |
CN112415948B (en) * | 2020-11-25 | 2022-10-04 | 长沙埃福思科技有限公司 | Surface type machining method based on numerical control machine tool with coordinate detection function |
CN113538583A (en) * | 2021-07-28 | 2021-10-22 | 柔胜刚智能科技(苏州)有限公司 | Method for accurately positioning position of workpiece on machine tool and vision system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06246520A (en) * | 1993-02-26 | 1994-09-06 | Japan Steel Works Ltd:The | Calibration method of camera type reference hole drilling machine |
CN2638920Y (en) * | 2003-08-06 | 2004-09-08 | 雷特国际股份有限公司 | Image processing object detection device |
DE102005022344B4 (en) * | 2005-05-13 | 2008-06-19 | Siemens Ag | Apparatus and method for workpiece measurement |
TW200949472A (en) * | 2008-05-28 | 2009-12-01 | Univ Chung Yuan Christian | On-board two-dimension contour detection method and system |
KR101013749B1 (en) * | 2009-02-06 | 2011-02-14 | (주)한테크 | OneCNC Machine Tool with Vision System |
CN102343526B (en) * | 2011-06-28 | 2013-09-04 | 天津汽车模具股份有限公司 | Method for quickly determining machining center of automobile die cast |
CN203109713U (en) * | 2012-10-16 | 2013-08-07 | 西门子股份有限公司 | Positioning device for tool machining |
-
2012
- 2012-10-16 CN CN201210392978.8A patent/CN103722449B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103722449A (en) | 2014-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103722449B (en) | Machine Tool Machining Positioning Method and Device | |
CN106780623B (en) | A fast calibration method for robot vision system | |
CN106251354B (en) | Machine vision localization method for screw automatic assembling | |
CN101788805B (en) | A high-precision machine vision two-dimensional positioning method based on motion servo correction | |
CN108458659A (en) | A kind of blade contactless detection device and method | |
US10708479B2 (en) | Optical measurement of object location in three dimensions | |
CN106382886B (en) | One kind is for indexable insert tip, throw away tip processing on-line measuring device and method | |
US20150039119A1 (en) | Method for setting up work piece based on vision | |
CN106767443B (en) | A fully automatic two-dimensional image detector and measurement method | |
JP6588704B2 (en) | Tool cutting edge detection method and apparatus, and tool correction value setting apparatus | |
CN203109713U (en) | Positioning device for tool machining | |
CN107121967A (en) | A kind of laser is in machine centering and inter process measurement apparatus | |
CN114670192B (en) | Calibration method and device for robot workpiece coordinate system, storage medium and terminal | |
JP7353757B2 (en) | Methods for measuring artifacts | |
CN109732601B (en) | A method and device for automatically calibrating robot pose perpendicular to camera optical axis | |
CN113983951A (en) | Three-dimensional target measuring method and device, imager and storage medium | |
TWI575344B (en) | Tool processing and positioning method and device | |
US20150287177A1 (en) | Image measuring device | |
CN117664022A (en) | Wafer shape measurement method and device, readable storage medium and electronic equipment | |
TWM448341U (en) | Positioning method and apparatus in CNC machine tools | |
CN116214501A (en) | A four-point hand-eye calibration method | |
US11054802B2 (en) | System and method for performing operations of numerical control machines | |
CN112223102A (en) | Honing method and device based on visual positioning | |
CN112405115B (en) | Photographing type three-dimensional scanning device and method based on measurement of in-situ position of large part | |
JP7502343B2 (en) | Image Processing System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |