Measurement method for laser processing, numerical control machine, system and storage medium

By acquiring and analyzing the position of image pixels on the surface to be processed, combined with the linear fitting relationship of the height calibration area, the accuracy and economy of height measurement of CNC machines are achieved, and the measurement inaccuracy and cost in the existing technology are solved. high problem.

CN118583067APending Publication Date: 2024-09-03SHENZHEN MAKER WORKS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410230349.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-02
Filing Date
2024-02-29
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

CNC machines suffer from inaccurate and high-cost height measurement problems, making it difficult to achieve accurate and economical height measurements.

Method used

By obtaining the image of the measured light source shining on the surface to be processed, the pixel position of the illumination point is determined, and based on the mapping relationship between the pixel position and the processing height, linear fitting is performed to generate the height of the height calibration area, thereby achieving accurate height determination of the surface to be processed. Measurement.

Benefits of technology

It achieves fast, efficient and accurate measurement of the height of the surface to be processed, reduces the dependence on expensive hardware equipment, and reduces the overall cost of the CNC machine.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118583067A
    Figure CN118583067A
Patent Text Reader

Abstract

The invention provides a measurement method for laser processing, a numerical control machine, a computing system and a storage medium. The method comprises the following steps: acquiring a measurement image of a to-be-processed surface irradiated by a measurement light source; determining a corresponding pixel point position of an irradiation point in the measurement image, wherein the irradiation point is a point formed by irradiating the to-be-processed surface by the measurement light source; and according to the mapping relationship between the pixel point position and the processing height, determining the corresponding height of the irradiation point on the to-be-processed surface. According to the invention, the height of the to-be-processed surface is accurately measured.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on March 2, 2023, with the application name “Height measurement method and device, processing equipment” and priority number 202310256238X, all contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of laser processing technology, and in particular to a laser processing measurement method and a numerical control machine, system and storage medium. Background Art

[0003] With the development of CNC machines from industry to terminal applications, CNC machines will no longer be limited to their industrial applications, but have gradually become intelligent hardware that can be used by terminals. People can realize processing on processing objects through the use of CNC machines.

[0004] Before processing the processing object, it is usually necessary to measure the height of the processing surface of the processing object. For example, when the processing object is a wooden board, it is necessary to measure the height of the processing surface of the wooden board from the bottom plate of the CNC machine. When the processing object is a box, it is necessary to measure the height of the processing surface of the box from the bottom plate of the CNC machine.

[0005] Therefore, how to achieve accurate measurement of the height of the processing surface is a problem that needs to be solved urgently. Summary of the invention

[0006] The present application aims to solve the technical problems of inaccurate measurement and high cost of CNC machines.

[0007] According to one aspect of an embodiment of the present application, a measurement method for laser processing is disclosed, the method comprising:

[0008] Acquire a measurement image of the surface to be processed irradiated by the measurement light source;

[0009] Determine a pixel position corresponding to an irradiation point in the measurement image, wherein the irradiation point is a point formed by the measurement light source irradiating the surface to be processed;

[0010] According to the mapping relationship between the pixel point position and the processing height, the height corresponding to the irradiation point on the surface to be processed is determined.

[0011] According to one aspect of an embodiment of the present application, before determining the height corresponding to the surface to be processed of the irradiation point according to the mapping relationship between the pixel point position and the processing height, the method further includes:

[0012] Respectively obtaining calibration images of the irradiation point in a plurality of height calibration areas, and heights of the height calibration areas corresponding to the calibration images;

[0013] Obtaining the pixel position corresponding to the illumination point in the calibration image;

[0014] The mapping relationship is generated by linear fitting according to the height of the height calibration area and the pixel position.

[0015] According to one aspect of an embodiment of the present application, the height calibration area is at least partially located in a shell of a CNC machine, the shell includes a bottom support member, and the height calibration area includes a reference height calibration area, a positive height calibration area and / or a negative height calibration area formed by a zero plane in the CNC machine, wherein the zero plane is consistent with the height of the plane where the bottom support member is located, the plane where the positive height calibration area is located is located at any position above the zero plane, and the plane where the negative height calibration area is located is located at any position below the zero plane.

[0016] According to one aspect of an embodiment of the present application, the bottom support member includes at least one of a bottom plate, a honeycomb panel, a knife bar, a height-increasing component, and a feeding component.

[0017] According to one aspect of an embodiment of the present application, determining a pixel point position corresponding to an illumination point in the measurement image includes:

[0018] Identify the pixel point corresponding to the illumination point in the measurement image;

[0019] The pixel position corresponding to the irradiation point in the measurement image is calculated according to the pixel position.

[0020] According to one aspect of an embodiment of the present application, the measuring light source includes a movable light source and a fixed light source, the movable light source is slidably arranged on a slide rail of a numerical control machine, and the step of obtaining a measuring image of the surface to be processed irradiated by the measuring light source includes:

[0021] driving the fixed light source to emit a light beam;

[0022] When the fixed light source does not irradiate the surface to be processed, driving the movable light source to move to the surface to be processed and emitting a light beam, and acquiring a measurement image of the surface to be processed irradiated by the movable light source;

[0023] In a case where the fixed light source irradiates the surface to be processed, a measurement image of the surface to be processed irradiated by the fixed light source is acquired.

[0024] According to one aspect of an embodiment of the present application, the step of obtaining a measurement image of the surface to be processed irradiated by the measurement light source further includes:

[0025] Acquiring a measurement image irradiated by the measurement light source at a first height through a first camera device at a first position in the workspace, wherein the first camera device is slidably disposed on a slide rail of a numerical control machine;

[0026] The slide rail is driven to move the first camera device to a second position in the workspace, and a measurement image irradiated by the measurement light source at a second height is acquired through the first camera device at the second position, wherein the first height and the second height are inconsistent.

[0027] According to one aspect of an embodiment of the present application, the CNC machine further includes a second camera device, and the obtaining of a measurement image of the surface to be processed irradiated by the measurement light source further includes:

[0028] A measurement image of the surface to be processed irradiated by the measurement light source is obtained by a second camera device fixedly arranged at a third position in the working space.

[0029] According to one aspect of an embodiment of the present application, the step of driving the movable light source to move to the surface to be processed includes:

[0030] The plane where the bottom support member is located is taken as the working plane, and an image of the working plane is captured;

[0031] Identify the surface to be processed displayed in the workspace image, and obtain the pixel position of the surface to be processed in the workspace image;

[0032] Determine the position of the surface to be processed according to the pixel position of the surface to be processed and the corresponding relationship between the pixel position of each pixel point in the workspace image and the position of each point in the work plane;

[0033] According to the position of the surface to be processed, the movable light source is driven to move so that the irradiation point of the movable light source irradiates the surface to be processed.

[0034] According to one aspect of an embodiment of the present application, after determining the height corresponding to the surface to be processed of the irradiation point according to the mapping relationship between the pixel point position and the processing height, the method further includes:

[0035] If the measuring light source can perform laser processing, focusing the measuring light source is performed according to the height of the surface to be processed;

[0036] If the measuring light source cannot perform laser processing, focusing the processing light source according to the height of the surface to be processed;

[0037] According to a preset processing program, the measuring light source or the processing light source is driven to process the surface to be processed at the working focal length.

[0038] According to one aspect of an embodiment of the present application, the present application provides a numerical control machine, the numerical control machine comprising:

[0039] Slide rails;

[0040] a movable head, the movable head being slidably disposed on the slide rail;

[0041] A communication component, the communication component is used to receive the height corresponding to the surface to be processed obtained according to the method described in any one of the above embodiments; and

[0042] A controller controls the movable head to move on the slide rail to process the surface of the processing material based on the height corresponding to the surface to be processed.

[0043] According to one aspect of an embodiment of the present application, the present application provides a computing system, the computing system comprising at least one numerical control machine and at least one processor;

[0044] The processor is used to execute the steps of any one of the above methods;

[0045] The numerical control machine transmits electromagnetic energy to a processing object arranged at a corresponding height inside the numerical control machine based on the height corresponding to the surface to be processed obtained by the processor.

[0046] According to one aspect of an embodiment of the present application, the present application provides a computer-readable storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed by a processor of a computer, the computer executes any of the methods described above.

[0047] In the embodiment of the present application, first obtain a measurement image of the surface to be processed irradiated by the measurement light source; then determine the corresponding pixel position in the measurement image of the irradiation point, the irradiation point is the point formed by the measurement light source irradiating the surface to be processed, and finally determine the height corresponding to the irradiation point on the surface to be processed according to the mapping relationship between the pixel position and the processing height. At this time, for the height measurement performed, it is only necessary to take a picture of the irradiation point to obtain the position of its corresponding pixel point, and substitute the position of the pixel point into the mapping relationship, and the height of the pixel point can be obtained according to the mapping relationship, so as to achieve accurate measurement of the height of the surface to be processed, and no longer need to rely on expensive hardware equipment, avoid the problem of the CNC machine being too expensive due to the need for height measurement, and achieve low-cost height measurement.

[0048] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0049] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.

[0051] Figure 1 A system architecture diagram applied according to an embodiment of the present application is shown.

[0052] Figure 2 A flow chart of a measurement method for laser processing according to an embodiment of the present application is shown.

[0053] Figure 3 A flow chart of constructing a mapping relationship between a pixel point position corresponding to an irradiation point and a processing height according to an embodiment of the present application is shown.

[0054] Figure 4 A schematic diagram of a calibration component according to an embodiment of the present application is shown. The calibration component refers to a device carrying calibration areas of different heights.

[0055] Figure 5 A schematic diagram of a calibration process according to an embodiment of the present application is shown.

[0056] Figure 6 A linear function curve fitting effect diagram is shown when the irradiation point height does not include negative values ​​according to an embodiment of the present application.

[0057] Figure 7 The figure shows the linear function curve fitting effect when the irradiation point height includes a negative value according to one embodiment of the present application.

[0058] Figure 8 A cubic function curve fitting effect diagram according to an embodiment of the present application is shown.

[0059] Fig. 9 A flow chart of determining the pixel position corresponding to the irradiation point in the measurement image according to an embodiment of the present application is shown.

[0060] Fig.10 A flow chart of obtaining a measurement image of a surface to be processed irradiated by a measurement light source according to an embodiment of the present application is shown.

[0061] Fig.11 A schematic structural diagram of a numerical control machine equipped with a movable light source according to an embodiment of the present application is shown.

[0062] Fig.12 A flow chart of acquiring a measurement image of a surface to be processed irradiated by a measurement light source according to another embodiment of the present application is shown.

[0063] Fig.13A hardware schematic diagram of a numerical control machine for implementing a height measurement method according to an embodiment of the present application is shown.

[0064] Fig.14 A flow chart of driving a movable light source to move to a surface to be processed according to an embodiment of the present application is shown.

[0065] Fig.15 A flow chart of processing a surface to be processed according to an embodiment of the present application is shown.

[0066] Fig.16 A hardware schematic diagram of a numerical control machine for implementing a height measurement method according to an embodiment of the present application is shown.

[0067] Fig.17 The figure shows a hardware structure diagram of a numerical control machine according to one embodiment of the present application. DETAILED DESCRIPTION

[0068] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present application will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0069] In addition, the described features, structures or characteristics may be combined in one or more example embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the example embodiments of the present application. However, those skilled in the art will appreciate that the technical solution of the present application may be practiced while omitting one or more of the specific details, or other methods, components, steps, etc. may be adopted. In other cases, known structures, methods, implementations or operations are not shown or described in detail to avoid obscuring the present application and making the various aspects of the present application obscure.

[0070] Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0071] See also Figure 1 , Figure 1It is a system architecture used in the embodiments of the present application. The system architecture may include: at least one external device 11, such as a host computer, and a CNC machine 12 facing each external device 11, and at least one production jig (not shown) that can be used by the CNC machine, so as to provide users with a processing function that can customize laser engraving or cutting. Among them, the CNC machine 12 can achieve what you see by performing laser engraving or cutting through the imaging process performed by itself, and display the results of laser engraving or cutting through visual display.

[0072] The term "cutting" as used herein generally refers to changing the appearance, properties and / or state of a processed object. Cutting may include, for example, performing through-cutting, engraving, bleaching, curing, burning, etc., and when specifically mentioned herein, engraving refers to the process by which a CNC machine changes the appearance of a material without completely penetrating the material. For example, for a CNC machine as referred to in this application, it may mean removing some of the processed object from the surface, or discoloring the processed object, for example, by applying focused electromagnetic radiation that transmits electromagnetic energy as described below.

[0073] Some technical solutions of the embodiments of the present application can be based on Figure 1 The system architecture shown or its variant architecture is used for specific implementation.

[0074] See also Figure 2 , Figure 2 A flow chart of a measurement method for laser processing according to an embodiment of the present application is shown. The present application embodiment provides a measurement method for laser processing, comprising:

[0075] Step S210, obtaining a measurement image of the surface to be processed irradiated by the measurement light source;

[0076] Step S220, determining the pixel position corresponding to the irradiation point in the measurement image, where the irradiation point is the point formed by the measurement light source irradiating the surface to be processed;

[0077] Step S230, determining the height corresponding to the irradiation point on the surface to be processed according to the mapping relationship between the pixel point position and the processing height.

[0078] The above three steps are described in detail below.

[0079] In step S210, according to the measurement instruction, a measuring light source emits a light beam so that the light beam is irradiated on the surface to be processed to form an irradiation point on the surface to be processed, and then the surface to be processed is photographed to obtain a measurement image.

[0080] Illustratively, in one embodiment of the present application, the measuring light source is controlled to move so that the light beam emitted by the measuring light source irradiates the surface to be processed, and the light spot formed on the surface to be processed serves as the irradiation point.

[0081] It should be made clear that the surface to be processed refers to the area to be processed in the processing object.

[0082] It should also be clarified that the measuring light source can be any visible light emitter, which can be a light source arranged inside the CNC machine, and the CNC machine can directly control its light beam emission. It can also be a light source of a mobile terminal or an external light source, and the CNC machine controls the light source of the mobile terminal or the external light source to emit a light beam through wired and / or wireless means.

[0083] The measuring light source may also be a processing light source used to perform processing in a CNC machine. By adjusting the power of the processing light source so that the processing light source emits weak light, damage to the processing surface can be avoided so as to serve as a measuring light source.

[0084] It should be further clarified that the "camera device" for photographing the surface to be processed includes but is not limited to visible light cameras, black and white cameras, infrared or ultraviolet sensitive cameras, separate brightness sensor diodes, sensitive photon detectors such as photomultiplier tubes or avalanche photodiodes, detectors of infrared radiation far from the visible spectrum, such as microwaves, X-rays or gamma rays, optically filtered detectors, spectrometers and other detectors, which may include sources that provide electromagnetic radiation for illumination to assist in collection, such as flash, UV lighting, etc.

[0085] Among them, the camera device can be located in the CNC machine, and the CNC machine can directly control the camera device to take pictures. In addition, the camera device is also a mobile terminal camera device or an external camera device, and the CNC machine controls the camera device of the mobile terminal or the external camera device to take pictures through wired and / or wireless means.

[0086] In step S220, the measurement image shows the (point) light spot formed by the light beam emitted by the measurement light source on the surface to be processed, that is, the irradiation point. According to the display position of the pixel point corresponding to the irradiation point in the measurement image, the pixel point position corresponding to the irradiation point in the measurement image can be obtained.

[0087] In step S230, the pixel position corresponding to the irradiation point is brought into the mapping relationship between the preset pixel position and the processing height to obtain the height of the irradiation point, that is, the height of the surface to be processed where the irradiation point is located. It should be made clear that the height where the irradiation point is located is one of the processing heights, and the processing height refers to the height when the CNC machine performs laser processing.

[0088] In the embodiment of the present application, by acquiring the measurement image of the irradiation point, the pixel position corresponding to the irradiation point is obtained, and then according to the preset mapping relationship between the pixel position and the processing height, the height of the irradiation point, that is, the height of the surface to be processed where the irradiation point is located, is obtained. Rapid, efficient and accurate measurement of the height of the surface to be processed is achieved.

[0089] See also Figure 3 , Figure 3 A flowchart of constructing a mapping relationship between a pixel point position corresponding to an irradiation point and a processing height according to an embodiment of the present application is shown. The embodiment of the present application provides steps for constructing a mapping relationship between a pixel point position corresponding to an irradiation point and a processing height, including:

[0090] Step S310, respectively obtaining calibration images of the irradiation point in a plurality of height calibration areas, and the heights of the height calibration areas corresponding to the calibration images;

[0091] Step S320, obtaining the pixel position corresponding to the irradiation point in the calibration image;

[0092] Step S330, generating a mapping relationship by linear fitting according to the height and pixel positions of the height calibration area.

[0093] The above three steps are described in detail below.

[0094] First of all, it should be explained that for the height measurement of the surface to be processed and the processing at different heights, the surface to be processed can be divided into different planes in terms of height. Specifically, the different planes distributed in terms of height include a zero plane, and positive height planes above the zero plane, and even negative height planes, thereby constituting the plane deployment of the CNC machine in the height direction.

[0095] It is further explained that for the specific deployment and configuration of the zero plane in the height direction, for the sake of convenience and simplicity, the zero plane in the CNC machine will be deployed with the help of devices assembled in the CNC machine, such as a loading platform, and then positioning in the height direction can be achieved based on this.

[0096] There are often some differences in the devices installed in different CNC machines, so the devices used as the loading platform are often different. However, no matter what device is used to deploy the zero plane, it is suitable for the realization of the height measurement of the present application.

[0097] For example, in one embodiment of the present application, the blade is used as a carrier platform, and the "upper plane" of the blade is used as the zero plane. It should be understood that the blade as a carrier platform is a carrier platform for the calibration parts in the CNC machine and the objects to be processed by the subsequent laser processing. For example, the blade is assembled in the working space inside the CNC machine for laser processing, and the calibration parts or processing objects loaded thereon are suspended in the working space under the action of the blade. The CNC machine includes a shell, and the internal space of the shell is the working space.

[0098] In another example of the present application, the height calibration area is at least partially located in the shell of the CNC machine, and the shell includes a bottom support member, with the bottom support member serving as a loading platform. The height calibration area includes a reference height calibration area formed by a zero plane in the CNC machine, a positive height calibration area and / or a negative height calibration area, wherein the zero plane is consistent in height with the plane where the bottom support member is located, the plane where the positive height calibration area is located is located at any position above the zero plane, and the plane where the negative height calibration area is located is located at any position below the zero plane.

[0099] It should be made clear that the bottom plate of the CNC machine is detachable. After the bottom plate is removed, the CNC machine can be used with additional workpieces such as height increase parts and feeding components.

[0100] In the embodiment of the present application, the detachable base plate gives the CNC machine more processing possibilities, and can flexibly adapt to processing objects of different thicknesses and types, expanding the use scenarios of the CNC machine.

[0101] In one embodiment of the present application, when the CNC machine removes the external height-increasing member from the bottom plate, the bottom plate of the height-increasing member is used as the bottom plate of the CNC machine, and the height-increasing member is in the negative height calibration area. In this embodiment, the CNC machine can flexibly adapt to materials of different thicknesses for processing, and adapt to different negative heights for calibration, which is convenient for measuring surfaces to be processed at more heights.

[0102] Furthermore, the bottom support member may be at least one of a bottom plate, a honeycomb plate, a blade, a heightening component, and a feeding component. The bottom plate may refer to the bottom of the housing, and the blade and the honeycomb plate may refer to support members (removable) placed on the bottom plate during laser processing to assist processing.

[0103] In another embodiment of the present application, when the external transmission member is removed from the bottom plate of the CNC machine, the bottom plate of the transmission member is used as the bottom plate of the CNC machine, and the transmission member is in the negative height calibration area. In this embodiment, the CNC machine can flexibly adapt to materials of different lengths for processing and adapt to different negative heights for calibration, which is convenient for measuring more heights of the surface to be processed.

[0104] The numerically controlled machine transmits electromagnetic energy to a processing object that is at least partially located in a workspace, and the electromagnetic energy transmitted to the processing object causes one or more changes in the product to be processed.

[0105] Specifically, the CNC machine can be used with an external feeding component or a heightening component. In the case of an external feeding component of the CNC machine, the feeding component delivers at least part of the processing object to the working space through a conveying component such as a conveyor belt, so that the electromagnetic energy transmitted by the movable head in the CNC machine acts on the processing object. In the case of an external heightening component of the CNC machine, at least part of the processing object is located in the working space, and at least part of the processing object is located in the receiving space formed by the heightening component. The working space and the receiving space formed by the heightening component together form an expanded working space, which helps the CNC machine to process larger objects.

[0106] See also Figure 4 , Figure 4 A schematic diagram of a calibration piece according to an embodiment of the present application is shown. The calibration piece refers to a device carrying different height calibration areas. As mentioned above, the upper plane of the bottom support is taken as the zero plane, and the height calibration area refers to several planes parallel to the zero plane of the CNC machine. In height measurement, an irradiation point is formed in a height calibration area by emitting a light beam.

[0107] In order to realize calibration areas of different heights, several steps are set on the calibration part to provide height changes. A plane obtained by the height change serves as a height calibration area carried by the calibration part, so that the CNC machine emits a light beam to form an irradiation point in a height calibration area, and so on. Under such height changes, calibration and measurement of different heights are completed through the execution of this application, and the calibration process is simple and fast.

[0108] It should be further clarified that the calibration parts are not necessary. The function of the calibration parts is to provide a height calibration area. When the hardware of the CNC machine itself can provide a height calibration area, the calibration parts can also be used to provide the height calibration area.

[0109] For example, the horizontal plane on the bottom support member of known height is used as the height calibration area, and when the detachable and movable bottom support member moves perpendicular to the zero plane, height calibration areas of different heights can be obtained, and then the height measurement is completed based on the obtained different height calibration areas.

[0110] Further explanation: for processing objects that are too large, the bottom support needs to be removed and the processing object needs to be placed directly under the CNC machine actuator (laser) for processing. At this time, a processing trajectory with negative height will appear, so it is necessary to implement height measurement including negative height. After the negative height is calibrated, the CNC machine can accurately measure the height of the irradiation point at negative height.

[0111] At this time, the plane where the upper plane of the bottom support is located is taken as the zero plane. When placing the calibration parts carrying the height calibration area, the calibration parts can not only be placed on the bottom support, but also be placed on the bottom plate of the CNC machine with the bottom support removed. Thus, the calibration parts carrying the positive height calibration area and the negative height calibration area are placed in the working space of the CNC machine compared to the zero plane, so as to realize the calibration of the negative height calibration area, and then use this as a basis for the CNC machine to perform more accurate measurement of unconventional processing objects.

[0112] It is further clarified that the above-mentioned actuators include but are not limited to lasers, cutting tools and engraving tools.

[0113] As used herein, the term "actuator (laser)" includes at least any electromagnetic radiation or focused or coherent energy source that (in the context of a cutting tool) uses photons to modify a substrate or cause some change or alteration in the material struck by the photons. The laser (whether a cutting tool or a diagnostic tool) can be of any desired wavelength, including, for example, microwaves, lasers, infrared lasers, visible light lasers, UV lasers, X-ray lasers, X-ray lasers, etc.

[0114] In step S310, the purpose of executing this step is to obtain a calibration image formed by the illumination point in the calibration area at different heights, and the calibration image contains the pixel points corresponding to the illumination point.

[0115] Specifically, the CNC machine emits a light beam to the height calibration area to form an irradiation point in the height calibration area. The height calibration area where the irradiation point is located is the height calibration area to be calibrated, and the height of the height calibration area is known data.

[0116] It is further clarified that in one embodiment of the present application, a measuring light source configured by a numerically controlled machine controls the emission of a light beam to the calibration piece, and a light spot formed by the light beam in a height calibration area on the calibration piece is an irradiation point.

[0117] For example, the numerical control machine used in the processing of the embodiment of the present application is equipped with at least a measuring light source and a camera device, wherein the camera device is used to capture a calibration image of the irradiation point on the height calibration area.

[0118] It should be clear that, whether in the process of constructing the mapping relationship or in the distance measurement of laser processing, the camera device and the irradiation point have a relatively fixed positional relationship, that is, no matter where the irradiation point moves to, the relative positional relationship between the irradiation point and the camera device on the zero plane remains unchanged. For example, when the irradiation point is in the zero plane, the camera device is always located directly above the irradiation point, and the incident angle of the light at the irradiation point remains unchanged. When the irradiation point is at the same height, the position of the pixel point on the calibration image remains unchanged. This approach is to highlight that when the irradiation point calibrates the area at different heights, the position of the pixel point corresponding to the irradiation point will change.

[0119] It should be clarified that the camera device and the irradiation point have a relatively fixed positional relationship, and there is no limitation on the installation method of the camera device and the light source. Exemplarily, the installation method of the camera device and the light source can be the following: a fixed camera device and a fixed measuring light source; a fixed camera device and a movable measuring light source; a movable camera device and a fixed measuring light source (the optical path of the light beam can be changed in conjunction with a galvanometer to form irradiation points at different positions. In this process, the relative positional relationship between the irradiation point and the camera device is always kept unchanged when it is in the zero plane); a movable camera device and a movable measuring light source.

[0120] In one embodiment of the present application, the measuring light source and the camera device have a fixed relative position relationship, which can be achieved by configuring the measuring light source and the camera device on the same movable head of the CNC machine. Specifically, the light source and the camera device are both provided on the movable head of the CNC machine. Alternatively, they can be provided on different movable heads, and the movable heads can be moved separately, so that the measuring light source and the camera device have a relatively fixed position relationship, and then the camera device and the irradiation point have a relatively fixed position relationship.

[0121] Furthermore, the movable head includes an actuator that is movable and capable of emitting laser to perform laser processing on the workpiece. The actuator can be a tool for moving engraving, cutting or creasing, or a movable nozzle of a 3D printer, etc., which is not limited here.

[0122] In another embodiment of the present application, the light source and / or the camera device can be arranged on any device; such as the inner wall of a CNC machine. In this case, a galvanometer can be added at the front end of the light source to always keep the relative position relationship between the irradiation point and the camera device unchanged when the irradiation point is in the zero plane.

[0123] After completing the acquisition of a calibration image of a height calibration area, when there is a height calibration area that still needs to acquire a calibration image, the CNC machine starts to emit a light beam to the height calibration area that still needs to acquire a calibration image, so that the light beam is irradiated to the specified height calibration area, and the light spot formed in the height calibration area is the irradiation point.

[0124] In a specific embodiment of the present application, the formation of the irradiation point on the height calibration area can be achieved by the user's control of the CNC machine, or by running a pre-configured light source control program, which is not limited here. Regardless of the control method, the CNC machine will control the light source configured to emit a light beam to the calibration member carrying the height calibration area, forming an irradiation point on the height calibration area.

[0125] The image of the height calibration area forming the irradiation point is acquired to obtain a calibration image containing pixel points corresponding to the irradiation point. Exemplarily, the camera device configured by the CNC machine is driven to take a picture of the height calibration area having the irradiation point to obtain the calibration image.

[0126] In one embodiment of the present application, in order to ensure that the CNC machine can accurately obtain the height of the irradiation point during use, during the construction of the mapping relationship, the CNC machine often irradiates multiple height calibration areas in sequence and obtains calibration images respectively. Therefore, when there are still height calibration areas for which calibration images have not been generated, the CNC machine still needs to irradiate the height calibration areas for which calibration images have not been generated, generate irradiation points and obtain calibration images, until all height calibration areas have generated corresponding calibration images.

[0127] In step 320, for the calibration image of the illumination point in the height calibration area, because the calibration image describes the picture of the illumination point in the height calibration area, there is an area in the calibration image that can describe the illumination point, and the area is found and updated as a pixel point. A point is preset in the calibration image as a reference point to obtain the position of the pixel point corresponding to the illumination point.

[0128] For example, the center point of the calibration image is used as the reference point, the distance from the pixel to the reference point is obtained, and the position of the pixel corresponding to the irradiation point is obtained according to the distance of the pixel corresponding to the reference point. The distance unit can be pixel or millimeter (mm), thereby obtaining the position of the pixel corresponding to the irradiation point on the calibration image.

[0129] In step S330, after the corresponding calibration images have been obtained in all height calibration areas, the position of the pixel point corresponding to the illumination point in the calibration image is determined according to the calibration images of the illumination point in different height calibration areas, and at the same time, according to the height of the height calibration area where the illumination point is located, the mapping relationship between the height of the height calibration area and the pixel point position is constructed.

[0130] For example, the irradiation point is photographed in advance to obtain the corresponding calibration image, the calibration image is identified to obtain the pixel position, and the height of the height calibration area corresponding to the pixel is obtained. The height of the height calibration area is also the height of the irradiation point, and the two are equivalent. For the convenience of description, the irradiation point height will be referred to as the height of the height calibration area where the irradiation point is located.

[0131] The acquired pixel positions and the corresponding irradiation point heights are used as multiple sets of data for linear fitting to obtain a mapping relationship.

[0132] This is the execution of the calibration process. The obtained mapping relationship indicates the height of the height calibration area where the pixel position and the corresponding irradiation point are located, so the height of the irradiation point can be obtained from the mapping relationship and the pixel position. The height of the irradiation point is equivalent to the height of the height calibration area where it is located during the calibration process. At the same time, it is also used to describe the vertical distance between the irradiation point and the zero plane in the workspace with the plane on the stage as the zero plane. It numerically represents the distance between the irradiation point and the zero plane. For example, the irradiation height refers to the coordinate value of the irradiation point on the Z axis of the mechanical coordinate system constructed by the CNC machine, and its unit can be millimeters. Furthermore, the calibration process can be performed only once when the CNC machine leaves the factory.

[0133] See also Figure 5 , Figure 5 A schematic diagram of the calibration process according to an embodiment of the present application is shown. The left side of the symbol "-" is the height of the irradiation point, and the right side is the pixel position. Because in the embodiment of the present application, the relative position relationship between the irradiation point and the camera device remains unchanged when it is in the zero plane, and the vertical projection of the light beam forming the irradiation point on the "zero plane" is always parallel to the X-axis in the coordinate system corresponding to the calibration image, so the coordinates of the pixel point only change in the X-axis coordinate. Therefore, when acquiring information, it is only necessary to clarify the X-axis coordinate information of the pixel point in the calibration image coordinate system. This also makes it unnecessary to calculate the two-dimensional coordinate information in the process of establishing the mapping relationship, which greatly reduces the amount of calculation to establish the mapping relationship.

[0134] It is further explained that the height of the height calibration area can be -51 mm as the starting point, and 3 mm as the incremental height, and the height can be increased again and again in this incremental height. Each time the height is increased, the light source is irradiated on the height calibration area to form an irradiation point and a photo is taken, so as to obtain the pixel position at the current height and the height of the corresponding irradiation point. By analogy, the pixel position at each height and the height of the corresponding irradiation point can be obtained. A linear fit is performed between the pixel position and the height of the corresponding irradiation point.

[0135] For each height calibration, a set of parameters is obtained from the calibration image, namely the pixel position CX and the corresponding irradiation point height Z. The mapping from the pixel position to the corresponding irradiation point height is obtained through the linear fitting, and the mapping relationship between the pixel position and its corresponding irradiation point height is stored in the CNC machine.

[0136] The mapping of the pixel position to the corresponding irradiation point height indicates the relationship between the pixel position and the corresponding irradiation point height. This relationship can be characterized by a cubic function and its coefficients. Therefore, the coefficients used for the cubic function corresponding to the pixel position and the irradiation point height are obtained by linear fitting, and the corresponding cubic function can be determined by the coefficients, thereby obtaining the mapping relationship between the pixel position and the irradiation point height. It is further explained that when performing linear fitting in the implementation of this application, a linear function, a quadratic function, and a cubic function are used for linear fitting respectively.

[0137] See also Figure 6 , Figure 6 A linear function curve fitting effect diagram is shown when the irradiation point height does not include negative values ​​according to an embodiment of the present application. Figure 6 The mapping relationship between the pixel position and the irradiation point height is shown. It can be seen that when the irradiation point height does not include a negative value, the mapping relationship between the pixel position and the irradiation point height conforms to a linear function relationship.

[0138] However, when the irradiation point height includes negative values, see Figure 7 , Figure 7 The figure shows the linear function curve fitting effect when the irradiation point height includes a negative value according to an embodiment of the present application. It can be seen that when the irradiation point height includes a negative value, the mapping relationship between the pixel point position and the irradiation point height does not conform to the linear function relationship. When performing quadratic function fitting, the mapping relationship error between the pixel point position and the irradiation point height is too large.

[0139] See also Figure 8 , Figure 8 The cubic function curve fitting effect diagram according to an embodiment of the present application is shown. The cubic function curve in the figure fully satisfies the linear relationship between the pixel position and its corresponding irradiation point height. Therefore, when the irradiation point height includes a negative value, the mapping relationship between the pixel position and the irradiation point height is represented by a cubic function.

[0140] For example, in one embodiment of the present application, the cubic function obtained by linear fitting between the pixel position CX and the illumination point height Z is Z=a*(CX)^3+b*(CX)^2+c*(CX)+d. Wherein, a, b, c, d are coefficients read from the calibration file obtained by executing the calibration process.

[0141] The ultimate effect to be achieved by the embodiment of the present application is to establish a mapping relationship between the height of the illumination point and the positions of the pixel points distributed above the height. After the mapping relationship is established, it is only necessary to obtain the position of the pixel point corresponding to the illumination point to obtain the precise height of the illumination point according to the mapping relationship, without having to use professional equipment to measure the illumination point, thereby greatly improving the measurement efficiency.

[0142] See also Fig. 9 , Fig. 9 A flowchart of determining the pixel position corresponding to the illumination point in the measurement image according to an embodiment of the present application is shown. The present application embodiment provides a step S220 of determining the pixel position corresponding to the illumination point in the measurement image, including:

[0143] Step S221, identifying the pixel point corresponding to the irradiation point in the measurement image;

[0144] Step S222: Calculate the pixel position corresponding to the irradiation point in the measurement image according to the pixel position.

[0145] The two steps are described in detail below.

[0146] In step S221, after acquiring the measurement image, the numerical control machine searches for and acquires the pixel point corresponding to the illumination point in the acquired measurement image according to the characteristics of the pixel point corresponding to the illumination point.

[0147] Illustratively, in a specific embodiment of the present application, threshold segmentation is performed on the measurement image, the grayscale of each point in the measurement image is divided into several levels, and then points with grayscale greater than or less than the threshold are screened according to the set grayscale threshold.

[0148] Furthermore, threshold segmentation is to perform binary processing on the measured image, that is, select a threshold value, convert the measured image into a black and white binary image, specify a gray value as the threshold value, and if the gray value of a point in the measured image is greater than the threshold value, the gray value of the pixel is set to 255, otherwise the gray value is set to 0. Through multiple experiments, it is clear what the threshold value is that can filter out the pixel points corresponding to the irradiation point. In this way, the points in the measured image are filtered by the threshold value, and then which point in the measured image is the pixel point corresponding to the irradiation point.

[0149] In step S222, after determining which point in the measurement image is a pixel point, a preset point in the measurement image is used as a reference point to calculate the position of the pixel point corresponding to the irradiation point.

[0150] See also Fig.10 , Fig.10 A flow chart of obtaining a measurement image of a surface to be processed irradiated by a measurement light source according to an embodiment of the present application is shown. In the embodiment of the present application, the measurement light source includes a movable light source and a fixed light source, the movable light source is slidably arranged on a slide rail of a numerical control machine, the slide rail includes a first guide rail and a second guide rail, the first guide rail and the second guide rail are perpendicular to each other. The embodiment of the present application provides a step S210 of obtaining a measurement image of a surface to be processed irradiated by a measurement light source, including:

[0151] Step S211a, driving the fixed light source to emit a light beam;

[0152] Step S212a, when the fixed light source is not irradiated on the surface to be processed, driving the movable light source to move to the surface to be processed and emitting a light beam, and obtaining a measurement image of the surface to be processed irradiated by the movable light source;

[0153] Step S213a, when a fixed light source is irradiated on the surface to be processed, a measurement image of the surface to be processed is obtained.

[0154] The above three steps are described in detail below.

[0155] Before describing, it should be clear that in the embodiment of the present application, the measuring light source includes a movable light source and a fixed light source, the movable light source can be slidably arranged on the slide rail of the CNC machine, the slide rail includes a first guide rail and a second guide rail, the first guide rail and the second guide rail are perpendicular to each other. On the other hand, the movable light source can also be arranged on a moving head, and the movable light source is driven to move by driving the moving head to move.

[0156] In another embodiment of the present application, an adjustable galvanometer may be added to the front end of the fixed light source to achieve a change in the optical path of the fixed light source, thereby playing the role of a movable light source.

[0157] In step S211a, when the measuring light source includes a fixed light source and a moving light source, the fixed light source is first driven to emit a light beam.

[0158] In step S212a, when the light beam emitted by the fixed light source fails to illuminate the surface to be processed, that is, the surface to be processed cannot be measured at this time, it is necessary to drive the movable light source to emit a light beam to illuminate the surface to be processed. When the light beam emitted by the mobile light source can illuminate the surface to be processed without moving, the mobile light source can be directly driven to emit a light beam to illuminate the surface to be processed. If the mobile light source does not move and the light beam emitted by it cannot illuminate the surface to be processed, the mobile light source is driven to move until the light beam emitted by the mobile light source can illuminate the surface to be processed.

[0159] After the light beam emitted by the moving light source irradiates the surface to be processed, the camera device is controlled to take pictures.

[0160] It should be clear that, as described in the construction of the mapping relationship, the camera device needs to have a fixed relative position relationship with the illumination point formed by the moving light source in the zero plane. When the moving light source and the illumination point position formed by it in the zero plane have a set transformation relationship. According to this change relationship, the corresponding position of the camera device can be directly determined according to the position of the moving light source.

[0161] If the position of the camera device satisfies the position corresponding to the position of the moving light source, the camera device is no longer moved, and a photo is taken to obtain a measurement image. If the position of the camera device does not satisfy the position corresponding to the position of the moving light source, the camera device is moved to the position corresponding to the position of the moving light source, and a photo is taken to obtain a measurement image.

[0162] It can be understood that since the fixed light source and the movable light source have different illumination angles and illumination positions, the fixed light source and the movable light source respectively have corresponding mapping relationships between pixel positions and processing heights. That is to say, when the measuring light source includes a fixed light source and a movable light source, there are at least two sets of mapping relationships between pixel positions and processing heights.

[0163] In step S213a, when the light beam emitted by the fixed light source irradiates the surface to be processed, it means that the surface to be processed can be measured at this time without using a mobile light source. After the light beam emitted by the fixed light source irradiates the surface to be processed, the camera device is driven to take pictures to obtain a measurement image.

[0164] It is also necessary to make it clear that, as described in the construction of the mapping relationship, corresponding to the fixed light source, the camera device must have a fixed relative position relationship with the illumination point formed by the fixed light source in the zero plane, and the fixed light source and the position of the illumination point formed by it in the zero plane have a set transformation relationship. According to this change relationship, the position corresponding to the camera device can be directly determined according to the position of the fixed light source. If the position of the camera device does not meet the position corresponding to the position of the fixed light source, the camera device is moved to the position corresponding to the position of the fixed light source, or a fixed camera device is installed at the position corresponding to the position of the fixed light source, and then a photo is taken to obtain a measurement image. If the position of the camera device meets the position corresponding to the position of the fixed light source, a photo is taken to obtain a measurement image.

[0165] In the embodiment of the present application, it is sufficient to ensure that the illumination point formed by the camera device and the measuring light source in the zero plane has a fixed relative position relationship, and the mobility of the camera device or the measuring light source is not limited, which greatly increases the feasibility of the embodiment of the present application. On the other hand, the provision of a movable light source avoids the limitations of a fixed light source, and can measure surfaces to be processed with multiple heights, increasing the universality of various surfaces to be processed.

[0166] See also Fig.11 , Fig.11 A schematic structural diagram of a numerical control machine equipped with a movable light source according to an embodiment of the present application is shown.

[0167] In this embodiment, the numerical control machine 100 includes a first guide rail 61, a second guide rail 62, and a movable head 20. It should be clear that the measuring light source may also be a laser used for processing (processing light source).

[0168] The second guide rail 62 is slidably connected to the first guide rail 61. The second guide rail 62 can slide relative to the first guide rail 61 along the extension direction of the first guide rail 61.

[0169] Specifically, the numerical control machine 100 further includes a housing 63, a working space is formed in the housing 63, and the second guide rail 62 is received in the processing space of the housing 63 and carried by the housing 63. The second guide rail 62 can move along the first guide rail 61 in the third direction D3 and the opposite direction thereof, so as to enable the movable head 20 to move in the third direction D3 to measure distance or process the surface to be processed.

[0170] The first guide rail 61 is accommodated in the processing space of the shell 63 and is supported by the shell 63, and the first guide rail 61 is slidably connected to the second guide rail 62. The second guide rail 62 can drive the movable head 20 to move along the second guide rail 62 in the first direction D1 and the opposite direction, so as to realize the movement of the movable head 20 in the first direction D1 to measure or process the workpiece.

[0171] In addition, the CNC machine 100 further includes a cover plate 64, which is a transparent material, so that the operator can observe the working condition of the movable head 20 through the cover plate 64, and can filter and block the laser to prevent the laser from causing harm to the operator. For example, the material of the cover plate 64 can be, but is not limited to, polycarbonate, optical resin, or polymethyl methacrylate.

[0172] See also Fig.12 , Fig.12 A flow chart of obtaining a measurement image of a surface to be processed by irradiating a measurement light source according to another embodiment of the present application is shown. The present application embodiment provides a step S210 of obtaining a measurement image of a surface to be processed by irradiating a measurement light source, including:

[0173] Step S211b, obtaining a measurement image of the surface to be processed irradiated by the measurement light source through a first camera device at a first position in the workspace, wherein the first camera device is slidably disposed on a slide rail of the CNC machine, the slide rail includes a first guide rail and a second guide rail, and the first guide rail and the second guide rail are perpendicular to each other;

[0174] Step S212b: driving the slide rail to move the first camera device to a second position in the working space, and obtaining a measurement image of the surface to be processed irradiated by the measured light source through the first camera device at the second position.

[0175] The above two steps are described in detail below.

[0176] In step S211b, the first camera device is a movable camera device. In an embodiment of the present application, the first camera device can be slidably set on a slide rail of a CNC machine. The slide rail includes a first guide rail and a second guide rail. The first guide rail and the second guide rail are perpendicular to each other and can be moved according to the measuring light source at different positions.

[0177] The first camera device is installed at a first position in the working space, the first position corresponds to the position of the irradiation point formed by the measuring light source in the zero plane, and the first camera device is driven to take pictures to obtain the measuring image. The numerical control machine includes a housing, and the housing forms the working space.

[0178] In one embodiment of the present application, the first camera device may be arranged on a movable head, and the movable head may be slidably arranged on a slide rail of a numerical control machine. The first camera device and the movable light source may be on the same movable head. The first camera device and the movable light source may also be on different movable heads, and the camera may be taken only after the position of the illumination point formed by the movable light source in the zero plane corresponds to the position of the first camera device.

[0179] In step S212b, when the measuring light source moves and the irradiation point moves, the first camera device is driven to move to a second position in the processing space, and the second position corresponds to the position of the irradiation point formed by the measuring light source in the zero plane. Exemplarily, the second position is located directly above the irradiation point formed by the measuring light source in the zero plane.

[0180] In one embodiment of the present application, the first camera device is a close-range camera device, which can measure a part of the surface to be processed.

[0181] In an embodiment of the present application, the first camera device cooperates with the movement of the measuring light source to move to different positions of the surface to be processed to obtain measurement images, and can measure the surface to be processed with multiple heights, thereby increasing the types of surfaces to be processed that can be measured by the measurement method.

[0182] See also Fig.13 , Fig.13 A cross-sectional view of a numerical control machine provided in an embodiment of the present application. The first camera device 1301 is slidably disposed on a slide rail and can move along a first direction and a third direction via the slide rail. The second camera device 1303 is fixed to the housing 63 of the numerical control machine, and the shooting range of the first camera device 1301 is smaller than that of the second camera device 1303.

[0183] The movable light source 1305 is slidably disposed on the slide rail and can be moved along the first direction and the third direction by the slide rail, and its irradiation point moves accordingly with the movement of the movable light source 1305. The fixed light source 1307 is fixed to the housing 63 of the CNC machine, and its irradiation point position at the same height (e.g., height 1308) is fixed. It can be understood that the fixed light source 1307 and the movable light source 1305 are both set at a preset angle to the vertical plane, and the light is not irradiated vertically. The irradiation point of the fixed light source 1307 is within the photographic range of the second camera device (fixed camera device) 1303, and the irradiation point of the movable light source 1305 is within the photographic range of the first camera device (movable camera device) 1301.

[0184] In another embodiment of the present application, a second camera device is fixedly arranged at a third position in the working space, that is, the second camera device is fixedly arranged at a third position set in the working space of the CNC machine, and a measurement image of the measurement light source irradiating the surface to be processed is obtained by photographing the irradiation point. Similarly, the third position of the second camera device corresponds to the position of the irradiation point formed by the measurement light source in the zero plane.

[0185] In one embodiment of the present application, the second camera device is a long-range camera device, which can take pictures of the entire surface to be processed to obtain a measurement image to measure the surface to be processed.

[0186] In the embodiment of the present application, by setting a fixed long-range camera device, when the light beam emitted by the measuring light source is irradiated on the surface to be processed, the entire surface to be processed is photographed. It is no longer necessary to drive the movable camera device to obtain the measurement image. The operation complexity of the data machine is reduced, and the surface to be processed can be measured faster.

[0187] See also Fig.14 , Fig.14 A flowchart of driving a movable light source to move to a surface to be processed according to an embodiment of the present application is shown. The present application embodiment provides a step S211a of driving a movable light source to move to a surface to be processed, including:

[0188] Step S401, taking the plane carrying the processing object as the working plane, capturing an image of the working plane;

[0189] Step S402, identifying the surface to be processed displayed in the workspace image, and obtaining the pixel position of the surface to be processed in the workspace image;

[0190] Step S403, determining the position of the surface to be processed according to the pixel position of the surface to be processed and the correspondence between the pixel position of each pixel point in the workspace image and the position of each point in the work plane;

[0191] Step S404, according to the position of the surface to be processed, the movable light source is driven to move so that the irradiation point of the movable light source irradiates the surface to be processed. The above three steps are described in detail below.

[0192] It should be clarified that driving the movable light source to move to the surface to be processed refers to driving the movable light source so that the movable light source moves to a position where the light beam emitted by the movable light source can irradiate the surface to be processed.

[0193] In step S401, the plane carrying the processing object is taken as the working plane, and the working plane is photographed to obtain a working plane image showing the processing object. The working plane image describes the picture of the processing object in the working space of the CNC machine.

[0194] In step S402, after acquiring the working image, the CNC machine searches for and acquires the pixel points corresponding to the surface to be processed in the acquired working plane image according to the features of the pixel points corresponding to the surface to be processed.

[0195] In one embodiment of the present application, threshold segmentation is performed on the working plane image, the grayscale of each point in the measured image is divided into several levels, and then points with grayscale greater than or less than the threshold are screened according to the set grayscale threshold.

[0196] Furthermore, threshold segmentation refers to the binarization of the working plane image, that is, selecting a threshold value, converting the working plane image into a black and white binary image, specifying a gray value as the threshold value, and setting the gray value of the pixel to 255 if the gray value of a point in the working plane image is greater than the threshold value, otherwise the gray value is set to 0. Through multiple experiments, it is clear what the threshold value is that can filter out the pixel points corresponding to the surface to be processed. Thus, the points in the working plane image are filtered by the threshold value, and then which points in the working plane image are the pixel points corresponding to the surface to be processed.

[0197] After determining which point in the working plane image is the pixel point representing the processing plane, a preset point in the working plane image is used as a reference point to calculate the position of the pixel point corresponding to the surface to be processed.

[0198] In step S403, the position of the surface to be processed is determined according to the pixel position of the surface to be processed and the correspondence between the pixel position of each pixel point in the working plane image and the position of each point in the working plane.

[0199] In step S404, the movable light source is driven according to the position of the surface to be processed, so that the movable light source moves to a position where the light beam emitted by the movable light source can irradiate the surface to be processed.

[0200] See also Fig.15 , Fig.15A flow chart of processing a surface to be processed according to an embodiment of the present application is shown. The embodiment of the present application provides steps for processing a surface to be processed, including:

[0201] Step S501, if the measuring light source can perform laser processing, the measuring light source is focused according to the height of the surface to be processed;

[0202] Step S502, if the measuring light source cannot perform laser processing, the processing light source is focused according to the height of the surface to be processed;

[0203] Step S503: According to a preset processing program, the measuring light source or the processing light source is driven to process the surface to be processed.

[0204] The above three steps are described in detail below.

[0205] In step S501, when the measuring light source can perform laser processing, that is, the measuring light source can not only be used for measurement but also emit laser for laser processing, the measuring light source is focused directly according to the height of the surface to be processed.

[0206] In step S502, when the measuring light source cannot perform laser processing, that is, it is only used for measurement and cannot emit laser for laser processing, the processing light source is focused according to the height of the surface to be processed.

[0207] In one embodiment of the present application, please refer to Fig.11 , the first carrier 41 can be adjusted to move along the second carrier 42 in the second direction D2 and the opposite direction thereof, so as to realize focusing of the measuring light source arranged on the first carrier 41 on the thickness or height of the surface to be processed in the second direction D2. The second direction D2 is the relative movement direction of the first carrier 11 and the second carrier 12 after being matched and connected.

[0208] In another embodiment of the present application, if the measuring light source cannot perform laser processing, a processing light source may be configured on the first carrier 41 to achieve focusing of the processing light source.

[0209] In step S503, according to a preset processing program, the measuring light source or the processing light source is driven to process the surface to be processed.

[0210] Fig.16 FIG. 1 shows a hardware schematic diagram of a numerical control machine for implementing a height measurement method according to an embodiment of the present application. Fig.16As shown, the numerical control machine 200 includes a housing, a movable head 50, a laser tube 30, a close-up camera device, and a long-range camera device. The housing includes an upper housing 90 and a bottom housing 70. The close-up camera device is disposed on the movable head 50. The numerical control machine 200 integrates a camera device, including but not limited to a long-range camera device for capturing a panoramic processing image of the interior space of the housing, and the aforementioned close-up camera device, and the movable close-up camera device will perform movement and shooting.

[0211] In one embodiment, the measuring light source can be generated by the movable head 50. In another embodiment, the measuring light source can be generated by other components such as the laser tube 30 of a carbon dioxide laser tube, and enter the laser output device through a reflector 10, and finally exit through the movable head 50 to process the workpiece.

[0212] In one embodiment, a reflector 10 is disposed between the movable head 50 and the laser tube 30 . The laser generated by the laser tube 30 is reflected by the reflector 10 to the movable head 50 , and then is emitted after being reflected, focused, etc. to process the workpiece.

[0213] In one embodiment, the housing of the CNC machine 200, i.e. Fig.10 The upper shell 90 and the bottom shell 70 shown together enclose a workspace that can accommodate the processing object. The upper shell 90 and the bottom shell 70 can be detachably connected or fixedly connected, or the upper shell 90 and the bottom shell 70 are an integrally formed structure. To implement laser processing, the workspace is provided with a movable head 50, a laser tube 30 as a light source, and a close-up camera device, and the movable head 50 and the close-up camera device slide through a configured slide rail.

[0214] In one embodiment, the upper shell 90 is also provided with a rotatable cover plate, and the operator can open or close the cover plate to open the internal space to put in or take out the workpiece. In one embodiment of the present application, the cover plate is a transparent material, so that the operator can observe the working condition of the bearing assembly through the cover plate, and can filter and block the laser to prevent the laser from causing harm to the operator. For example, the material of the cover plate can be, but is not limited to, polycarbonate, optical resin or polymethyl methacrylate.

[0215] The blocking and / or filtering effects of the upper shell 90 and the bottom shell 70 can prevent the laser emitted by the movable head 50 from spilling over during operation and causing personal injury to the operator.

[0216] The CNC machine includes: a slide rail; a movable head, the movable head is slidably arranged on the slide rail; a communication component, the communication component is used to receive the height corresponding to the surface to be processed obtained according to the method described in any one of the above embodiments; and a controller, the controller controls the movable head to move on the slide rail based on the height corresponding to the surface to be processed to process the surface of the processing material. The slide rail may include a first guide rail and a second guide rail, the first guide rail and the second guide rail are perpendicular to each other, the first guide rail and the second guide rail may be a linear guide rail, or a guide rail in which the optical axis and the roller slide together, etc., and it is only necessary to be able to drive the movable head 50 to move on the slide rail for processing. A third guide rail may also be provided in the movable head 50 for moving in the second direction D2 for focusing before and / or during processing.

[0217] The height measurement method according to the embodiment of the present application can be performed by Fig.17 The following is a reference to the CNC machine. Fig.17 To describe a numerical control machine according to an embodiment of the present application. Fig.17 The CNC machine shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0218] like Fig.17 As shown, the CNC machine may be in the form of a general-purpose computing device. The components of the CNC machine may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).

[0219] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present invention described in the description of the exemplary method described above in this specification. For example, the processing unit 810 can perform the following steps: Figure 2 The steps shown in .

[0220] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .

[0221] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0222] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0223] The CNC machine may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the CNC machine, and / or any device that enables the CNC machine to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 850. In addition, the CNC machine may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 860. As shown, the network adapter 860 communicates with other modules of the point cloud camera 12 through a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the CNC machine, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0224] The present application also provides a computing system, the computing system comprising at least one numerically controlled machine and at least one processor;

[0225] The processor is used to execute the steps of the method described in any of the above embodiments;

[0226] The numerical control machine transmits electromagnetic energy to a processing object arranged at a corresponding height inside the numerical control machine based on the height corresponding to the surface to be processed obtained by the processor.

[0227] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0228] In an exemplary embodiment of the present application, a computer program medium is further provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the method described in the above method embodiment.

[0229] According to one embodiment of the present application, a program product for implementing the method in the above method embodiment is also provided, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0230] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0231] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0232] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0233] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0234] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0235] In addition, although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0236] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0237] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions applied for herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that the present application does not apply for. The specification and embodiments are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

Claims

1. A measurement method for laser processing, characterized in that: The method comprises: Acquire a measurement image of the surface to be processed irradiated by the measurement light source; Determine a pixel position corresponding to an irradiation point in the measurement image, wherein the irradiation point is a point formed by the measurement light source irradiating the surface to be processed; According to the mapping relationship between the pixel point position and the processing height, the height corresponding to the irradiation point on the surface to be processed is determined.

2. The method according to claim 1, characterized in that Before determining the height of the irradiation point corresponding to the surface to be processed according to the mapping relationship between the pixel point position and the processing height, the method further includes: Respectively obtaining calibration images of the irradiation point in a plurality of height calibration areas, and heights of the height calibration areas corresponding to the calibration images; Obtaining the pixel position corresponding to the illumination point in the calibration image; The mapping relationship is generated by linear fitting according to the height of the height calibration area and the pixel position.

3. The method according to claim 2, characterized in that The height calibration area is at least partially located in a shell of a CNC machine, the shell includes a bottom support member, and the height calibration area includes a reference height calibration area, a positive height calibration area and / or a negative height calibration area formed by a zero plane in the CNC machine, wherein the zero plane is consistent with the height of the plane where the bottom support member is located, the plane where the positive height calibration area is located is located at any position above the zero plane, and the plane where the negative height calibration area is located is located at any position below the zero plane.

4. The method according to claim 1, characterized in that: Determining the pixel position corresponding to the irradiation point in the measurement image includes: Identifying a pixel point corresponding to the illumination point in the measurement image; The pixel position corresponding to the irradiation point in the measurement image is calculated according to the pixel position.

5. The method according to claim 1, characterized in that The measuring light source comprises a movable light source and a fixed light source, the movable light source is slidably arranged on a slide rail of a numerical control machine, and the step of obtaining a measuring image of the surface to be processed irradiated by the measuring light source comprises: driving the fixed light source to emit a light beam; When the fixed light source does not irradiate the surface to be processed, driving the movable light source to move to the surface to be processed and emitting a light beam, and acquiring a measurement image of the surface to be processed irradiated by the movable light source; In a case where the fixed light source irradiates the surface to be processed, a measurement image of the surface to be processed irradiated by the fixed light source is acquired.

6. The method according to claim 1 or 5, characterized in that: The step of obtaining a measurement image of the surface to be processed irradiated by a measurement light source includes: Acquiring a measurement image irradiated by the measurement light source at a first height through a first camera device at a first position in the workspace, wherein the first camera device is slidably disposed on a slide rail of a numerical control machine; The slide rail is driven to move the first camera device to a second position in the workspace, and a measurement image irradiated by the measurement light source at a second height is acquired through the first camera device at the second position, wherein the first height and the second height are inconsistent.

7. The method according to claim 1, characterized in that The step of obtaining a measurement image of the surface to be processed irradiated by a measurement light source includes: A measurement image of the surface to be processed irradiated by the measurement light source is obtained by a second camera device fixedly arranged at a third position in the working space.

8. The method according to claim 5, characterized in that The step of driving the movable light source to move to the surface to be processed comprises: Identify the surface to be processed displayed in the workspace image, and obtain the pixel position of the surface to be processed in the workspace image; Determine the position of the surface to be processed according to the pixel position of the surface to be processed and the corresponding relationship between the pixel position of each pixel point in the workspace image and the position of each point in the work plane; According to the position of the surface to be processed, the movable light source is driven to move so that the irradiation point of the movable light source irradiates the surface to be processed.

9. The method according to claim 1, characterized in that: After determining the height of the irradiation point corresponding to the surface to be processed according to the mapping relationship between the pixel point position and the processing height, the method further includes: If the measuring light source can perform laser processing, focusing the measuring light source is performed according to the height of the surface to be processed; If the measuring light source cannot perform laser processing, focusing the processing light source according to the height of the surface to be processed; According to a preset processing program, the measuring light source or the processing light source is driven to process the surface to be processed at the working focal length.

10. The method according to claim 3, characterized in that: The bottom support member includes at least one of a bottom plate, a honeycomb plate, a knife bar, a height-increasing component, and a feeding component.

11. A numerically controlled machine, characterized in that: The CNC machine comprises: Slide rails; a movable head, the movable head being slidably disposed on the slide rail; A communication component, the communication component is used to receive the height corresponding to the surface to be processed obtained by the method according to any one of claims 1-10; and A controller controls the movable head to move on the slide rail to process the surface of the processing material based on the height corresponding to the surface to be processed.

12. A computing system, characterized in that: The computing system includes at least one numerically controlled machine and at least one processor; The processor is used to perform the steps of the method according to any one of claims 1 to 10; The numerical control machine transmits electromagnetic energy to a processing object arranged at a corresponding height inside the numerical control machine based on the height corresponding to the surface to be processed obtained by the processor.

13. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 10.