WO2024001369A1 - 打印平台的高度补偿方法、装置和计算机设备 - Google Patents

打印平台的高度补偿方法、装置和计算机设备 Download PDF

Info

Publication number
WO2024001369A1
WO2024001369A1 PCT/CN2023/085532 CN2023085532W WO2024001369A1 WO 2024001369 A1 WO2024001369 A1 WO 2024001369A1 CN 2023085532 W CN2023085532 W CN 2023085532W WO 2024001369 A1 WO2024001369 A1 WO 2024001369A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate data
points
measurement
point
adjacent
Prior art date
Application number
PCT/CN2023/085532
Other languages
English (en)
French (fr)
Inventor
唐京科
王玉龙
Original Assignee
深圳市创想三维科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市创想三维科技股份有限公司 filed Critical 深圳市创想三维科技股份有限公司
Publication of WO2024001369A1 publication Critical patent/WO2024001369A1/zh

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/20Apparatus for additive manufacturing; Details thereof or accessories therefor
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/20Apparatus for additive manufacturing; Details thereof or accessories therefor
    • B29C64/245Platforms or substrates
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • B29C64/393Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y30/00Apparatus for additive manufacturing; Details thereof or accessories therefor
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • B33Y50/02Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes

Definitions

  • the present application relates to the field of 3D printing technology, and in particular to a height compensation method, device and computer equipment for a printing platform.
  • 3D printing is a rapid prototyping technology. It is a technology that is based on digital model files and uses adhesive materials such as special wax materials, powdered metals or plastics to construct three-dimensional entities through layer-by-layer printing. Among them, how to adjust the horizontality of the printing platform is the focus of current research.
  • this application provides a height compensation method for a printing platform.
  • the methods include:
  • each adjacent area includes at least two adjacent measurement points; the adjacent measurement point is the sum of the plurality of measurement points and Measurement points adjacent to the measurement point to be compensated;
  • the coordinate data of each compensation reference point is determined according to the first fitting line corresponding to each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area, and the coordinate data of the measurement point to be compensated. ;
  • each of the compensation reference points Project each of the compensation reference points to a preset second projection plane to obtain the coordinate data of each second projection point, and perform the coordinate data of the measurement point to be compensated according to the coordinate data of each second projection point. height compensation.
  • the plurality of measurement points include extended measurement points, edge measurement points and internal measurement points; and obtaining the plurality of measurement points in the printing platform includes: determining edge measurement points in the printing platform , and determine the edge information of the edge measurement point; according to the edge information, determine the target internal measurement point corresponding to the edge measurement point in the printing platform, and determine the expansion direction of the target internal measurement point; The internal measurement points of the target are expanded according to the expansion direction to obtain expanded measurement points corresponding to the edge measurement points.
  • the expansion processing of the target internal measurement points according to the expansion direction to obtain expanded measurement points corresponding to the edge measurement points includes: taking the edge measurement points as the mirror center , perform symmetry processing on the internal measurement points of the target according to the expansion direction to obtain the plane coordinate data of the expanded measurement points to be generated; obtain the coordinate expansion model corresponding to the expansion direction, and convert the expanded measurement points to be generated
  • the plane coordinate data of the measurement point is substituted into the coordinate expansion model to obtain the height coordinate data of the expanded measurement point to be generated; the plane coordinate data and height coordinate data of the expanded measurement point to be generated are combined to obtain the corresponding coordinate data of the expanded measurement point to be generated.
  • the coordinate data of the extended measurement point corresponding to the edge measurement point includes: taking the edge measurement points as the mirror center , perform symmetry processing on the internal measurement points of the target according to the expansion direction to obtain the plane coordinate data of the expanded measurement points to be generated; obtain the coordinate expansion model corresponding to the expansion direction, and convert the expanded measurement points to be generated
  • the plane coordinate data of the measurement point is substitute
  • the method of generating the coordinate expansion model includes: obtaining an expansion direction set, and determining a model projection plane corresponding to the current expansion direction for each expansion direction in the expansion direction set; generating the simulate the edge point corresponding to the current expansion direction, and determine the simulated internal point corresponding to the simulated edge point; project the simulated edge point to the model projection plane to obtain the simulated edge projection point, and convert the simulated internal point Project to the model projection plane to obtain simulated internal projection points; linearly fit the simulated edge projection points and the simulated internal projection points to obtain a coordinate expansion model corresponding to the current expansion direction.
  • the coordinate data of adjacent measurement points includes abscissa data; According to the first fitting line corresponding to each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area and the coordinate data of the measurement point to be compensated, each compensation is determined respectively.
  • the coordinate data of the reference point includes: judging whether the abscissa data of at least two adjacent measurement points in each adjacent area are the same; when the abscissa data of the at least two adjacent measurement points are the same, based on the at least two
  • the abscissa data of each adjacent measurement point is obtained to obtain the abscissa data of each compensation reference point to be generated; according to the coordinate data of the measurement point to be compensated, the ordinate data of each compensation reference point to be generated is obtained;
  • the ordinate data of each compensation reference point to be generated is substituted into the first fitting line corresponding to each adjacent area to obtain the height coordinate data of each compensation reference point to be generated; comprehensively
  • the abscissa data, ordinate data and height coordinate data of the compensation reference point to be generated are used to obtain the coordinate data of the compensation reference point corresponding to each adjacent area.
  • the method further includes: when the abscissa data of the at least two adjacent measurement points are different, constructing a right triangle through at least two adjacent measurement points in each adjacent area; According to the coordinate data of the measurement point to be compensated, two similar right-angled triangles in each of the right-angled triangles are determined, and the side length proportional relationship between the two similar right-angled triangles is determined respectively; each of the at least two right-angled triangles is determined.
  • the coordinate data of adjacent measurement points and the coordinate data of the measurement point to be compensated are substituted into the corresponding side length ratio relationships to obtain the abscissa data of each compensation reference point to be generated.
  • performing height compensation on the coordinate data of the measurement points to be compensated based on the coordinate data of each of the second projection points includes: performing linear compensation on the coordinate data of each of the second projection points. Fitting processing to obtain a second fitting line; substituting the coordinate data of the measurement point to be compensated into the second straight line equation corresponding to the second fitting line to obtain the height compensation value of the measurement point to be compensated; The coordinate data of the measurement point to be compensated is height compensated using the height compensation value.
  • the method before determining a plurality of adjacent areas in the printing platform located adjacent to the measurement point to be compensated, the method further includes: obtaining corners of the plurality of measurement points.
  • the first verification coordinate data of the corner measurement point construct a standard plane according to the first verification coordinate data; verify the second initial coordinate data according to the standard plane to obtain a second verification
  • the second calibration coordinate data of the internal measurement point is determined according to the second calibration result.
  • this application also provides a height compensation device for a printing platform.
  • the device includes:
  • the measurement point determination module is used to obtain multiple measurement points in the printing platform and determine the measurement points to be compensated;
  • a neighboring area determination module configured to determine a plurality of neighboring areas in the printing platform that are located near the measurement point to be compensated; each neighboring area includes at least two neighboring measurement points; the neighboring measurement points are the A measurement point adjacent to the measurement point to be compensated among the plurality of measurement points;
  • the first projection module is used to project at least two adjacent measurement points in each adjacent area to the preset first projection plane, obtain the coordinate data of the at least two first projection points, and calculate the coordinate data of the at least two first projection points.
  • the coordinate data of the projection point is subjected to linear fitting processing to obtain the first fitting line corresponding to each adjacent area;
  • the reference point determination module is used to determine each compensation reference point based on the corresponding first fitting line of each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area, and the coordinate data of the measurement point to be compensated. coordinate data;
  • the second projection module is used to project each of the compensation reference points to a preset second projection plane, obtain the coordinate data of each second projection point, and calculate the coordinate data of each second projection point according to the coordinate data of each second projection point. Compensate the coordinate data of the measurement point for height compensation.
  • this application also provides a computer device.
  • the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • each adjacent area includes at least two adjacent measurement points; the adjacent measurement point is the sum of the plurality of measurement points and Measurement points adjacent to the measurement point to be compensated;
  • Each compensation reference point is determined according to the first fitting line corresponding to each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area, and the coordinate data of the measurement point to be compensated. coordinate data;
  • each of the compensation reference points Project each of the compensation reference points to a preset second projection plane to obtain the coordinate data of each second projection point, and perform the coordinate data of the measurement point to be compensated according to the coordinate data of each second projection point. height compensation.
  • this application also provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the following steps are implemented:
  • each adjacent area includes at least two adjacent measurement points; the adjacent measurement point is the sum of the plurality of measurement points and Measurement points adjacent to the measurement point to be compensated;
  • the coordinate data of each compensation reference point is determined according to the first fitting line corresponding to each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area, and the coordinate data of the measurement point to be compensated. ;
  • each of the compensation reference points Project each of the compensation reference points to a preset second projection plane to obtain the coordinate data of each second projection point, and perform the coordinate data of the measurement point to be compensated according to the coordinate data of each second projection point. height compensation.
  • the height compensation method, device, computer equipment and storage medium of the printing platform described above are by determining the measurement point to be compensated in the printing platform, and determining multiple adjacent areas located adjacent to the measurement point to be compensated, wherein each adjacent area includes At least two adjacent measurement points.
  • each adjacent area includes At least two adjacent measurement points.
  • at least two first projection points can be obtained, and then linear fitting is performed on the at least two first projection points.
  • the first fitting lines corresponding to each adjacent area can be obtained.
  • Each compensation reference point can be determined according to the corresponding first fitting line of each adjacent area, and each compensation reference point can be projected to the preset second projection plane to obtain each second projection point.
  • each second projection point can be obtained according to each second
  • the coordinate data of the projection point is used to perform height compensation on the measurement point to be compensated. Because the first fitting line is first determined through adjacent measurement points, and then the first fitting line is determined based on the first fitting line. By determining the compensation reference point, and then based on the second projection point projected by the compensation reference point, the height compensation of the measurement point to be compensated can be achieved. Therefore, compared with the traditional method of constructing an entire fitting plane indiscriminately, This application can specifically adjust the height of each measurement point to be compensated, thereby improving the accuracy of the height compensation of the printing platform and also avoiding the problem of large amounts of data calculation when fitting the entire plane.
  • Figure 1 is an application environment diagram of the height compensation method of the printing platform in one embodiment
  • Figure 2 is a schematic flow chart of a height compensation method of the printing platform in one embodiment
  • Figure 3 is a schematic diagram of the measurement point distribution of the printing platform in one embodiment
  • Figure 4 is a schematic diagram of the distribution of adjacent areas in an embodiment
  • Figure 5 is a schematic diagram of the distribution of adjacent areas in another embodiment
  • Figure 6 is a schematic flowchart of measurement point expansion in one embodiment
  • Figure 7 is a schematic diagram of the expanded distribution of measurement points in one embodiment
  • Figure 8 is a schematic diagram of the distribution of adjacent measurement points in an embodiment
  • Figure 9 is a structural block diagram of the height compensation device of the printing platform in one embodiment.
  • Figure 10 is an internal structure diagram of a computer device in one embodiment.
  • the height compensation method of the printing platform provided by the embodiment of the present application can be applied in the application environment as shown in Figure 1.
  • the terminal 102 communicates with the server 104 through the network.
  • the data storage system may store data that server 104 needs to process.
  • the data storage system can be integrated on the server 104, or placed on the cloud or other network servers.
  • the terminal 102 is used to generate coordinate data of the printing platform and send the coordinate data to the server 104.
  • the server 104 is used to determine the measurement point to be compensated in the printing platform based on the obtained coordinate data, and to determine the position adjacent to the measurement point to be compensated.
  • the server 104 is also used to determine the compensation reference point based on the first fitting line and the coordinate data of the adjacent measurement points, and project the compensation reference point to the preset third Two projection planes are used to obtain the second projection point, and then the height compensation of the measurement point to be compensated is performed based on the coordinate data of the second projection point.
  • the terminal 102 can be, but is not limited to, various personal computers, 3D printers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices.
  • the server 104 can be implemented as an independent server or a server cluster composed of multiple servers.
  • a method for height compensation of a printing platform is provided. This method is described by taking the application of this method to a computer device as an example.
  • the computer device can be the terminal or server in Figure 1, including the following: step:
  • Step 202 Obtain multiple measurement points in the printing platform and determine the measurement points to be compensated.
  • the printing platform is a platform used to carry three-dimensional entities in a three-dimensional printer.
  • the detection unit on the printing head can measure the printed
  • Each measurement point in the platform has its own corresponding coordinate data.
  • Figure 3 is a schematic diagram of the distribution of measurement points on the printing platform 301.
  • the measurement points on the printing platform are composed of a matrix of m rows and n columns.
  • the matrix is:
  • the print head of the 3D printer can be triggered to move.
  • the preset measurement frequency of each printing task can be different, that is, the measurement points corresponding to each printing task are also different.
  • the measurement point to be compensated that currently requires height compensation can be measured through the detection unit on the print head, and the coordinate data of the measurement point to be compensated is transmitted to the computer device.
  • the computer device performs an initial measurement on the measurement point of the printing platform through a pressure sensor or CR-touch (capacitive touch sensor) to obtain the initial measurement point, and transfers the coordinate data of the initial measurement point. Send to the preset database for storage.
  • a pressure sensor or CR-touch capactive touch sensor
  • the measurement point to be compensated can be any point among the initial measurement points, or It can be any point detected on the printing platform by the print head according to the preset measurement frequency.
  • the current measurement point is regarded as a measurement point to be compensated, and height compensation of the measurement point to be compensated is implemented.
  • Step 204 Determine multiple adjacent areas in the printing platform that are located adjacent to the measurement point to be compensated; each adjacent area includes at least two adjacent measurement points; the adjacent measurement point is the measurement point that is adjacent to the measurement point to be compensated among the multiple measurement points. adjacent measurement points.
  • the computer device can perform adjacent area detection on the measurement point to be compensated, and regard the adjacent area in the preset direction as the adjacent area corresponding to the measurement point to be compensated, wherein the adjacent area in the preset direction can be based on the preset first Determine the projection plane.
  • Figure 4 is a schematic diagram of the distribution of adjacent areas on the printing platform.
  • the adjacent locations of the measurement point Q to be compensated include area 1, area 2, area 3 and area 4.
  • the preset first projection plane is YZ
  • the first projection plane is the XZ plane
  • the adjacent areas in the preset direction are area 3 and area 4.
  • the computer device determines adjacent measurement points located in the current adjacent area adjacent to the measurement point to be compensated, wherein each adjacent area includes at least two adjacent measurement points, and the adjacent measurement points To filter out the measurement points, for example, the adjacent measurement point A and the adjacent measurement point B in area 1 are determined.
  • the computer device obtains adjacent measurement points at adjacent positions of the measurement point to be compensated from a preset database based on the coordinate data of the measurement point to be compensated.
  • the adjacent area in the preset direction can be determined based on the coordinate data of the measurement point to be compensated. For example, when the measurement point to be compensated is any point among the measurement points of the printing platform, the adjacent location of the measurement point to be compensated As shown in FIG. 5 , FIG. 5 is a schematic diagram of the distribution of adjacent areas on the printing platform in another embodiment.
  • the adjacent positions of the measurement point Q to be compensated include area 5, area 6, area 7 and area 8.
  • the adjacent areas in the preset direction can be area 5 and area 6 at the same time, also It can be area 7 and area 8 at the same time;
  • the adjacent areas in the preset direction are area 5 and area 6 at the same time, or it can be area 7 and area 8 at the same time.
  • the adjacent measurement points corresponding to each adjacent area can be determined, so that the adjacent measurement points when compensating the measurement points to be compensated can be reduced.
  • adjacent measurement points in appropriate adjacent areas can be flexibly selected, which improves the flexibility of subsequent determination of the first projection point.
  • Step 206 Project at least two adjacent measurement points in each adjacent area to the preset first projection plane to obtain coordinate data of at least two first projection points, and perform the coordinate data on the at least two first projection points. Linear fitting processing is performed to obtain the first fitting lines corresponding to each adjacent area.
  • the preset first projection plane may be a projection plane preset by the user, such as the YZ plane in the three-dimensional coordinate system. Since the processing procedures for at least two adjacent measurement points in each adjacent area are the same, in order to better describe the present application, the following will describe the process for at least two adjacent measurement points in any adjacent area.
  • the computer device projects each of the at least two adjacent measurement points to a preset first projection plane to obtain a first projection point corresponding to each adjacent measurement point, that is, a three-dimensional
  • the coordinates are converted into two-dimensional coordinates.
  • the adjacent measurement point A and the adjacent measurement point B in area 1 are projected onto the preset YZ plane to obtain the first projection point a and the first projection point b.
  • the computer device performs linear fitting processing on each first projection point to obtain a first fitting line corresponding to the first adjacent measurement point, that is, performs linear fitting on the first projection point a and the first projection point b.
  • the linear fitting method can be least squares fitting, etc., which is not limited in this application.
  • the computer device divides the adjacent measurement points into first adjacent measurement points and second adjacent measurement points according to the preset first projection plane and the coordinate data of the measurement point to be compensated, wherein the coordinate data Including abscissa data, ordinate data and height coordinate data.
  • the first projection plane is preset as the YZ plane
  • adjacent measurement point A and adjacent measurement point B are first adjacent measurement points
  • adjacent measurement point C and adjacent measurement point D are second adjacent measurement points.
  • the computer device can perform linear fitting processing on the coordinate data a ij and a i(j+1) of the two first projection points based on a linear equation of one variable, and can obtain the first fitting line corresponding to First
  • Step 208 Determine the coordinate data of each compensation reference point based on the first fitting line corresponding to each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area, and the coordinate data of the measurement point to be compensated.
  • the computer device determines whether the abscissa data of at least two adjacent measurement points in each adjacent area are the same, and when the abscissa data of the at least two adjacent measurement points are the same, obtain the first reference point determination from the database model, and bring the coordinate data of at least two adjacent measurement points and the coordinate data of the measurement point to be compensated into the first reference point determination model to obtain the coordinate data of the compensation reference point.
  • obtain the second reference point determination model from the database, and bring in the coordinate data of at least two adjacent measurement points and the coordinate data of the measurement point to be compensated. Go to the second reference point determination model to obtain the coordinate data of the compensation reference point.
  • the first reference point determination model representation does not require coordinate transformation of the coordinate data of adjacent measurement points; the second reference point determination model representation requires the construction of a right-angled triangle through the coordinate data of adjacent measurement points.
  • the computer device can determine the coordinate data of each compensation reference point based on the first fitting line corresponding to each adjacent area and the coordinate data of the measurement point to be compensated.
  • Step 210 Project each compensation reference point to a preset second projection plane to obtain coordinate data of each second projection point, and perform height compensation on the coordinate data of the measurement point to be compensated based on the coordinate data of each second projection point.
  • the preset second projection plane is a plane of a different type from the preset first projection plane.
  • the preset first projection plane is the YZ plane
  • the preset second projection plane is the XZ plane.
  • the computer device projects each compensation reference point onto a preset second projection plane to obtain the second projection point corresponding to each compensation reference point, that is, converts the three-dimensional coordinates of the compensation reference point into two-dimensional coordinates.
  • the compensation reference point M and the compensation reference point N are respectively projected onto the preset second projection plane to obtain the second projection point m and the second projection point n.
  • the computer equipment performs linear fitting processing on the coordinate data of each second projection point to obtain a second fitting line, and performs linear fitting processing on the measurement point to be compensated through the second fitting line. Perform height compensation.
  • the measurement point to be compensated in the printing platform is determined, and a plurality of adjacent areas located adjacent to the measurement point to be compensated are determined, wherein each adjacent area includes at least two adjacent measurement points. .
  • at least two first projection points can be obtained, and then linear fitting is performed on the at least two first projection points.
  • the first fitting lines corresponding to each adjacent area can be obtained.
  • Each compensation reference point can be determined according to the corresponding first fitting line of each adjacent area, and each compensation reference point can be projected to the preset second projection plane to obtain each second projection point.
  • each second projection point can be obtained according to each second
  • the coordinate data of the projection point is used to perform height compensation on the measurement point to be compensated. Therefore, compared with the traditional method of constructing an entire fitting plane indiscriminately, this application can perform height compensation on each measurement point to be compensated in a targeted manner, thereby improving the accuracy of the height compensation of the printing platform, and at the same time It also avoids the problem of large amount of data calculation when fitting the entire plane.
  • the multiple measurement points in the printing platform include extended measurement points, edge measurement points and internal measurement points; acquiring the multiple measurement points in the printing platform also includes:
  • Step 602 Determine edge measurement points in the printing platform and determine edge information of the edge measurement points.
  • the initial measurement point in the printing platform is usually kept a certain distance away from the edge of the platform.
  • the initial measurement points in the printing platform need to be expanded.
  • Figure 7, is a schematic diagram of the expanded distribution of measurement points on the printing platform.
  • the computer device measures the edge points in the printing platform from the preset database and performs information identification on the edge measurement points, thereby determining the edge information of the edge measurement points.
  • the edge information includes the left edge of the printing platform, the right edge of the printing platform, and the upper edge of the printing platform. and located on the lower edge of the printing platform.
  • Step 604 Based on the edge information, determine the target internal measurement point in the printing platform corresponding to the edge measurement point, and determine the expansion direction of the target internal measurement point.
  • the edge information represents the edge position of the edge measurement point in the printing platform, such as the upper edge of the printing platform, etc.
  • the expansion direction represents the direction associated with the edge position in the printing platform, and the expansion direction includes upward expansion, left expansion, Expand to the upper right, etc., where the upward expansion direction represents the direction parallel to the left and right edges of the printing platform, and the left expansion direction represents the direction parallel to the upper and lower edges of the printing platform.
  • the computer determines the target internal measurement point located adjacent to the edge measurement point in the printing platform based on the edge information of the edge measurement point, and determines the expansion direction corresponding to the target internal measurement point based on the edge information of the edge measurement point.
  • the corresponding spatial distance between the edge measurement point and each internal measurement point is determined respectively, and the target internal measurement points are screened out from the internal measurement points based on the spatial distance, such as The internal measurement point with the shortest spatial distance is used as the target internal measurement point.
  • the edge measurement point E1 is located at the upper edge of the printing platform, and the target internal measurement point at the adjacent position is the internal measurement point E3.
  • the expansion direction of the internal measurement point E3 corresponding to the edge measurement point E1 is upward; edge measurement Point E4 is located at the right edge of the printing platform, and the target internal measurement point at the adjacent position is also the internal measurement point E3. Therefore, the expansion direction of the internal measurement point E3 corresponding to the edge measurement point E4 is to the right.
  • the computer determines the candidate measurement points located adjacent to the edge measurement points in the printing platform based on the special edge information in the determined edge information, and determines the expansion direction of the candidate measurement points.
  • the special edge information represents the four corners of the edge positions where the edge measurement points are located in the printing platform; the candidate measurement points may be at least one of other edge measurement points or internal measurement points at positions adjacent to the edge measurement points.
  • the computer determines the expansion direction corresponding to the candidate measurement point based on the special edge information. For example, referring to Figure 7, the edge measurement point E2 is located at the corner of the printing platform.
  • the candidate measurement points at adjacent positions may be the edge measurement point E1, the edge measurement point E4, and the internal measurement point E3.
  • the edge measurement point E2 corresponds to the candidate measurement
  • the expansion direction is to the right; when edge measurement point E2 corresponds to candidate measurement point E4, the expansion direction is upward; when edge measurement point E2 corresponds to candidate measurement point E3, the expansion direction is upward to right.
  • Step 606 Expand the internal measurement points of the target according to the expansion direction to obtain expanded measurement points corresponding to the edge measurement points.
  • expanding the internal measurement points of the target according to the expansion direction to obtain expanded measurement points corresponding to the edge measurement points includes: using the edge measurement point as the mirror center, performing expansion processing on the internal measurement points of the target according to the expansion direction. Symmetric processing, obtain the plane coordinate data of the expanded measurement point to be generated; obtain the coordinate expansion model corresponding to the expansion direction, and substitute the plane coordinate data of the expanded measurement point to be generated into the coordinate expansion model to obtain the expansion to be generated The height coordinate data of the measurement point; the plane coordinate data and the height coordinate data of the expanded measurement point to be generated are combined to obtain the expanded measurement point corresponding to the edge measurement point.
  • the expansion direction is upward expansion
  • the coordinate data of the edge measurement point on the upper edge is (x i(n-1) , y i(n-1) , z i(n-1) )(i ⁇ [0, m-1])
  • the coordinate expansion model obtained by the computer device is:
  • the plane coordinate data of the expanded measurement point to be generated is (x in , y in ) (i ⁇ [0, m-1]), and the computer device brings the y in in the plane coordinate data into the coordinate expansion model , until the expanded measurement point is obtained as (x in , y in , z in ) (i ⁇ [0, m-1]).
  • the expansion direction of the internal measurement point E3 corresponding to the edge measurement point E1 is upward, the expanded measurement point F1 can be obtained after expansion.
  • the expansion direction is downward expansion
  • the coordinate data of the edge measurement point at the lower edge is (x i0 , y i0 , z i0 ) (i ⁇ [0, m-1])
  • the coordinate expansion model obtained by the computer device is:
  • the computer equipment uses the coordinate data of the edge measurement point as the mirror center and symmetrically processes the coordinate data of the internal measurement point of the target according to the expansion direction to obtain the plane coordinate data of the expanded measurement point to be generated.
  • the coordinate data of the internal measurement point of the target is (x i1 , y i1 , z i1 )(i ⁇ [0, m-1])
  • the plane coordinate data of the extended measurement point to be generated is (x i(-1) , y i(-1) )(i ⁇ [0, m-1]), and the computer device converts y i( in the plane coordinate data -1) is brought into the coordinate expansion model until the expanded measurement points are (x i(-1) , y i(-1) , z i(-1) )(j ⁇ [0, m-1]) .
  • the coordinate data is (x 0j , y 0j , z 0j ) (j ⁇ [0, n-1]), and the expansion direction is left expansion
  • the coordinate expansion model obtained by the computer device is:
  • the plane coordinate data of the extended measurement point to be generated is (x (-1)j , y (-1)j ) (j ⁇ [0, n-1]), and the computer device converts x (- 1) j is brought into the coordinate expansion model until the expanded measurement point is (x (-1)j , y (-1)j , z (-1)j ) (j ⁇ [0, n-1]) .
  • the coordinate data is (x (m-1)j , y (m-1)j , z (m-1)j )(j ⁇ [0, n-1]), the expansion direction is to the right, and the coordinate expansion model obtained by the computer device is:
  • the coordinate data of the target internal measurement point located near the edge measurement point is (x (m-2)j , y (m-2)j , z (m-2)j ) (j ⁇ [0, n -1])
  • the computer device measures the coordinate data of the point with the edge is the mirror center
  • the plane coordinate data of the expanded measurement point to be generated is (x mj , y mj ) (j ⁇ [0, n-1]), and the computer device brings x mj in the plane coordinate data into the coordinate expansion model , until the expanded measurement point is obtained as (x mj , y mj , z mj ) (j ⁇ [0, n-1]).
  • the expansion direction of the internal measurement point E3 corresponding to the edge measurement point E4 is to the right, the expanded measurement point F5 can be obtained after expansion.
  • the coordinate data of the edge measurement point is (x (m-1) (n-1) , y ( m-1)(n-1) , z (m-1)(n-1) ), the expansion direction is to the upper right, and the coordinate expansion model obtained by the computer device is:
  • the plane coordinate data of the expanded measurement point to be generated is (x mn , y mn ), and the computer device brings x mn in the plane coordinate data into the coordinate expansion model until the expanded measurement point is obtained (x mn, y mn ). y mn , z mn ).
  • the expanded measurement point F3 can be obtained after expansion.
  • the coordinate data of the edge measurement point is (x 0(n-1) , y 0(n-1) ) , z 0(n-1) ) expansion direction is to the upper left
  • the coordinate expansion model obtained by the computer device is:
  • the coordinate data of the candidate measurement point located near the edge measurement point can be (x 1(n-2) , y 1(n-2) , z 1(n-2) ), and the computer device uses the edge measurement point
  • the coordinate data of is the mirror center.
  • the expanded measurement points can be obtained as (x -1n , y -1n , z -1n ).
  • the coordinate data of the edge measurement point is (x (m-1)0 , y (m-1) 0 , z (m-1)0 ), the expansion direction is to the lower right, and the coordinate expansion model obtained by the computer device is:
  • the coordinate data of the candidate measurement point located near the edge measurement point can be (x (m-2)1 , y (m-2)1 , z (m-2)1 ), and the computer device uses the edge measurement point
  • the coordinate data of is the mirror center.
  • the coordinate data of the edge measurement point is (x 00 , y 00 , z 00 ), and the expansion direction is toward Expanded in the lower left
  • the coordinate expansion model obtained by the computer device is:
  • the coordinate data of the candidate measurement point located near the edge measurement point is (x 11 , y 11 , z 11 ).
  • the computer device uses the coordinate data of the edge measurement point as the mirror center, and maps the coordinates of the candidate measurement point according to the expansion direction.
  • the expanded measurement points are (x (-1)(-1) , y (-1)(-1) , z (-1)(-1) ).
  • the measurement points adjacent to the measurement point to be compensated include measurement points filtered from the expanded measurement points; when the measurement point to be compensated is an internal measurement point , the measurement points adjacent to the measurement point to be compensated include measurement points filtered from at least one of edge measurement points and internal measurement points.
  • the computer device combines the initial measurement points and the expanded measurement points to obtain the target measurement points of the printing platform.
  • the computer device may determine, from the target measurement points, adjacent measurement points located adjacent to the measurement point to be compensated.
  • the expansion of the expanded measurement points in different directions is achieved, thus avoiding incomplete acquisition of adjacent measurement points.
  • the resulting problem is that the height compensation effect is inaccurate.
  • each compensation reference point is determined based on the first fitting line corresponding to each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area, and the coordinate data of the measurement point to be compensated.
  • the coordinate data includes: based on the coordinate data of at least two adjacent measurement points in each adjacent area, obtaining the abscissa data of each compensation reference point to be generated; based on the coordinate data of the measurement point to be compensated, obtaining each to be generated The vertical coordinate data of the compensation reference point; substitute the vertical coordinate data of each compensation reference point to be generated into the first fitting line corresponding to each adjacent area to obtain the height coordinate data of each compensation reference point to be generated; comprehensively
  • the abscissa data, ordinate data and height coordinate data of each compensation reference point to be generated are used to obtain the coordinate data of the compensation reference point corresponding to each adjacent area.
  • the coordinate data of adjacent measurement points usually follows a specific pattern, as shown in Figure 4.
  • the coordinate data of adjacent measurement point A The abscissa data of the adjacent measurement point A are the same as the abscissa data of the adjacent measurement point B, and the ordinate data of the adjacent measurement point A is the same as the ordinate data of the adjacent measurement point C.
  • the computer device determines that the abscissa data of at least two adjacent measurement points are the same, the computer device directly uses the abscissa data as the abscissa data of the compensation reference point to be generated. Further, the computer device uses the ordinate data of the measurement point to be compensated as the ordinate data of the compensation reference point to be generated.
  • the computer device substitutes the ordinate data of the compensation reference point to be generated into the first straight line equation corresponding to the first fitting line to obtain the height coordinate data of the compensation reference point to be generated.
  • the compensation reference point can be accurately obtained through the first fitting line and the coordinate data of the adjacent measurement points, which can make the compensation reference point closer to the compensation reference of the measurement point to be compensated, improve the accuracy of subsequent compensation, and at the same time , because the first fitting line can convert the height compensation of the measurement point to be compensated to a two-dimensional plane, thus greatly simplifying the amount of data calculation.
  • a right-angled triangle is constructed through at least two adjacent measurement points in each adjacent area; two similar right-angled triangles in each right-angled triangle are determined according to the coordinate data of the measurement point to be compensated, and are determined respectively.
  • the side length proportional relationship between two similar right-angled triangles; substitute the coordinate data of at least two adjacent measurement points and the coordinate data of the measurement point to be compensated into the corresponding side length proportional relationship to obtain each to be generated The abscissa data of the compensation reference point.
  • FIG. 8 is a Schematic diagram of the distribution of adjacent measurement points in the embodiment.
  • the computer device determines that the abscissa data of at least two adjacent measurement points are different, it constructs a right-angled triangle based on the coordinate data of at least two adjacent measurement points.
  • the right-angled triangle in Figure 8 is ⁇ Abo1.
  • the computer device uses the ordinate data of the measurement point to be compensated as the ordinate data of the compensation reference point to be generated. Further, the computer device is to compensate the coordinate data of the measurement point and determine two similar right-angled triangles among each right-angled triangle.
  • the two similar right-angled triangles as ⁇ Abo1 and ⁇ Abo2, where the abscissa data of o1 and o2 are both consistent with The abscissa data of the adjacent measurement point A are the same, and the ordinate data of o2 is the same as the ordinate data of the measurement point Q to be compensated.
  • the computer device substitutes the coordinate data of at least two adjacent measurement points and the coordinate data of the measurement point to be compensated into the side length ratio relationship to obtain the abscissa data of the compensation reference point to be generated, that is, the compensation reference point to be generated.
  • the abscissa data of the compensation reference point to be generated can be accurately obtained by constructing a right triangle, so another method is provided.
  • the method of generating the coordinate expansion model includes: obtaining the expansion direction set, and determining the model projection plane corresponding to the current expansion direction for each expansion direction in the expansion direction set; generating the model projection plane corresponding to the current expansion direction. Simulate the edge points and determine the simulated internal points corresponding to the simulated edge points; project the simulated edge points to the model projection plane to obtain the simulated edge projection points, and project the simulated internal points to the model projection plane to obtain the simulated internal projection points; Perform linear fitting processing on the simulated edge projection points and the simulated internal projection points to obtain the coordinate expansion model corresponding to the current expansion direction.
  • the expansion direction set includes upward expansion, downward expansion, left expansion, right expansion, upper right expansion, upper left expansion, lower right expansion, and lower left expansion;
  • the simulated edge points can be from when training the model.
  • the simulated internal points may be the measurement points located adjacent to the simulated edge points obtained from the preset database when training the model. It is easy to understand that the coordinate expansion models corresponding to different expansion directions are not the same. Since the process of determining the coordinate expansion model corresponding to the respective expansion directions is similar, the process of determining the coordinate expansion model corresponding to the upward expansion will be described below.
  • the computer device can use the YZ plane in the three-dimensional coordinate system as the model projection plane corresponding to the upward expansion direction, and determine the simulation edge point corresponding to the upward expansion direction.
  • the simulated edge point corresponding to the upward expansion direction is located at the upper edge of the printing platform.
  • the computer equipment obtains the simulated internal points located near the simulated edge points from the preset database according to the simulated edge points located on the upper edge, and projects the simulated edge points to the model projection plane respectively to obtain the simulated edge projection points, and the Project the simulated internal points to the model projection plane to obtain the simulated internal projection points.
  • the coordinate data of the simulated edge point is (x i(n-1) , y i(n-1) , z i(n-1) )(i ⁇ [0, m-1]), and the simulated internal point
  • the coordinate data is (x i(n-2) , y i(n-2) , z i(n-2) )(i ⁇ [0, m-1]).
  • linear fitting processing is performed on the simulated edge projection point and the simulated internal projection point to obtain a coordinate expansion model corresponding to the upward expansion direction.
  • the coordinate expansion model is obtained as:
  • the computer device may use edge measurement points as simulated edge points, and target internal measurement points corresponding to the edge measurement points as simulated internal points.
  • different model projection planes are determined through different expansion directions, and then corresponding coordinate expansion models are established according to the model projection planes, so that subsequent expansion measurements based on the coordinate expansion model can accurately and quickly obtain the expansion measurements corresponding to different edge measurement points. point.
  • height compensation is performed on the coordinate data of the measurement point to be compensated based on the coordinate data of each second projection point, including: performing linear fitting processing on the coordinate data of each second projection point to obtain a second fit. line; substitute the coordinate data of the measurement point to be compensated into the second straight line equation corresponding to the second fitting line to obtain the height compensation value of the measurement point to be compensated; perform height compensation on the measurement point to be compensated through the height compensation value.
  • the computer device determines coordinate data corresponding to each second projection point among the plurality of second projection points, and performs linear fitting processing on the second projection point based on the coordinate data corresponding to each second projection point, Obtain the second fitting line. For example, perform linear fitting processing on the two second projection points to obtain a second fitting line.
  • the computer device can perform height compensation on the measurement point to be compensated through the second fitting line and the coordinate data of the measurement point to be compensated. For example, after performing linear fitting processing on the second projection point m and the second projection point n, a second fitting line is obtained.
  • the computer device substitutes the abscissa value of the measurement point to be compensated into the second straight line equation corresponding to the second fitting line to obtain the height compensation value of the measurement point to be compensated.
  • the height compensation of the measurement point to be compensated can be converted to a two-dimensional plane, which simplifies the amount of data calculation. In this way, the height compensation of the measurement point to be compensated can be performed according to the second fitting line.
  • the combined line accurately realizes the height compensation of the measurement point to be compensated.
  • the method before determining a plurality of adjacent areas in the printing platform located at a position adjacent to the measurement point to be compensated, the method further includes: obtaining first initial coordinate data and internal coordinate data of a corner measurement point among the plurality of measurement points.
  • the second initial coordinate data of the measurement point verify the first initial coordinate data to obtain the first verification result, and determine the first verification coordinate data of the corner measurement point according to the first verification result; according to the first verification result
  • the second initial coordinate data is constructed according to the standard plane. Perform calibration to obtain a second calibration result, and determine the second calibration coordinate data of the internal measurement point based on the second calibration result.
  • the computer device performs a step update on the first initial coordinate data of the corner measurement point, obtains coordinate step data, and determines a first difference between the first initial coordinate data and the coordinate step data.
  • the computer device determines that the first verification result is that the verification is passed, and uses the coordinate step data corresponding to the corner measurement point as the first verification coordinate of the corner measurement point. data.
  • the computer device constructs a standard plane based on the first verification coordinate data of the corner measurement points.
  • the computer device determines at least one adjacent measurement point located adjacent to the internal measurement point, and projects the internal measurement point and each adjacent measurement point onto a standard plane to obtain projected coordinate data and projected adjacent coordinate data respectively.
  • the computer device obtains the first fitting equation based on the internal measurement point and the adjacent measurement point, and obtains the second fitting equation based on the projected coordinate data and the projected adjacent coordinate data, and then based on the first fitting equation and the second fitting equation Equation, calibrate the internal measurement points to obtain the second calibration result.
  • the second verification result is that the verification passes
  • the second initial coordinate data of the internal measurement point is used as the second verification coordinate data.
  • steps in the flowcharts involved in the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
  • embodiments of the present application also provide a printing platform height compensation device for implementing the above-mentioned printing platform height compensation method.
  • the solution to the problem provided by this device is similar to the solution recorded in the above method. Therefore, the specific limitations in the embodiments of the height compensation device for one or more printing platforms provided below can be found in the above description of the printing platform. The limitations of the height compensation method will not be repeated here.
  • a printing platform height compensation device 900 including: a measurement point determination module 902, a neighboring area determination module 904, a first projection module 906, a reference point determination module 908 and Second projection module 910, wherein:
  • the measurement point determination module 902 is used to obtain multiple measurement points in the printing platform and determine the measurement points to be compensated.
  • the adjacent area determination module 904 is used to determine multiple adjacent areas in the printing platform that are located adjacent to the measurement point to be compensated; each adjacent area includes at least two adjacent measurement points; the adjacent measurement point is the same among the multiple measurement points. Measurement points adjacent to the measurement point to be compensated.
  • the first projection module 906 is used to project at least two adjacent measurement points in each adjacent area to a preset first projection plane, obtain coordinate data of at least two first projection points, and calculate at least two first projection points.
  • the coordinate data of the points are subjected to linear fitting processing to obtain the first fitting lines corresponding to each adjacent area.
  • the reference point determination module 908 is used to determine each compensation reference based on the first fitting line corresponding to each adjacent area, the coordinate data of at least two adjacent measurement points in each adjacent area, and the coordinate data of the measurement point to be compensated. Point coordinate data.
  • the second projection module 910 is used to project each compensation reference point to a preset second projection plane, obtain the coordinate data of each second projection point, and obtain the coordinate data of the measurement point to be compensated based on the coordinate data of each second projection point. Perform height compensation.
  • the measurement point determination module 902 also includes a measurement point expansion module 9021, which is used to determine the edge measurement points in the printing platform and determine the edge information of the edge measurement points; based on the edge information, determine the edge in the printing platform and the edge.
  • the internal measurement points of the target corresponding to the measurement points and the expansion direction of the internal measurement points of the target are determined; the internal measurement points of the target are expanded according to the expansion direction to obtain expanded measurement points corresponding to the edge measurement points.
  • the measurement point expansion module 9021 is also used to use the edge measurement point as the mirror center and perform symmetrical processing on the internal measurement points of the target according to the expansion direction to obtain the plane coordinate data of the expanded measurement point to be generated; obtain and Expand the coordinate expansion model corresponding to the direction, and substitute the plane coordinate data of the expanded measurement point to be generated into the coordinate expansion model to obtain the height coordinate data of the expanded measurement point to be generated; synthesize the plane coordinates of the expanded measurement point to be generated data and height coordinate data, we get Coordinate data to the extended measurement point corresponding to the edge measurement point.
  • the measurement point determination module 902 also includes an expansion model determination module 9022, which is used to obtain an expansion direction set, and determine the model projection plane corresponding to the current expansion direction for each expansion direction in the expansion direction set; Generate simulated edge points corresponding to the current expansion direction, and determine the simulated internal points corresponding to the simulated edge points; project the simulated edge points to the model projection plane to obtain the simulated edge projection points, and project the simulated internal points to the model projection plane , obtain the simulated internal projection points; linearly fit the simulated edge projection points and the simulated internal projection points to obtain a coordinate expansion model corresponding to the current expansion direction.
  • an expansion model determination module 9022 is used to obtain an expansion direction set, and determine the model projection plane corresponding to the current expansion direction for each expansion direction in the expansion direction set; Generate simulated edge points corresponding to the current expansion direction, and determine the simulated internal points corresponding to the simulated edge points; project the simulated edge points to the model projection plane to obtain the simulated edge projection points, and project the simulated internal points to the model
  • the reference point determination module 908 is used to determine whether the abscissa data of at least two adjacent measurement points in each adjacent area are the same; when the abscissa data of at least two adjacent measurement points are the same, According to the abscissa data of at least two adjacent measurement points, the abscissa data of each compensation reference point to be generated is obtained; according to the coordinate data of the measurement point to be compensated, the ordinate data of each compensation reference point to be generated is obtained; The ordinate data of the compensation reference points to be generated are respectively substituted into the corresponding first fitting lines of each adjacent area to obtain the height coordinate data of each compensation reference point to be generated; the abscissa coordinates of each compensation reference point to be generated are synthesized data, vertical coordinate data and height coordinate data to obtain the coordinate data of the compensation reference points corresponding to each adjacent area.
  • the reference point determination module 908 is also used to construct a right triangle through at least two adjacent measurement points in each adjacent area when the abscissa data of at least two adjacent measurement points are different. ; According to the coordinate data of the measurement point to be compensated, determine two similar right triangles in each right triangle, and determine the side length proportional relationship between the two similar right triangles respectively; combine the coordinate data of at least two adjacent measurement points and the coordinate data of the measurement point to be compensated are substituted into the corresponding side length ratio relationship to obtain the abscissa data of each compensation reference point to be generated.
  • the second projection module 910 also includes a fitting module 9101, which is used to linearly fit the coordinate data of each second projection point to obtain a second fitting line; The data is substituted into the second straight line equation corresponding to the second fitting line to obtain the height compensation value of the measurement point to be compensated; the height compensation value is used to perform height compensation on the coordinate data of the measurement point to be compensated.
  • a fitting module 9101 which is used to linearly fit the coordinate data of each second projection point to obtain a second fitting line; The data is substituted into the second straight line equation corresponding to the second fitting line to obtain the height compensation value of the measurement point to be compensated; the height compensation value is used to perform height compensation on the coordinate data of the measurement point to be compensated.
  • the height compensation device 900 of the printing platform further includes a coordinate verification module 912 for obtaining the first initial coordinate data of the corner measurement points and the internal measurement points of the multiple measurement points.
  • second initial coordinate data verify the first initial coordinate data to obtain the first verification result, and determine the first verification coordinate data of the corner measurement point according to the first verification result; according to the first verification coordinate data , construct a standard plane; verify the second initial coordinate data according to the standard plane, obtain the second verification result, and determine the second verification coordinate data of the internal measurement point according to the second verification result.
  • Each module in the above-mentioned height compensation device of the printing platform can be implemented in whole or in part by software, hardware and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in Figure 10.
  • the computer device includes a processor, a memory, an input/output interface (Input/Output, referred to as I/O), and a communication interface.
  • the processor, memory and input/output interface are connected through the system bus, and the communication interface is connected to the system bus through the input/output interface.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes non-volatile storage media and internal memory.
  • the non-volatile storage medium stores operating systems, computer programs and databases. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media.
  • the database of the computer device is used to store the height compensation data of the printing platform.
  • the input/output interface of the computer device is used to exchange information between the processor and external devices.
  • the communication interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program implements a printing platform height compensation method when executed by a processor.
  • FIG. 10 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • Specific computer equipment can May include more or fewer parts than shown, or combine certain parts, or have a different arrangement of parts.
  • a computer device including a memory and a processor.
  • a computer program is stored in the memory.
  • the processor executes the computer program, it implements the steps in the above method embodiments.
  • a computer-readable storage medium which stores a computer program.
  • the computer program is executed by a processor, the steps in the above method embodiments are implemented.
  • the computer program can be stored in a non-volatile computer-readable storage medium.
  • the computer program may include the processes of the above method embodiments. Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory.
  • Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory (MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc.
  • Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc.
  • RAM Random Access Memory
  • RAM random access memory
  • RAM Random Access Memory
  • the databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database.
  • Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto.
  • the processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.

Landscapes

  • Chemical & Material Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Materials Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Optics & Photonics (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

一种打印平台的高度补偿方法、装置和计算机设备。方法包括:确定打印平台中的待补偿测量点、以及打印平台中位于待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点,并对至少两个第一投影点进行线性拟合处理,得到各邻近区域各自对应的第一拟合线;根据各邻近区域各自对应的第一拟合线分别确定各补偿基准点;将各补偿基准点投影至预设第二投影平面,得到各第二投影点,并根据各第二投影点对待补偿测量点的坐标数据进行高度补偿。采用本方法能够提高打印平台的高度补偿的准确性。

Description

打印平台的高度补偿方法、装置和计算机设备 技术领域
本申请涉及3D打印技术领域,特别是涉及一种打印平台的高度补偿方法、装置和计算机设备。
背景技术
3D打印是一种快速成型技术,它是一种以数字模型文件为基础,运用特殊蜡材、粉末状金属或塑料等可粘合材料,通过逐层打印的方式来构造三维实体的技术。其中,如何对打印平台的水平性进行调节是现阶段研究的重点。
目前,通常对打印平台上预先设定的测量点进行测量,并根据测量结果构建拟合平面,喷嘴打印到某位置时,可以根据拟合平面计算出该位置对应的高度补偿,从而进行调平。然而,由于是根据测量结果不加区分地构建成一整个拟合平面,并不能有针对性地实现每个测量点的调节,进而降低了打印平台的调平效果。因此,如何准确地对每个测量点进行高度补偿,进而确保打印平台的水平性是本公开需要解决的问题。
发明内容
基于此,有必要针对上述技术问题,提供一种能够提升高度补偿准确性的打印平台的高度补偿方法、装置、计算机设备和计算机可读存储介质。
第一方面,本申请提供了一种打印平台的高度补偿方法。所述方法包括:
获取打印平台中的多个测量点,并确定待补偿测量点;
确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;所述相邻测量点为所述多个测量点中与所述待补偿测量点相邻的测量点;
将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点的坐标数据,并对所述至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线;
根据各邻近区域各自对应的所述第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和所述待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据;
将各所述补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿。
在其中一个实施例中,所述多个测量点包括扩充测量点、边缘测量点和内部测量点;所述获取打印平台中的多个测量点,包括:确定所述打印平台中的边缘测量点,并确定所述边缘测量点的边缘信息;根据所述边缘信息,确定所述打印平台中与所述边缘测量点相对应的目标内部测量点、以及确定所述目标内部测量点的扩充方向;按照所述扩充方向对所述目标内部测量点进行扩充处理,得到与所述边缘测量点相对应的扩充测量点。
在其中一个实施例中,所述按照所述扩充方向对所述目标内部测量点进行扩充处理,得到与所述边缘测量点相对应的扩充测量点,包括:以所述边缘测量点为镜像中心,按照所述扩充方向对所述目标内部测量点进行对称处理,得到待生成的扩充测量点的平面坐标数据;获取与所述扩充方向相对应的坐标扩充模型,并将所述待生成的扩充测量点的平面坐标数据代入至所述坐标扩充模型中,得到所述待生成的扩充测量点的高度坐标数据;综合所述待生成的扩充测量点的平面坐标数据和高度坐标数据,得到与所述边缘测量点相对应的扩充测量点的坐标数据。
在其中一个实施例中,所述坐标扩充模型的生成方式包括:获取扩充方向集,针对所述扩充方向集中的每一个扩充方向,均确定与当前扩充方向相对应的模型投影平面;生成所述当前扩充方向相对应的模拟边缘点,并确定与所述模拟边缘点相对应的模拟内部点;将所述模拟边缘点投影至模型投影平面,得到模拟边缘投影点、以及将所述模拟内部点投影至模型投影平面,得到模拟内部投影点;将所述模拟边缘投影点和所述模拟内部投影点进行线性拟合处理,得到与所述当前扩充方向相对应的坐标扩充模型。
在其中一个实施例中,所述相邻测量点的坐标数据中包括横坐标数据;所 述根据各邻近区域各自对应的所述第一拟合线、各所述邻近区域中的至少两个所述相邻测量点的坐标数据和所述待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据,包括:判断各邻近区域中的至少两个相邻测量点的横坐标数据是否相同;当所述至少两个相邻测量点的横坐标数据相同时,根据所述至少两个相邻测量点的横坐标数据,得到各待生成的补偿基准点的横坐标数据;根据所述待补偿测量点的坐标数据,得到各所述待生成的补偿基准点的纵坐标数据;将各所述待生成的补偿基准点的纵坐标数据分别代入至各邻近区域各自对应的所述第一拟合线中,得到各所述待生成的补偿基准点的高度坐标数据;综合各所述待生成的补偿基准点的横坐标数据、纵坐标数据和高度坐标数据,得到各邻近区域各自对应的补偿基准点的坐标数据。
在其中一个实施例中,所述方法还包括:当所述至少两个相邻测量点的横坐标数据不相同时,通过各邻近区域中的至少两个相邻测量点分别构建一个直角三角形;根据所述待补偿测量点的坐标数据,确定各所述直角三角形中的两个相似直角三角形,并分别确定所述两个相似直角三角形之间的边长比例关系;将各所述至少两个相邻测量点的坐标数据和所述待补偿测量点的坐标数据,均代入至各自对应的所述边长比例关系中,得到各所述待生成的补偿基准点的横坐标数据。
在其中一个实施例中,所述根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿,包括:对各所述第二投影点的坐标数据进行线性拟合处理,得到第二拟合线;将所述待补偿测量点的坐标数据代入至所述第二拟合线对应的第二直线方程中,得到所述待补偿测量点的高度补偿值;通过所述高度补偿值对所述待补偿测量点的坐标数据进行高度补偿。
在其中一个实施例中,在所述确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域之前,所述方法还包括:获取所述多个测量点中的边角测量点的第一初始坐标数据和内部测量点的第二初始坐标数据;对所述第一初始坐标数据进行校验,得到第一校验结果,并根据所述第一校验结果确定所述边角测量点的第一校验坐标数据;根据所述第一校验坐标数据,构建标准平面;根据所述标准平面,对所述第二初始坐标数据进行校验,得到第二校验 结果,并根据所述第二校验结果确定所述内部测量点的第二校验坐标数据。
第二方面,本申请还提供了一种打印平台的高度补偿装置。所述装置包括:
测量点确定模块,用于获取打印平台中的多个测量点,并确定待补偿测量点;
邻近区域确定模块,用于确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;所述相邻测量点为所述多个测量点中与所述待补偿测量点相邻的测量点;
第一投影模块,用于将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点的坐标数据,并对所述至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线;
基准点确定模块,用于根据各邻近区域各自对应的第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据;
第二投影模块,用于将各所述补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿。
第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
获取打印平台中的多个测量点,并确定待补偿测量点;
确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;所述相邻测量点为所述多个测量点中与所述待补偿测量点相邻的测量点;
将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点的坐标数据,并对所述至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线;
根据各邻近区域各自对应的所述第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和所述待补偿测量点的坐标数据,分别确定各补偿基准点 的坐标数据;
将各所述补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿。
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
获取打印平台中的多个测量点,并确定待补偿测量点;
确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;所述相邻测量点为所述多个测量点中与所述待补偿测量点相邻的测量点;
将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点的坐标数据,并对所述至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线;
根据各邻近区域各自对应的所述第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和所述待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据;
将各所述补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿。
上述打印平台的高度补偿方法、装置、计算机设备和存储介质,通过确定打印平台中的待补偿测量点,以及确定位于待补偿测量点邻近位置处的多个邻近区域,其中,各邻近区域中包括至少两个相邻测量点。通过将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,可以得到至少两个第一投影点第一投影点,接着对至少两个第一投影点进行线性拟合处理,便可以得到各邻近区域各自对应的第一拟合线。根据各邻近区域各自对应的第一拟合线可确定各补偿基准点,并将各补偿基准点投影至预设第二投影平面,可得到各第二投影点,如此,便可根据各第二投影点的坐标数据,对待补偿测量点进行高度补偿。由于是先通过相邻测量点确定出第一拟合线之后,再根据第一拟合线确 定出补偿基准点,进而根据补偿基准点投影后的第二投影点,便可实现对待补偿测量点的高度补偿,因此,相比于传统的不加区分地构建成一整个拟合平面的方式,本申请能针对性地对每个待补偿测量点的进行高度调节,从而提高了打印平台的高度补偿的准确性,同时也避免了对整个平面进行拟合时数据计算量大的问题。
附图说明
图1为一个实施例中打印平台的高度补偿方法的应用环境图;
图2为一个实施例中打印平台的高度补偿方法的流程示意图;
图3为一个实施例中打印平台的测量点分布示意图;
图4为一个实施例中邻近区域的分布示意图;
图5为另一个实施例中邻近区域的分布示意图;
图6为一个实施例中测量点扩充的流程示意图;
图7为一个实施例中测量点扩充后的分布示意图;
图8为一个实施例中相邻测量点的分布示意图;
图9为一个实施例中打印平台的高度补偿装置的结构框图;
图10为一个实施例中计算机设备的内部结构图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅用以解释本申请,并不用于限定本申请。
本申请实施例提供的打印平台的高度补偿方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行通信。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他网络服务器上。终端102用于生成打印平台的坐标数据,并将坐标数据发送至服务器104,服务器104用于根据获取的坐标数据,确定打印平台中的待补偿测量点,以及确定位于待补偿测量点邻近位置处的相邻测量 点,并根据相邻测量点得到第一拟合线;服务器104还用于根据第一拟合线和相邻测量点的坐标数据,确定补偿基准点,并将补偿基准点投影至预设第二投影平面,得到第二投影点,进而根据第二投影点的坐标数据,对待补偿测量点进行高度补偿。其中,终端102可以但不限于是各种个人计算机、3D打印机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备。服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
在一个实施例中,如图2所示,提供了一种打印平台的高度补偿方法,以该方法应用于计算机设备为例进行说明,该计算机设备可为图1中的终端或服务器,包括以下步骤:
步骤202,获取打印平台中的多个测量点,并确定待补偿测量点。
其中,打印平台是三维打印机中一种用于承载三维实体的平台,当打印头接触到打印平台的平面,并按照预设的测量频率进行测量时,打印头上的检测单元便可测量出打印平台中的每个测量点各自对应的坐标数据。示例性如图3所示,图3为打印平台301上的测量点分布示意图,打印平台上的测量点由m行n列矩阵组成,矩阵为:
其中,测量点的坐标数据为aij=(xij,yij,zij)(i∈[0,m-1],j∈00,n-1))。
具体地,当用户需要进行3D打印任务时,可触发3D打印机的打印头进行移动,通常每次打印任务的预设测量频率可以不同,也即每次打印任务所对应的测量点也并不相同。当打印头移动到打印平台的相应位置上时,通过打印头上的检测单元便可测量到当前需要进行高度补偿的待补偿测量点,并将待补偿测量点的坐标数据传输至计算机设备中。
在其中一个实施例中,计算机设备预先通过压力传感器或者CR-touch(电容式触摸传感器)等,对打印平台的测量点进行初始测量,得到初始的测量点,并将初始的测量点的坐标数据发送至预设的数据库中进行存储。
在其中一个实施例中,待补偿测量点可为初始的测量点中的任意一点,也 可为打印头按照预设测量频率,在打印平台上检测到的任意一点。
在其中一个实施例中,针对当前打印任务所对应的多个测量点中的每个测量点,均将当前测量点视作待补偿测量点,实现对待补偿测量点的高度补偿。
步骤204,确定打印平台中位于待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;相邻测量点为多个测量点中与待补偿测量点相邻的测量点。
具体地,计算机设备可对待补偿测量点进行邻近区域检测,将符合预设方向上的邻近区域视作待补偿测量点对应的邻近区域,其中,预设方向上的邻近区域可根据预设第一投影平面来确定。示例性如图4所示,图4为打印平台上的邻近区域的分布示意图,待补偿测量点Q邻近位置包括区域1、区域2、区域3和区域4,当预设第一投影平面为YZ平面时,符合预设方向上的邻近区域为区域1和区域2,当预设第一投影平面为XZ平面时,符合预设方向上的邻近区域为区域3和区域4。
进一步地,计算机设备针对每个邻近区域,均确定位于与待补偿测量点邻近的当前邻近区域中的相邻测量点,其中,各邻近区域中包括至少两个相邻测量点,相邻测量点为从测量点中筛选得到,例如,确定区域1中的相邻测量点A和相邻测量点B。
在其中一个实施例中,计算机设备根据待补偿测量点的坐标数据,从预设的数据库中获取待补偿测量点邻近位置处的相邻测量点。
在其中一个实施例中,预设方向上的邻近区域可根据待补偿测量点的坐标数据进行确定,比如,当待补偿测量点为打印平台的测量点中任意一点时,待补偿测量点邻近位置可如图5所示,图5为另一实施例中打印平台上的邻近区域的分布示意图。待补偿测量点Q邻近位置包括区域5、区域6、区域7和区域8,当预设第一投影平面为YZ平面时,符合预设方向上的邻近区域可同时为区域5和区域6,也可同时为区域7和区域8;当预设第一投影平面为XZ平面时,符合预设方向上的邻近区域同时为区域5和区域6,也可同时为区域7和区域8。
本实施例中,通过针对多个预设方向的多个邻近区域,均可确定每个邻近区域各自对应的相邻测量点,如此便可缩小对待补偿测量点进行补偿时相邻测 量点的选取范围,同时,针对不同坐标数据的待补偿测量点,可灵活选取合适邻近区域的相邻测量点,提升了后续确定第一投影点的灵活性。
步骤206,将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点的坐标数据,并对至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线。
其中,预设第一投影平面可以是用户预先设置的投影平面,例如三维坐标系中的YZ平面。由于对每个各邻近区域中的至少两个相邻测量点的处理过程相同,为了更好地描述本申请,下述将针对任意一个邻近区域中的至少两个相邻测量点进行过程描述。
具体地,计算机设备将至少两个相邻测量点中的每个相邻测量点,均投影至预设第一投影平面,得到每个相邻测量点各自对应的第一投影点,也即将三维坐标转换成二维坐标。例如,将区域1中的相邻测量点A、相邻测量点B投影至预设YZ平面,得到第一投影点a和第一投影点b。计算机设备将各第一投影点进行线性拟合处理,得到第一相邻测量点对应的第一拟合线,也即将第一投影点a和第一投影点b进行线性拟合。其中,线性拟合方式可为最小二乘法拟合等方式,本申请在此不做限制。
在其中一个实施例中,计算机设备根据预设第一投影平面和待补偿测量点的坐标数据,将相邻测量点划分为第一相邻测量点和第二相邻测量点,其中,坐标数据包括横坐标数据、纵坐标数据和高度坐标数据。比如,当预设第一投影平面为YZ平面时,对比待补偿测量点的横坐标数据和相邻测量点的横坐标数据之间的大小,若相邻测量点的横坐标数据小于或等于待补偿测量点的横坐标数据,则将相邻测量点作为第一相邻测量点;反之则将相邻测量点作为第二相邻测量点。例如,相邻测量点A和相邻测量点B为第一相邻测量点,相邻测量点C和相邻测量点D为第二相邻测量点。
在其中一个实施例中,计算机设备可将两个第一投影点的坐标数据aij和ai(j+1),基于一元一次方程来进行线性拟合处理,可得到第一拟合线对应的第一 直线方程为z=koy+bo,其中bo=zij-koyij
步骤208,根据各邻近区域各自对应的第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据。
其中,当邻近区域有两个区域时,第一拟合线有两条,确定出各邻近区域中的补偿基准点的数量也为两个。
具体地,计算机设备确定各邻近区域中的至少两个相邻测量点的横坐标数据是否相同,当至少两个相邻测量点的横坐标数据均相同时,从数据库中获取第一基准点确定模型,并将至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据带入至第一基准点确定模型中,得到补偿基准点的坐标数据。当至少两个相邻测量点的横坐标数据不相同时,从数据库中获取第二基准点确定模型,并将至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据均带入至第二基准点确定模型中,得到补偿基准点的坐标数据。其中,第一基准点确定模型表征不需要将相邻测量点的坐标数据进行坐标变换;第二基准点确定模型表征需要通过相邻测量点的坐标数据构建成直角三角形。
在其中一个实施例中,计算机设备根据各邻近区域各自对应的第一拟合线和待补偿测量点的坐标数据,可分别确定各补偿基准点的坐标数据。
步骤210,将各补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各第二投影点的坐标数据,对待补偿测量点的坐标数据进行高度补偿。
其中,预设第二投影平面为与预设第一投影平面的类型并不相同的平面,例如,当预设第一投影平面为YZ平面时,预设第二投影平面为XZ平面。
具体地,计算机设备将每个补偿基准点均投影至预设第二投影平面,得到每个补偿基准点各自对应的第二投影点,也即将补偿基准点的三维坐标转换成二维坐标。例如,将补偿基准点M和补偿基准点N分别投影至预设第二投影平面,得到第二投影点m和第二投影点n。计算机设备对各第二投影点的坐标数据进行线性拟合处理,得到第二拟合线,并通过第二拟合线对待补偿测量点进 行高度补偿。
在其中一个实施例中,计算机设备可将两个第二投影点的坐标数据aij和ai(j+1),基于一元一次方程来进行线性拟合处理,得到第二拟合线对应的第二直线方程为z=kox+bo,其中,bo=zij-koxij
上述打印平台的高度补偿方法中,通过确定打印平台中的待补偿测量点,以及确定位于待补偿测量点邻近位置处的多个邻近区域,其中,各邻近区域中包括至少两个相邻测量点。通过将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,可以得到至少两个第一投影点第一投影点,接着对至少两个第一投影点进行线性拟合处理,便可以得到各邻近区域各自对应的第一拟合线。根据各邻近区域各自对应的第一拟合线可确定各补偿基准点,并将各补偿基准点投影至预设第二投影平面,可得到各第二投影点,如此,便可根据各第二投影点的坐标数据,对待补偿测量点进行高度补偿。因此,相比于传统的不加区分地构建成一整个拟合平面的方式,本申请能针对性地对每个待补偿测量点进行高度补偿,从而提高了打印平台的高度补偿的准确性,同时也避免了对整个平面进行拟合时数据计算量大的问题。
在其中一个实施例中,如图6所示,打印平台中的多个测量点包括扩充测量点、边缘测量点和内部测量点;获取打印平台中的多个测量点还包括:
步骤602,确定打印平台中的边缘测量点,并确定边缘测量点的边缘信息。
其中,为避免3D打印任务对应的打印模型超出平台之外,通常会让打印平台中的初始测量点远离平台边沿一定距离,但对边缘上的待补偿测量点进行高度补偿时,又会导致相邻测量点获取不齐全的问题,因此,需要对打印平台中的初始测量点进行扩充。示例性如图7所示,图7为打印平台上的测量点扩充后的分布示意图。
具体地,计算机设备从预设的数据库中的打印平台中的边缘测量点,并对边缘测量点进行信息识别,从而确定边缘测量点的边缘信息。其中,边缘信息包括位于打印平台的左边缘、位于打印平台的右边缘、位于打印平台的上边缘 和位于打印平台的下边缘。
步骤604,根据边缘信息,确定打印平台中的与边缘测量点相对应的目标内部测量点、以及确定目标内部测量点的扩充方向。
其中,边缘信息表征边缘测量点位于打印平台中的边缘位置,例如位于打印平台的上边缘等;扩充方向表征与打印平台中的边缘位置相关联的方向,扩充方向包括向上扩充、向左扩充、向右上扩充等,其中,向上扩充的方向表示与打印平台的左右边缘相平行的方向,向左扩充的方向表示与打印平台的上下边缘相平行的方向。
具体地,计算机根据边缘测量点的边缘信息,确定打印平台中位于边缘测量点邻近位置处的目标内部测量点,并根据边缘测量点的边缘信息,确定目标内部测量点对应的扩充方向。其中,当边缘测量点邻近位置处的内部测量点为多个时,分别确定边缘测量点与每个内部测量点各自对应的空间距离,根据空间距离从内部测量点筛选出目标内部测量点,比如将空间距离最短的内部测量点作为目标内部测量点。例如参考图7,边缘测量点E1位于打印平台的上边缘,邻近位置处的目标内部测量点为内部测量点E3,因此,边缘测量点E1对应的内部测量点E3的扩充方向为向上;边缘测量点E4位于打印平台的右边缘,邻近位置处的目标内部测量点也为内部测量点E3,因此,边缘测量点E4对应的内部测量点E3的扩充方向为向右。
在其中一个实施例中,计算机根据确定边缘信息中的特殊边缘信息,并根据特殊边缘信息,确定打印平台中位于边缘测量点邻近位置处的候选测量点,以及确定候选测量点的扩充方向。其中,特殊边缘信息表征边缘测量点位于打印平台中的边缘位置中的四个边角;候选测量点可为边缘测量点邻近位置处的其他边缘测量点或内部测量点中的至少一种。计算机根据特殊边缘信息,确定候选测量点对应的扩充方向。例如参考图7,边缘测量点E2位于打印平台的边角,邻近位置处的候选测量点可为边缘测量点E1、边缘测量点E4和内部测量点E3,因此,边缘测量点E2对应于候选测量点E1时,扩充方向为向右;边缘测量点E2对应于候选测量点E4时,扩充方向为向上;边缘测量点E2对应于候选测量点E3时,扩充方向为向右上。
步骤606,按照扩充方向对目标内部测量点进行扩充处理,得到与边缘测量点相对应的扩充测量点。
在其中一个实施例中,按照扩充方向对目标内部测量点进行扩充处理,得到与边缘测量点相对应的扩充测量点,包括:以边缘测量点为镜像中心,按照扩充方向对目标内部测量点进行对称处理,得到待生成的扩充测量点的平面坐标数据;获取与扩充方向相对应的坐标扩充模型,并将待生成的扩充测量点的平面坐标数据代入至坐标扩充模型中,得到待生成的扩充测量点的高度坐标数据;综合待生成的扩充测量点的平面坐标数据和高度坐标数据,得到与边缘测量点相对应的扩充测量点。
具体地,当边缘测量点的位于打印平台的上边缘时,扩充方向为向上扩充,上边缘的边缘测量点的坐标数据为(xi(n-1),yi(n-1),zi(n-1))(i∈[0,m-1]),计算机设备获取的坐标扩充模型为:
计算机设备以边缘测量点的坐标数据为镜像中心,按照扩充方向对目标内部测量点的坐标数据进行对称处理,得到待生成的扩充测量点的平面坐标数据,其中,目标内部测量点的坐标数据为(xi(n-2),yi(n-2),zi(n-2))(i∈[0,m-1]),对称处理过程为:
xin=2xi(n-1)-xi(n-2)(i∈[0,m-1]),yin=2yi(n-1)-yi(n-2)(i∈[0,m-1])
因此,待生成的扩充测量点的平面坐标数据为(xin,yin)(i∈[0,m-1]),计算机设备将该平面坐标数据中的yin带入至坐标扩充模型中,直至得到扩充测量点为(xin,yin,zin)(i∈[0,m-1])。参考上述举例,边缘测量点E1对应的内部测量点E3的扩充方向为向上时,扩充后可得到扩充测量点F1。
在其中一个实施例中,当边缘测量点的位于打印平台的下边缘时,扩充方向为向下扩充,下边缘的边缘测量点的坐标数据为(xi0,yi0,zi0)(i∈[0,m-1]),计算机设备获取的坐标扩充模型为:
计算机设备以边缘测量点的坐标数据为镜像中心,按照扩充方向对目标内部测量点的坐标数据进行对称处理,得到待生成的扩充测量点的平面坐标数据,目标内部测量点的坐标数据为(xi1,yi1,zi1)(i∈[0,m-1]),对称处理过程为:
xi(-1)=2xi0-xi1(i∈[0,m-1]),yi(-1)(=2yi0-yi1(i∈[0,m-1])
待生成的扩充测量点的平面坐标数据为(xi(-1),yi(-1))(i∈[0,m-1]),计算机设备将该平面坐标数据中的yi(-1)带入至坐标扩充模型中,直至得到扩充测量点为(xi(-1),yi(-1),zi(-1))(j∈[0,m-1])。
在其中一个实施例中,当边缘测量点位于打印平台的左边缘时,坐标数据为(x0j,y0j,z0j)(j∈[0,n-1]),扩充方向为向左扩充,计算机设备获取的坐标扩充模型为:
其中,位于边缘测量点邻近位置处的目标内部测量点的坐标数据为(x1j,y1j,z1j)(j∈[0,n-1]),计算机设备以边缘测量点的坐标数据为镜像中心,按照扩充方向对目标内部测量点的坐标数据进行对称处理过程为:
x(-1)j=2x0j-x1j(j∈[0,n-1]),y(-1)j=2y0j-y1j(j∈[0,n-1])
待生成的扩充测量点的平面坐标数据为(x(-1)j,y(-1)j)(j∈[0,n-1]),计算机设备将该平面坐标数据中的x(-1)j带入至坐标扩充模型中,直至得到扩充测量点为(x(-1)j,y(-1)j,z(-1)j)(j∈[0,n-1])。
在其中一个实施例中,当边缘测量点位于打印平台的右边缘时,坐标数据为(x(m-1)j,y(m-1)j,z(m-1)j)(j∈[0,n-1]),扩充方向为向右扩充,计算机设备获取的坐标扩充模型为:
其中,位于边缘测量点邻近位置处的目标内部测量点的坐标数据为(x(m-2)j,y(m-2)j,z(m-2)j)(j∈[0,n-1]),计算机设备以边缘测量点的坐标数据 为镜像中心,按照扩充方向对目标内部测量点的坐标数据进行对称处理过程为:
xmj=2x(m-1)j-x(m-2)j(j∈[0,n-1]),ymj=2y(m-1)j-y(m-2)j(j∈[0,n-1])
因此,待生成的扩充测量点的平面坐标数据为(xmj,ymj)(j∈[0,n-1]),计算机设备将该平面坐标数据中的xmj带入至坐标扩充模型中,直至得到扩充测量点为(xmj,ymj,zmj)(j∈[0,n-1])。参考上述举例,边缘测量点E4对应的内部测量点E3的扩充方向为向右时,扩充后可得到扩充测量点F5。
在其中一个实施例中,边缘测量点位于打印平台的边缘位置中的四个边角中的右上角时,边缘测量点的坐标数据为(x(m-1)(n-1),y(m-1)(n-1),z(m-1)(n-1)),扩充方向为向右上扩充,计算机设备获取的坐标扩充模型为:
其中,位于边缘测量点邻近位置处的候选测量点的坐标数据可为(x(m-2)(n-2),y(m-2)(n-2),z(m-2)(n-2)),计算机设备以边缘测量点的坐标数据为镜像中心,按照扩充方向对候选测量点的坐标数据进行对称处理过程为:
xmn=2x(m-1)(n-1)-x(m-2)(n-2),ymn=2y(m-1)(n-1)-y(m-2)(n-2)
因此,待生成的扩充测量点的平面坐标数据为(xmn,ymn),计算机设备将该平面坐标数据中的xmn带入至坐标扩充模型中,直至得到扩充测量点为(xmn,ymn,zmn)。参考上述举例,边缘测量点E2所对应的候选测量点E3的扩充方向为向右上时,扩充后可得到扩充测量点F3。
在其中一个实施例中,边缘测量点位于打印平台的边缘位置中的四个边角中的左上角时,边缘测量点的坐标数据为(x0(n-1),y0(n-1),z0(n-1))扩充方向为向左上扩充,计算机设备获取的坐标扩充模型为:
其中,位于边缘测量点邻近位置处的候选测量点的坐标数据可为(x1(n-2),y1(n-2),z1(n-2)),计算机设备以边缘测量点的坐标数据为镜像中心,按照扩充方向对候选测量点的坐标数据进行对称处理过程为:
x-1n=2x0(n-1)-x1(n-2),y-1n=2y0(n-1)-y1(n-2)
因此,综上可以得到扩充测量点为(x-1n,y-1n,z-1n)。
在其中一个实施例中,边缘测量点位于打印平台的边缘位置中的四个边角中的右下角时,边缘测量点的坐标数据为(x(m-1)0,y(m-1)0,z(m-1)0),扩充方向为向右下扩充,计算机设备获取的坐标扩充模型为:
其中,位于边缘测量点邻近位置处的候选测量点的坐标数据可为(x(m-2)1,y(m-2)1,z(m-2)1),计算机设备以边缘测量点的坐标数据为镜像中心,按照扩充方向对候选测量点的坐标数据进行对称处理过程为:
xm(-1)=2x(m-1)0-x(m-2)1,ym(-1)=2y(m-1)0-y(m-2)1
因此,综上得到的扩充测量点为(xm(-1),ym(-1),zm(-1))。
在其中一个实施例中,边缘测量点位于打印平台的边缘位置中的四个边角中的左下角时,边缘测量点的坐标数据为(x00,y00,z00),扩充方向为向左下扩充,计算机设备获取的坐标扩充模型为:
其中,位于边缘测量点邻近位置处的候选测量点的坐标数据为(x11,y11,z11),计算机设备以边缘测量点的坐标数据为镜像中心,按照扩充方向对候选测量点的坐标数据进行对称处理过程为:
x(-1)(-1)=2x00-x11,y(-1)(-1)=2y00-y11
因此,综上得到扩充测量点为(x(-1)(-1),y(-1)(-1),z(-1)(-1))。
在其中一个实施例中,当待补偿测量点为边缘测量点时,与待补偿测量点相邻的测量点包括从扩充测量点中筛选得到的测量点;当待补偿测量点为内部测量点时,与待补偿测量点相邻的测量点包括从边缘测量点和内部测量点中至少一种筛选得到的测量点。
在其中一个实施例中,计算机设备综合初始的测量点和扩充测量点,得到打印平台的目标测量点。计算机设备可从目标测量点中确定位于待补偿测量点邻近位置处的相邻测量点。
本实施例中,通过确定边缘测量点的边缘信息,进而根据边缘测量点在打印平台中的边缘位置,实现对扩充测量点不同方向上的扩充,避免了因相邻测量点获取不齐全,所导致的高度补偿效果不准确的问题。
在其中一个实施例中,根据各邻近区域各自对应的第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据,包括:根据各邻近区域中的至少两个相邻测量点的坐标数据,得到各待生成的补偿基准点的横坐标数据;根据待补偿测量点的坐标数据,得到各待生成的补偿基准点的纵坐标数据;将各待生成的补偿基准点的纵坐标数据分别代入至各邻近区域各自对应的第一拟合线中,得到各待生成的补偿基准点的高度坐标数据;综合各待生成的补偿基准点的横坐标数据、纵坐标数据和高度坐标数据,得到各邻近区域各自对应的补偿基准点的坐标数据。
其中,由于通过每个各邻近区域各自对应的第一拟合线,得到各补偿基准点的过程相同,为了更好地描述本申请,下述仅针对任意一个邻近区域进行得到补偿基准点的过程描述。
具体地,由于邻近区域中的至少两个相邻测量点是由m行n列矩阵组成,相邻测量点的坐标数据通常呈特定规律,参考图4所示,比如,相邻测量点A的横坐标数据与相邻测量B的横坐标数据相同、相邻测量点A的纵坐标数据与相邻测量C的纵坐标数据相同等。计算机设备在确定至少两个相邻测量点的横坐标数据相同时,直接将该横坐标数据作为待生成的补偿基准点的横坐标数据。进一步地,计算机设备将待补偿测量点的纵坐标数据,作为待生成的补偿基准点的纵坐标数据。
例如,将相邻测量点A的坐标数据aA=(xA,yA,zA)中的xA作为待生成的补偿基准点M的横坐标数据,将待补偿测量点Q的纵坐标数据yQ,作为待生成的补偿基准点M的纵坐标数据。
进一步地,计算机设备将待生成的补偿基准点的纵坐标数据,代入至第一拟合线对应的第一直线方程中,得到待生成的补偿基准点的高度坐标数据。计算机设备综合待生成的补偿基准点的横坐标数据、纵坐标数据和高度坐标数据,得到生成完成的补偿基准点。例如,将yQ带入第一直线方程为z=koy+bo,得 到待生成的补偿基准点的高度坐标数据为zM,因此,补偿基准点M的坐标为aM=(xA,yQ,zM)。
本实施例中,通过第一拟合线和相邻测量点的坐标数据便可准确得到补偿基准点,能够使得补偿基准点更加逼近待补偿测量点的补偿基准,提高后续补偿的准确性,同时,由于第一拟合线可以把待补偿测量点的高度补偿转换到二维平面来进行,从而大大简化了数据的计算量。
在其中一个实施例中,通过各邻近区域中的至少两个相邻测量点分别构建一个直角三角形;根据待补偿测量点的坐标数据,确定各直角三角形中的两个相似直角三角形,并分别确定两个相似直角三角形之间的边长比例关系;将各至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据,均代入至各自对应的边长比例关系中,得到各待生成的补偿基准点的横坐标数据。
其中,由于相邻测量点可能存在测量不够准确的情况,使得相邻测量点A的横坐标数据与相邻测量B的横坐标数据并不相同,示例性如图8所示,图8为一个实施例中相邻测量点的分布示意图。
具体地,计算机设备在确定至少两个相邻测量点的横坐标数据不相同时,根据至少两个相邻测量点的坐标数据构建一个直角三角形,图8中的直角三角形为ΔAbo1。计算机设备将待补偿测量点的纵坐标数据,作为待生成的补偿基准点的纵坐标数据。进一步地,计算机设备待补偿测量点的坐标数据,确定各直角三角形中的两个相似直角三角形,例如,确定两个相似直角三角形为ΔAbo1和ΔAbo2,其中,o1和o2的横坐标数据均与相邻测量点A的横坐标数据相同,o2的纵坐标数据与待补偿测量点Q的纵坐标数据相同。计算机设备根据相似直角三角形之间的相似特性,确定两个相似直角三角形之间的边长比例关系,如Ao2/Ao1=Mo2/Bo1。计算机设备将至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据,均代入至边长比例关系中,得到待生成的补偿基准点的横坐标数据,也即待生成的补偿基准点M的横坐标数据xM
本实施例中,提供了一种当相邻测量点的坐标数据不符合m行n列矩阵排列形式时,通过构建直角三角形可以准确得到待生成的补偿基准点的横坐标数据,因此提供了另一种确定补偿基准点的坐标数据的具体实施方式。
在其中一个实施例中,坐标扩充模型的生成方式包括:获取扩充方向集,针对扩充方向集中的每个扩充方向,均确定与当前扩充方向相对应的模型投影平面;生成当前扩充方向相对应的模拟边缘点,并确定与模拟边缘点相对应的模拟内部点;将模拟边缘点投影至模型投影平面,得到模拟边缘投影点、以及将模拟内部点投影至模型投影平面,得到模拟内部投影点;将模拟边缘投影点和模拟内部投影点进行线性拟合处理,得到当前扩充方向对应的坐标扩充模型。
其中,扩充方向集包括向上扩充、向下扩充、向左扩充、向右扩充、向右上扩充、向左上扩充、向右下扩充和向左下扩充;模拟边缘点可为对模型进行训练时,从预设的数据库中获取的位于打印平台边缘上的测量点;模拟内部点可为对模型进行训练时,从预设的数据库获取的位于模拟边缘点邻近位置处的测量点。容易理解的,不同扩充方向对应的坐标扩充模型并不相同。由于确定扩充方向各自对应的坐标扩充模型的过程相似,下述将对确定向上扩充对应的坐标扩充模型的过程进行描述。
具体地,当前扩充方向为向上扩充时,计算机设备可将三维坐标系中的YZ平面作为向上扩充方向对应的模型投影平面,并确定向上扩充方向对应的模拟边缘点。其中,向上扩充方向对应的模拟边缘点位于打印平台的上边缘。计算机设备根据位于上边缘的模拟边缘点,从预设的数据库中获取位于模拟边缘点邻近位置处的模拟内部点,并分别将模拟边缘点投影至模型投影平面,得到模拟边缘投影点、以及将模拟内部点投影至模型投影平面,得到模拟内部投影点。例如,模拟边缘点的坐标数据为(xi(n-1),yi(n-1),zi(n-1))(i∈[0,m-1]),模拟内部点的坐标数据为(xi(n-2),yi(n-2),zi(n-2))(i∈[0,m-1])。
进一步地,参考上述对第一投影点进行线性拟合处理的具体实施方式,对模拟边缘投影点和模拟内部投影点进行线性拟合处理,得到向上扩充方向对应的坐标扩充模型。例如得到坐标扩充模型为:
在其中一个实施例中,计算机设备可将边缘测量点作为模拟边缘点,将与边缘测量点相对应的目标内部测量点作为模拟内部点。
本实施例中,通过不同的扩充方向确定不同的模型投影平面,进而根据模型投影平面建立各自对应的坐标扩充模型,使得后续基于坐标扩充模型能准确、快速的得到不同边缘测量点对应的扩充测量点。
在其中一个实施例中,根据各第二投影点的坐标数据,对待补偿测量点的坐标数据进行高度补偿,包括:对各第二投影点的坐标数据进行线性拟合处理,得到第二拟合线;将待补偿测量点的坐标数据代入至第二拟合线对应的第二直线方程中,得到待补偿测量点的高度补偿值;通过高度补偿值对待补偿测量点进行高度补偿。
具体地,计算机设备确定多个第二投影点中每个第二投影点各自对应的坐标数据,并根据每个第二投影点各自对应的坐标数据,对第二投影点进行线性拟合处理,得到第二拟合线,比如,将两个第二投影点进行线性拟合处理,得到一条第二拟合线。计算机设备通过第二拟合线和待补偿测量点的坐标数据,可对待补偿测量点进行高度补偿。例如,将第二投影点m和第二投影点n进行线性拟合处理后,得到一条第二拟合线。
进一步地,计算机设备将待补偿测量点的横坐标值,代入至第二拟合线对应的第二直线方程中,得到待补偿测量点的高度补偿值。计算机设备根据高度补偿值对待补偿测量点的竖坐标值进行更新,实现了对待补偿测量点的高度补偿。例如,将待补偿测量点Q的横坐标值xQ代入至第二直线方程z=kox+bo中,得到的高度补偿值为Δz,因此,补偿后的待补偿测量点的坐标数据为aQ=(xQ,yQ,zQ+Δz)。
本实施例中,通过第二投影点构建第二拟合线后,可以将待补偿测量点的高度补偿转换到二维平面来进行,简化了数据的计算量,如此,便可根据第二拟合线准确地实现对待补偿测量点的高度补偿。
在其中一个实施例中,在确定打印平台中位于待补偿测量点邻近位置处的多个邻近区域之前,方法还包括:获取多个测量点中的边角测量点的第一初始坐标数据和内部测量点的第二初始坐标数据;对第一初始坐标数据进行校验,得到第一校验结果,并根据第一校验结果确定边角测量点的第一校验坐标数据;根据第一校验坐标数据,构建标准平面;根据标准平面,对第二初始坐标数据 进行校验,得到第二校验结果,并根据第二校验结果确定内部测量点的第二校验坐标数据。
具体地,计算机设备对边角测量点的第一初始坐标数据进行步进更新,得到坐标步进数据,并确定第一初始坐标数据与坐标步进数据间的第一差异。当第一差值小于第一预设阈值时,计算机设备确定第一校验结果为校验通过,并将边角测量点对应的坐标步进数据,作为边角测量点的第一校验坐标数据。计算机设备根据边角测量点的第一校验坐标数据构建标准平面。计算机设备确定位于内部测量点邻近位置处的至少一个相邻测量点,并分别将内部测量点和每个相邻测量点投影至标准平面,分别得到投影坐标数据和投影相邻坐标数据。计算机设备根据内部测量点和相邻测量点,得到第一拟合方程,并根据投影坐标数据和投影相邻坐标数据,得到第二拟合方程,进而根据第一拟合方程和第二拟合方程,对内部测量点进行校验,得到第二校验结果。当第二校验结果为校验通过时,将内部测量点的第二初始坐标数据作为第二校验坐标数据。
本实施例中,通过分别对打印平台中边缘测量点和内部测量点进行校验,进而得到更准确的校验坐标数据,使得对待补偿测量点进行高度补偿时,所确定的相邻测量点的坐标数据更准确,进而提高打印平台的高度补偿效果。
应该理解的是,虽然如上的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的打印平台的高度补偿方法的打印平台的高度补偿装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个打印平台的高度补偿装置实施例中的具体限定可以参见上文中对于打印平台 的高度补偿方法的限定,在此不再赘述。
在一个实施例中,如图9所示,提供了一种打印平台的高度补偿装置900,包括:测量点确定模块902、邻近区域确定模块904、第一投影模块906、基准点确定模块908和第二投影模块910,其中:
测量点确定模块902,用于获取打印平台中的多个测量点,并确定待补偿测量点。
邻近区域确定模块904,用于确定打印平台中位于待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;相邻测量点为多个测量点中与待补偿测量点相邻的测量点。
第一投影模块906,用于将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点的坐标数据,并对至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线。
基准点确定模块908,用于根据各邻近区域各自对应的第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据。
第二投影模块910,用于将各补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各第二投影点的坐标数据,对待补偿测量点的坐标数据进行高度补偿。
在其中一个实施例中,测量点确定模块902还包括测量点扩充模块9021,用于确定打印平台中的边缘测量点,并确定边缘测量点的边缘信息;根据边缘信息,确定打印平台中与边缘测量点相对应的目标内部测量点、以及确定目标内部测量点的扩充方向;按照扩充方向对目标内部测量点进行扩充处理,得到与边缘测量点相对应的扩充测量点。
在其中一个实施例中,测量点扩充模块9021,还用于以边缘测量点为镜像中心,按照扩充方向对目标内部测量点进行对称处理,得到待生成的扩充测量点的平面坐标数据;获取与扩充方向相对应的坐标扩充模型,并将待生成的扩充测量点的平面坐标数据代入至坐标扩充模型中,得到待生成的扩充测量点的高度坐标数据;综合待生成的扩充测量点的平面坐标数据和高度坐标数据,得 到与边缘测量点相对应的扩充测量点的坐标数据。
在其中一个实施例中,测量点确定模块902还包括扩充模型确定模块9022,用于获取扩充方向集,针对扩充方向集中的每一个扩充方向,均确定与当前扩充方向相对应的模型投影平面;生成当前扩充方向相对应的模拟边缘点,并确定与模拟边缘点相对应的模拟内部点;将模拟边缘点投影至模型投影平面,得到模拟边缘投影点、以及将模拟内部点投影至模型投影平面,得到模拟内部投影点;将模拟边缘投影点和模拟内部投影点进行线性拟合处理,得到与当前扩充方向相对应的坐标扩充模型。
在其中一个实施例中,基准点确定模块908,用于判断各邻近区域中的至少两个相邻测量点的横坐标数据是否相同;当至少两个相邻测量点的横坐标数据相同时,根据至少两个相邻测量点的横坐标数据,得到各待生成的补偿基准点的横坐标数据;根据待补偿测量点的坐标数据,得到各待生成的补偿基准点的纵坐标数据;将各待生成的补偿基准点的纵坐标数据分别代入至各邻近区域各自对应的第一拟合线中,得到各待生成的补偿基准点的高度坐标数据;综合各待生成的补偿基准点的横坐标数据、纵坐标数据和高度坐标数据,得到各邻近区域各自对应的补偿基准点的坐标数据。
在其中一个实施例中,基准点确定模块908,还用于当至少两个相邻测量点的横坐标数据不相同时,通过各邻近区域中的至少两个相邻测量点分别构建一个直角三角形;根据待补偿测量点的坐标数据,确定各直角三角形中的两个相似直角三角形,并分别确定两个相似直角三角形之间的边长比例关系;将各至少两个相邻测量点的坐标数据和待补偿测量点的坐标数据,均代入至各自对应的边长比例关系中,得到各待生成的补偿基准点的横坐标数据。
在其中一个实施例中,第二投影模块910还包括拟合模块9101,用于对各第二投影点的坐标数据进行线性拟合处理,得到第二拟合线;将待补偿测量点的坐标数据代入至第二拟合线对应的第二直线方程中,得到待补偿测量点的高度补偿值;通过高度补偿值对待补偿测量点的坐标数据进行高度补偿。
在其中一个实施例中,打印平台的高度补偿装置900还包括坐标校验模块912,用于获取多个测量点中的边角测量点的第一初始坐标数据和内部测量点的 第二初始坐标数据;对第一初始坐标数据进行校验,得到第一校验结果,并根据第一校验结果确定边角测量点的第一校验坐标数据;根据第一校验坐标数据,构建标准平面;根据标准平面,对第二初始坐标数据进行校验,得到第二校验结果,并根据第二校验结果确定内部测量点的第二校验坐标数据。
上述打印平台的高度补偿装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图10所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储打印平台的高度补偿数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种打印平台的高度补偿方法。
本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。
在一个实施例中,提供了一种计算机可读存储介质,存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。

Claims (11)

  1. 一种打印平台的高度补偿方法,其特征在于,所述方法包括:
    获取打印平台中的多个测量点,并确定待补偿测量点;
    确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;所述相邻测量点为所述多个测量点中与所述待补偿测量点相邻的测量点;
    将各邻近区域中的至少两个相邻测量点投影至预设第一投影平面,得到至少两个第一投影点的坐标数据,并对所述至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线;
    根据各邻近区域各自对应的所述第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和所述待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据;
    将各所述补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿。
  2. 根据权利要求1所述的方法,其特征在于,所述多个测量点包括扩充测量点、边缘测量点和内部测量点;所述获取打印平台中的多个测量点,包括:
    确定所述打印平台中的边缘测量点,并确定所述边缘测量点的边缘信息;
    根据所述边缘信息,确定所述打印平台中与所述边缘测量点相对应的目标内部测量点、以及确定所述目标内部测量点的扩充方向;
    按照所述扩充方向对所述目标内部测量点进行扩充处理,得到与所述边缘测量点相对应的扩充测量点。
  3. 根据权利要求2所述的方法,其特征在于,所述按照所述扩充方向对所述目标内部测量点进行扩充处理,得到与所述边缘测量点相对应的扩充测量点,包括:
    以所述边缘测量点为镜像中心,按照所述扩充方向对所述目标内部测量点进行对称处理,得到待生成的扩充测量点的平面坐标数据;
    获取与所述扩充方向相对应的坐标扩充模型,并将所述待生成的扩充测量点的平面坐标数据代入至所述坐标扩充模型中,得到所述待生成的扩充测量点 的高度坐标数据;
    综合所述待生成的扩充测量点的平面坐标数据和高度坐标数据,得到与所述边缘测量点相对应的扩充测量点的坐标数据。
  4. 根据权利要求3所述的方法,其特征在于,所述坐标扩充模型的生成方式包括:
    获取扩充方向集,针对所述扩充方向集中的每一个扩充方向,均确定与当前扩充方向相对应的模型投影平面;
    生成所述当前扩充方向相对应的模拟边缘点,并确定与所述模拟边缘点相对应的模拟内部点;
    将所述模拟边缘点投影至模型投影平面,得到模拟边缘投影点、以及将所述模拟内部点投影至模型投影平面,得到模拟内部投影点;
    将所述模拟边缘投影点和所述模拟内部投影点进行线性拟合处理,得到与所述当前扩充方向相对应的坐标扩充模型。
  5. 根据权利要求1所述的方法,其特征在于,所述相邻测量点的坐标数据中包括横坐标数据;所述根据各邻近区域各自对应的所述第一拟合线、各所述邻近区域中的至少两个所述相邻测量点的坐标数据和所述待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据,包括:
    判断各邻近区域中的至少两个相邻测量点的横坐标数据是否相同;
    当所述至少两个相邻测量点的横坐标数据相同时,根据所述至少两个相邻测量点的横坐标数据,得到各待生成的补偿基准点的横坐标数据;
    根据所述待补偿测量点的坐标数据,得到各所述待生成的补偿基准点的纵坐标数据;
    将各所述待生成的补偿基准点的纵坐标数据分别代入至各邻近区域各自对应的所述第一拟合线中,得到各所述待生成的补偿基准点的高度坐标数据;
    综合各所述待生成的补偿基准点的横坐标数据、纵坐标数据和高度坐标数据,得到各邻近区域各自对应的补偿基准点的坐标数据。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    当所述至少两个相邻测量点的横坐标数据不相同时,通过各邻近区域中的 至少两个相邻测量点分别构建一个直角三角形;
    根据所述待补偿测量点的坐标数据,确定各所述直角三角形中的两个相似直角三角形,并分别确定所述两个相似直角三角形之间的边长比例关系;
    将各所述至少两个相邻测量点的坐标数据和所述待补偿测量点的坐标数据,均代入至各自对应的所述边长比例关系中,得到各所述待生成的补偿基准点的横坐标数据。
  7. 根据权利要求1所述的方法,其特征在于,所述根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿,包括:
    对各所述第二投影点的坐标数据进行线性拟合处理,得到第二拟合线;
    将所述待补偿测量点的坐标数据代入至所述第二拟合线对应的第二直线方程中,得到所述待补偿测量点的高度补偿值;
    通过所述高度补偿值对所述待补偿测量点的坐标数据进行高度补偿。
  8. 根据权利要求1所述的方法,其特征在于,在所述确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域之前,所述方法还包括:
    获取所述多个测量点中的边角测量点的第一初始坐标数据和内部测量点的第二初始坐标数据;
    对所述第一初始坐标数据进行校验,得到第一校验结果,并根据所述第一校验结果确定所述边角测量点的第一校验坐标数据;
    根据所述第一校验坐标数据,构建标准平面;
    根据所述标准平面,对所述第二初始坐标数据进行校验,得到第二校验结果,并根据所述第二校验结果确定所述内部测量点的第二校验坐标数据。
  9. 一种打印平台的高度补偿装置,其特征在于,所述装置包括:
    测量点确定模块,用于获取打印平台中的多个测量点,并确定待补偿测量点;
    邻近区域确定模块,用于确定所述打印平台中位于所述待补偿测量点邻近位置处的多个邻近区域;各邻近区域中包括至少两个相邻测量点;所述相邻测量点为所述多个测量点中与所述待补偿测量点相邻的测量点;
    第一投影模块,用于将各邻近区域中的至少两个相邻测量点投影至预设第 一投影平面,得到至少两个第一投影点的坐标数据,并对所述至少两个第一投影点的坐标数据进行线性拟合处理,得到各邻近区域各自对应的第一拟合线;
    基准点确定模块,用于根据各邻近区域各自对应的所述第一拟合线、各邻近区域中的至少两个相邻测量点的坐标数据和所述待补偿测量点的坐标数据,分别确定各补偿基准点的坐标数据;
    第二投影模块,用于将各所述补偿基准点投影至预设第二投影平面,得到各第二投影点的坐标数据,并根据各所述第二投影点的坐标数据,对所述待补偿测量点的坐标数据进行高度补偿。
  10. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述的方法的步骤。
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。
PCT/CN2023/085532 2022-06-29 2023-03-31 打印平台的高度补偿方法、装置和计算机设备 WO2024001369A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210751557.3 2022-06-29
CN202210751557.3A CN117341204A (zh) 2022-06-29 2022-06-29 打印平台的高度补偿方法、装置和计算机设备

Publications (1)

Publication Number Publication Date
WO2024001369A1 true WO2024001369A1 (zh) 2024-01-04

Family

ID=89358143

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/085532 WO2024001369A1 (zh) 2022-06-29 2023-03-31 打印平台的高度补偿方法、装置和计算机设备

Country Status (2)

Country Link
CN (1) CN117341204A (zh)
WO (1) WO2024001369A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160354980A1 (en) * 2015-06-05 2016-12-08 Xyzprinting, Inc. Three-dimensional printing appratus and method for calibrating printing inaccuracy thereof
CN107229430A (zh) * 2016-03-23 2017-10-03 深圳维示泰克技术有限公司 一种应用于3d打印的自动调平方法及其调平设备
CN107379530A (zh) * 2017-08-21 2017-11-24 华南理工大学 Fdm式3d打印机平台倾斜时的斜路补偿装置及方法
US20190022947A1 (en) * 2017-07-24 2019-01-24 Xyzprinting, Inc. Three-dimensional printing device and three-dimensional printing method
CN112815843A (zh) * 2021-01-07 2021-05-18 西安理工大学 一种3d打印过程中工件表面打印偏差的在线监测方法
CN114529652A (zh) * 2022-04-24 2022-05-24 深圳思谋信息科技有限公司 点云补偿方法、装置、设备、存储介质和计算机程序产品
US20220161498A1 (en) * 2019-04-30 2022-05-26 Hewlett-Packard Development Company, L.P. Dimensional compensations for additive manufacturing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160354980A1 (en) * 2015-06-05 2016-12-08 Xyzprinting, Inc. Three-dimensional printing appratus and method for calibrating printing inaccuracy thereof
CN107229430A (zh) * 2016-03-23 2017-10-03 深圳维示泰克技术有限公司 一种应用于3d打印的自动调平方法及其调平设备
US20190022947A1 (en) * 2017-07-24 2019-01-24 Xyzprinting, Inc. Three-dimensional printing device and three-dimensional printing method
CN107379530A (zh) * 2017-08-21 2017-11-24 华南理工大学 Fdm式3d打印机平台倾斜时的斜路补偿装置及方法
US20220161498A1 (en) * 2019-04-30 2022-05-26 Hewlett-Packard Development Company, L.P. Dimensional compensations for additive manufacturing
CN112815843A (zh) * 2021-01-07 2021-05-18 西安理工大学 一种3d打印过程中工件表面打印偏差的在线监测方法
CN114529652A (zh) * 2022-04-24 2022-05-24 深圳思谋信息科技有限公司 点云补偿方法、装置、设备、存储介质和计算机程序产品

Also Published As

Publication number Publication date
CN117341204A (zh) 2024-01-05

Similar Documents

Publication Publication Date Title
Zhou et al. Line-based camera calibration with lens distortion correction from a single image
TW200903378A (en) 3-D object fabrication methods and systems
JP2012234174A (ja) ナビゲーション装置、高度座標を決定する方法、並びに、デーベースを生成する方法
JP2010085131A (ja) 出来型確認システムおよび出来型確認プログラム、並びに出来型確認方法
US20220004840A1 (en) Convolutional neural network-based data processing method and device
CN109584327A (zh) 人脸老化模拟方法、装置以及设备
CN108711356B (zh) 矢量地理pdf地图制作中地理目标与符号图形配准方法
CN114781028A (zh) 三维模型输出为二维图纸的方法、装置、电子设备及介质
JP2018067124A (ja) シミュレーションプログラム、シミュレーション方法および情報処理装置
CN106441200A (zh) 一种多测量模式的三维测量方法
WO2024001369A1 (zh) 打印平台的高度补偿方法、装置和计算机设备
JP2017516130A5 (zh)
US10713397B2 (en) Method and apparatus for modeling a target object based on particles
CN108563915A (zh) 车辆数字化仿真测试模型构建系统及方法、计算机程序
Biancolini et al. Industrial application of the meshless morpher RBF morph to a motorbike windshield optimisation
CN115457202B (zh) 一种三维模型更新的方法、装置及存储介质
CN112184662B (zh) 应用于无人机图像拼接中的相机外参数初始方法及系统
CN109544661B (zh) 面积图绘制方法、装置、计算机设备和存储介质
Claus et al. Calculating the gravity-free shape of sheet metal parts
CN117146854B (zh) 配置车辆移动轨迹的方法及其相关装置
CN115601451B (zh) 外参数据标定方法、装置、计算机设备和存储介质
CN117245917A (zh) 坐标数据确定方法、装置、计算机设备和存储介质
CN110517321B (zh) 相机标定方法、相机及存储介质
Cheng et al. A linear approach for depth and colour camera calibration using hybrid parameters
WO2024032185A1 (zh) 高度补偿方法、装置、计算机设备和存储介质

Legal Events

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

Ref document number: 23829559

Country of ref document: EP

Kind code of ref document: A1