Tool measuring method, tool measuring machine and machine tool

The tool measuring method and machine tool correct pixel brightness in reference to reference images to mitigate diffracted light effects, ensuring accurate edge detection and shape measurement of rotating tools, particularly deep tools like PCD tools.

JP2024167045APending Publication Date: 2024-11-29SHIBAURA MASCH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024026629
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-19
Filing Date
2024-02-26
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Existing tool measuring devices face accuracy issues due to tool blur and diffracted light from backlights, particularly with deep tools like PCD tools, leading to reduced precision in measuring rotating tools.

Method used

A method and machine tool design that uses a camera and backlight setup to capture reference and measurement images, correcting pixel brightness based on reference images to eliminate the influence of diffracted light, enabling accurate edge detection of tool contours.

Benefits of technology

The method and machine tool effectively prevent accuracy loss by correcting pixel brightness, allowing precise measurement of rotating tools' shapes, especially deep tools, by minimizing the impact of diffracted light.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024167045000001_ABST
    Figure 2024167045000001_ABST
Patent Text Reader

Abstract

To provide a tool measuring method, a tool measuring machine and a machine tool, capable of measuring a tool shape in a rotational state and preventing an accuracy reduction due to diffraction light of a back light.SOLUTION: A tool measuring method includes: recording a reference image 46 obtained by imaging only illumination light 34 from a back light 32 with a camera 31 while a tool 19 deviates from an imaging range of the camera and a measuring image 47 obtained by imaging a shadow formed by the tool 19 blocking the illumination light from the back light 32 with the camera 31 while the tool 19 is in the imaging range of the camera 31; sequentially inspecting pixels of the measuring image 47; when the measured luminance of the pixels in the measuring image 47 is greater than reference luminance of the pixels at the same position in the reference image 46; correcting the illuminance of the pixels of the measuring image 47 to the reference luminance; recording a corrected image 48 having the corrected illuminance; and performing edge detection processing for the corrected image 48 to detect a shape profile 49 of the tool 19.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a tool measuring method, a tool measuring machine, and a machine tool. [Background technology]

[0002] In precision machining machines, among other machine tools, tools are measured on-machine during machining operations, and the measurement results are fed back to a control device to compensate for machining errors caused by tool wear. As a tool measuring machine that performs on-machine measurement, one that measures the shape of a rotating tool, rather than a stationary one, has been developed (Patent Document 1). In the tool measuring machine of Patent Document 1, a rotation angle sensor is used to take multiple images (e.g., 360 images taken at 1 degree intervals) while the spindle is rotated by a predetermined angle to obtain the contour of the tool (paragraph 0035). Furthermore, it is described that a strobe is placed on the opposite side of the camera across the tool to improve the accuracy of the timing of image capture (paragraph 0133) and to clarify the contour of the tool as a backlight (paragraph 0140). Paragraph 0151 states that if the shooting time is long compared to the rotational speed of the tool, the tool contour in the image will be blurred and an accurate shape will not be obtained (Figure 8a), whereas with the device of Patent Document 1, the tool contour will be made clear as mentioned above (Figure 8b). Patent Document 1 also discloses that all images obtained by photography are synthesized to obtain a still image of the maximum outer shape of the tool, and tool correction is performed based on the maximum outer shape of the tool (paragraph 0161). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 7132349 Summary of the Invention [Problem to be solved by the invention]

[0004] According to the tool measuring machine of Patent Document 1, a plurality of images for each rotation angle are superimposed, and the darkest part (dark shadow part) in the rough contour of the tool can be selected as the contour of the tool. However, this method has the problem that, especially with tools that have depth, such as PCD tools (sintered polycrystalline diamond tools), tool blur (a blurred afterimage caused by movement in the depth direction during the shooting time) is also superimposed, reducing the measurement accuracy. The blurring of the tool contour on the image can be corrected by image processing such as edge detection. However, when a strobe is used as in Patent Document 1, the backlight is diffracted near the edge of the tool, causing the contour of the tool to become bright. The bright parts of the contour caused by the diffracted light affect the sub-pixel calculation during edge detection, which tends to lean towards the bright side, resulting in a problem of reduced measurement accuracy.

[0005] An object of the present invention is to provide a tool measuring method, a tool measuring machine, and a machine tool that are capable of measuring the shape of a tool in a rotating state and preventing a decrease in accuracy due to diffracted light from a backlight. [Means for solving the problem]

[0006] The tool measurement method of the present invention uses a camera for photographing a tool attached to the spindle of a machine tool and a backlight for illuminating the tool from the opposite side to the camera, and measures the tool from an image captured by the camera, recording a reference image in which only the illumination light from the backlight is captured by the camera when the tool is out of the camera's shooting range, and a measurement image in which the shadow of the tool blocking the illumination light from the backlight is captured by the camera when the tool is within the camera's shooting range, and sequentially inspects pixels of the measurement image. If the measured brightness of the pixel in the measurement image is greater than the reference brightness of the pixel at the same position in the reference image, the brightness of the pixel in the measurement image is corrected to the reference brightness, the corrected image with the brightness corrected is recorded, and an edge detection process is performed on the corrected image to detect the contour shape of the tool.

[0007] The tool measuring machine of the present invention is a tool measuring machine having a camera for photographing a tool attached to a spindle of a machine tool, a backlight for illuminating the tool from the side opposite to the camera, and a measurement control unit for measuring the tool from the image taken by the camera, the measurement control unit having a reference image recording unit for recording a reference image photographed by the camera of only the illumination light from the backlight when the tool is out of the shooting range of the camera, a measurement image recording unit for recording a measurement image photographed by the camera of the shadow of the tool blocking the illumination light from the backlight when the tool is within the shooting range of the camera, a brightness correction unit for sequentially inspecting pixels of the measurement image, and if the measured brightness of the pixel in the measurement image is greater than the reference brightness of the pixel at the same position in the reference image, correcting the brightness of the pixel in the measurement image to the reference brightness and recording a corrected image with the brightness corrected, and a contour detection unit for performing edge detection processing on the corrected image to detect the contour shape of the tool.

[0008] In the present invention, the reference image is captured when the tool is not within the camera's shooting range and only the illumination light from the backlight is present, and the brightness of each pixel on the reference image is equivalent to the brightness of the illumination light and is not affected by the diffracted light from the tool. On the other hand, the measurement image is captured when the tool is within the camera's shooting range, and the shadow of the tool and the illumination light outside it are projected onto the measurement image, and the contour shape of the tool shadow is detected by edge detection processing. In the measurement image, pixels with large differences in brightness are lined up along the contour shape, and among these, pixels with high brightness may have high brightness fluctuations due to the effects of diffracted light by the tool. In contrast, the brightness of the pixel at the same position in the reference image is the reference brightness when there is no effect of diffracted light, so when the brightness of a pixel in the measurement image exceeds the reference brightness, it can be corrected to the reference brightness to eliminate the effects of diffracted light in each pixel of the measurement image. As a result, it is possible to measure the tool shape in a rotating state, and to prevent a decrease in accuracy due to diffracted light from the backlight. In order to reduce the processing load, it is preferable to narrow down the comparison of the brightness of each pixel to a region including the tool contour, rather than the entire screen of the measurement image. Also, an image obtained by superimposing images taken at multiple angular positions can be used as the measurement image.

[0009] In the tool measuring machine of the present invention, it is preferable that the backlight is a strobe that emits light when triggered by a signal output from a rotation sensor that detects rotation of the spindle of the machine tool.

[0010] In the tool measuring machine of the present invention, it is preferable that the measurement control unit uses the camera to capture a plurality of images as the measurement images, in which the spindle of the machine tool is rotated by a predetermined angle at a time, and causes the contour detection unit to detect the contour shape and the brightness correction unit to correct the brightness for all of the captured measurement images.

[0011] The machine tool of the present invention has a spindle to which a tool is attached, and the above-mentioned tool measuring machine of the present invention. In the machine tool of the present invention, the same effects as those described in the tool measuring machine of the present invention can be obtained. Effect of the Invention

[0012] According to the present invention, it is possible to provide a tool measuring machine, a machine tool, and a tool measuring method that are capable of measuring the shape of a tool in a rotating state and preventing a decrease in accuracy due to diffracted light from a backlight. [Brief description of the drawings]

[0013] [Figure 1] 1 is an elevational view showing a machine tool according to an embodiment of the present invention; [Diagram 2] FIG. 4 is a plan view showing an image of a tool in the tool measuring machine according to the embodiment. [Diagram 3] FIG. 4 is a schematic diagram showing an image of a tool captured by the tool measuring machine of the embodiment. [Figure 4] FIG. 2 is a block diagram showing a measurement control unit of the tool measuring machine according to the embodiment. [Diagram 5] 4 is a flowchart showing a tool measurement procedure according to the embodiment. [Figure 6] FIG. 4 is a schematic diagram showing a reference image according to the embodiment. [Figure 7] FIG. 4 is a schematic diagram showing a measurement image according to the embodiment. [Figure 8] FIG. 4 is a schematic diagram showing a corrected image according to the embodiment. [Figure 9] FIG. 4 is a side view showing a tool photographed in the embodiment. [Figure 10] FIG. 10 is a plan view showing the tip shape of the tool shown in FIG. 9. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows a machine tool 10 to which the present invention is applied. Machine tool 10 has a table 12 on the upper surface of bed 11, and a workpiece 13 is placed on the upper surface of table 12. A gate-shaped frame 14 is installed on the upper surface of bed 11 so as to straddle table 12. A spindle head 17 is supported on cross rail 15 of frame 14 via a saddle 16. A spindle 18 is installed on spindle head 17, and a tool 19 is attached to the tip of spindle 18.

[0015] The tool 19 is moved relative to a desired position in three dimensions with respect to the workpiece 13 by the X-axis movement of the table 12 relative to the bed 11, the Y-axis movement of the saddle 16 relative to the cross rail 15, and the Z-axis movement of the spindle head 17 relative to the saddle 16. The workpiece 13 is cut by the tool 19 by rotating the spindle 18 using a main motor (not shown) housed in the spindle head 17. A control device 20 is connected to the machine tool 10, and the operation of the machine tool 10, including the axial movement and rotation of the tool 19 described above, is controlled by the control device 20. The control device 20 is a so-called CNC device (computer numerical control device) and is configured with pre-installed software. It can control the machine tool 10 by executing a specified machining program, and can machine the workpiece 13 into a specified shape. In machine tool 10, wear of tool 19 due to machining is unavoidable. In order to detect wear of tool 19 while tool 19 is attached to machine tool 10 during machining of workpiece 13, a tool measuring machine 30 is installed on machine tool 10.

[0016] The tool measuring machine 30 has a camera 31 and a backlight 32 for photographing the tool 19. The camera 31 and the backlight 32 are installed facing each other on the upper surface of a base 33, and the tool 19 can be introduced between them. The camera 31 and the backlight 32 are installed on the periphery of the upper surface of the table 12 so as not to interfere with the machining of the workpiece 13 by the tool 19.

[0017] As shown in FIG. 2, the tool measuring machine 30 causes the backlight 32 to emit light, thereby irradiating the camera 31 with illumination light 34 consisting of a parallel light beam from the backlight 32. Backlight 32 is a strobe lighting device that uses a high-brightness LED (light-emitting diode) as a light source, and can emit a strobe light with high precision at a specified timing. For this purpose, a rotation sensor (not shown) that detects the rotation of spindle 18 is installed in spindle head 17 of machine tool 10, and backlight 32 emits light using a signal output from the rotation sensor as a trigger. This strobe control is executed by measurement operation control unit 41, which will be described later. The camera 31 is a semiconductor imaging device using a CCD (charge-coupled device), and can detect illumination light 34 when the backlight 32 emits a strobe light and output it as an image.

[0018] As shown in FIG. 3, in the camera 31, a contour shape 191 of the tool 19 placed between the camera 31 and a backlight 32 is projected by the illumination light 34 and captured as an image 311. The tool 19 introduced into the tool measuring machine 30 is kept in a rotating state, and the backlight 32 is strobed at any rotation angle of the tool 19, thereby allowing an image 311 of the tool 19 at that angle to be captured. For example, by capturing an image 360 ​​times for each degree, 360 images 311 corresponding to one rotation of the tool 19 can be obtained. It should be noted that a boundary 312 is assigned to the image 311 outside the contour shape 191 of the tool 19. The boundary 312 is used in image processing, which will be described later.

[0019] The tool measuring machine 30 has a measurement control unit 40 in the control device 20 in order to take the image 311 described above or to measure the contour shape of the tool 19 . In FIG. 4, the control device 20 includes an operation control section 21 that controls the operation of the machine tool 10, a machining program 22 that is executed by the operation control section 21 to machine the workpiece 13, and a measurement control section 40. The measurement control unit 40 has a measurement operation control unit 41, a reference image recording unit 42, a measurement image recording unit 43, a brightness correction unit 44, and a contour detection unit 45. Furthermore, the measurement control unit 40 has a memory area capable of recording a reference image 46, a measurement image 47, a correction image 48, and a contour shape 49.

[0020] The measurement operation control unit 41 controls the operation of the camera 31 and backlight 32 described above, and also controls the measurement operation control unit 41, the reference image recording unit 42, the measurement image recording unit 43, the brightness correction unit 44, and the contour detection unit 45 to perform the operations described below. The reference image recording unit 42 records a reference image 46 by capturing only the illumination light from the backlight 32 with the camera 31 in a state where the tool 19 is out of the capturing range of the camera 31. The measurement image recording unit 43 records a measurement image 47 by capturing an image of the shadow of the tool 19 blocking the illumination light 34 from the backlight 32 with the camera 31 while the tool 19 is within the shooting range of the camera 31 . The luminance correction unit 44 sequentially checks the pixels of the measurement image 47, and if the luminance of the pixel in the measurement image 47 (measured luminance Lm) is greater than the luminance of the pixel at the same position in the reference image 46 (reference luminance Lr), it corrects the measured luminance Lm of the pixel in the measurement image 47 to the reference luminance Lr, and records a corrected image 48 with the luminance corrected. The specific operation of the luminance correction unit 44 will be described later. The contour detection unit 45 performs edge detection processing on the corrected image 48 to detect the contour shape of the tool 19 and records it as a contour shape 49 .

[0021] In the tool measuring machine 30, an image of the tool 19 is taken under the control of the measurement control unit 40, and the taken image is processed to measure the contour shape of the tool 19. In FIG. 5, the measurement control unit 40 operates the machine tool 10 using the measurement operation control unit 41 and the operation control unit 21, and moves the tool 19 away from between the camera 31 and the backlight 32, so that the tool 19 is outside the shooting range of the camera 31 (process S1). In this state, only the illumination light 34 from the backlight 32 is incident on the camera 31, and the measurement control unit 40 causes the camera 31 to capture an image via the measurement operation control unit 41, and the reference image recording unit 42 records the image of the camera 31 in which only the illumination light 34 from the backlight 32 is captured as a reference image 46 (process S2).

[0022] Next, the measurement control unit 40 operates the machine tool 10 using the measurement operation control unit 41 and the operation control unit 21, and introduces the tool 19 between the camera 31 and the backlight 32, so that the tool 19 is within the shooting range of the camera 31 (process S3). In this state, illumination light 34, some of which is blocked by the tool 19, is incident on the camera 31, and the measurement control unit 40 controls the camera 31 to take an image via the measurement operation control unit 41, and the measurement image recording unit 43 records the image of the illumination light 34 onto which the contour shape of the tool 19 is projected as a measurement image 47 (process S4). For example, the measurement image 47 may be obtained by taking 360 images of the tool 19, one rotation of which corresponds to one rotation of the tool 19, while rotating the tool 19 by one degree each time, and then superimposing these images to obtain the measurement image 47.

[0023] Once the reference image 46 and the measurement image 47 are obtained, the measurement control unit 40 causes the brightness correction unit 44 to correct the brightness of the measurement image 47 . The luminance correction unit 44 sequentially checks the pixels of the measurement image 47 and determines whether the luminance of the pixel in the measurement image 47 (measurement luminance Lm) is greater than the luminance of the pixel at the same position in the reference image 46 (reference luminance Lr) (process S5). Then, for pixels where the measured luminance Lm is greater than the reference luminance Lr, the measured luminance Lm of the corresponding pixel is corrected to the reference luminance Lr (step S6).

[0024] These pixel-by-pixel inspections and corrections may be performed on all pixels in the measurement image 47, but may be limited to a region around the contour of the tool 19 in order to reduce the processing load. Such a region may be the boundary 312 assigned to the outside of the contour shape 191 of the tool 19 in FIG. 3 described above. The boundary 312 may be arbitrarily set by the user, or may be automatically set to the outside of the schematic contour of the tool 19 that appears in the measurement image 47.

[0025] 6 to 8 show an example of a specific process of luminance correction by the luminance correction unit 44. FIG. In FIG. 6, the pixels 461 to 464 of the reference image 46 receive the illumination light 34 from the backlight 32, and the luminance of each pixel 461 (reference luminance Lr for each pixel) ranges from "198" to "204". 7, the shadow of the tool 19 blocking the illumination light 34 appears as a contour shape 191 in the measurement image 47. The brightness (measured brightness Lm) of pixel 472 in the center of the contour shape 191 is "0", and the measured brightness Lm of pixel 473 on the periphery of the contour shape 191 ranges from "9" to "13". Further outside the periphery of the contour shape 191, the measured brightness Lm ranges from "236" to "246". Further outside, pixel 471 ranges from "198" to "204".

[0026] In the luminance correction by the luminance corrector 44, the measured luminance Lm of each pixel of the measurement image 47 is read in order, the corresponding reference luminance Lr of the reference image 46 is read, and a comparison is made between them to create a corrected image 48. For example, the measured luminance Lm of pixel 472 in the measurement image 47 is “0”, which does not exceed the reference luminance Lr of “199” of pixel 462 in the reference image 46 corresponding to pixel 472 (see FIG. 6), so no correction is made to the reference luminance Lr (see pixel 482 in FIG. 8). Similarly, the measured luminance Lm of pixel 473 in measurement image 47 is “9”, which does not exceed the reference luminance Lr of “200” of pixel 463 in reference image 46 corresponding to pixel 473 (see FIG. 6), so no correction is made to the reference luminance Lr (see pixel 483 in FIG. 8). On the other hand, the measured luminance Lm of pixel 474 in measurement image 47 is "240", which exceeds the reference luminance Lr of "202" of pixel 464 (see FIG. 6) in reference image 46 which corresponds to pixel 474. In this case, luminance corrector 44 corrects the measured luminance Lm of pixel 474 in measurement image 47 to "202", which is the reference luminance Lr of the corresponding pixel 464 (see pixel 484 in FIG. 8). By sequentially executing such processing for each pixel, the measured luminance Lm exceeds the reference luminance Lr in the pixels shown in white in FIG. 7 (including pixel 474), and the luminance is corrected to the reference luminance Lr. In addition, for pixels 471 and the like arranged at the bottom of FIG. 7 and away from the contour shape 191, the measured luminance Lm coincides with the reference luminance Lr, and no correction to the reference luminance Lr is performed (see pixel 481 in FIG. 8).

[0027] Returning to FIG. 5, once the luminance correction by the luminance correction unit 44 (step S6) has been completed as described above, the corrected image 48 including the luminance-corrected pixels 484 and the like is recorded (step S7). When the corrected image 48 is obtained, the measurement control unit 40 performs necessary processing such as edge detection processing on the corrected image 48 using the contour detection unit 45, and records the obtained shape data as the contour shape 49 of the tool 19 (process S8).

[0028] According to the above-described embodiment, the following effects can be obtained. In this embodiment, the reference image 46 is captured when the tool 19 is not in the shooting range of the camera 31 and only the illumination light 34 of the backlight 32 is present, and the luminance of each pixel on the reference image 46 (reference luminance Lr) is luminance equivalent to the illumination light 34 and is not affected by diffracted light from the tool 19. On the other hand, the measurement image 47 is captured when the tool 19 is in the shooting range, and the shadow (contour shape 191) of the tool 19 and the illumination light 34 outside of it are projected onto the measurement image 47, and the contour shape of the shadow of the tool 19 is detected by edge detection processing. In the measurement image 47, pixels with large differences in brightness are lined up along the contour shape 191, and among these, the high-brightness pixels may have high fluctuations in brightness due to the effects of diffracted light by the tool. In contrast, the brightness of the pixel at the same position in the reference image 46 is the reference brightness Lr in a state without the effects of diffracted light, so when the measured brightness Lm of a pixel in the measurement image 47 exceeds the reference brightness Lr, the effects of diffracted light in each pixel of the measurement image 47 can be eliminated by correcting it to the reference brightness Lr. In the corrected image 48, the influence of the diffracted light of the backlight 32 is eliminated, and a decrease in accuracy due to the diffracted light of the backlight 32 can be prevented when measuring the contour shape of the tool 19 in a rotating state by edge detection. As a result, the contour shape of the tool 19 in a rotating state can be measured, and a decrease in accuracy due to diffracted light from the backlight 32 can be prevented.

[0029] In the brightness correction (process S6) by the brightness correction unit 44, the brightness comparison for each pixel is narrowed down to an area including the contour shape 191 of the tool 19 (such as the boundary 312 in Figure 3) rather than the entire screen of the measurement image, thereby reducing the processing load on the measurement control unit 40.

[0030] As described above, according to this embodiment, the contour shape of the tool 19 in a rotating state can be measured, and a decrease in accuracy due to diffracted light from the backlight 32 can be prevented. The effect of this embodiment is particularly effective for tools 19 having depth such as PCD tools (sintered polycrystalline diamond tools). 9 and 10, a PCD tool 50 has a regular hexagonal cross section and a tapered end face 51 at its tip, which is also a regular hexagon and has a maximum diameter D. Three grooves 52 having a width W are formed in the end face 51, connecting opposite sides of the regular hexagon. Six protrusions 53 are formed in the end face 51 at the vertices of the regular hexagon where the grooves 52 do not pass. A coating of polycrystalline diamond sintered compact is formed on the surfaces and sides of these protrusions 53.

[0031] Such a tool 50 is attached to the machine tool 10 and rotated in the R direction to machine the workpiece 13 (see FIG. 1). Furthermore, the contour shape of the tool 50 is measured by the tool measuring machine 30 while it is attached to the machine tool 10. In measuring the contour shape, a reference image 46 is recorded for the tool 50 (steps S1 to S2 in FIG. 5), a measurement image 47 is recorded (steps S3 to S4), pixel brightness is adjusted (steps S5 to S6), and then a corrected image 48 is recorded (step S7), and the contour shape is detected by edge detection (step S8). The tip of the rotating tool 50 has a depth-wise thickness equal to the maximum diameter D, and the measurement image 47 detected within the boundary 312 has a blur in the depth direction (a blurred afterimage caused by movement in the depth direction during shooting). This blur can be corrected by detecting the contour shape using edge detection (process S8). Furthermore, the influence of the diffracted light of the backlight 32 can be eliminated by adjusting the pixel brightness (processes S5 to S6) prior to edge detection. In this way, by performing edge detection on the corrected image 48 in which the influence of the diffracted light of the backlight 32 has been corrected, a decrease in accuracy in measuring the contour shape of the tool 50 can be prevented.

[0032] The present invention is not limited to the above-described embodiment, and modifications within the scope of the present invention are included in the present invention. In the above embodiment, the tool 19 is rotated to capture multiple images at different angles, which are then overlaid to form the measurement image 47, but a single image showing the contour shape of the tool 19 may also be used. The backlight 32 is not limited to an LED light source and may be of another type. In cases where the camera 31 has high responsiveness, the backlight 32 does not need to be a strobe light. The camera 31 is not limited to a CCD type, and may be of any other type as long as it has high resolution and high speed response. The camera 31 and the backlight 32 are not limited to being disposed opposite each other on the same base 33, but may be supported individually on the table 12. The camera 31 and the backlight 32 are not limited to being supported on the table 12, but may be supported by a robot arm and located close to and apart from the tool 19, for example. [Industrial Applicability]

[0033] The present invention can be used in a tool measuring method, a tool measuring machine, and a machine tool. [Explanation of symbols]

[0034] 10...machine tool, 11...bed, 12...table, 13...workpiece, 14...frame, 15...cross rail, 16...saddle, 17...spindle head, 18...spindle, 19...tool, 191...contour shape, 20...control device, 21...motion control unit, 22...machining program, 30...tool measuring machine, 31...camera, 311...image, 312...boundary, 32...backlight, 33...base, 34...illumination light, 40...measurement control unit, 41...measurement motion control unit, 42...reference image recording unit , 43...measured image recording section, 44...brightness correction section, 45...contour detection section, 46...reference image, 47...measured image, 48...corrected image, 49...contour shape, 461, 462, 463, 464, 471, 472, 473, 474, 481, 482, 483, 484...pixels, Lm...measured brightness, Lr...reference brightness, S1, S2, S3, S4, S6, S7, S8...processing, 50...tool, 51...end surface, 52...groove portion, 53...protrusion portion, D...maximum diameter, R...rotation direction, W...width.

Claims

1. A tool measurement method for measuring a tool attached to a spindle of a machine tool from an image captured by a camera using a camera that captures an image of the tool and a backlight that illuminates the tool from an opposite side to the camera, the method comprising the steps of: a reference image obtained by capturing only the illumination light from the backlight with the camera in a state where the tool is out of the capturing range of the camera; and a measurement image of a shadow of the tool blocking the illumination light from the backlight captured by the camera while the tool is within the camera's shooting range; and sequentially inspecting pixels of the measurement image, and if a measured luminance of the pixel in the measurement image is greater than a reference luminance of the pixel at the same location in the reference image, correcting the luminance of the pixel in the measurement image to the reference luminance, and recording a corrected image with the luminance corrected; A tool measuring method for detecting a contour shape of the tool by performing edge detection processing on the corrected image.

2. A tool measuring machine having a camera that photographs a tool attached to a spindle of a machine tool, a backlight that illuminates the tool from an opposite side to the camera, and a measurement control unit that measures the tool from an image photographed by the camera, The measurement control unit is a reference image recording unit that records a reference image captured by the camera using only the illumination light from the backlight in a state where the tool is out of the imaging range of the camera; a measurement image recording unit that records a measurement image captured by the camera of a shadow of the tool blocking the illumination light from the backlight when the tool is within a shooting range of the camera; a brightness correction unit that sequentially checks pixels of the measurement image, and when a measured brightness of the pixel in the measurement image is greater than a reference brightness of the pixel at the same position in the reference image, corrects the brightness of the pixel in the measurement image to the reference brightness, and records a corrected image with the brightness corrected; a contour detection unit that performs edge detection processing on the corrected image to detect the contour shape of the tool.

3. 3. The tool measuring machine according to claim 2, The backlight is a strobe that emits light when triggered by a signal output from a rotation sensor that detects the rotation of the spindle of the machine tool.

4. In the tool measuring machine according to claim 2 or 3, The measurement control unit of this tool measuring machine captures, as the measurement images, a plurality of images with the camera in a state in which the spindle of the machine tool rotates by a predetermined angle at a time, and causes the contour detection unit to detect the contour shape and the brightness correction unit to correct the brightness for all of the captured measurement images.

5. A machine tool comprising: a spindle to which a tool is attached; and the tool measuring machine according to claim 2.

Citation Information

Patent Citations

  • Tool shape measuring device and tool shape measuring method

    JP7132349B2