CN116197737A - Numerical control machining center detection method and device - Google Patents

Numerical control machining center detection method and device Download PDF

Info

Publication number
CN116197737A
CN116197737A CN202310019736.2A CN202310019736A CN116197737A CN 116197737 A CN116197737 A CN 116197737A CN 202310019736 A CN202310019736 A CN 202310019736A CN 116197737 A CN116197737 A CN 116197737A
Authority
CN
China
Prior art keywords
image
workpiece
processing
numerical control
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310019736.2A
Other languages
Chinese (zh)
Inventor
陈武兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Taizheng Precision Machinery Co ltd
Original Assignee
Shenzhen Taizheng Precision Machinery Co ltd
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 Shenzhen Taizheng Precision Machinery Co ltd filed Critical Shenzhen Taizheng Precision Machinery Co ltd
Priority to CN202310019736.2A priority Critical patent/CN116197737A/en
Publication of CN116197737A publication Critical patent/CN116197737A/en
Pending legal-status Critical Current

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/20Arrangements for observing, indicating or measuring on machine tools for indicating or measuring workpiece characteristics, e.g. contour, dimension, hardness
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Optics & Photonics (AREA)
  • Numerical Control (AREA)

Abstract

The application provides a method and a device for detecting a numerical control machining center. The method is applied to a server, and comprises the following steps: acquiring in-place information of a workpiece to be processed at a processing station, and automatically running a processing program of the workpiece to control the numerical control processing center to process the workpiece; acquiring a processing image of the workpiece at a first moment in a first direction in real time; invoking a pre-stored standard image of a processing video of the workpiece at a first moment in a first direction; comparing the processed image with the standard image, calculating a pixel difference value of a corresponding position of the processed image and the standard image, and outputting a first fault signal if the pixel difference value is larger than a preset first threshold value; and sending the first fault signal to the numerical control machining center so as to stop the numerical control machining center. The method has the effect of automatically monitoring the numerical control machining process in real time.

Description

Numerical control machining center detection method and device
Technical Field
The application relates to the technical field of intelligent manufacturing, in particular to a detection method and device for a numerical control machining center.
Background
The numerical control machining center is a high-efficiency automatic machine tool which is composed of mechanical equipment and is suitable for machining complex parts, and is also an automatic machine tool provided with a program control system. The program control system is capable of logically processing a program defined by a control code or other symbolic instruction, the program being input into the numerical control device by an information carrier, so that the numerical control device controls the tool to machine a workpiece. The program is operated and then sent out by the numerical control device to control the work of the numerical control machining center. Therefore, the numerical control machining center automatically processes the workpiece according to the shape and the size required by the drawing.
Along with development of technology, an automatic production line can be formed by utilizing a combination of a machining automatic production line, a loading and unloading manipulator and a numerical control machine tool, so that unmanned processing is realized, the labor productivity can be improved, and the cost is reduced. And the production line is developed into a flexible manufacturing system, so that the requirement of automatic production in the modern mechanical industry is met. The flexible manufacturing system consists of a unified information control system, a material storage and transportation system and a plurality of numerical control devices, and can be suitable for an intelligent and automatic electromechanical manufacturing system for converting a processing object.
At present, in the production process of an automatic production line, because a plurality of high-speed and high-precision numerical control machine tools are adopted, the allowable error of processed and manufactured products is small, and at present, the processing defects generated in the processing process are difficult to discover in time sometimes only by manual rechecking. Therefore, there is a need for an automated inspection method in real time to monitor the process of numerical control machining.
Disclosure of Invention
The application provides a detection method and device for a numerical control machining center, which have the effect of automatically monitoring the numerical control machining process in real time.
In a first aspect of the present application, there is provided a method for detecting a numerically controlled machining center, the method comprising:
acquiring in-place information of a workpiece to be processed at a processing station, and automatically running a processing program of the workpiece to control the numerical control processing center to process the workpiece;
acquiring a processing image of the workpiece at a first moment in a first direction in real time;
invoking a pre-stored standard image of a processing video of the workpiece at a first moment in a first direction;
comparing the processed image with the standard image, calculating a pixel difference value of a corresponding position of the processed image and the standard image, and outputting a first fault signal if the pixel difference value is larger than a preset first threshold value;
and sending the first fault signal to the numerical control machining center so as to stop the numerical control machining center.
By adopting the technical scheme, in the process of processing the workpiece by the numerical control processing center, the server acquires the processing image of the workpiece at the first moment in the first direction in real time. Meanwhile, the server retrieves a processing video of the pre-stored workpiece in the first direction, and selects a standard image at the first moment. And comparing the processing image with the standard image, calculating pixel difference values of the corresponding positions of the processing image and the standard image, and if the pixel difference values are larger than a first threshold value, indicating that deviation is generated between the actual processing process and the preset processing process. The server outputs a first fault signal to the numerical control machining center to stop the numerical control machining center. Thereby achieving the effect of automatically monitoring the numerical control machining process in real time.
Optionally, before comparing the processed image with the standard image, an image processing operation is further included, where the image processing operation includes:
denoising the processed image and the standard image;
carrying out gray conversion on the image after denoising treatment;
performing edge detection on the workpiece in the image after gray level conversion;
matching the gray-scale converted processing image with a standard image, and calculating a plurality of pixel block differences between the edge gray-scale value of the workpiece in the gray-scale converted processing image and the edge gray-scale value of the virtual workpiece in the gray-scale converted standard image;
and carrying out summation operation and average value operation on the pixel block difference values to obtain the pixel difference value.
By adopting the technical scheme, the processing image and the standard image are subjected to denoising treatment, so that the reliability of the subsequent image recognition is improved. The image is subjected to gray conversion to improve the image quality and enhance the contrast, so that the edge detection of the workpiece in the image is facilitated. After the processing image and the standard image are matched, calculating pixel block differences of gray values of a plurality of edge positions of the workpiece in the processing image and the standard image, and summing and averaging the pixel block differences to obtain the pixel differences, namely obtaining the deviation of the actual processing condition and the theoretical processing condition.
Optionally, the standard machining process of the workpiece is photographed from a plurality of different angles as a standard machining video.
By adopting the technical scheme, videos of standard machining processes of the workpiece are shot from multiple angles and are used as standard machining videos. The processing video is convenient to gather from a plurality of directions in the course of working to carry out the contrast detection with standard processing video many times, improve the precision that detects.
Optionally, the first threshold is a maximum value of a workpiece processing error.
By adopting the technical scheme, the first threshold value is set to be the maximum value of the machining error of the workpiece, so that the server can conveniently detect the machining process of the workpiece within the range of the machining allowable error, and the server can be prevented from judging the allowable machining error as a machining defect.
Optionally, before the workpiece is processed, acquiring a first position image of a position where the clamp clamps the workpiece;
after the image processing is carried out on the first position image, first relative position data of the workpiece and the position data of the clamp are detected and calculated;
after the workpiece is processed for a preset time, acquiring a second position image of the position where the clamp clamps the workpiece;
after the image processing is carried out on the second position image, second relative position data of the workpiece and the position data of the clamp are detected and calculated;
calculating a position difference between the first relative position data and the second relative position data;
if the position difference value is larger than a preset second threshold value, outputting a second fault signal;
and sending the second fault signal to the numerical control machining center so as to stop the numerical control machining center.
By adopting the technical scheme, before processing the workpiece, the server acquires a first position image of the position of the workpiece clamped by the clamp, and calculates first relative position data. After a period of processing, the server acquires a second position image of the position of the workpiece clamped by the clamp, and calculates second relative position data. And finally, calculating a position difference value between the first relative position data and the second relative position data, and when the position difference value is larger than a second threshold value, indicating that the workpiece is not clamped, wherein the relative position between the workpiece and the clamp changes in the processing process. The clamp is convenient for reminding operators to clamp the workpiece by the clamp in time.
Optionally, before machining or after replacing the tool, acquiring a first rotation image of the tool;
after a preset time length, collecting a second rotation image of the cutter;
performing image processing on the first rotation image, and calculating a first main shaft position value in the first rotation image;
performing image processing on the second rotation image, and calculating a second spindle position value in the second rotation image;
calculating a spindle deviation value of the first spindle position value and the second spindle position value;
if the spindle deviation difference value is larger than a preset third threshold value, outputting a third fault signal;
and sending the third fault signal to the numerical control machining center so as to stop the numerical control machining center.
By adopting the technical scheme, before processing or after replacing the cutter, the server acquires the first rotation image of the cutter and performs image processing, so as to calculate the first spindle data of the rotation spindle of the cutter in the image. After the preset time length, the server collects a second rotation image of the cutter and performs image processing, calculates second spindle data of a rotation spindle of the cutter in the image, and calculates a spindle deviation value of the first spindle data and the second spindle data. If the spindle deviation value is larger than a third threshold value, which indicates that the cutter is not installed stably and the rotating spindle of the cutter generates deviation in the rotating process, the server needs to output a third fault signal to the numerical control machining center, so that the numerical control machining center stops the machining work of the workpiece.
Optionally, acquiring an image of a facet of the tool;
performing the image processing on the edge face image;
judging the abrasion type of the cutter and calculating an abrasion value;
outputting a fourth fault signal if the abrasion value exceeds a preset abrasion threshold value;
and sending the fourth fault signal to the numerical control machining center so as to stop the numerical control machining center.
By adopting the technical scheme, the server acquires the blade face image of the cutter and performs image processing, and detects and calculates the abrasion value of the cutter. If the abrasion value is larger than the abrasion threshold value, the abrasion value indicates that the cutter is seriously abraded, the machining precision requirement cannot be met, and the server needs to output a fourth fault signal to the numerical control machining center so that the numerical control machining center stops working.
Optionally, after outputting the fault signal, the processed image and the standard image are stored.
By adopting the technical scheme, the fault signal is output when the actual machining process deviates from the theoretical machining process preset by the program, and the server stores the machining image and the standard image so that a worker can conveniently judge the fault reason according to the image.
In a second aspect of the present application, there is provided a device for detecting a numerically controlled machining center, wherein the device is a server, and the server includes:
the acquisition module is used for acquiring in-place information of a workpiece to be processed at a processing station, and automatically running a processing program for the workpiece so as to control the numerical control processing center to process the workpiece; the method comprises the steps of,
invoking a pre-stored standard image of a processing video of the workpiece at a first moment in a first direction; the method comprises the steps of,
acquiring a processing image of the workpiece at a first moment in a first direction in real time;
the processing module is used for comparing the processing image with the standard image, calculating a pixel difference value of a corresponding position of the processing image and the standard image, and outputting a first fault signal if the pixel difference value is larger than a preset first threshold value;
the sending module is used for sending the first fault signal to the numerical control machining center so as to stop the numerical control machining center.
In a third aspect of the present application there is provided an electronic device comprising a processor, a memory for storing instructions, a user interface and a network interface, both for communicating to other devices, the processor being for executing the instructions stored in the memory to cause the electronic device to perform a method as claimed in any one of the preceding claims.
In summary, the present application at least includes the following beneficial technical effects:
in the process of processing a workpiece by a numerical control processing center, a control module acquires in-place information of the workpiece to be processed at a processing station, and automatically runs a processing program for the workpiece so as to control the numerical control processing center to process the workpiece. And the control module is used for calling a standard image of a pre-stored processing video of the workpiece at a first moment in a first direction. The image acquisition module acquires a processing image of the workpiece at a first moment in a first direction in real time. The processing module compares the processed image with the standard image and calculates the pixel difference value of the corresponding position of the processed image and the standard image. If the pixel difference value is larger than a preset first threshold value, the deviation between the actual machining process and the preset machining process is indicated, and a first fault signal is output to the numerical control machining center so that the numerical control machining center stops working, and the effect of automatically monitoring the numerical control machining process in real time is achieved.
Drawings
Fig. 1 is a schematic flow chart of a method for detecting a numerical control machining center according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of image processing disclosed in the embodiment of the present application.
Fig. 3 is a schematic block diagram of a detection device of a numerical control machining center according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Reference numerals illustrate: 1. an acquisition module; 2. a processing module; 3. a transmitting module; 401. a processor; 402. a user interface; 403. a network interface; 404. a memory.
Detailed Description
In the description of embodiments of the present application, words such as "exemplary," "such as" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "illustrative," "such as" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "or" for example "is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, the term "plurality" means two or more unless otherwise indicated. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The embodiment discloses a method for detecting a numerical control machining center, which is applied to a server, and referring to fig. 1, the method comprises the following steps:
s100, acquiring in-place information of a workpiece to be processed at a processing station, and automatically running a processing program for the workpiece to control a numerical control processing center to process the workpiece.
Specifically, the workpiece is placed at a processing station, clamped by a clamp, the numerical control processing center acquires the in-place information, and automatically operates a processing program input in advance to process the workpiece.
S110, processing images of the workpiece at a first moment in a first direction are acquired in real time.
A high-speed camera is arranged in a machine tool body of a numerical control machining center and is arranged in a first direction of a workpiece, and an image of the machining process of a cutter on the workpiece is shot at a first moment to serve as a machining image. The specific value of the first time is not limited in this embodiment, and other embodiments may be adjusted according to actual situations.
S120, a standard image of a pre-stored processing video of the workpiece at a first moment in a first direction is called.
Specifically, a processing video of the workpiece is photographed in advance from a first direction of the workpiece. In the process of machining the workpiece by the numerical control machining center, a machining image of the workpiece is acquired at a first moment, and a video frame at the first moment is called from machining videos to serve as a standard image. The first direction may be any direction, which is not limited in this embodiment, and other embodiments may be adjusted according to the actual situation of the machine tool.
S130, comparing the processed image with the standard image, calculating a pixel difference value of the corresponding position of the processed image and the standard image, and outputting a first fault signal if the pixel difference value is larger than a preset first threshold value.
And according to preset characteristic information, matching and positioning in the image, and detecting the position of the part in the image during processing. And calculating pixel values of the same position of the workpiece in the processing image and the standard image to obtain pixel difference values. And if the pixel difference value is larger than the first threshold value, indicating that the machining error is larger, outputting a first fault signal. If the pixel difference value is smaller than or equal to the first threshold value, the server does not process the pixel difference value and works normally. In this embodiment, the specific value of the first threshold is not limited, and other embodiments may be adjusted according to actual situations.
And S140, sending the first fault signal to the numerical control machining center so as to stop the numerical control machining center.
In one possible embodiment, the geometric drawing is performed on the part to be processed in a server to complete the modeling of the part. And selecting proper machining steps, machining tools, materials, process parameters and machining parts, and generating tool machining path and track data by software. And finally, the server generates a machining program adapted to the designated numerical control machining center and transmits the machining program to the numerical control machining center through a communication interface to machine the workpiece. And the server performs three-dimensional simulation on the processing process of the virtual workpiece according to the generated cutter processing path and track data.
For example, during processing of a workpiece, a processing image of the workpiece at a first moment in a first direction is acquired in real time. Simultaneously, virtual machining images of the virtual workpiece at a first moment in a first direction are acquired in real time. And comparing the processing image with the virtual processing image, calculating a pixel difference value of the corresponding position of the processing image and the virtual processing image, and outputting a first fault signal to the numerical control processing center if the pixel difference value is larger than a preset first threshold value, wherein the numerical control processing center stops working. If the pixel difference is less than or equal to the first threshold, the server does not perform any processing.
In a possible embodiment, referring to fig. 2, the image processing method further includes an image processing operation before the processed image is compared with the standard image, where the image processing includes:
s121, denoising the processed image and the standard image.
Specifically, gaussian noise in the image is eliminated by Gaussian smoothing, namely, each central pixel point in the image is scanned, the weighted average gray value of the pixels in the neighborhood of the pixel point is determined, and the pixel value of the central pixel point is replaced.
S122, carrying out gray conversion on the denoised image.
Specifically, the RGB (Red, green, blue) value of each pixel in the image is taken, and a desaturation algorithm is adopted, namely, firstly, the RGB model of the image is converted into an HLS (Hue, lightness, saturation) model, and then, the saturation in the image is converted into zero, so that a gray image is obtained. And then carrying out gray level transformation on the gray level image, namely carrying out gray level stretching by adopting a piecewise linear transformation function, so as to improve the contrast of the image.
S123, performing edge detection on the workpiece in the image after gray level conversion.
The laplace transform is used to perform edge detection on the workpiece, i.e., when the gray value of the center pixel is lower than the average gray value of other pixels in the neighborhood where it is located, the gray value of the center pixel is further reduced. When the gray value of the center pixel of the neighborhood is higher than the average gray value of other pixels in the neighborhood where it is located, the gray value of this center pixel is further increased. And finally, selecting the zero crossing point in the transformed image as the edge point of the workpiece.
And S124, matching the processed image after gray level conversion with the standard image, and calculating a plurality of pixel block difference values of the edge gray level value of the workpiece in the processed image and the edge gray level value of the workpiece in the standard image.
Specifically, a gray level co-occurrence matrix algorithm is adopted to match the processed image with the standard image. The correlation between two points of gray scale with a certain distance and a certain direction is calculated to reflect the correlation between the processing image and the standard image, so that the matching of workpieces in the image is performed. And calculating first edge gray values of different positions of the workpiece in the processing image and second edge gray values of different positions in the standard image, and calculating the first edge gray values and the second edge gray values of the same position to obtain a plurality of pixel block difference values.
S125, carrying out summation operation and average value operation on the pixel block differences to obtain pixel differences.
Specifically, first, a sum operation is performed on a plurality of pixel block values to obtain a total difference value of the pixel blocks, and then an average operation is performed, namely, the selected position number is removed to obtain the pixel difference value.
In one possible embodiment, the standard machining process of the workpiece is video-shot from a plurality of different angles as a standard machining video.
Specifically, a standard machining process is carried out on a machining process of a certain part in a numerical control machining center, a plurality of high-speed cameras are used for shooting the standard machining process from different angles as standard machining videos,
in one possible embodiment, the first threshold value is the maximum value of the allowable error for processing the workpiece, that is, the workpiece whose pixel difference between the photographed processing image and the standard image is smaller than the first threshold value is a qualified workpiece within the allowable error range
In one possible embodiment, the server captures a first position image of the position of the clamp holding the workpiece prior to the workpiece being processed by the numerically controlled machining center. After the server performs image processing on the first position image, first relative position data of the workpiece and the position data of the clamp are detected and calculated. After the workpiece is processed for a preset time period, the server acquires a second position image of the position where the clamp clamps the workpiece. After the second position image is subjected to image processing, second relative position data of the workpiece and the position data of the clamp are detected and calculated. A position difference between the first relative position data and the second relative position data is calculated. And if the position difference value is larger than a preset second threshold value, outputting a second fault signal. And after the numerical control machining center receives the second fault signal, stopping working. If the position difference value is smaller than or equal to the second threshold value, the server does not process the position difference value and works normally. The preset duration may be any duration, which is not limited in this embodiment, and the specific duration is set according to a specific situation and is not described herein again.
In one possible embodiment, a first rotation image of the tool, i.e. an image of the tool captured by the high-speed camera during rotation of the tool, is acquired before machining or after changing the tool. After a preset time period, the server acquires a second rotation image of the cutter. The server performs image processing on the first rotation image, and calculates a first spindle position value in the first rotation image. And the server performs image processing on the second rotation image and calculates a second spindle position value in the second rotation image. And calculating a spindle deviation value of the first spindle position value and the second spindle position value. If the spindle deviation difference is larger than a preset third threshold value, the fact that the cutter is not clamped and the position in the rotating process deviates is indicated. And outputting a third fault signal by the server, and receiving the third fault signal by the numerical control machining center to stop working.
The preset duration may be 1 second, may be 2 seconds, may be 3 seconds, and in this embodiment, the preset duration is preferably 1 second, and other embodiments may be adjusted according to practical situations.
In one possible embodiment, the server captures an image of the blade face of the knife. Image processing is carried out on the blade surface image. And judging the abrasion type of the cutter and calculating the abrasion value. And if the abrasion value exceeds a preset abrasion threshold value, the server outputs a fourth fault signal. And the numerical control machining center receives the fourth fault signal and stops working. Wherein the wear type includes one or more of flank wear, craters, built-up bits, micro-chipping, and edge deformation.
In one possible embodiment, after the server outputs the fault signal, the processed image and the standard image are stored for subsequent determination of the cause of the fault. The fault signals comprise a first fault signal, a second fault signal, a third fault signal and a fourth fault signal.
The embodiment also discloses a device for detecting the numerical control machining center, referring to fig. 3, the device is a server, the server comprises an acquisition module 1, a processing module 2 and a sending module 3, wherein,
the acquisition module 1 is used for acquiring in-place information of a workpiece to be processed at a processing station, and automatically running a processing program for the workpiece so as to control a numerical control processing center to process the workpiece; the method comprises the steps of,
acquiring a processing image of a workpiece at a first moment in a first direction in real time; the method comprises the steps of,
invoking a standard image of a pre-stored processing video of a workpiece at a first moment in a first direction;
the processing module 2 is used for comparing the processed image with the standard image, calculating the pixel difference value of the corresponding position of the processed image and the standard image, and outputting a first fault signal if the pixel difference value is larger than a preset first threshold value;
and the sending module 3 is used for sending the first fault signal to the numerical control machining center so as to stop the numerical control machining center.
In one possible embodiment, the server further includes an image processing operation before comparing the processed image with the standard image, the image processing operation including:
denoising the processed image and the standard image;
carrying out gray conversion on the image after denoising treatment;
performing edge detection on the workpiece in the image after gray level conversion;
matching the gray-scale converted processing image with the standard image, and calculating a plurality of pixel block difference values of the edge gray-scale value of the workpiece in the gray-scale converted processing image and the edge gray-scale value of the virtual workpiece in the gray-scale converted standard image;
and carrying out summation operation and average value operation on the pixel block difference values to obtain the pixel difference value.
In one possible embodiment, the server captures video of a standard machining process of the workpiece from a plurality of different angles as a standard machining video.
In one possible embodiment, the server sets the first threshold to be the maximum value of the workpiece machining error.
In one possible embodiment, the server acquires a first position image of the position where the clamp grips the workpiece before processing the workpiece;
after the first position image is subjected to image processing, first relative position data of the workpiece and the position data of the clamp are detected and calculated;
after the workpiece is processed for a preset time, collecting a second position image of the position where the clamp clamps the workpiece;
after the second position image is subjected to image processing, second relative position data of the workpiece and the position data of the clamp are detected and calculated;
calculating a position difference value between the first relative position data and the second relative position data;
if the position difference value is larger than a preset second threshold value, outputting a second fault signal;
and sending a second fault signal to the numerical control machining center so as to stop the numerical control machining center.
In one possible embodiment, the server acquires a first rotation image of the tool before machining or after changing the tool;
after a preset time length, collecting a second rotation image of the cutter;
performing image processing on the first rotation image, and calculating a first spindle position value in the first rotation image;
performing image processing on the second rotation image, and calculating a second spindle position value in the second rotation image;
calculating a spindle deviation value of the first spindle position value and the second spindle position value;
if the main shaft deviation difference value is larger than a preset third threshold value, outputting a third fault signal;
and sending a third fault signal to the numerical control machining center so as to stop the numerical control machining center.
In one possible embodiment, the server captures an image of the blade face of the tool;
performing image processing on the blade surface image;
judging the abrasion type of the cutter and calculating an abrasion value;
if the abrasion value exceeds a preset abrasion threshold value, outputting a fourth fault signal;
and sending a fourth fault signal to the numerical control machining center so as to stop the numerical control machining center.
In one possible embodiment, the server stores the processed image and the standard image after outputting the failure signal.
The implementation principle of the embodiment is as follows:
before the numerical control machining center starts batch machining of the workpieces, a server pre-stores machining videos of the workpieces in a first direction in a standard machining process of the workpieces. In the workpiece machining process, the control module acquires in-place information of the workpiece to be machined, which is positioned at the machining station, so that a machining program for the workpiece is automatically operated to control the numerical control machining center to machine the workpiece. The control module invokes a standard image at a first moment of the processed video. The image acquisition module acquires a processing image of the workpiece at a first moment in a first direction in real time. The processing module 2 compares the processed image with the standard image and calculates the pixel difference value of the corresponding position of the processed image and the standard image. If the pixel difference value is larger than a preset first threshold value, the deviation between the actual machining process and the preset machining process is indicated, and a first fault signal is output to the numerical control machining center so that the numerical control machining center stops working, and the effect of automatically monitoring the numerical control machining process in real time is achieved.
The embodiment also discloses an electronic device, referring to fig. 4, the electronic device may include: at least one processor 401, at least one user interface 402, a network interface 403, and a memory 404, at least one communication bus.
Wherein the communication bus is used to enable connection communication between these components.
The user interface 402 may include a Display screen (Display), a Camera (Camera), and the optional user interface 402 may further include a standard wired interface, a wireless interface, among others.
The network interface 403 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 401 may include one or more processing cores. The processor 401 connects the various parts within the entire server using various interfaces and lines, performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 404, and calling data stored in the memory 404. Alternatively, the processor 401 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 401 may integrate one or a combination of several of a central processor 401 (Central Processing Unit, CPU), an image processor 401 (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 401 and may be implemented by a single chip.
The Memory 404 may include a random access Memory 404 (Random Access Memory, RAM) or a Read-Only Memory 404 (Read-Only Memory). Optionally, the memory 404 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 404 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 404 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 404 may also optionally be at least one storage device located remotely from the aforementioned processor 401. As shown, the memory 404, which is a computer storage medium, may include an operating system, a network communication module, a user interface 402 module, and an application program for a numerical control machining center detection method.
In the electronic device as shown in the figure, the user interface 402 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 401 may be used to invoke an application program in the memory 404 that stores a method of detecting a numerically controlled machining center, which when executed by the one or more processors 401, causes the electronic device to perform the method as in one or more of the embodiments described above.
The above are merely exemplary embodiments of the present disclosure and are not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A method for detecting a numerical control machining center, wherein the method is applied to a server, and the method comprises the following steps:
acquiring in-place information of a workpiece to be processed at a processing station, and automatically running a processing program of the workpiece to control the numerical control processing center to process the workpiece;
acquiring a processing image of the workpiece at a first moment in a first direction in real time;
invoking a pre-stored standard image of a processing video of the workpiece at a first moment in a first direction;
comparing the processed image with the standard image, calculating a pixel difference value of a corresponding position of the processed image and the standard image, and outputting a first fault signal if the pixel difference value is larger than a preset first threshold value;
and sending the first fault signal to the numerical control machining center so as to stop the numerical control machining center.
2. The method of claim 1, further comprising an image processing operation prior to comparing the processed image with the standard image, the image processing operation comprising:
denoising the processed image and the standard image;
carrying out gray conversion on the image after denoising treatment;
performing edge detection on the workpiece in the image after gray level conversion;
matching the gray-scale converted processing image with a standard image, and calculating a plurality of pixel block differences between the edge gray-scale value of the workpiece in the gray-scale converted processing image and the edge gray-scale value of the virtual workpiece in the gray-scale converted standard image;
and carrying out summation operation and average value operation on the pixel block difference values to obtain the pixel difference value.
3. The method for detecting a numerical control machining center according to claim 1, wherein the method comprises:
and shooting videos of the standard machining process of the workpiece from a plurality of different angles to serve as standard machining videos.
4. The method of claim 1, wherein the first threshold is a maximum value of workpiece machining errors.
5. The method of claim 1, further comprising:
before the workpiece is processed, a first position image of the position where the clamp clamps the workpiece is acquired;
after the image processing is carried out on the first position image, first relative position data of the workpiece and the position data of the clamp are detected and calculated;
after the workpiece is processed for a preset time, acquiring a second position image of the position where the clamp clamps the workpiece;
after the image processing is carried out on the second position image, second relative position data of the workpiece and the position data of the clamp are detected and calculated;
calculating a position difference between the first relative position data and the second relative position data;
if the position difference value is larger than a preset second threshold value, outputting a second fault signal;
and sending the second fault signal to the numerical control machining center so as to stop the numerical control machining center.
6. The method of claim 1, further comprising:
before machining or after replacing a cutter, collecting a first rotation image of the cutter;
after a preset time length, collecting a second rotation image of the cutter;
performing image processing on the first rotation image, and calculating a first main shaft position value in the first rotation image;
performing image processing on the second rotation image, and calculating a second spindle position value in the second rotation image;
calculating a spindle deviation value of the first spindle position value and the second spindle position value;
if the spindle deviation difference value is larger than a preset third threshold value, outputting a third fault signal;
and sending the third fault signal to the numerical control machining center so as to stop the numerical control machining center.
7. The method of claim 1, further comprising:
acquiring an edge face image of the cutter;
performing the image processing on the edge face image;
judging the abrasion type of the cutter and calculating an abrasion value;
outputting a fourth fault signal if the abrasion value exceeds a preset abrasion threshold value;
and sending the fourth fault signal to the numerical control machining center so as to stop the numerical control machining center.
8. The method of claim 1, further comprising:
and after outputting the fault signal, storing the processing image and the standard image.
9. A numerical control machining center detection device is characterized in that the device is a server, the server comprises an acquisition module (1), a processing module (2) and a sending module (3), wherein,
the acquisition module (1) is used for acquiring in-place information of a workpiece to be processed at a processing station, and automatically running a processing program of the workpiece so as to control the numerical control processing center to process the workpiece; the method comprises the steps of,
acquiring a processing image of the workpiece at a first moment in a first direction in real time;
invoking a pre-stored standard image of a processing video of the workpiece at a first moment in a first direction; the method comprises the steps of,
the processing module (2) is used for comparing the processing image with the standard image, calculating a pixel difference value of a corresponding position of the processing image and the standard image, and outputting a first fault signal if the pixel difference value is larger than a preset first threshold value;
the sending module (3) is used for sending the first fault signal to the numerical control machining center so as to stop the numerical control machining center.
10. An electronic device comprising a processor (401), a memory (404), a user interface (402) and a network interface (403), the memory (404) being configured to store instructions, the user interface (402) and the network interface (403) being configured to communicate to other devices, the processor (401) being configured to execute the instructions stored in the memory (404) to cause the electronic device to perform the method of any one of claims 1-8.
CN202310019736.2A 2023-01-06 2023-01-06 Numerical control machining center detection method and device Pending CN116197737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310019736.2A CN116197737A (en) 2023-01-06 2023-01-06 Numerical control machining center detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310019736.2A CN116197737A (en) 2023-01-06 2023-01-06 Numerical control machining center detection method and device

Publications (1)

Publication Number Publication Date
CN116197737A true CN116197737A (en) 2023-06-02

Family

ID=86513964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310019736.2A Pending CN116197737A (en) 2023-01-06 2023-01-06 Numerical control machining center detection method and device

Country Status (1)

Country Link
CN (1) CN116197737A (en)

Similar Documents

Publication Publication Date Title
EP0142990A2 (en) Inspecting articles
CN113902810B (en) Robot gear chamfering processing method based on parallel binocular stereoscopic vision
CN111127402A (en) Visual detection method for welding quality of robot
CN113752086A (en) Method and device for detecting state of numerical control machine tool cutter
CN113077437B (en) Workpiece quality detection method and system
US20190317475A1 (en) Controller and control system
CN111539927A (en) Detection process and algorithm of automobile plastic assembly fastening buckle lack-assembly detection device
TWM575368U (en) Cloud computing system for intelligent machine tools
KR101379438B1 (en) Monitorinr system and method for wire drawing machine
CN113822810A (en) Method for positioning workpiece in three-dimensional space based on machine vision
CN101356417B (en) System and method for detecting a geometry of a workpiece
US20230419477A1 (en) Anomaly detection system in the automatic placement of composites during the manufacturing of structural elements
CN113610833A (en) Material grabbing method and device, electronic equipment and storage medium
CN116197737A (en) Numerical control machining center detection method and device
CN111539951B (en) Visual detection method for outline size of ceramic grinding wheel head
US11422542B2 (en) Workpiece surface quality issues detection
CN116930195A (en) Intelligent CAM system for hardware processing and surface defect detection method and device
US20190325606A1 (en) Inspection apparatus
CN115908292A (en) Method and device for detecting defects of welding workpiece and storage medium
KR102280203B1 (en) Numerical Control Data Automatic Generation System of Roll Bending System and Automatic Generating Method for Numerical Control Data
TW201523178A (en) Method and system for detecting manufacturing areas of a product
CN114092428A (en) Image data processing method, image data processing device, electronic equipment and storage medium
Liu et al. Automated visual inspection of metallic parts
CN112223102A (en) Honing method and device based on visual positioning
CN113313759B (en) Welding spot positioning method, system, device, equipment and medium based on binocular vision

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination