WO2022163426A1 - 画像処理装置 - Google Patents

画像処理装置 Download PDF

Info

Publication number
WO2022163426A1
WO2022163426A1 PCT/JP2022/001532 JP2022001532W WO2022163426A1 WO 2022163426 A1 WO2022163426 A1 WO 2022163426A1 JP 2022001532 W JP2022001532 W JP 2022001532W WO 2022163426 A1 WO2022163426 A1 WO 2022163426A1
Authority
WO
WIPO (PCT)
Prior art keywords
tool
inspection
area
unit
image
Prior art date
Application number
PCT/JP2022/001532
Other languages
English (en)
French (fr)
Inventor
純一 窪田
Original Assignee
Dmg森精機株式会社
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 Dmg森精機株式会社 filed Critical Dmg森精機株式会社
Priority to EP22745649.8A priority Critical patent/EP4272895A1/en
Priority to CN202280012666.1A priority patent/CN116802014A/zh
Priority to JP2022578260A priority patent/JPWO2022163426A1/ja
Publication of WO2022163426A1 publication Critical patent/WO2022163426A1/ja
Priority to US18/227,955 priority patent/US20230377128A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, 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/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/24Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves
    • B23Q17/248Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves using special electromagnetic means or methods
    • B23Q17/249Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves using special electromagnetic means or methods using image analysis, e.g. for radar, infrared or array camera images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Definitions

  • the present invention relates to tool inspection technology for machine tools.
  • Machine tools include devices that cut workpieces into desired shapes and devices that create workpieces by laminating metal powder.
  • Machine tools for cutting include a turning center that processes the work by placing a cutting tool against the rotating work, and a machining center that processes the work by placing a rotating tool against the work, combining these functions.
  • the tool is fixed to the tool holder such as the spindle or tool post.
  • a machine tool processes a workpiece while exchanging tools and moving a tool holder according to a machining program prepared in advance.
  • a tool entangled in chips must be replaced with another tool of the same type. After replacement, machining is continued with a new tool. The operator removes chips from the tool after finishing machining (see Patent Document 1).
  • the tool can often be used continuously. A small amount of chips often spontaneously dislodges from the tool during spindle movement. Since it takes time to replace the tool, it is necessary to appropriately determine whether the tool needs to be replaced according to the amount of chips wrapped around the tool (hereinafter referred to as "wound amount").
  • An image processing device includes a receiving unit that receives a captured image of a tool from a camera, and an area of a region that is at least a predetermined distance away from the center of the tool in the captured image corresponding to the tool. and an inspection unit that determines whether the tool can be used continuously based on the size of the surplus area.
  • An image processing device includes a receiving unit that receives a plurality of captured images from the camera while the camera and the tool move relative to each other in the longitudinal direction of the tool; A calculation unit for calculating difference points between a first area including an area corresponding to a tool and a second area including an area corresponding to a tool in a reference image; and an inspection unit for determining propriety of use.
  • FIG. 4 is a schematic diagram showing the positional relationship among a tool, a camera, and a lighting device in a tool recognition area
  • 1 is a hardware configuration diagram of a machine tool and an image processing device
  • FIG. 1 is a functional block diagram of an image processing device
  • FIG. It is a schematic diagram which shows the positional relationship of a tool and an imaging area.
  • FIG. 4 is a schematic diagram of a captured image during a preliminary inspection
  • FIG. 5 is a schematic diagram for explaining a method of calculating the number of black pixels of a reference tool during preliminary inspection
  • FIG. 10 is a schematic diagram of a captured image during a winding inspection
  • FIG. 10 is a schematic diagram for explaining a method of calculating the number of black pixels of a used tool at the time of wrapping inspection; It is a screen diagram of a reference tool imaging screen. It is a screen figure of a use tool imaging screen. 7 is a graph showing the relationship between the amount of winding and the number of black pixels; It is a graph which shows the relationship between the winding amount and the number of difference pixels. 4 is a flow chart showing the process of wrapping inspection.
  • FIG. 15 is a flow chart showing details of an image inspection in S26 of FIG. 14;
  • FIG. It is a schematic diagram of the captured image at the time of the preliminary inspection in a modification. It is a screen figure of an inspection setting screen. It is a 1st screen figure of the used tool imaging screen in a modification. It is a 2nd screen figure of the used tool imaging screen in a modification. It is a 3rd screen figure of the used tool imaging screen in a modification.
  • FIG. 1 is an external view of a machine tool 100.
  • FIG. A machine tool 100 according to the present embodiment is a multitasking machine that processes a work placed within a processing area 200 .
  • a workpiece is fixed to a holder 104 and cut by a tool 102 attached to a main shaft, which is another holder.
  • a holding portion 104 that holds a work is rotationally driven by a driving mechanism.
  • the lower lighting device 108 illuminates the tool 102 and the upper camera 106 images the tool 102 .
  • Tool registration, tool inspection, preliminary inspection, and winding inspection, which will be described later, are performed based on the captured image at this time.
  • the configuration of the tool recognition area 210 is further detailed in connection with FIG. 2 below.
  • the machine tool 100 has a cover 202 that blocks the outside.
  • Cover 202 includes door 204 .
  • a user opens the door 204 to attach a work to the processing area 200 and take out the work from the processing area 200 .
  • the operation panel 206 receives various operations for the machine tool 100 from the operator.
  • the operation panel 206 is connected to the image processing device 110 .
  • a worker can remotely monitor the working status of the machine tool 100 using the image processing device 110 .
  • the main body of the machine tool 100 and the image processing device 110 are connected via a wired cable.
  • Image processing device 110 may be formed as an internal device of machine tool 100 , for example, operation panel 206 .
  • the tool storage unit 130 stores a plurality of tools 102.
  • a tool changer (to be described later) acquires a tool 102 from a plurality of tools 102 stored in the tool storage 130 and mounts it on the spindle.
  • the Y-axis and Z-axis are set in the horizontal direction
  • the X-axis is set in the vertical direction.
  • the Z-axis direction corresponds to the axial direction of the spindle and the work.
  • FIG. 2 is a schematic diagram showing the positional relationship among the tool 102, the camera 106 and the illumination device 108 in the tool recognition area 210.
  • the tool 102 includes a blade portion 112 used for machining a workpiece and a shank portion 114 fixed to a holder 118 of a spindle 116 .
  • the spindle 116 is configured to be rotatable and movable while holding the tool 102 .
  • the spindle 116 can also rotate the tools it holds.
  • the camera 106 includes an image sensor (imaging device) such as CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-Coupled Device).
  • the camera 106 images the tool 102 attached to the spindle 116 from above (in the X-axis direction).
  • the camera 106 is connected to the image processing device 110 and the captured image is transmitted to the image processing device 110 .
  • Camera 106 is fixed in tool recognition area 210 .
  • the tool 102 By rotating the tool 102 with the main shaft 116 around the Z-axis, the tool 102 can be imaged from multiple directions. Further, by moving the tool 102 in the horizontal direction (YZ direction) with the spindle 116, it is possible to image a plurality of locations of the tool 102.
  • a lighting device 108 is fixed at the bottom so as to face the camera 106 .
  • a lighting device 108 illuminates the tool 102 from below. Transmitted illumination by the illumination device 108 allows the camera 106 to acquire a high-contrast captured image that facilitates grasping the contour position of the tool 102 .
  • tool registration When the user newly registers the tool 102 (hereinafter referred to as "tool registration"), the operation panel 206 is set to tool registration mode, and the new tool 102 is attached to the spindle 116 .
  • a spindle 116 moves and rotates the tool 102 and a fixed camera 106 automatically images the tool 102 from various positions and orientations.
  • a tool shape is recognized from a large number of captured images obtained by the camera 106, and the tool ID and the tool shape are associated and registered. With such a control method, the tool shape can be automatically associated with the tool ID and registered for each tool 102 .
  • the tool geometry is formed as two-dimensional data or three-dimensional data.
  • the spindle 116 when inspecting the tool 102 during machining or after machining, the spindle 116 causes the tool 102 to enter the tool recognition area 210 . As in new registration, the spindle 116 moves and rotates the tool 102, and the camera 106 automatically captures images of the tool 102 from various positions and directions. A tool shape is recognized from a large number of captured images obtained by the camera 106 . Hereinafter, such an inspection that is appropriately performed during machining will be referred to as a "tool inspection". The operator compares the tool shape data at the time of tool registration and the tool shape data at the time of tool inspection to determine the degree of wear of the tool 102 and the presence/absence of chipping.
  • the camera 106 in this embodiment has a resolution of approximately one million pixels (1224 ⁇ 1024).
  • the imaging range is about 300 mm ⁇ 300 mm.
  • the camera 106 can acquire a maximum of 80 captured images per second.
  • the machine tool 100 in this embodiment also performs a "wrapping inspection" for inspecting the amount of chips wrapped around the tool 102, in addition to the tool inspection for determining whether the tool 102 is damaged or the like.
  • the wrap inspection will be mainly described below.
  • FIG. 3 is a hardware configuration diagram of the machine tool 100 and the image processing device 110.
  • Machine tool 100 includes an operation controller 120 , a machining controller 122 , a machining device 124 , a tool changer 126 and a tool storage 130 .
  • a machining control unit 122 functioning as a numerical controller transmits a control signal to the machining device 124 according to a machining program.
  • the processing device 124 moves the spindle 116 according to instructions from the processing control unit 122 to process the workpiece.
  • the operation control device 120 includes an operation panel 206 and controls the processing control section 122 .
  • the tool storage section 130 stores tools.
  • the tool changer 126 corresponds to a so-called ATC (Automatic Tool Changer).
  • the tool exchange unit 126 takes out a tool from the tool storage unit 130 according to an exchange instruction from the machining control unit 122, and exchanges the tool on the spindle 116 with the taken out tool.
  • the image processing device 110 mainly performs image processing such as tool shape recognition. As mentioned above, the image processing device 110 may be configured as part of the operation control device 120 .
  • the image processing device 110 may be a general laptop PC (Personal Computer) or tablet computer.
  • FIG. 4 is a functional block diagram of the image processing device 110.
  • Each component of the image processing apparatus 110 includes a computing unit such as a CPU (Central Processing Unit) and various computer processors, storage devices such as memory and storage, hardware including a wired or wireless communication line connecting them, and a storage device. , and implemented by software that supplies processing instructions to the computing unit.
  • a computer program may consist of a device driver, an operating system, various application programs located in their higher layers, and a library that provides common functions to these programs.
  • Each block described below represents a functional block rather than a hardware configuration.
  • operation control device 120 and the processing control unit 122 also include hardware including computing units such as processors, storage devices such as memories and storages, and wired or wireless communication lines connecting them, and hardware stored in the storage devices and Software or programs that supply processing instructions may be implemented on an operating system separate from the image processing apparatus 110 .
  • Image processing apparatus 110 includes user interface processing section 140 , data processing section 142 , communication section 300 and data storage section 144 .
  • the user interface processing unit 140 receives operations from the operator, and is in charge of user interface processing such as image display and audio output.
  • a communication unit 300 is in charge of communication with the operation control device 120 .
  • the data processing unit 142 executes various processes based on data acquired by the user interface processing unit 140 and data stored in the data storage unit 144 .
  • Data processing unit 142 also functions as an interface for user interface processing unit 140 , communication unit 300 and data storage unit 144 .
  • the data storage unit 144 stores various programs and setting data.
  • User interface processing unit 140 includes an input unit 146 and an output unit 148 .
  • the input unit 146 receives input from the user via hard devices such as a touch panel, mouse, and keyboard.
  • the output unit 148 provides various information to the user through image display or audio output.
  • Output unit 148 includes display unit 138 .
  • the display unit 138 displays various images on the screen.
  • the communication unit 300 includes a receiving unit 304 that receives data from the operation control device 120 and a transmission unit 306 that transmits data and commands to the operation control device 120 .
  • the data processing section 142 includes an area calculation section 150 , an inspection section 152 , a tool change instruction section 154 and an imaging processing section 156 .
  • the imaging processing unit 156 controls the camera 106 to image the tool 102 .
  • the machining control unit 122 moves the spindle 116 directly below the camera 106 , and the imaging processing unit 156 images the tool 102 .
  • the direction of movement of the spindle 116 can also be instructed from the imaging processing unit 156 to the processing control unit 122 .
  • the inspection unit 152 binarizes the captured image into white pixels and black pixels according to the brightness of each pixel of the captured image.
  • the inspection unit 152 controls tool registration, tool inspection, preliminary inspection and winding inspection.
  • the area calculation unit 150 calculates a "surplus area", which will be described later, as the amount of chip wrapping around the tool 102 from the captured images obtained during the preliminary inspection and the wrapping inspection.
  • the inspection unit 152 determines whether the tool can be used continuously based on the surplus area.
  • the tool change instruction unit 154 instructs the machining control unit 122 to change the tool via the operation control device 120. instruct.
  • the machining control unit 122 instructs the tool exchange unit 126 to exchange the tool determined to be abnormal.
  • FIG. 5 is a schematic diagram showing the positional relationship between the tool 102 and the imaging area 170.
  • the imaging area 170 is positioned directly below the light receiving surface of the camera 106 .
  • Camera 106 images objects within imaging region 170 .
  • the machining control unit 122 inserts the tool 102 into the imaging area 170 by moving the spindle 116 . Since the imaging area 170 is smaller than the tool 102, the entire tool 102 cannot be imaged at once.
  • the lens of the camera 106 is enlarged in order to enlarge the imaging area 170, the cost of the camera 106 will increase. Also, if a large camera 106 is installed in the tool recognition area 210, the space in the machining area 200 will be squeezed, which is not preferable. For this reason, in the present embodiment, a method is adopted in which the relatively small camera 106 captures images of the tool 102 a plurality of times and recognizes the shape of the entire tool 102 based on the multiple captured images.
  • the captured image obtained by capturing a part of the tool 102 with the camera 106 will be referred to as a "partial image".
  • the machining control unit 122 moves the tool 102 (main shaft 116) in the Z-axis positive direction, that is, along the longitudinal direction of the tool 102 at a constant speed.
  • the longitudinal direction here means the axial direction of the tool 102 .
  • the longitudinal direction of the tool 102 coincides with the Z-axis direction.
  • the direction of the tool length of the tool 102 coincides with the longitudinal direction.
  • the imaging processing unit 156 constantly monitors the imaging area 170 . A live view image in the imaging area 170 is transmitted from the camera 106 to the image processing device 110 .
  • FIG. 6 is a schematic diagram of an image captured during a preliminary inspection.
  • the inspection unit 152 performs a winding inspection on the tool 102 during or after machining at a predetermined timing.
  • the execution timing of the wrapping inspection is arbitrary, in this embodiment, it is assumed that the wrapping inspection is executed when the continuous use time of a certain tool 102A exceeds a predetermined time, for example, 3 minutes. In other words, when the tool 102A is replaced with another tool 102B when the continuous use time of the tool 102A is less than 3 minutes, the wrapping inspection of the tool 102A is not performed.
  • the tool 102A is determined to be abnormal in the winding inspection, the tool 102A is replaced with a spare tool 102A of the same type, and machining is continued.
  • the inspection unit 152 executes a preliminary inspection that is a prerequisite for the winding inspection after the tool registration is completed.
  • the contents of the preliminary inspection and the winding inspection are basically the same, but the details will be described later.
  • the inspection unit 152 compares the result of the preliminary inspection and the result of the inspection of winding, calculates the amount of winding, and performs abnormality/normal determination based on the amount of winding.
  • FIG. 6 shows an image captured during a preliminary inspection of a certain tool 102A1 (one of the A type tools 102).
  • the X coordinate value of the center line of the tool 102A1 is "X1”
  • the radius of the tool 102A1 is "R”. Therefore, the X coordinate value X2 of the contour of the tool 102A is "X1+R”.
  • the inspection unit 152 After registering the tool 102A1, the inspection unit 152 performs a preliminary inspection on the tool 102A1.
  • the imaging processing unit 156 instructs the operation control device 120 to linearly move the main shaft 116 in the Z-axis direction.
  • the imaging processing unit 156 After detecting the tip of the blade portion 112 in the imaging region 170 (live view image), the imaging processing unit 156 instructs the camera 106 to acquire a captured image (partial image).
  • the camera 106 acquires the first partial image and fixes it in the memory when receiving the instruction.
  • the first partial image is obtained at a predetermined starting position P1.
  • the start position P1 is defined, for example, when the Z distance between the tip point of the tool 102A1 and the center point of the captured image reaches a predetermined value.
  • the processing control unit 122 After acquiring the partial image at the start position P1, the processing control unit 122 slowly linearly moves the spindle 116 (tool 102A1) in the Z-axis positive direction.
  • the imaging processing unit 156 continuously acquires partial images in conjunction with the movement of the tool 102A1.
  • a final partial image is acquired at a predetermined end position P2.
  • a captured image including a partial outline of the blade portion 112 is obtained from the group of partial images obtained from the start position P1 to the end position P2.
  • the area calculation unit 150 sets an inspection region Q as a part of the imaging range for the multiple obtained partial images.
  • the X coordinate of the inspection area corresponds to the range of X1 to X3 and the Z coordinate range of Z1 to Z2.
  • the positions of Z1 and Z2 are arbitrary, but it is desirable that Z2 be set at a position that does not include the shank portion 114 .
  • the entire inspection area Q may be imaged in one imaging.
  • the imaging area 170 is smaller than the camera 106 as in this embodiment, the tool 102 is imaged multiple times by moving the spindle 116, and the imaging processing unit 156 determines the inspection area Q from a plurality of partial images. It suffices to synthesize captured images.
  • the "area corresponding to the tool 102" may be the entire area of the blade portion 112 and the shank portion 114, or may be an area including at least the inspection area Q.
  • FIG. 7 is a schematic diagram for explaining a method of calculating the number of black pixels of the reference tool during preliminary inspection.
  • the area calculator 150 binarizes each pixel of the captured image corresponding to the inspection area Q based on the luminance.
  • each pixel of the captured image is either a black pixel (black pixel) or a white pixel (white pixel).
  • the black pixels are the pixels corresponding to the positions of the tool 102 (hereinafter referred to as "tool pixels").
  • the coordinates (x, z) of the pixels in the captured image corresponding to the inspection region Q are hereinafter referred to as pixel coordinates. Also, x and z here are called X pixel coordinates and Z pixel coordinates, respectively.
  • x1 be the X pixel coordinate corresponding to the central axis of the tool 102A1.
  • n the number of black pixels corresponding to the positions where the X coordinate is X1 (central axis) and the Z coordinates are Z1 to Z2
  • the number of black pixels is 0 outside the contour of the tool 102A1. This is because there is no object reflected in the captured image outside the tool 102A1 (see also FIG. 6).
  • C(x) the number of black pixels detected at the X pixel coordinate x of the inspection area Q.
  • C(x) the number of black pixels detected at the X pixel coordinate x of the inspection area Q.
  • C(x) n when X1 ⁇ x ⁇ X2
  • C(x) 0 when x>X2.
  • various image noises occur when the tool 102A1 is imaged, so C(x)>0 even when x>X2.
  • FIG. 8 is a schematic diagram of a captured image during the winding inspection.
  • the preliminary inspection described in connection with FIGS. 6 and 7 identifies black pixels from inspection area Q of tool 102A1.
  • the inspection unit 152 performs the winding inspection on the tool 102A1 at a predetermined timing.
  • FIG. 8 shows a captured image during the winding inspection of the tool 102A1. Chips 180 adhere to the tool 102A1.
  • the imaging processing unit 156 also instructs the operation control device 120 to linearly move the tool 102A1 in the Z-axis direction. After detecting the tip of the blade portion 112 in the imaging region 170 (live view image), the imaging processing unit 156 instructs the camera 106 to acquire a captured image (partial image). The camera 106 acquires the first partial image and fixes it in the memory when receiving the instruction.
  • the machining control unit 122 linearly moves the tool 102A1 in the positive Z-axis direction.
  • the imaging processing unit 156 continuously acquires partial images in conjunction with the movement of the tool 102A1.
  • the area calculator 150 sets the inspection area Q of the tool 102A in the ranges of X1 to X3 and Z1 to Z2.
  • the inspection area Q for the preliminary inspection and the inspection area Q for the winding inspection are the same range.
  • the area calculator 150 binarizes the captured image and classifies it into black pixels and white pixels. Most of the black pixels at this time correspond to the tool 102A1, but some correspond to the chips 180. FIG.
  • FIG. 9 is a schematic diagram for explaining a method of calculating the number of black pixels of the used tool during the wrapping inspection.
  • a pixel corresponding to the position of the scrap 180 is called a "scrap pixel".
  • C(x) n when X1 ⁇ x ⁇ X2. This is similar to the reference tool.
  • Black pixels detected in the range of X1 ⁇ x ⁇ X2 are tool pixels.
  • x>X2 even when x>X2, in other words, a small number of black pixels are also detected outside the contour of the tool 102A1. This is the debris pixel corresponding to debris 180 .
  • tool pixels detected outside X2 are referred to as "surplus pixels".
  • Most of the surplus pixels are waste pixels, but they may also contain a small number of objects other than chips or noise.
  • a surplus pixel group 190 shown in FIG. 9 indicates a set of surplus pixels. The total number of surplus pixels is called "surplus area”.
  • the area calculation unit 150 obtains the surplus area S1 of the tool 102A1 (reference tool) during the preliminary inspection and the surplus area S2 of the tool 102A1 (used tool) during the winding inspection. Surplus area S2 becomes large, so that there are many winding amounts of the chips 180 with respect to tool 102A1. Incidentally, as shown in FIG. 7, ideally, the surplus area S1 of the reference tool is "0".
  • the inspection unit 152 determines that the tool 102A1 is "abnormal" when S2 (surplus area of tool in use)-S1 (surplus area of reference tool)>threshold value T1. In this case, the tool 102A1 should be replaced with another tool 102A2 of the same type.
  • a captured image of the inspection area Q is acquired for the reference tool.
  • the area calculation unit 150 acquires the brightness value of each pixel (x, z) included in the captured image.
  • the area calculator 150 counts the number of black pixels whose luminance value is equal to or less than a predetermined threshold.
  • a picked-up image of the inspection area Q is acquired in the same manner for the used tool.
  • the area calculation unit 150 acquires the brightness value of each pixel (x, z) included in the captured image.
  • the area calculator 150 counts the number of black pixels whose luminance value is equal to or less than a predetermined threshold.
  • the inspection unit 152 compares the black pixels of the used tool and the black pixels of the reference tool for each coordinate, and counts the number of different pixels.
  • the difference at this time corresponds to "S2-S1".
  • the difference value between the surplus area S2 and the surplus area S1 will be referred to as a “difference pixel number D" or a “difference value D.”
  • the difference value D is greater than or equal to the threshold value T1
  • the tool 102A1 is determined to be abnormal (cannot be used continuously) because the amount of winding is considered to be extremely large.
  • FIG. 10 is a screen diagram of the reference tool imaging screen 230.
  • the imaging processing unit 156 images the tool 102, and the display unit 138 displays the captured image.
  • the reference tool imaging screen 230 is a captured image of the tool 102 on which chips are not wound, for example, the reference tool during the preliminary inspection.
  • the area calculator 150 calculates the surplus area based on the captured image.
  • the display unit 138 may display the surplus area S ⁇ b>1 on the reference tool imaging screen 230 .
  • FIG. 11 is a screen diagram of the used tool imaging screen 220.
  • the used tool imaging screen 220 is a captured image of the tool 102 around which the chips 180 are wound.
  • the area calculator 150 also calculates the surplus area S2 for the used tool.
  • the display unit 138 may display the surplus area S ⁇ b>2 on the used tool imaging screen 220 .
  • the display unit 138 of the image processing device 110 can also display the reference tool imaging screen 230 and the used tool imaging screen 220 side by side. At this time, the display unit 138 displays the surplus area S1 of the reference tool and the surplus area S2 of the used tool, as well as the difference value D therebetween.
  • the operator freely sets the threshold value T1 while comparing the reference tool imaging screen 230 (reference tool) and the used tool imaging screens 220 corresponding to various winding amounts.
  • the input unit 146 receives input of the threshold value T1 and sets it as an internal parameter of the inspection unit 152 . After setting the threshold value T1, the inspection unit 152 determines whether or not the tool can be used continuously based on the threshold value T1.
  • FIG. 12 is a graph showing the relationship between the amount of winding and the number of black pixels.
  • the horizontal axis is the tool radial direction (X-axis direction), and the vertical axis is the number of black pixels for each X pixel coordinate.
  • the black pixels include both tool pixels corresponding to tool 102 and debris pixels corresponding to chip 180 .
  • a graph 231 is the number of black pixels of the tool 102A1 on which almost no chips are wrapped.
  • a graph 232 is the number of black pixels of the tool 102A1 that can be used continuously although chips are slightly wrapped around it.
  • a graph 234 is the number of black pixels of the tool 102A1 that needs to be replaced because a large amount of chips are wrapped around it.
  • the graph in FIG. 12 corresponds to the diagrams schematically shown in FIGS. 7 and 9. FIG.
  • the number of black pixels sharply decreases when the distance from the tool center exceeds R (tool diameter).
  • R tool diameter
  • the number of black pixels remains even if the distance from the tool center is R or more. This is because a large amount of waste pixels are detected outside the tool contour.
  • the reference tool imaging screen 230 even with the tool 102A1 on which chips are not wrapped at all, a small number of surplus pixels are detected. This is because noise occurs due to fluctuations in imaging conditions and binarization of images. Accordingly, a small amount of surplus pixels as noise are also detected in the graph 231 . Even with the reference tool, the surplus area S1 does not actually become zero.
  • FIG. 13 is a graph showing the relationship between the amount of winding and the number of differential pixels.
  • FIG. 13 shows the black pixel difference value D (the number of difference pixels) between the tool 102A1 as the reference tool and the tool 102A1 as the used tool corresponding to the graphs 231, 232 and 234 in FIG.
  • D the black pixel difference value
  • FIG. 14 is a flow chart showing the process of wrapping inspection.
  • the machining control unit 122 moves the spindle 116 to the tool recognition area 210 (S24). After inserting the spindle 116 into the tool recognition area 210, the machining control unit 122 notifies the operation control unit 120 of completion of preparation.
  • the inspection unit 152 performs an image inspection of the tool 102 (S26). Image inspection determines whether or not the tool can be used continuously. Details of the image inspection are described in connection with FIG. 15 below.
  • the display unit 138 When the result of the image inspection is an abnormality determination (Y of S28), the display unit 138 notifies the operator that a large amount or large chips are wrapped around the tool in use (S30). Subsequently, the imaging processing unit 156 instructs the machining control unit 122 to change tools via the operation control device 120 (S32). The tool exchange unit 126 exchanges the used tool (the tool 102A1 with a large amount of chip winding) for the spare tool 102A2 of the same type stored in the tool storage unit 130 .
  • FIG. 15 is a flow chart showing the details of the image inspection in S26 of FIG.
  • the imaging processing unit 156 images the tool 102 and acquires a captured image corresponding to the inspection region Q (S40).
  • the area calculator 150 calculates the surplus area S2 of the used tool, and calculates the difference value D between the surplus area S1 and the surplus area S2 obtained in advance in the preliminary inspection (S42).
  • the inspection unit 152 determines that there is an abnormality (S46).
  • the difference value D is equal to or less than the threshold value T1 (N of S44)
  • the inspection unit 152 determines that the used tool is normal (can be used continuously) (S48).
  • tool change is executed when an abnormality is determined.
  • the machine tool 100 and the image processing device 110 have been described above based on the embodiments. Chips wrapped around the tool 102 may damage the workpiece. On the other hand, if the tool 102 is exchanged even when only a small amount of chips are wound around, the machining efficiency is lowered. According to this embodiment, the image processing device 110 can perform image recognition of the amount of winding of the tool 102 and automatically determine whether or not the tool can be used continuously. According to such a control method, both machining efficiency and safety in the machine tool 100 can be achieved.
  • the operator can intuitively set the appropriate threshold value T1 by referring to the captured image of the tool 102 and the surplus areas S1 and S2 or the difference value D on the reference tool imaging screen 230 and the used tool imaging screen 220.
  • An arbitrary threshold value T2 may be set, and when D2>T2, the inspection unit 152 may determine that the tool 102A1 is abnormal.
  • the image processing device 110 periodically performs tool inspection to determine whether the tool 102 is damaged.
  • the image processing device 110 may instruct the machine tool 100 to perform the wrapping inspection during the tool inspection.
  • the inspection unit 152 of the image processing device 110 may perform the wrapping inspection when some kind of abnormality is detected during processing.
  • an acceleration sensor is built in the spindle 116, and the acceleration is periodically notified from the camera 106 to the image processing device 110.
  • the inspection unit 152 of the image processing device 110 may execute a wrapping inspection when the acceleration of the camera 106 exceeds a predetermined threshold value because there is a possibility that interference of the tool 102 has occurred.
  • a sound-collecting microphone may be provided in the processing area, and the image processing apparatus 110 may perform the wrapping inspection when an abnormal sound (sound of a predetermined volume or more, sound of a predetermined frequency band, etc.) is generated.
  • the winding inspection may be performed at the timing of replacing with another tool 102B.
  • tool 102A2 which is the same type of tool as tool 102A1
  • tool storage section When replacing the tool 102A1 with the tool 102B, a wrap inspection is performed on the tool 102A1.
  • the operation control device 120 sets the status data of the tool 102A1 to "unusable" after the tool changer 126 replaces the tool 102A1 with the tool 102B. The next time the tool 102A1 is required, the tool changer 126 selects the same type of tool 102A2 instead of the unusable tool 102A1.
  • the tool 102A2 When chips are wrapped around the tool 102A2 and an abnormality is determined, the tool 102A2 is also set to "unusable". After completing a series of machining operations, the operator removes chips from the tools 102 that are "disabled” in the tool storage section 130 . Thereafter, the operator may use the image processing device 110 or the operation control device 120 to change the state of the tools 102A1 and 102A2 from “unusable” to "usable”.
  • the position of the tool radius R is set as the boundary line, and the area calculator 150 detects black pixels located outside the boundary line (tool radius R) as surplus pixels.
  • the boundary line between the surplus pixels and the tool pixels is not limited to the tool radius R, and may be arbitrarily set by the operator.
  • the camera 106 is fixed and the tool 102 is imaged by moving the spindle 116 near the camera 106.
  • a movable camera 106 may be used.
  • the data processing unit 142 includes a camera control unit (not shown), and the camera control unit may image the tool 102 by moving the camera 106 to the side of the tool 102 during tool inspection.
  • the transmitter 306 moves the spindle 116 to a predetermined position within the machining area 200.
  • a control signal may then be sent to the operation control device 120 instructing the spindle 116 to rotate at high speed.
  • the rotation speed is arbitrary, it may be set, for example, in the range of about 500 to 2000 rpm.
  • the inspection unit 152 may re-perform the wrapping inspection. The rotational movement of spindle 116 may remove chips 180 from tool 102 .
  • the inspection unit 152 may determine that the tool 102 can be used continuously.
  • the output unit 148 may include a notification unit (not shown).
  • the notification unit may notify the operator of a message such as "chips may be wrapped around the tool.”
  • the notification method may be both or one of voice and text.
  • FIG. 16 is a schematic diagram of a captured image during a preliminary inspection in a modified example. Also in the modified example, the inspection unit 152 performs a winding inspection on the tool 102 during or after machining at a predetermined timing. The inspection unit 152 also executes a preliminary inspection during tool registration.
  • FIG. 16 is an image taken during a preliminary inspection of a certain tool 102A2 (one of the A-type tools 102). Also in FIG. 16, the X coordinate value of the center line of the tool 102A2 is "X1".
  • the inspection unit 152 After registering the tool 102A2, the inspection unit 152 performs a preliminary inspection on the tool 102A2. During the preliminary inspection, the imaging processor 156 linearly moves the main shaft 116 in the Z-axis direction, that is, in the longitudinal direction of the tool 102 .
  • XP be the difference between the coordinate values of the center line of the imaging region and the center line of the tool 102A2.
  • the difference value XP can be arbitrarily set by the user by a method described later.
  • the machining control unit 122 adjusts the main shaft 116 in the X-axis direction according to the difference value XP, and then moves it in the Z-axis direction based on the movement value ZP.
  • the movement value ZP can also be arbitrarily set by the user by a method described later.
  • the imaging processing unit 156 continuously acquires partial images in conjunction with the movement of the tool 102A2. That is, a plurality of partial images are captured during the process of moving the tool 102 in its longitudinal direction.
  • the partial image obtained during the preliminary inspection will be referred to as a "reference image".
  • a plurality of partial images are obtained for the same inspection area Q as during the preliminary inspection.
  • a plurality of partial images are captured in the process of moving 102 in its longitudinal direction.
  • the partial image during the wrapping inspection will be referred to as a "verification image”.
  • the tool 102 is wrapped with chips during the wrap inspection.
  • FIG. 17 is a screen diagram of the examination setting screen 310. As shown in FIG. The user can set the inspection target, inspection range, and detection sensitivity on the inspection setting screen 310 before the preliminary inspection.
  • An examination setting screen 310 is displayed by the display unit 138 .
  • the inspection setting screen 310 includes an inspection selection area 313 , a range setting area 314 and a detection sensitivity setting area 316 .
  • the inspection selection area 313 the user sets the necessity of each of the "breakage inspection" and the "wrapping inspection" as inspection items. In FIG. 17 only the wrapping inspection is selected. The breakage inspection will be described later.
  • the user defines the inspection area Q by setting the difference value XP and the movement value ZP.
  • the detection sensitivity setting area 316 the user selects the inspection sensitivity from "high”, “medium”, and “low”.
  • the inspection unit 152 compares the reference image and the verification image, and determines the size of the chip winding based on the amount of difference in the number of black pixels included in each image.
  • the number of pixels as a threshold is set to T1 for "high”, to T2 (>T1) for “medium”, and to T3 (>T2) for “low”.
  • the "calculation unit” calculates the number of differences (described later) instead of the surplus area to determine the winding. That is, the functional block diagram of the image processing apparatus 110 in the modified example is obtained by changing the "area calculator” in the functional block diagram illustrated in FIG. 4 to "calculator".
  • the calculation unit compares the reference image and the verification image at the same imaging position, and calculates a difference score, which is the difference in the number of pixels between the second region having black pixels in the reference image and the first region having black pixels in the verification image. do.
  • the black pixels referred to here are specified by the same method as described in connection with FIG.
  • the first area may include chips wrapped around the tool 102 as well as the tool body.
  • the second area corresponds only to the tool 102 .
  • the inspection unit 152 determines whether the tool 102 is normal (can be used continuously) according to the difference score, which is the difference in the number of black pixels between the first area and the second area. If chips are not wrapped around, ideally the first area and the second area are completely matched, and the difference score is zero. That is, the first area and the second area are areas corresponding to the tool 102 that should be coincident with each other.
  • the user touches the setting button 318 when validating the input setting values.
  • the imaging processing unit 156 and the inspection unit 152 store the set values in the data storage unit 144 .
  • the cancel button 320 When canceling, the user touches the cancel button 320 .
  • the breakage inspection method will be described later, and first, the winding inspection method will be explained with a specific example.
  • FIG. 18 is a first screen diagram of a tool-in-use imaging screen in a modified example.
  • verification images P1 to P4 are acquired.
  • Reference images V1 to V4 (not shown) are obtained in advance at the same imaging positions as the verification images P1 to P4.
  • the calculator compares the second area in the reference image V1 with the first area in the verification image P1. More specifically, the inspection unit 152 regards a black pixel region in the verification image P1 whose lightness is equal to or less than a predetermined threshold as a first region, and a black pixel region in the reference image V1 whose lightness is equal to or less than the threshold as a second region. and the difference score D1 of the number of pixels in the second area.
  • the difference score D1 increases.
  • the difference score D1 is a small value even if the influence of image noise or the like is taken into account. Since D1 ⁇ T1 in FIG. 18, the inspection unit 152 does not detect wrapping in the verification image P1 regardless of whether the detection sensitivity is high, medium, or low. In FIG. 18, chips are hardly wrapped around the tip of the tool 102, so the first region in the verification image P1 almost completely corresponds to the second region in the reference image V1.
  • the difference D4 between the verification image P4 and the reference image V4 is larger than the threshold T1 and smaller than the threshold T3. Therefore, when the verification sensitivity is set to "high (T1)", the inspection unit 152 determines that the tool 102 is not suitable for continuous use because chips are wrapped around the tool 102. FIG. On the other hand, when the verification sensitivity is set to "middle (T2)" or "low (T3)", the inspection unit 152 determines that the tool 102 can be continuously used. The inspection unit 152 sequentially compares the difference points D with the threshold for the verification images P1 to P4, and determines that the tool 102 cannot be used when a difference value exceeding the threshold is detected for any of the verification images.
  • the user can freely set the criteria for continued use of the tool 102 .
  • FIG. 19 is a second screen diagram of the used tool imaging screen in the modified example.
  • the movement value ZP is set larger than that during the inspection shown in FIG. 18, so verification images P1 to P9 and reference images V1 to V9 (not shown) are obtained.
  • a difference score D4 in the number of pixels between the first area of the verification image P4 and the second area of the reference image V4 is larger than the threshold T2 and smaller than the threshold T3. Therefore, when the detection sensitivity is set to "high (T1)" or "middle (T2)", the inspection unit 152 determines that the tool 102 cannot be used continuously. When the detection sensitivity is set to "low (T3)", the inspection unit 152 determines that the tool 102 can be continuously used.
  • FIG. 20 is a third screen view of the used tool imaging screen in the modified example. Also in FIG. 20, since the movement value ZP is set larger than that during the inspection shown in FIG. 18, verification images P1 to P9 and reference images V1 to V9 (not shown) are obtained. A difference score D5 in the number of pixels between the first region of the verification image P5 and the second region of the reference image V5 is greater than the threshold value T3. Therefore, regardless of whether the detection sensitivity is set to "high (T1)", “middle (T2)” or “low (T3)", the inspection unit 152 determines that the tool 102 cannot be used continuously based on the verification image P5. judge.
  • the inspection unit 152 subtracts the number of black pixels included in the second region of the reference image from the number of black pixels included in the first region of the verification image, and when the difference score D is greater than the threshold, the tool 102 It is determined that the amount of chips wrapped around is so large that it is not suitable for continuous use.
  • the inspection unit 152 subtracts the number of black pixels contained in the first region of the verification image from the number of black pixels contained in the second region of the reference image, and obtains the difference score. Compare E to a threshold. When the difference score E is larger than the threshold, the inspection unit 152 determines that the tool 102 is broken to the extent that it is not suitable for continued use.
  • the threshold for breakage inspection also changes according to the settings in the detection sensitivity setting area 316 on the inspection setting screen 310 .
  • the inspection unit 152 compares the reference image and the verification image, which are captured images during tool registration, with the verification images, which are captured images during the winding inspection and the breakage inspection, and and the difference score of the number of pixels in the second area, it is determined whether or not there is chip wrapping or breakage of the tool 102 .
  • the inspection unit 152 determines whether or not the tool 102 can be continuously used based on the user's set value of the detection sensitivity.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Geometry (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Optics & Photonics (AREA)
  • Mechanical Engineering (AREA)
  • Machine Tool Sensing Apparatuses (AREA)

Abstract

画像処理装置は、工作機械のカメラから、工具の撮像画像を受信する受信部と、撮像画像において、工具に対応する領域のうち、工具中心から所定距離以上離れた部分の領域の面積である余剰面積を計算する面積算出部と、余剰面積の大きさに基づいて、工具の継続使用の適否を判定する検査部と、を備える。

Description

画像処理装置
 本発明は、工作機械における工具の検査技術、に関する。
 工作機械は、ワークを所望の形状に切削加工する装置や、金属粉末などを積層してワークを作る装置がある。切削加工する工作機械には、回転するワークに切削用の工具を当てることでワークを加工するターニングセンタと、回転する工具をワークに当てることでワークを加工するマシニングセンタ、これらの機能を複合的に備える複合加工機などがある。
 主軸あるいは刃物台などの工具保持部に工具は固定される。工作機械は、あらかじめ用意された加工プログラムにしたがって、工具を交換しつつ、工具保持部を動かしながらワークを加工する。
 加工中のワークからはひも状の切屑が飛散し、これが工具に巻き付くことがある。切屑に巻き付かれた工具は、同タイプの別の工具と交換する必要がある。交換後、新たな工具により加工は継続される。作業者は、加工終了後、工具から切屑を取り除く(特許文献1参照)。
特開平9-323240号公報
 工具に巻き付く切屑が少量であれば、その工具を継続使用できる場合も多い。少量の切屑は、主軸の移動中に工具から自然に外れることも多い。工具交換には時間がかかるため、工具に巻き付いている切屑の量(以下、「巻き付き量」とよぶ)に応じて、工具の交換要否を適切に判断する必要がある。
 本発明のある態様における画像処理装置は、カメラから、工具の撮像画像を受信する受信部と、撮像画像において、工具に対応する領域のうち、工具中心から所定距離以上離れた部分の領域の面積である余剰面積を計算する面積算出部と、余剰面積の大きさに基づいて、工具の継続使用の適否を判定する検査部と、を備える。
 本発明の別の態様における画像処理装置は、工具の長手方向に対してカメラと工具が相対移動し、カメラから複数の撮像画像を受信する受信部と、複数の撮像画像それぞれについて、撮像画像における工具に対応する領域を含む第1領域と、基準画像における工具に対応する領域を含む第2領域の差異点数を計算する算出部と、複数の撮像画像それぞれの差異点数に基づいて、工具の継続使用の適否を判定する検査部と、を備える。
 本発明によれば、巻き付き量に基づいて工具交換の要否を適切に判断しやすくなる。
工作機械の外観図である。 工具認識領域における工具、カメラおよび照明装置の位置関係を示す模式図である。 工作機械および画像処理装置のハードウェア構成図である。 画像処理装置の機能ブロック図である。 工具と撮像領域の位置関係を示す模式図である。 予備検査時の撮像画像の模式図である。 予備検査時における基準工具の黒画素数の計算方法を説明するための模式図である。 巻き付き検査時の撮像画像の模式図である。 巻き付き検査時における使用工具の黒画素数の計算方法を説明するための模式図である。 基準工具撮像画面の画面図である。 使用工具撮像画面の画面図である。 巻き付き量と黒画素数の関係を示すグラフである。 巻き付き量と差分画素数の関係を示すグラフである。 巻き付き検査の処理過程を示すフローチャートである。 図14のS26における画像検査の詳細を示すフローチャートである。 変形例における予備検査時の撮像画像の模式図である。 検査設定画面の画面図である。 変形例における使用工具撮像画面の第1の画面図である。 変形例における使用工具撮像画面の第2の画面図である。 変形例における使用工具撮像画面の第3の画面図である。
 図1は、工作機械100の外観図である。
 本実施形態における工作機械100は、加工領域200内に配置されるワークを加工する複合加工機である。ワークは保持部104に固定され、別の保持部である主軸に取り付けられる工具102により切削される。ワークを保持する保持部104は駆動機構により回転駆動される。
 工具102が工具認識領域210内に挿入されたとき、下方の照明装置108は工具102を照明し、上方のカメラ106は工具102を撮像する。このときの撮像画像に基づいて後述の工具登録、工具検査、予備検査および巻き付き検査が実行される。工具認識領域210の構成については次の図2に関連して更に詳述する。
 工作機械100は、外部を遮断するカバー202を備える。カバー202は、ドア204を備える。ユーザは、ドア204を開口して、加工領域200へのワークの取り付けおよび加工領域200からのワークの取り出しを行う。操作盤206は、作業者から、工作機械100に対する各種操作を受け付ける。
 操作盤206は、画像処理装置110と接続される。作業者は、画像処理装置110により工作機械100の作業状況を遠隔監視できる。本実施形態においては、工作機械100本体と画像処理装置110は有線ケーブルを介して接続される。画像処理装置110は、工作機械100の内部、たとえば、操作盤206の内部装置として形成されてもよい。
 工具格納部130は、複数の工具102を格納する。工具格納部130に格納される複数の工具102から工具交換部(後述)により工具102を取得し、これを主軸に装着する。なお、図1に示すように、水平方向にY軸とZ軸、垂直方向にX軸を設定するものとする。Z軸方向は、主軸およびワークの軸方向に対応する。
 図2は、工具認識領域210における工具102、カメラ106および照明装置108の位置関係を示す模式図である。
 工具102は、ワークの加工に利用される刃部112と、主軸116のホルダ118に固定されるシャンク部114を含む。主軸116は、工具102を保持しつつ、回転および移動可能に構成される。また、主軸116は、保持している工具を回転させることもできる。
 カメラ106は、CMOS(Complementary Metal Oxide Semiconductor)、CCD(Charge-Coupled Device)などのイメージセンサ(撮像素子)を備える。カメラ106は、主軸116に取り付けられた工具102を上(X軸方向)から撮像する。カメラ106は画像処理装置110と接続され、撮像画像は画像処理装置110に送信される。カメラ106は工具認識領域210に固定される。主軸116がZ軸を軸心として工具102を回転させることにより、複数方向から工具102を撮像できる。また、主軸116が工具102を水平方向(YZ方向)に動かすことにより、工具102の複数箇所を撮像できる。
 カメラ106に対向するように、下部には照明装置108が固定される。照明装置108は工具102を下から照明する。照明装置108による透過照明により、カメラ106は、工具102の輪郭位置を把握しやすい、コントラストの高い撮像画像を取得できる。
 ユーザは、工具102を新規登録するときには(以下、「工具登録」とよぶ)、操作盤206において工具登録モードに設定し、主軸116に新規の工具102を取り付ける。次に、任意の工具IDを入力する。主軸116は工具102を移動・回転させ、固定されたカメラ106は工具102をさまざまな位置および方向から自動的に撮像する。カメラ106により得られた多数の撮像画像から、工具形状が認識され、工具IDと工具形状が対応づけて登録される。このような制御方法により、工具102ごとに、工具形状を自動的に工具IDに対応づけて登録できる。工具形状は、二次元データあるいは三次元データとして形成される。工具登録に際しては、後述の巻き付き検査の前提となる「予備検査」も実行されるが、詳細は後述する。
 また、加工中あるいは加工後の工具102について検査を実行するときにも、主軸116は工具102を工具認識領域210に進入させる。新規登録時と同様、主軸116は工具102を移動・回転させ、カメラ106は工具102をさまざまな位置および方向から自動的に撮像する。カメラ106により得られた多数の撮像画像から、工具形状が認識される。以下、このような加工中に適宜実行される検査を「工具検査」とよぶ。作業者は、工具登録時の工具形状データと工具検査時の工具形状データを比較することにより、工具102の摩耗度、欠損の有無を判定する。
 本実施形態におけるカメラ106は約100万画素(1224×1024)の解像度を有する。撮像範囲は300ミリメートル×300ミリメートル程度である。また、カメラ106は1秒間に最大80枚の撮像画像を取得可能である。
 本実施形態における工作機械100は、工具102の欠損等を判定する工具検査とは別に、工具102への切屑の巻き付き量を検査する「巻き付き検査」も実行する。以下、巻き付き検査を中心として説明する。
 図3は、工作機械100および画像処理装置110のハードウェア構成図である。
 工作機械100は、操作制御装置120、加工制御部122、加工装置124、工具交換部126および工具格納部130を含む。数値制御装置として機能する加工制御部122は、加工プログラムにしたがって加工装置124に制御信号を送信する。加工装置124は、加工制御部122からの指示にしたがって主軸116を動かしてワークを加工する。
 操作制御装置120は、操作盤206を含み、加工制御部122を制御する。工具格納部130は工具を格納する。工具交換部126は、いわゆるATC(Automatic Tool Changer)に対応する。工具交換部126は、加工制御部122からの交換指示にしたがって、工具格納部130から工具を取り出し、主軸116にある工具と取り出した工具を交換する。
 画像処理装置110は、主として、工具形状認識等の画像処理を行う。上述したように、画像処理装置110は操作制御装置120の一部として構成されてもよい。画像処理装置110は、一般的なラップトップPC(Personal Computer)あるいはタブレット・コンピュータであってもよい。
 図4は、画像処理装置110の機能ブロック図である。
 画像処理装置110の各構成要素は、CPU(Central Processing Unit)および各種コンピュータプロセッサなどの演算器、メモリやストレージといった記憶装置、それらを連結する有線または無線の通信線を含むハードウェアと、記憶装置に格納され、演算器に処理命令を供給するソフトウェアによって実現される。コンピュータプログラムは、デバイスドライバ、オペレーティングシステム、それらの上位層に位置する各種アプリケーションプログラム、また、これらのプログラムに共通機能を提供するライブラリによって構成されてもよい。以下に説明する各ブロックは、ハードウェア単位の構成ではなく、機能単位のブロックを示している。
 なお、操作制御装置120および加工制御部122も、プロセッサなどの演算器、メモリやストレージといった記憶装置、それらを連結する有線または無線の通信線を含むハードウェアと、記憶装置に格納され演算器に処理命令を供給するソフトウェアやプログラムを画像処理装置110とは別個のオペレーティングシステム上で実現される形態でもよい。
 画像処理装置110は、ユーザインタフェース処理部140、データ処理部142、通信部300およびデータ格納部144を含む。
 ユーザインタフェース処理部140は、作業者からの操作を受け付けるほか、画像表示や音声出力など、ユーザインタフェースに関する処理を担当する。通信部300は、操作制御装置120との通信を担当する。データ処理部142は、ユーザインタフェース処理部140により取得されたデータおよびデータ格納部144に格納されているデータに基づいて各種処理を実行する。データ処理部142は、ユーザインタフェース処理部140、通信部300およびデータ格納部144のインタフェースとしても機能する。データ格納部144は、各種プログラムと設定データを格納する。
 ユーザインタフェース処理部140は、入力部146および出力部148を含む。
 入力部146は、タッチパネル、マウス、キーボード等のハードデバイスを介してユーザからの入力を受け付ける。出力部148は、画像表示あるいは音声出力を介して、ユーザに各種情報を提供する。出力部148は、表示部138を含む。表示部138は、各種画像を画面表示させる。
 通信部300は、操作制御装置120からデータを受信する受信部304と、操作制御装置120にデータおよびコマンドを送信する送信部306を含む。
 データ処理部142は、面積算出部150、検査部152、工具交換指示部154および撮像処理部156を含む。
 撮像処理部156は、カメラ106を制御して工具102を撮像させる。加工制御部122は主軸116をカメラ106の直下に移動させ、撮像処理部156は工具102を撮像する。撮像処理部156から加工制御部122に主軸116の移動方向を指示することもできる。検査部152は、撮像画像の各画素の輝度に応じて、撮像画像を白画素および黒画素に2値化する。検査部152は、工具登録、工具検査、予備検査および巻き付き検査を制御する。面積算出部150は、予備検査および巻き付き検査に際して得られた撮像画像から、工具102への切屑の巻き付き量として、後述の「余剰面積」を計算する。検査部152は、余剰面積に基づいて、工具の継続使用可否を判定する。工具交換指示部154は、検査部152により工具102の継続使用が不適切と判定されたとき(以下、「異常判定」ともよぶ)、操作制御装置120を介して加工制御部122に工具交換を指示する。加工制御部122は、異常判定された工具の交換を工具交換部126に指示する。
 図5は、工具102と撮像領域170の位置関係を示す模式図である。
 撮像領域170は、カメラ106の受光面直下に位置する。カメラ106は撮像領域170の範囲内にある物体を撮像する。加工制御部122は、主軸116を動かすことで工具102を撮像領域170に挿入する。撮像領域170は工具102に比べると小さいため、一度に工具102全体を撮像することはできない。
 撮像領域170を大きくするためにカメラ106のレンズを大きくした場合、カメラ106のコストアップにつながる。また、工具認識領域210に大きなカメラ106を設置した場合、加工領域200のスペースが圧迫されるため好ましくない。このため、本実施形態においては、比較的小さなカメラ106により、工具102を複数回に分けて撮像し、複数の撮像画像に基づいて工具102全体の形状を認識する方式を採用している。
 以下、カメラ106により工具102の一部を撮像した撮像画像のことを「部分画像」とよぶ。
 予備検査および巻き付き検査時において、加工制御部122は、工具102(主軸116)をZ軸正方向、すなわち、工具102の長手方向に沿って、一定速度にて移動させる。ここでいう長手方向とは、工具102の軸方向を意味する。図5においては、工具102の長手方向はZ軸方向と一致する。また、本実施形態においては、工具102の工具長の方向と、長手方向とは一致する。撮像処理部156は撮像領域170を常時監視する。撮像領域170におけるライブビュー画像はカメラ106から画像処理装置110に伝送される。
 図6は、予備検査時の撮像画像の模式図である。
 検査部152は、所定のタイミングにて、加工中または加工後の工具102について巻き付き検査を実行する。巻き付き検査の実行タイミングは任意であるが、本実施形態においては、ある工具102Aの連続使用時間が所定時間、たとえば、3分間を超えたときに巻き付き検査を実行するものとして説明する。いいかえれば、工具102Aの連続使用時間が3分以内のときに別の工具102Bに交換されるときには工具102Aの巻き付き検査は実行されない。工具102Aについて巻き付き検査において異常と判定されたときには、工具102Aと同タイプの予備の工具102Aを交換した上で加工を継続する。
 また、検査部152は、工具登録の終了後に、巻き付き検査の前提となる予備検査を実行する。予備検査と巻き付き検査の内容は基本的に同じであるが詳細は後述する。検査部152は、予備検査の結果と、巻きつき検査の結果を比較することにより、巻き付き量を計算し、巻き付き量に基づいて異常/正常判定を行う。
 以下、工具登録時の工具102、いいかえれば、切屑がまったく巻き付いていない状態の工具102を「基準工具」とよぶ。また、工具登録完了後に実際にワークの加工に使用される工具102、いいかえれば、切屑が巻き付いている可能性のある工具102のことを「使用工具」とよぶ。図6は、ある工具102A1(Aタイプの工具102の一つ)の予備検査時の撮像画像を示す。以下、工具102A1の中心線のX座標値を「X1」、工具102A1の半径を「R」とする。したがって、工具102Aの輪郭線のX座標値X2は「X1+R」となる。
 工具102A1を工具登録した後、検査部152は工具102A1について予備検査を実行する。撮像処理部156は、主軸116をZ軸方向に直線移動させるように操作制御装置120に指示する。撮像処理部156は撮像領域170(ライブビュー画像)において刃部112の先端の検出後、カメラ106に撮像画像(部分画像)の取得を指示する。カメラ106は、指示を受けたとき1枚目の部分画像を取得してメモリに固定する。図6においては、所定の開始位置P1において1枚目の部分画像が取得される。開始位置P1は、たとえば、工具102A1の先端点と、撮像画像の中心点のZ距離が所定値になったとき、として定義される。
 開始位置P1における部分画像の取得後、加工制御部122は主軸116(工具102A1)をZ軸正方向にゆっくりと直線移動させる。撮像処理部156は、工具102A1の移動に連動して部分画像を連続的に取得する。所定の終了位置P2において最後の部分画像が取得される。開始位置P1から終了位置P2までに得られた部分画像群により、刃部112の一部の輪郭を含む撮像画像が得られる。
 面積算出部150は、得られた複数の部分画像を対象として、撮像範囲の一部としての検査領域Qを設定する。検査領域のX座標はX1~X3、Z座標Z1~Z2の範囲に対応する。Z1、Z2の位置は任意であるが、Z2はシャンク部114を含まない位置に設定されることが望ましい。X3の位置は、X3>X2=X1+Rとなる任意の位置に設定される。
 カメラ106が広角の場合には、1回の撮像にて検査領域Q全体を撮像してもよい。本実施形態のように撮像領域170がカメラ106に比べて小さい場合には、主軸116を動かすことで工具102を複数回撮像し、撮像処理部156は複数の部分画像から検査領域Qに対応する撮像画像を合成すればよい。
 予備検査および巻き付き検査においては、工具102に対応する領域の全部または一部が撮像対象となる。図6においては、「工具102に対応する領域」は、刃部112およびシャンク部114の全域であってもよいし、少なくとも、検査領域Qを含む領域であればよい。
 図7は、予備検査時における基準工具の黒画素数の計算方法を説明するための模式図である。
 面積算出部150は、検査領域Qに対応する撮像画像の各画素を輝度に基づいて2値化する。本実施形態においては、撮像画像の各画素は、黒色の画素(黒画素)と白色の画素(白画素)のいずれかとなる。基準工具の場合、黒画素は工具102の位置に対応する画素(以下、「工具画素」とよぶ)となる。
 以下、検査領域Qに対応する撮像画像における画素の座標(x,z)を画素座標とよぶ。また、ここでいうx,zをそれぞれX画素座標、Z画素座標とよぶ。
 工具102A1の中心軸に対応するX画素座標をx1とする。X画素座標=x1となる黒画素数はn個であるとする。いいかえれば、X座標がX1(中心軸)、Z座標がZ1~Z2の位置に対応する黒画素の数はn個であるといえる。X画素座標=x1+1の黒画素数もn個となる。X画素座標がX2(=X1+R)よりも大きいとき、いいかえれば、工具102A1の輪郭線の外側においては、黒画素数は0となる。工具102A1の外側においては撮像画像に映り込む物体が存在しないためである(図6も参照)。
 以下、検査領域QのX画素座標xにおいて検出される黒画素数を「C(x)」と表記する。図7においては、X1≦x≦X2においてはC(x)=n、x>X2においてはC(x)=0となっている。実際には、工具102A1の撮像に際してさまざまな画像ノイズが発生するため、x>X2においてもC(x)>0となるが、ノイズを含めた計測結果については図12、図13に関連して後述する。
 図8は、巻き付き検査時の撮像画像の模式図である。
 図6,7に関連して説明した予備検査により、工具102A1の検査領域Qから黒画素が特定される。上述したように、検査部152は、所定のタイミングにて、工具102A1について巻き付き検査を実行する。
 図8は、工具102A1の巻き付き検査時の撮像画像を示す。工具102A1には切屑180が付着している。巻き付き検査時においても、撮像処理部156は、工具102A1をZ軸方向に直線移動させるように操作制御装置120に指示する。撮像処理部156は撮像領域170(ライブビュー画像)において刃部112の先端の検出後、カメラ106に撮像画像(部分画像)の取得を指示する。カメラ106は、指示を受けたとき1枚目の部分画像を取得してメモリに固定する。
 加工制御部122は工具102A1をZ軸正方向にそのまま直線移動させる。撮像処理部156は、工具102A1の移動に連動して部分画像を連続的に取得する。面積算出部150は、X1~X3、Z1~Z2の範囲において、工具102Aの検査領域Qを設定する。予備検査時の検査領域Qと巻きつき検査時の検査領域Qは同一範囲である。
 巻き付き検査においては、撮像画像には工具102A1のみならず、切屑180も映り込む。面積算出部150は撮像画像を2値化処理し、黒画素と白画素に分類する。このときの黒画素の大部分は工具102A1に対応するが、一部は切屑180に対応する。
 図9は、巻き付き検査時における使用工具の黒画素数の計算方法を説明するための模式図である。
 切屑180の位置に対応する画素を「屑画素」とよぶ。X1≦x≦X2においてはC(x)=nとなる。これは基準工具と同様である。X1≦x≦X2の範囲において検出される黒画素は工具画素である。一方、x>X2においても、いいかえれば、工具102A1の輪郭線の外側にも少数の黒画素が検出される。これは、切屑180に対応する屑画素である。以下、X2よりも外側において検出される工具画素を「余剰画素」とよぶ。余剰画素の多くは屑画素であるが切屑以外の物体あるいはノイズも少数ながら含まれているかもしれない。図9に示す余剰画素群190は余剰画素の集合を示す。余剰画素の総数を「余剰面積」とよぶ。
 面積算出部150は、予備検査時における工具102A1(基準工具)の余剰面積S1と、巻き付き検査時における工具102A1(使用工具)の余剰面積S2をそれぞれ求める。工具102A1に対する切屑180の巻き付き量が多いほど、余剰面積S2は大きくなる。なお、図7に示したように、理想的には、基準工具の余剰面積S1は「0」である。
 あらかじめ閾値T1を設定しておく。検査部152は、S2(使用工具の余剰面積)-S1(基準工具の余剰面積)>閾値T1となっているとき、工具102A1を「異常」と判定する。この場合、工具102A1は同タイプの別の工具102A2と交換する必要がある。
 より具体的には、まず、基準工具について、検査領域Qを対象とした撮像画像を取得する。面積算出部150は、撮像画像に含まれる各画素(x、z)の輝度値を取得する。面積算出部150は、輝度値が所定の閾値以下となる黒画素の数を計数する。次に、使用工具についても同様にして、検査領域Qを対象とした撮像画像を取得する。面積算出部150は、撮像画像に含まれる各画素(x、z)の輝度値を取得する。面積算出部150は、輝度値が所定の閾値以下となる黒画素の数を計数する。検査部152は、使用工具の黒画素と基準工具の黒画素を座標ごとに比較し、相違する画素数を計数する。このときの差分が「S2-S1」に対応する。以下、余剰面積S2と余剰面積S1の差分値のことを「差分画素数D」または「差分値D」とよぶ。差分値Dが閾値T1以上となるとき、巻き付き量が非常に大きいと考えられるため、工具102A1は異常(継続使用不可)と判定される。
 図10は、基準工具撮像画面230の画面図である。
 撮像処理部156は、工具102を撮像し、表示部138は撮像画像を表示させる。基準工具撮像画面230は、切屑が巻き付いていない工具102、たとえば、予備検査時における基準工具の撮像画像である。上述したように、面積算出部150は撮像画像に基づいて余剰面積を計算する。表示部138は、基準工具撮像画面230において余剰面積S1を表示させてもよい。
 図11は、使用工具撮像画面220の画面図である。
 使用工具撮像画面220は、切屑180が巻き付いている工具102の撮像画像である。巻き付き検査のときに使用工具を撮像したとき、使用工具撮像画面220が表示される。面積算出部150は、使用工具についても余剰面積S2を計算する。表示部138は、使用工具撮像画面220において余剰面積S2を表示させてもよい。画像処理装置110の表示部138は、基準工具撮像画面230および使用工具撮像画面220を並列表示させることもできる。このとき、表示部138は、基準工具の余剰面積S1と使用工具の余剰面積S2のほか、その差分値Dも表示させる。作業者は、基準工具撮像画面230(基準工具)とさまざまな巻き付き量に対応する使用工具撮像画面220を見比べながら、閾値T1を自由に設定する。入力部146は、閾値T1の入力を受け付け、検査部152の内部パラメータとしてこれを設定する。閾値T1をいったん設定したあとは、検査部152は閾値T1に基づいて使用工具の継続使用可否を判定する。
 図12は、巻き付き量と黒画素数の関係を示すグラフである。
 横軸は工具径方向(X軸方向)、縦軸はX画素座標ごとの黒画素数である。黒画素は、工具102に対応する工具画素と切屑180に対応する屑画素の双方を含む。グラフ231は、切屑がほとんど巻き付いていない工具102A1の黒画素数である。グラフ232は、切屑が少し巻き付いているが継続使用可能な工具102A1の黒画素数である。グラフ234は、切屑が多量に巻き付いているため交換が必要な工具102A1の黒画素数である。図12のグラフは、図7、図9に模式的に示した図に対応する。
 図12に示すように、工具中心からの距離がR(工具径)を超えると黒画素数が急減している。グラフ234に関しては工具中心からの距離がR以上となっても黒画素数が残っている。これは、工具輪郭よりも外側において屑画素が大量に検出されるためである。なお、基準工具撮像画面230に示したように切屑がまったく巻き付いていない工具102A1であっても、少数ながら余剰画素が検出されている。これは、撮像条件の変動や、画像の2値化にともなってノイズが生じるためである。したがって、グラフ231においてもノイズとしての余剰画素が少量ながら検出されている。基準工具であっても、実際には余剰面積S1はゼロとはならない。
 図13は、巻き付き量と差分画素数の関係を示すグラフである。
 図13は、基準工具としての工具102A1と、図12におけるグラフ231、グラフ232、グラフ234に対応する使用工具としての工具102A1との黒画素の差分値D(差分画素数)を示す。巻き付き量が大きいほど工具径Rを中心として、特に工具径Rより外部において余剰画素が多く検出されている。
 図14は、巻き付き検査の処理過程を示すフローチャートである。
 巻き付き検査の実行タイミングにおいて、加工制御部122は、主軸116を工具認識領域210に移動させる(S24)。加工制御部122は、主軸116を工具認識領域210に挿入したあと、操作制御装置120に準備完了を通知する。
 検査部152は、工具102の画像検査を行う(S26)。画像検査により、使用工具の継続使用可否が判定される。画像検査の詳細は次の図15に関連して説明する。
 画像検査の結果が異常判定だった場合には(S28のY)、表示部138は使用工具に多量または大型の切屑が巻き付いていることを作業者に報知する(S30)。続いて、撮像処理部156は、操作制御装置120を介して加工制御部122に工具交換を指示する(S32)。工具交換部126は、使用工具(切屑の巻き付き量が大きい工具102A1)と、工具格納部130に格納されている同タイプの予備の工具102A2を交換する。
 画像検査の結果が正常判定だったときには(S28のN)、S30、S32の処理はスキップされる。
 図15は、図14のS26における画像検査の詳細を示すフローチャートである。
 撮像処理部156は、工具102を撮像し、検査領域Qに対応する撮像画像を取得する(S40)。面積算出部150は使用工具の余剰面積S2を計算し、予備検査においてあらかじめ取得していた余剰面積S1と余剰面積S2の差分値Dを計算する(S42)。検査部152は、差分値Dが閾値T1よりも大きいときには(S44のY)、異常と判定する(S46)。差分値Dが閾値T1以下のときには(S44のN)、検査部152は使用工具を正常(継続使用可能)と判定する(S48)。上述したように、異常判定のときに工具交換が実行される。
[総括]
 以上、実施形態に基づいて工作機械100および画像処理装置110について説明した。
 工具102に巻き付いた切屑は、ワークを傷つけてしまう可能性がある。一方、切屑が少ししか巻き付いていない場合でも工具102を交換するとすれば加工効率が低下してしまう。本実施形態によれば、画像処理装置110は工具102の巻き付き量を画像認識し、使用工具の継続使用可否を自動的に判定できる。このような制御方法によれば、工作機械100における加工効率と安全性を両立させることができる。
 また、作業者は、基準工具撮像画面230および使用工具撮像画面220において工具102の撮像画像とともに余剰面積S1,S2あるいは差分値Dを参照することにより、直観的に適切な閾値T1を設定できる。
 なお、本発明は上記実施形態や変形例に限定されるものではなく、要旨を逸脱しない範囲で構成要素を変形して具体化することができる。上記実施形態や変形例に開示されている複数の構成要素を適宜組み合わせることにより種々の発明を形成してもよい。また、上記実施形態や変形例に示される全構成要素からいくつかの構成要素を削除してもよい。
[変形例]
 本実施形態においては、差分値D(=S2-S1)>閾値T1となるとき、検査部152は工具102A1を異常と判定をするものとして説明した。変形例として、検査部152は差分値D2=S2/S1を計算してもよい。任意の閾値T2を設定し、D2>T2のとき、検査部152は工具102A1を異常と判定してもよい。
 画像処理装置110は、工具102に欠損が生じていないかを判定するために、定期的に工具検査を実行する。画像処理装置110は、工具検査のときに巻き付き検査を工作機械100に実行指示してもよい。画像処理装置110の検査部152は、加工中になんらかの異常を検出したとき、巻き付き検査を実行するとしてもよい。たとえば、主軸116に加速度センサを内蔵しておき、カメラ106から画像処理装置110に加速度を定期的に通知する。画像処理装置110の検査部152は、カメラ106の加速度が所定の閾値以上となったとき、工具102の干渉が発生した可能性があるかもしれないので巻き付き検査を実行するとしてもよい。加工領域内に集音マイクを設け、異音(所定音量以上の音声、所定周波数帯の音声など)が発生したとき、画像処理装置110は巻き付き検査を実行するとしてもよい。
 工具102A1による加工後、別の工具102Bに交換するタイミングにて巻き付き検査を実行してもよい。たとえば、工具102A1と同タイプの工具である工具102A2が工具格納部130に格納されているとする。工具102A1を工具102Bに交換するとき、工具102A1について巻き付き検査を実行する。工具102A1が異常判定となったときには、工具交換部126が工具102A1と工具102Bを交換したあと、操作制御装置120は工具102A1の状態データを「使用不可」に設定する。次回、工具102A1が必要となったときには、工具交換部126は、使用不可の工具102A1ではなく、同タイプの工具102A2を選ぶ。工具102A2に切屑が巻き付いて異常判定となったときには、工具102A2も「使用不可」に設定される。作業者は、一連の加工作業が終わったあと、工具格納部130において「使用不可」とされている工具102から切屑を除去する。このあと、作業者は、画像処理装置110または操作制御装置120から、工具102A1,工具102A2の状態を「使用不可」から「使用可能」に変更設定してもよい。
 本実施形態においては、工具径Rの位置を境界線として設定し、面積算出部150は境界線(工具径R)よりも外側に位置する黒画素を余剰画素として検出した。余剰画素と工具画素の境界線は、工具径Rに限らず、作業者が任意に設定してもよい。
 本実施形態においては、カメラ106を固定し、主軸116をカメラ106の近くに動かすことで工具102を撮像するとして説明した。変形例として、可動型のカメラ106を使用してもよい。データ処理部142はカメラ制御部(不図示)を備え、カメラ制御部は工具検査時にカメラ106を工具102のそばに移動させることで工具102を撮像させてもよい。
 余剰面積が大きいとき、たとえば、S2(使用工具の余剰面積)-S1(基準工具の余剰面積)>閾値T3となっているとき、送信部306は主軸116を加工領域200内の所定位置に移動させ、そこで主軸116を高速回転させることを指示する制御信号を操作制御装置120に送信してもよい。回転速度は任意であるが、たとえば、500~2000rpm程度の範囲で設定されればよい。操作制御装置120は、この制御信号を受信したとき、加工制御部122に上記制御を実行させる。所定回数の回転後、検査部152は巻き付き検査を再実行してもよい。主軸116の回転運動により、工具102からは切屑180が除去される可能性がある。再度の巻き付き検査において余剰面積が小さいとき、たとえば、S2-S1≦T3となっているときには、検査部152はこの工具102を継続使用可能と判定してもよい。
 出力部148は、報知部(不図示)を備えてもよい。報知部は、巻き付き検査においてS1-S2>T1が成立するとき、「切屑が工具に巻き付いている可能性があります」のようなメッセージを作業者に報知してもよい。報知方法は音声および文字の双方または一方であればよい。
 以下においては、工具102に対する切屑の巻き付きおよび工具102の折損の検出方法の変形例について説明する。
 図16は、変形例における予備検査時の撮像画像の模式図である。
 変形例においても、検査部152は所定のタイミングにて、加工中または加工後の工具102について巻き付き検査を実行する。検査部152は、また、工具登録時には予備検査を実行する。
 図16は、ある工具102A2(Aタイプの工具102の一つ)の予備検査時の撮像画像である。図16においても、工具102A2の中心線のX座標値を「X1」とする。
 工具102A2を工具登録したあと、検査部152は工具102A2について予備検査を実行する。予備検査に際しては、撮像処理部156は、主軸116をZ軸方向、すなわち、工具102の長手方向に直線移動させる。ここで、撮像領域の中心線と工具102A2の中心線の座標値の差分を「XP」とする。差分値XPは、後述の方法によりユーザにより任意に設定可能である。
 加工制御部122は主軸116を差分値XPにしたがってX軸方向に調整したあと、移動値ZPに基づいてZ軸方向に移動させる。移動値ZPも後述の方法によりユーザにより任意に設定可能である。撮像処理部156は、工具102A2の移動に連動して、部分画像を連続的に取得する。すなわち、工具102をその長手方向に移動させる過程において、複数の部分画像が撮像される。以下、予備検査時に得られる部分画像を「基準画像」とよぶ。
 このようにして、予備検査に際しては差分値XPおよび移動値ZPにより定義される検査領域Qを対象として複数の部分画像が基準画像として取得される。予備検査のときには工具102に対する切屑の巻き付き、工具102の折損は生じていない。
 巻き付き検査時においても、予備検査時と同様の検査領域Qを対象として複数の部分画像が取得される。巻き付き検査時においても、102をその長手方向に移動させる過程において、複数の部分画像が撮像される。以下、巻き付き検査時の部分画像のことを「検証画像」とよぶ。巻き付き検査のときには工具102に切屑の巻き付きが生じている可能性がある。
 図17は、検査設定画面310の画面図である。
 ユーザは、予備検査前に検査設定画面310において検査対象、検査範囲、検出感度を設定できる。表示部138により、検査設定画面310が画面表示される。検査設定画面310は、検査選択領域313、範囲設定領域314および検出感度設定領域316を含む。検査選択領域313において、ユーザは、検査項目として「折損検査」と「巻き付き検査」それぞれについて要否を設定する。図17においては巻き付き検査のみが選択されている。折損検査については後述する。
 範囲設定領域314において、ユーザは差分値XPおよび移動値ZPを設定することで検査領域Qを定義する。検出感度設定領域316において、ユーザは検査感度を「高」「中」「低」のいずれかから選択する。本変形例においては、検査部152は基準画像と検証画像を比較し、それぞれに含まれる黒画素数の差分量に基づいて切屑の巻き付きの大きさを判定する。
 検査感度は、たとえば、「高」では閾値としての画素数はT1、「中」では画素数T2(>T1)、「低」では画素数T3(>T2)に設定される。変形例においては、面積算出部152の代わりに「算出部」が余剰面積ではなく、差異点数(後述)を計算することで巻き付き判定を行う。すなわち、変形例における画像処理装置110の機能ブロック図は、図4に説明した機能ブロック図の「面積算出部」を「算出部」に変更したものである。算出部は、同一撮像位置における基準画像と検証画像を比較し、基準画像において黒画素となる第2領域と、検証画像において黒画素となる第1領域の画素数の差分である差異点数を算出する。ここでいう黒画素は、図7に関連して説明した方法と同一の方法により特定される。
 第1領域には、工具本体だけでなく、工具102に巻き付いている切屑が含まれる可能性がある。一方、予備検査時の工具102には切屑が巻き付いていないので、第2領域は工具102のみに対応する領域である。第1領域と第2領域の黒画素の数の差である差異点数に応じて、検査部152は工具102が正常(継続使用可能)であるか否かを判定する。切屑が巻き付いていない場合、理想的には第1領域と第2領域は完全一致し、差異点数はゼロとなる。すなわち、第1領域と第2領域は本来一致するべき、工具102に対応する領域であり、切屑等が工具102に巻き付いたときには第1領域は第2領域よりも大きくなる。
 ユーザは、入力した設定値を有効化するときには設定ボタン318をタッチする。このとき、撮像処理部156および検査部152は設定値をデータ格納部144に保存する。キャンセル時にはユーザはキャンセルボタン320をタッチする。
 折損検査方法については、後述し、まず巻き付き検査の方法について具体例を示しながら説明する。
 図18は、変形例における使用工具撮像画面の第1の画面図である。
 図18においては、検証画像P1~P4が取得されている。検証画像P1~P4と同じ撮像位置において基準画像V1~V4(不図示)があらかじめ取得されている。算出部は、基準画像V1における第2領域と、検証画像P1における第1領域を比較する。より具体的には、検査部152は検証画像P1において所定の閾値明度以下となる黒画素領域を第1領域、基準画像V1において閾値明度以下となる黒画素領域を第2領域とし、第1領域と第2領域の画素数の差異点数D1を計算する。
 工具102の先端に切屑の巻き付きが発生する場合には、差異点数D1は大きくなる。巻き付きが発生していないときには、画像ノイズ等の影響を考慮したとしても、差異点数D1は小さい値となる。図18においてはD1<T1となるので、検出感度が高・中・低のいずれであっても、検査部152は検証画像P1については巻き付きを検出しない。図18において工具102の先端部には切屑の巻き付きがほとんど発生していないため、検証画像P1における第1領域とは基準画像V1における第2領域にほぼ完全に対応している。
 検証画像P4と基準画像V4の差異点数D4は、閾値T1よりも大きく閾値T3よりも小さい。したがって、検証感度が「高(T1)」に設定されているときには、検査部152は工具102に対して切屑が巻き付いているため、この工具102は継続使用に適さないと判定する。一方、検証感度が「中(T2)」または「低(T3)」に設定されているときには、検査部152は工具102を継続使用可能と判定する。検査部152は、検証画像P1~P4について順番に差異点数Dと閾値を比較し、いずれかの検証画像について閾値を超える差分値が検出されたときには工具102を使用不可と判定する。
 ユーザは検出感度を設定することで、工具102の継続使用に対する判断基準を自由に設定できる。
 図19は、変形例における使用工具撮像画面の第2の画面図である。
 図19においては、移動値ZPが図18に示す検査時よりも大きく設定されているため、検証画像P1~P9および基準画像V1~V9(不図示)が取得される。検証画像P4の第1領域と基準画像V4の第2領域の画素数の差異点数D4は、閾値T2よりも大きく閾値T3よりも小さい。したがって、検出感度が「高(T1)」「中(T2)」に設定されているときには、検査部152は工具102を継続使用不可と判定する。検出感度が「低(T3)」に設定されているときには、検査部152は工具102を継続使用可能と判定する。
 図20は、変形例における使用工具撮像画面の第3の画面図である。
 図20においても、移動値ZPが図18に示す検査時よりも大きく設定されているため、検証画像P1~P9および基準画像V1~V9(不図示)が取得される。検証画像P5の第1領域と基準画像V5の第2領域の画素数の差異点数D5は、閾値T3よりも大きい。したがって、検出感度が「高(T1)」「中(T2)」「低(T3)」のいずれに設定されているときでも、検査部152は検証画像P5に基づいて工具102を継続使用不可と判定する。
 このように、検査部152は検証画像の第1領域に含まれる黒画素数から基準画像の第2領域に含まれる黒画素数を減算し、その差異点数Dが閾値よりも大きいときには、工具102への切屑の巻き付き量が継続使用に適さないほど大きいと判定する。
 一方、工具102に欠損が生じたときには、検証画像の第1領域に含まれる黒画素数は、基準画像の第2領域に含まれる黒画素数よりも少なくなる。検査設定画面310において折損検出が選択されているときには、検査部152は基準画像の第2領域に含まれる黒画素数から検証画像の第1領域に含まれる黒画素数を減算し、その差異点数Eを閾値と比較する。検査部152は差異点数Eが閾値に比べて大きいときには、工具102は継続使用に適さないほど折損していると判定する。折損検査の閾値も、検査設定画面310における検出感度設定領域316の設定にしたがって変化する。
 上述したように、変形例においては、検査部152は、工具登録時の撮像画像である基準画像と検証画像と、巻き付き検査、折損検査時の撮像画像である検証画像を比較し、第1領域および第2領域の画素数の差異点数に基づいて、切屑の巻き付きあるいは工具102の折損が生じているか否かを判定する。検査部152は、ユーザによる検出感度の設定値に基づいて、工具102の継続使用可否を判定する。

Claims (3)

  1.  カメラから、工具の撮像画像を受信する受信部と、
     前記撮像画像において、工具に対応する領域のうち、工具中心から所定距離以上離れた部分の領域の面積である余剰面積を計算する面積算出部と、
     前記余剰面積の大きさに基づいて、前記工具の継続使用の適否を判定する検査部と、を備える、画像処理装置。
  2.  工具の長手方向に対してカメラと工具が相対移動し、カメラから複数の撮像画像を受信する受信部と、
     複数の撮像画像それぞれについて、撮像画像における工具に対応する領域を含む第1領域と、基準画像における工具に対応する領域を含む第2領域の差異点数を計算する面積算出部と、
     前記複数の撮像画像それぞれの差異点数に基づいて、前記工具の継続使用の適否を判定する検査部と、を備える、画像処理装置。
  3.  ユーザから、検出感度の指定を受付ける入力部、を更に備え、
     前記検査部は、前記複数の撮像画像のうちのいずれかの差異点数が前記指定された検出感度にあらかじめ対応づけられる閾値以上となるとき、検査対象となる工具に切屑が巻き付いていることを報知する、請求項2に記載の画像処理装置。
PCT/JP2022/001532 2021-02-01 2022-01-18 画像処理装置 WO2022163426A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP22745649.8A EP4272895A1 (en) 2021-02-01 2022-01-18 Image processing device
CN202280012666.1A CN116802014A (zh) 2021-02-01 2022-01-18 图像处理装置
JP2022578260A JPWO2022163426A1 (ja) 2021-02-01 2022-01-18
US18/227,955 US20230377128A1 (en) 2021-02-01 2023-07-30 Image processing device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2021-014083 2021-02-01
JP2021014083 2021-02-01

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/227,955 Continuation US20230377128A1 (en) 2021-02-01 2023-07-30 Image processing device

Publications (1)

Publication Number Publication Date
WO2022163426A1 true WO2022163426A1 (ja) 2022-08-04

Family

ID=82653340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2022/001532 WO2022163426A1 (ja) 2021-02-01 2022-01-18 画像処理装置

Country Status (5)

Country Link
US (1) US20230377128A1 (ja)
EP (1) EP4272895A1 (ja)
JP (1) JPWO2022163426A1 (ja)
CN (1) CN116802014A (ja)
WO (1) WO2022163426A1 (ja)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02232148A (ja) * 1989-03-06 1990-09-14 Mitsubishi Electric Corp 切削機械の切屑付着監視装置
JPH0336752U (ja) * 1989-08-18 1991-04-10
JPH08197383A (ja) * 1995-01-30 1996-08-06 Toshiba Mach Co Ltd 切削工具の切屑付着検知方法および装置
JPH09323240A (ja) 1996-06-04 1997-12-16 Mitsubishi Electric Corp 工作機械の工具捕捉装置
DE202005015485U1 (de) * 2005-04-12 2005-12-29 E. Zoller GmbH & Co. KG Einstell- und Messgeräte Mess- und/oder Einstellgerät mit einer Bilderfassungseinheit
JP2010122086A (ja) * 2008-11-20 2010-06-03 Fa Vision Corp 形状測定装置および形状測定方法
JP2012131023A (ja) * 2010-12-23 2012-07-12 General Electric Co <Ge> 切削工具の異常検知装置
JP2016042066A (ja) * 2014-08-19 2016-03-31 株式会社オーエム製作所 工作機械

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02232148A (ja) * 1989-03-06 1990-09-14 Mitsubishi Electric Corp 切削機械の切屑付着監視装置
JPH0336752U (ja) * 1989-08-18 1991-04-10
JPH08197383A (ja) * 1995-01-30 1996-08-06 Toshiba Mach Co Ltd 切削工具の切屑付着検知方法および装置
JPH09323240A (ja) 1996-06-04 1997-12-16 Mitsubishi Electric Corp 工作機械の工具捕捉装置
DE202005015485U1 (de) * 2005-04-12 2005-12-29 E. Zoller GmbH & Co. KG Einstell- und Messgeräte Mess- und/oder Einstellgerät mit einer Bilderfassungseinheit
JP2010122086A (ja) * 2008-11-20 2010-06-03 Fa Vision Corp 形状測定装置および形状測定方法
JP2012131023A (ja) * 2010-12-23 2012-07-12 General Electric Co <Ge> 切削工具の異常検知装置
JP2016042066A (ja) * 2014-08-19 2016-03-31 株式会社オーエム製作所 工作機械

Also Published As

Publication number Publication date
JPWO2022163426A1 (ja) 2022-08-04
CN116802014A (zh) 2023-09-22
US20230377128A1 (en) 2023-11-23
EP4272895A1 (en) 2023-11-08

Similar Documents

Publication Publication Date Title
JP2002018680A (ja) 工作機械
WO2022172521A1 (en) Machine tool
WO2022163426A1 (ja) 画像処理装置
JP6788759B1 (ja) 情報処理装置及び情報処理システム
US20230405751A1 (en) Machine tool
WO2021161775A1 (ja) 情報処理装置及び情報処理システム
JP6901612B1 (ja) 画像処理装置及び工作機械
US20230089383A1 (en) Image processing device and machine tool
JP6946587B1 (ja) 画像処理装置および工作機械
JPH0535323A (ja) Nc装置
JP2022123918A (ja) 工作機械
JP6946583B1 (ja) 画像処理装置
JP6991376B1 (ja) 工作機械
JPH09323240A (ja) 工作機械の工具捕捉装置
JP6980142B1 (ja) 画像処理装置及び工作機械
WO2022163459A1 (en) Image processing device and machine tool
JP6980141B1 (ja) 工具撮像装置及び工作機械
JP6946584B1 (ja) 画像処理装置および工作機械
WO2023243317A1 (ja) 撮像装置、工具収納装置および工作機械
JP6998487B1 (ja) 工作機械
JP6860730B1 (ja) 画像処理装置及び工作機械
WO2022172520A1 (en) Machine tool
JP2023118041A (ja) 撮像装置、工具収容装置および工作機械
CN114746212A (zh) 显示装置、机床及液体的放出方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22745649

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022578260

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 202280012666.1

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 2022745649

Country of ref document: EP

Effective date: 20230802

NENP Non-entry into the national phase

Ref country code: DE