A scanning measurement method for a rotating body and a data compensation calibration method thereof
Through the rotary body scanning measurement method and data compensation calibration, the problems of low efficiency and insufficient accuracy of the axis measurement in the traditional method are solved, and efficient and accurate rotary body size detection and error compensation are achieved.
Patent Information
- Application Number
- CN202110993900.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-08-27
AI Technical Summary
The traditional method requires high measurement accuracy when the machine shaft rotates at high speed, but the manual detection efficiency is low and the error is large. There is a lack of efficient and accurate rotary body size detection equipment.
Using the rotary body scanning measurement method, the data processing device receives instructions to enter the tilt self-calibration mode, scans the standard calibration rod to obtain the tilt angle, adjusts the position of the lower positioning device, performs tilt compensation correction, and combines the variable speed scanning trajectory for measurement, automatic correction and data compensate.
It achieves high-precision detection of the size of the rotary body, reduces scanning errors, improves measurement efficiency and data accuracy, and ensures automatic compensation of subtle errors.
Smart Images

Figure CN113739703B
Abstract
Description
Technical Field
[0001] The invention relates to the field of laser scanning, and in particular to a rotating body scanning measurement method and a data compensation calibration method thereof. Background Art
[0002] With the development of the motor industry, various types of machine shafts are needed. Since the machine shaft needs to rotate at high speed, the accuracy of the machine shaft is extremely high. The accuracy of the machine shaft directly affects the operation of the equipment, including the life of the equipment and the noise of the equipment operation. In the traditional method, the manual detection method is used, which has high work intensity, low efficiency, and large errors. Therefore, a detection device that can efficiently and accurately measure the size parameters of the rotating body is needed. Summary of the invention
[0003] The purpose of the present invention is to solve the deficiencies of the prior art and provide a rotating body scanning measurement method and a data compensation calibration method thereof.
[0004] In order to solve the above problems, the present invention adopts the following technical solutions:
[0005] A data compensation calibration method for a rotating body scanning process comprises the following steps:
[0006] Step S1: the data processing device receives a corresponding instruction and enters a tilt self-calibration mode;
[0007] Step S2: The scanning device scans the standard calibration stick and obtains scanning data in combination with the distance measuring device;
[0008] Step S3: The data processing device obtains the tilt angle α of the standard calibration rod in the YZ plane according to the scanning data;
[0009] Step S4: Obtaining the inclination angle β of the standard calibration rod in the XZ plane according to the inclination angle α;
[0010] Step S5: Determine the relationship between the tilt angle α and the tilt angle β and the set threshold; if they are greater than the set threshold, adjust the position of the lower positioning device and display it on the display of the data processing device, and return to step S1; otherwise, enter step S6;
[0011] Step S6: Obtain tilt compensation correction parameters according to the tilt angle α and the tilt angle β, and end the step.
[0012] Furthermore, the standard calibration rod is cylindrical; the X direction is the direction in which the scanning light is emitted; the Z direction is the direction in which the scanning device moves; and the Y direction is perpendicular to the X direction and the Z direction respectively.
[0013] Furthermore, the method for obtaining the tilt angle α in the YZ plane in step 3 is as shown in the following formula:
[0014]
[0015] Wherein, L′ represents the scan width of the standard calibration rod obtained according to the scanned image; and L represents the known width of the standard calibration rod.
[0016] Furthermore, in step S4, the calculation of the inclination angle β of the standard calibration rod in the XZ plane first requires the calculation of the height change H caused by the inclination angle α in the YZ plane. α :
[0017] H α =(H*cosα+L*sinα)-H
[0018] Wherein, H represents the known height of the standard calibration rod; L represents the known width of the upper or lower end of the standard calibration rod; H α Indicates the height change caused by the tilt angle in the YZ plane; secondly, obtain the height change H of the standard calibration rod in the XZ plane β ;
[0019] H β =h-(H+H α )
[0020] Where h represents the scanning height of the standard calibration rod; according to the tilt relationship, we can obtain:
[0021] H β =(H*cosβ+L*sinβ)-H
[0022] Finally, perform trigonometric function transformation on the above formula to obtain the tilt angle β in the XZ plane:
[0023]
[0024] Here, β represents the tilt angle in the XZ plane.
[0025] Furthermore, in step S5, the position adjustment of the lower positioning device includes the following steps:
[0026] Step S51: obtaining the adjustment distance △Y of the lower positioning device in the Y direction according to the tilt angle α;
[0027] Step S52: obtaining the adjustment direction in the Y direction according to the contour and vertex coordinates of the scanned image;
[0028] Step S53: sending the adjustment distance and adjustment direction to the driver of the Y motor in the sliding assembly to control the Y motor to complete the adjustment in the Y direction;
[0029] Step S54: obtaining the adjustment distance △X of the lower positioning device in the X direction according to the tilt angle β;
[0030] Step S55: Control the X motor so that the lower positioning device adjusts the distance △X' in the positive direction or negative direction of X, wherein △X' is less than △X;
[0031] Step S56: obtaining a scanned image of the adjusted standard calibration rod;
[0032] Step S57: Determine the height change of the scanned image of the standard calibration rod. If the tilt angle β in the XZ plane of the scanned image is smaller than that before adjustment, control the X motor to continue adjusting the distance (△X-△X') in this direction, otherwise adjust the distance (△X+△X') in the opposite direction; end the step.
[0033] Furthermore, in step S52, if the sum of the upper fixed point coordinates of the scanned image is greater than the sum of the lower fixed point coordinates, the lower positioning device is moved in the positive direction of the Y direction; if the sum of the upper fixed point coordinates is less than the sum of the lower fixed point coordinates, the lower positioning device is moved in the negative direction of the Y direction.
[0034] Furthermore, in the step S51, the adjustment distance in the Y direction is △Y=H*sinα, where H represents the known height of the standard calibration rod; in the step S54, the adjustment distance in the X direction is △X=H*sinβ, where H represents the known height of the standard calibration rod; in the step S55, △X' is less than △X, and in this example, △X'=0.5*△X.
[0035] Furthermore, in step S6, the acquisition of the tilt compensation correction parameters includes the following steps:
[0036] Step S61: Obtaining a height tilt compensation coefficient A of the YZ plane through trigonometric conversion according to the tilt angle α in the YZ plane;
[0037] Step S62: performing data compensation on the height data in the scanned data obtained by scanning according to the height tilt compensation coefficient A of the YZ plane;
[0038] Step S63: Compare the compensated data with the real height data of the standard calibration rod to obtain the height tilt compensation coefficient B of the XZ plane;
[0039] Step S64: Obtain a width compensation coefficient C according to the tilt angle α in the YZ plane, and end the step;
[0040] The calculation of the height tilt compensation coefficient A of the YZ plane is as follows:
[0041]
[0042] Wherein, H represents the known height of the standard calibration rod; L represents the known width of the upper or lower end of the standard calibration rod; α represents the tilt angle in the YZ plane; the height tilt compensation coefficient B of the XZ plane is calculated as follows:
[0043]
[0044] Where β represents the tilt angle in the XZ plane; the width compensation coefficient C is calculated as follows:
[0045] C=cosα.
[0046] Furthermore, in step S6, system compensation correction parameters are obtained according to the tilt angle α and the tilt angle β, and the system compensation correction parameters are used to compensate for system errors; the system compensation correction parameters include horizontal error compensation and height error compensation.
[0047] A high-precision rotating body measurement method comprises the following steps:
[0048] Step 1: The scanning device determines whether there is a sample to be tested between the upper positioning cone and the lower positioning cone; if there is a sample to be tested, proceed to step 2; otherwise, the display of the data processing device displays that there is no sample to be tested, and the step ends;
[0049] Step 2: The scanning device quickly scans the sample to be tested, and combines with the distance measuring device to obtain the rapid scanning data of the sample to be tested;
[0050] Step 3: The data processing device obtains the quick scan data, and compares the quick scan data with the pre-stored template data; determines whether there is a corresponding pre-stored template according to the comparison result; if there is a corresponding pre-stored template, proceeds to step 4; if there is no corresponding pre-stored template, prompts to make a template, and after the template is made, proceeds to step 4;
[0051] Step 4: The data processing device obtains the detection area and the jump area according to the pre-stored template data;
[0052] Step 5: The data processing device plans a variable speed scanning trajectory according to the detection area and the jump area;
[0053] Step 6: The scanning device performs variable speed scanning on the sample to be tested according to the variable speed scanning trajectory; and transmits the variable speed scanning data to the data processing center;
[0054] Step 7: The data processing center performs compensation and correction processing on the variable speed scanning data according to any of the above methods, and ends the step.
[0055] The beneficial effects of the present invention are:
[0056] The scanning device scans the rotating body fixed on the positioning component to detect the size of the rotating body, including the length and width;
[0057] The upper and lower ends of the rotating body are fixed by the upper positioning cone of the upper positioning device and the lower positioning cone of the lower positioning device to ensure that the position of the rotating body remains unchanged during the measurement process;
[0058] By arranging elastic columns on the scanning device, the distance between the upper positioning device and the scanning device is controlled to avoid contact between the two;
[0059] By setting a limit block on the stand, the movement height of the upper positioning device and the scanning device is limited;
[0060] By setting the scanning device to perform variable speed scanning according to the variable speed scanning trajectory, compared with the traditional scanning, the data generated by the scanning is reduced while ensuring the accuracy, and the scanning efficiency is improved;
[0061] Through tilt self-calibration, check whether the upper positioning cone and the lower positioning cone are aligned. If they are not aligned, automatic correction is performed to reduce scanning errors and ensure accurate scanning data;
[0062] By performing tilt compensation and system error compensation on the scanned data, the slight tilt error and system error can be automatically compensated to further ensure the accuracy of the data;
[0063] The accuracy of the scan data is ensured by preliminary processing of the variable speed scan data. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 This is an overall schematic diagram of a measuring device according to Embodiment 1 of the present invention;
[0065] Figure 2 It is a front view of the measuring device of the first embodiment of the present invention;
[0066] Figure 3 This is a flow chart of a measurement method according to Embodiment 1 of the present invention;
[0067] Figure 4 This is a flow chart of the tilt self-calibration according to the first embodiment of the present invention;
[0068] Figure 5 This is the X-direction automatic adjustment process of the first embodiment of the present invention;
[0069] Figure 6 This is the Y-direction automatic adjustment process of the first embodiment of the present invention;
[0070] Figure 7 A height relationship diagram of the inclination of the standard calibration rod in the first embodiment of the present invention;
[0071] Figure 8This is a width relationship diagram of the standard calibration rod tilt according to the first embodiment of the present invention;
[0072] Fig. 9 This is the template making process of the first embodiment of the present invention;
[0073] Fig.10 This is a schematic diagram of the detection area of the first embodiment of the present invention;
[0074] Fig.11 This is a scan data diagram of the first embodiment of the present invention;
[0075] Fig.12 This is a scan data diagram after mean filtering according to the first embodiment of the present invention;
[0076] Fig.13 is a fitting straight line of the scanning data graph of the first embodiment of the present invention;
[0077] Fig.14 This is a schematic diagram of a standard calibration rod according to the second embodiment of the present invention;
[0078] Fig.15 This is the horizontal correction calculation process of the second embodiment of the present invention;
[0079] Fig.16 This is the height correction calculation process of the second embodiment of the present invention.
[0080] Description of the symbols in the accompanying drawings: base 1, stand 2, moving device 3, upper positioning device 4, lower positioning device 5, scanning device 6, scale grating 7, reading head 8, workbench 9. DETAILED DESCRIPTION
[0081] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0082] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0083] Embodiment 1:
[0084] like Figure 1 , 2As shown, a high-precision rotating body measuring device includes a data processing device, a fixed platform, a moving device 3, a positioning component, a scanning device 6 and a distance measuring device, wherein the moving device 3 is arranged on the fixed platform; the positioning component is divided into two parts, which are respectively arranged on the moving device 3 and the fixed platform, and the positioning component is used to fix the rotating body; the scanning device 6 is arranged on the moving device 3; the distance measuring device is arranged on the fixed platform, and the distance measuring device is used to detect the travel distance of the scanning device 6; the processing device is respectively communicated with the distance measuring device, the moving device 3 and the scanning device 6.
[0085] The fixed platform includes a base 1 and a stand 2. The stand 2 is vertically arranged on the base 1. In this example, the stand 2 is a square marble slab.
[0086] The motion device 3 includes a drive group and a screw group, wherein the drive group is arranged at the top of the stand 2, and the screw group is arranged at the side of the stand 2; the drive group is connected to the screw group in a transmission manner. The drive group includes two motors, namely motor 1 and motor 2, wherein motor 1 is used to drive the scanning component, and motor 2 is used to drive a part of the positioning component; the screw group is connected to motor 1 and motor 2 respectively. The screw group includes a screw, a positioning block and a ball nut, wherein the fixed outer block is arranged between the screw and the stand 2, and the positioning blocks are respectively located at both ends of the screw; the ball nut is arranged on the screw, and the ball nut is used to fix the scanning device 6 or the positioning component. A slide groove is also arranged on the stand 2, and the screw is arranged in the slide groove so that the ball nut can slide along the slide groove. In this example, three screws are arranged, one of which corresponds to the scanning device 6, and the other two screws correspond to the positioning component. The two screws corresponding to the positioning component are respectively connected to motor 2 through a transmission belt, and motor 2 and the two screws are distributed in a triangle. The rotation of motor 2 can drive the two screws to rotate through the transmission belt. In this example, the lead screw corresponding to the scanning device 6 is arranged between the two lead screws corresponding to the positioning assembly, so as to enable the positioning assembly and the scanning device 6 to maintain balance.
[0087] The positioning assembly includes an upper positioning device 4 and a lower positioning device 5, wherein the lower positioning device 5 is movably arranged on the base 1 of the fixed table, the upper positioning device 4 is arranged on the screw rod group, and the upper positioning device 4 is also connected to the stand 2 through a slide rail. The lower positioning device 5 includes a lower positioning cone, an adjustment seat and a sliding assembly, wherein the lower positioning cone is arranged on the adjustment seat, and the adjustment seat is movably arranged on the base 1 through the sliding assembly. In this example, the lower positioning cone is arranged on a cylinder or a round table protruding from the adjustment seat; the tip of the lower positioning cone is connected to one end of the rotating body, and cooperates with the upper positioning device 4 to clamp the rotating body. The sliding assembly includes a slide rail and a sliding motor. In this example, there are two sliding motors, which are respectively arranged on both sides of the adjustment seat, and the two sliding motors are arranged perpendicular to each other. The sliding motors are arranged on the slide rail through a slider. When one of the sliding motors is in motion, it pushes the adjustment seat to move, thereby driving the other sliding motor to slide relatively on its slide rail, thereby realizing the position adjustment of the adjustment seat; the Y motor of the two motors is used to adjust the position of the adjustment seat in the Y-axis direction, and the X motor is used to adjust the position in the X-axis direction. The lower positioning device is also provided with a protective cover, which covers the adjustment seat and the sliding assembly, and the lower positioning cone passes through the protective cover. The upper positioning device 4 includes a sliding plate and an upper positioning cone, wherein the upper positioning cone is provided on the sliding plate, and in this example, the upper positioning cone is provided on a fixed seat provided on the sliding plate; the sliding plate is fixedly provided on the ball nut of the screw rod; the upper positioning cone is directly opposite to the lower positioning cone. The sliding plate is also slidably connected to the stand 2, and in this example, the sliding plate is provided on a slide rail on the side of the stand 2, wherein there are two slide rails connected to the sliding plate, and the two slide rails are parallel to each other.
[0088] The scanning device 6 includes a sliding plate 2, a transmitting end and a receiving end, wherein the transmitting end and the receiving end are both arranged on the sliding plate 2, wherein the transmitting end and the receiving end are arranged oppositely, and a set distance is maintained between the transmitting end and the receiving end; the upper positioning cone and the lower positioning cone are located between the transmitting end and the receiving end. It should be noted that the direction of the light beam emitted by the transmitting end is perpendicular to the movement direction of the scanning device 6. The sliding plate 2 is arranged on the ball nut of the screw rod; the sliding plate 2 is also slidably connected to the stand 2, and the sliding plate 2 is arranged on the slide rail on the side of the stand 2. There are two slide rails connected to the sliding plate 2, and the two slide rails are parallel to each other. In this example, an elastic column is also arranged on the scanning device 6, and the elastic column is used to prevent the scanning device 6 from colliding with the upper positioning device 4; in addition, the elastic column can also limit the scanning range of the scanning device 6 to prevent the scanning device 6 from scanning the upper positioning device 4 into the image. The scanning device 6 is located between the upper positioning device 4 and the lower positioning device 5 in the height direction.
[0089] The distance measuring device adopts a grating ruler, including a scale grating 7 and a reading head 8, wherein the scale grating 7 is arranged on the stand 2, and the reading head 8 is arranged on the side of the scanning device 6; the reading head 8 is arranged opposite to the scale grating 7, and the reading head 8 is used to read the data on the scale grating 7 and record the distance data. The distance measuring device is connected to the data processing device for communication.
[0090] The data processing device includes a PLC device and a host computer, the host computer is connected to the PLC device; the PLC device is also communicated with the scanning device 6 and the distance measuring device respectively; the host computer includes a display, a lower computer interface and a memory, etc.; the display is used for human-computer interaction, including displaying scanned images and scanned data, etc.
[0091] It also includes a workbench 9, wherein the data processing device is arranged in the workbench 9, the base 1 is arranged in a groove on the upper surface of the workbench 9, and in this example, the upper surface of the base 1 and the upper surface of the workbench 9 are located in the same plane; the stand 2 is arranged on the base 1. Universal wheels are arranged at the bottom of the workbench 9 for easy movement.
[0092] The stand 2 is also provided with a limit block, wherein there are two limit blocks, one of which is used to limit the highest movement height of the upper positioning device 4, and the other limit block is used to limit the highest movement height of the scanning device 6; there is a height difference between the two limit blocks to avoid the highest positions of the upper positioning device 4 and the scanning device 6 interfering with each other. A drag chain is also provided on the side of the stand 2, and the drag chain is used to set the connection line on the scanning device 6 to avoid the connection line hindering the movement of the scanning device 6.
[0093] During the implementation process, the scanning device 6 is used to scan the rotating body fixed on the positioning assembly to detect the size of the rotating body, including the length and width; the upper and lower ends of the rotating body are fixed by the upper positioning cone of the upper positioning device 4 and the lower positioning cone of the lower positioning device 5 to ensure that the position of the rotating body remains unchanged during the measurement process; an elastic column is set on the scanning device 6 to control the distance between the upper positioning device 4 and the scanning device 6 to avoid contact between the two; a limit block is set on the frame 2 to limit the movement height of the upper positioning device 4 and the scanning device 6.
[0094] like Figure 3 As shown, a high-precision rotating body measurement method comprises the following steps:
[0095] Step 1: The scanning device determines whether there is a sample between the upper positioning cone and the lower positioning cone; if there is a sample to be tested, proceed to step 2; otherwise, the display of the data processing device displays that there is no sample to be tested, and the step ends;
[0096] Step 2: The scanning device quickly scans the sample to be tested, and combines with the distance measuring device to obtain the rapid scanning data of the sample to be tested;
[0097] Step 3: The data processing device obtains the quick scan data, and compares the quick scan data with the pre-stored template data; determines whether there is a corresponding pre-stored template according to the comparison result; if there is a corresponding pre-stored template, proceeds to step 4; if there is no corresponding pre-stored template, prompts to make a template, and after the template is made, proceeds to step 4;
[0098] Step 4: The data processing device obtains the detection area and the jump area according to the pre-stored template data;
[0099] Step 5: The data processing device plans a variable speed scanning trajectory according to the detection area and the jump area;
[0100] Step 6: The scanning device performs variable speed scanning on the sample to be tested according to the variable speed scanning trajectory; and transmits the variable speed scanning data to the data processing center;
[0101] Step 7: The data processing center performs compensation and correction processing on the variable speed scanning data, and ends the step.
[0102] like Figure 4 As shown, it should be noted that before step 1, the relative positions of the upper positioning cone and the lower positioning cone need to be tilted and self-calibrated; the tilt self-calibration includes the following steps:
[0103] Step S1: the data processing device receives a corresponding instruction and enters a tilt self-calibration mode;
[0104] Step S2: The scanning device scans the standard calibration rod and obtains scanning data in combination with the distance measuring device; the standard calibration rod is a rotating body with known shaft diameter and height data, and in this example, the standard calibration rod is a cylinder;
[0105] Step S3: The data processing device obtains the tilt angle α of the standard calibration rod in the YZ plane according to the scanning data;
[0106] Step S4: Obtaining the inclination angle β of the standard calibration rod in the XZ plane according to the inclination angle α;
[0107] Step S5: Determine the relationship between the tilt angle α and the tilt angle β and the set threshold; if they are greater than the set threshold, adjust the position of the lower positioning device and display it on the display of the data processing device, and return to step S1; otherwise, enter step S6;
[0108] Step S6: Obtain tilt compensation correction parameters according to the tilt angle α and the tilt angle β, and end the step.
[0109] In step S2, in this example, the standard calibration rod is cylindrical.
[0110] In step S3, the inclination angle in the YZ plane is obtained by scanning the image. In this example, the angle at which the axis of the rotating body in the scanned image deviates from the vertical direction is the inclination angle α of the standard calibration rod in the YZ plane. The scanning width L′ of the standard calibration rod is obtained according to the scanned image, and the inclination angle α in the YZ plane is obtained in combination with the known width L of the standard calibration rod, as shown in the following formula:
[0111]
[0112] In step S4, the calculation of the inclination angle β of the standard calibration rod in the XZ plane first requires the calculation of the height change H caused by the inclination angle α in the YZ plane. α :
[0113] H α =(H*cosα+L*sinα)-H
[0114] Wherein, H represents the known height of the standard calibration rod; L represents the known width of the upper end or lower end of the standard calibration rod. It should be noted that in this example, the widths of the upper end and the lower end of the standard calibration rod are the same; H α represents the height change caused by the tilt angle in the YZ plane. It should be noted that in this example, the height change represents the difference between the height after tilting and the original height. Secondly, the height change H of the standard calibration rod in the XZ plane is obtained. β ;
[0115] H β =h-(H+H α )
[0116] Where h is the scanning height of the standard calibration rod. According to the tilt relationship, we can obtain:
[0117] H β =(H*cosβ+L*sinβ)-H
[0118] Finally, perform trigonometric function transformation on the above formula to obtain the tilt angle β in the XZ plane:
[0119]
[0120] Here, β represents the tilt angle in the XZ plane.
[0121] In this example, the X direction is the direction in which the scanning light is emitted; the Z direction is the direction in which the scanning device moves, and in this example, the Z direction is the vertical direction; and the Y direction is perpendicular to the X direction and the Z direction, respectively.
[0122] like Figure 5 , 6As shown, in step S5, the content displayed on the display includes the adjustment direction and the adjustment distance; the position adjustment of the lower positioning device can be completed by the operator according to the display content on the current display or automatically adjusted by the sliding component in the lower positioning device. The adjustment distance includes the adjustment distance in the X direction and the adjustment distance in the Y direction, wherein the adjustment distance in the X direction ΔX=H×sinβ, and the adjustment distance in the Y direction ΔY=H×sinα. The adjustment direction includes the adjustment direction in the X direction and the adjustment direction in the Y direction. The adjustment direction in the Y direction is determined according to the scanned image contour and vertex coordinates. To determine the adjustment direction in the X direction, first, it is necessary to fine-tune the lower positioning device in the positive or negative direction in the X direction, and then start the scanning device to scan. If the scanning height h' of the scanned image obtained after fine-tuning is less than the scanning height h before fine-tuning, the lower positioning device is adjusted in the opposite direction of the fine-tuning; otherwise, continue to adjust in the direction of fine-tuning. In this example, the sliding component performs automatic adjustment, and the adjustment process includes the following steps:
[0123] Step S51: obtaining the adjustment distance △Y of the lower positioning device in the Y direction according to the tilt angle α;
[0124] Step S52: according to the contour and vertex coordinates of the scanned image, the adjustment direction in the Y direction is obtained; if the sum of the upper fixed point coordinates is greater than the sum of the lower fixed point coordinates, the lower positioning device is moved in the positive direction of the Y direction; if the sum of the upper fixed point coordinates is less than the sum of the lower fixed point coordinates, the lower positioning device is moved in the negative direction of the Y direction;
[0125] Step S53: sending the adjustment distance and adjustment direction to the driver of the Y motor in the sliding assembly to control the Y motor to complete the adjustment in the Y direction;
[0126] Step S54: obtaining the adjustment distance △X of the lower positioning device in the X direction according to the tilt angle β;
[0127] Step S55: Control the X motor so that the lower positioning device adjusts the distance △X' in the positive direction or negative direction of X, wherein △X' is less than △X;
[0128] Step S56: obtaining a scanned image of the adjusted standard calibration rod;
[0129] Step S57: Determine the height change of the scanned image of the standard calibration rod. If the tilt angle β in the XZ plane of the scanned image is smaller than that before adjustment, control the X motor to continue adjusting the distance (△X-△X') in this direction, otherwise adjust the distance (△X+△X') in the opposite direction; end the step.
[0130] In the step S51, the adjustment distance in the Y direction is ΔY=H*sinα, where H represents the known height of the standard calibration rod.
[0131] In the step S54, the adjustment distance in the X direction is ΔX=H*sinβ, where H represents the known height of the standard calibration rod.
[0132] In step S55, ΔX' is smaller than ΔX. In this example, ΔX'=0.5*ΔX.
[0133] It should be noted that due to the matching error between the motor and the motor drive, and the rotation error of the motor, the distance and therefore the compensation parameters will change. Therefore, the relationship between the actual adjustment distance and the obtained adjustment distance is obtained through the fitting equation, and the step S54 and the adjustment distance obtained in step S54 are adjusted through the fitting equation; in this case, it is a fifth-order fitting equation, expressed as y=ax^5+bx^4+cx^3+dx^2+ex+f.
[0134] like Figure 7 , 8 As shown, in step S6, the tilt compensation correction parameter is used to compensate the scan data obtained by the scanning device to improve the accuracy of the scan data. Because it is difficult to adjust the slight error by a manual adjustment device, compensation is performed by data calculation in this example. Obtaining the tilt compensation correction parameter includes the following steps:
[0135] Step S61: Obtaining a height tilt compensation coefficient A of the YZ plane through trigonometric conversion according to the tilt angle α in the YZ plane;
[0136] Step S62: performing data compensation on the height data in the scanned data obtained by scanning according to the height tilt compensation coefficient A of the YZ plane;
[0137] Step S63: Compare the compensated data with the real height data of the standard calibration rod to obtain the height tilt compensation coefficient B of the XZ plane;
[0138] Step S64: Obtain the width compensation coefficient C according to the tilt angle α in the YZ plane, and end the step.
[0139] In step S61, the height tilt compensation coefficient A of the YZ plane is calculated as follows:
[0140]
[0141] Wherein, H represents the known height of the standard calibration rod; L represents the known width of the upper end or the lower end of the standard calibration rod; and α represents the tilt angle in the YZ plane.
[0142] In step S63, the height tilt compensation coefficient B of the XZ plane is calculated as follows:
[0143]
[0144] Here, β represents the tilt angle in the XZ plane.
[0145] In step S64, the width compensation coefficient C is calculated as follows:
[0146] C=cosα
[0147] In step 1, whether there is a sample to be tested between the upper positioning cone and the lower positioning cone is determined by whether there is a scanning image at a set height of the scanning device. In this example, the set height is the top height of the lower positioning cone. After the scanning device determines whether there is a sample to be tested, it returns to the initial position. In some other embodiments, it is also possible to determine whether there is a sample to be tested between the upper positioning cone and the lower positioning cone by the degree of the pressure sensor set on the lower positioning device, or to determine whether there is a sample to be tested between the upper positioning cone and the lower positioning cone by the torque of the motor 1 corresponding to the upper positioning cone.
[0148] The fast scan in step 2 is that the scanning device scans at a set speed at a uniform speed; the scanning data includes the width data obtained by the scanning device and the height data obtained by the ranging device, and the height data and the width data are correlated with each other according to the time relationship. In this example, the PLC receives the data of the scanning device and the ranging device respectively, and uploads the two parts of data to the host computer synchronously according to the receiving time.
[0149] like Fig. 9 As shown, the process of making the template in step 3 includes the following steps:
[0150] Step 31: The scanning device quickly scans the template sample to obtain the quick scanning data of the template sample;
[0151] Step 32: The data processing device acquires and stores the rapid scan data;
[0152] Step 33: Obtain the transition region of the width of the template sample according to the fast scanning data, and obtain the detection region according to the transition region; in this example, the detection region is the region between adjacent transition regions;
[0153] Step 34: acquiring a variable speed scanning trajectory according to the detection area and the jump area; the scanning device performs variable speed scanning on the template sample according to the variable speed scanning trajectory; and transmitting the variable speed scanning data to the data processing center;
[0154] Step 35: The data processing center performs compensation and correction processing on the variable speed scanning data, and stores the compensated scanning data and the detection area, and ends the step.
[0155] In step 32, the storage of the data processing device includes four parts, two of which are stored in a group, and the two storage parts in each group of storage are used to store the height of the distance measurement and the width of the scan respectively; after one group of storage is full, it switches to another group of storage, and uploads the stored data in the full storage part to the host computer; by setting the two groups of storage to switch with each other, the scanning process is ensured to be continuous and the scanning efficiency is improved. During the scanning of the sample to be tested, the data processing device also stores the scanned data in the above storage method.
[0156] like Fig.10 As shown, the acquisition of the detection area in step 33 includes the following steps:
[0157] Step 331: segmenting the height of the image according to the result of the rapid scan and the change point of the width of the scanned image;
[0158] Step 332: Take out the endpoints of all height segments, and diffuse the endpoints upward and downward to obtain the jump area; in this example, the set value is added or subtracted from the endpoints of the image height segment to obtain the range of the jump area;
[0159] Step 333: Use the area between adjacent jump areas as the detection area and end the step.
[0160] The variable speed scanning in step 34 is the same as the variable speed scanning in step 5.
[0161] In step 5, the planning process of the variable speed scanning trajectory pair includes the following steps:
[0162] Step 51: Segment the height according to the read detection area and jump area;
[0163] Step 52: Set the detection area to fast scan and the transition area to slow scan.
[0164] The fast scan and slow scan in step 52 represent the moving speed of the scanning device, wherein the scanning data frequency of the scanning device is consistent, and in this example the scanning frequency is 2500 Hz.
[0165] In step 6, after receiving the variable speed scanning data, the data processing device will perform preliminary processing on the variable speed scanning data to obtain accurate scanning data. The preliminary processing includes outer diameter measurement processing, height measurement processing and synchronous measurement processing.
[0166] The outer diameter measurement process includes the following steps:
[0167] Step 601: Read the range of each detection area from pre-stored template data, including the height starting point start and the height ending point end;
[0168] Step 602: Obtain the width detection value I_s corresponding to the height starting point start and the width detection value I_e corresponding to the height ending point end, and all width detection data sets between them, expressed as Mear = [I_s, I_e];
[0169] Step 603: filter the width detection data set; in this example, the filtering process includes median filtering and smoothing filtering;
[0170] Step 604: Obtain the mean of the filtered width detection data set, and use the mean as the width value of the detection area; use the difference between the maximum value and its mean in the width detection data set Mear as the upper tolerance, and the difference between the minimum value and its mean as the lower tolerance; end the step.
[0171] like Figure 11-13 As shown, the steps of height measurement processing include:
[0172] Step 611: acquiring an outer diameter scanning data set W and a height scanning data set V of each jump region according to the height range of the jump region in the pre-stored template data; wherein the outer diameter scanning data set W includes a number of outer diameter data Mear_w, and the height scanning data set V includes a number of height data Mear_v;
[0173] Step 612: Perform differential processing on all outer diameter data Mear_w, and take the points where the differential value is greater than the set threshold as step change points, and obtain a plurality of change points;
[0174] Step 613: Obtain the height hmax corresponding to the point with the maximum difference value, and obtain the height neighborhood D=(hmax-d, hmax+d) centered thereon; wherein d is a set value;
[0175] Step 614: perform mean filtering on all the external longitude data in the height neighborhood D to obtain a data set d1;
[0176] Step 615: Calculate the slope of each point of the data set d1 to obtain a slope set d2;
[0177] Step 616: traverse the slope set d2 and filter out all index sets d3 whose slope values are greater than a set threshold;
[0178] Step 617: select data from the data set d1 according to the range of the index set d3, and perform straight line fitting on the data to obtain a straight line equation of y=ix+j, where y represents width information and x represents height information;
[0179] Step 618: Obtain the width information of the jump area in the pre-stored template, substitute the width information into the fitted straight line equation, obtain height data, and use the height data as the jump point height when measuring the sample to be tested.
[0180] In step 618, the jump point height indicates the height at which the width of the sample to be tested changes.
[0181] For synchronous measurement processing, it is first necessary to determine the number of width data collected corresponding to the height data at each moment, and the number of heights collected corresponding to the width data at each moment; if the height data and the width data do not correspond to each other, the average of the height data or width data greater than one is calculated, and the average value obtained is used as the final height data or width data. In this example, if one height data corresponds to multiple width data, the multiple width data are averaged, and the average width value obtained is used as the width value of the rotating body to be tested at this height; similarly, if the width data at one moment corresponds to multiple height data, the multiple height data are averaged, and the average height value obtained is corresponded to the width data. Because in the actual measurement process, due to the phase difference between the scanning device and the distance measuring device and the delay of data transmission, it is possible that when the scanning device outputs data, the distance measuring device has no data output, or when the distance measuring device outputs data, the scanning device has no data output, which will cause errors in the detection data.
[0182] In step 7, the scan data acquired in step 6 is compensated according to preset tilt compensation correction parameters; in this example, the tilt compensation correction parameters are acquired in step S6, including height tilt compensation coefficients A, B and width compensation coefficient C. The compensated height H 补 The calculation of is as follows:
[0183] H 补 =H 测 ×A×B
[0184] Among them, H 测 Indicates the height measurement value of the sample to be tested, A indicates the height compensation coefficient A, and B indicates the height compensation coefficient B. The width L after compensation 补 The calculation of is as follows:
[0185] L 补 =L 测 ×cosα
[0186] Among them, L 测 Indicates the width measurement value of the sample to be tested.
[0187] During the implementation process, the scanning device is set to perform variable speed scanning according to the variable speed scanning trajectory. Compared with traditional scanning, the data generated by scanning is reduced while ensuring accuracy, thereby improving scanning efficiency; through tilt self-calibration, the alignment between the upper positioning cone and the lower positioning cone is checked. If not, correction is performed to reduce scanning errors and ensure the accuracy of scanning data; through tilt compensation of the scanning data, slight tilt errors are automatically compensated to further ensure data accuracy; through preliminary processing of the variable speed scanning data, the accuracy of the scanning data is ensured.
[0188] Embodiment 2:
[0189] This embodiment is obtained based on the first embodiment, wherein before step 1, the relative positions of the upper positioning cone and the lower positioning cone need to be tilted and self-calibrated; the tilt self-calibration includes the following steps:
[0190] Step S1: the data processing device receives a corresponding instruction and enters a tilt self-calibration mode;
[0191] Step S2: The scanning device scans the standard calibration rod and obtains scanning data in combination with the distance measuring device; the standard calibration rod is a rotating body with known shaft diameter and height data;
[0192] Step S3: The data processing device obtains the tilt angle α of the standard calibration rod in the YZ plane according to the scanning data;
[0193] Step S4: Obtaining the inclination angle β of the standard calibration rod in the XZ plane according to the inclination angle α;
[0194] Step S5: Determine the relationship between the tilt angle α and the tilt angle β and the set threshold; if they are greater than the set threshold, adjust the position of the lower positioning device and display it on the display of the data processing device, and return to step S1; otherwise, enter step S6;
[0195] Step S6: Obtain system compensation correction parameters and end the step.
[0196] like Fig.14 As shown, in step S2, the standard calibration rod includes a cylindrical segment and a spherical segment, wherein the cylindrical segment and the spherical segment are arranged alternately, and the lengths of the cylindrical segment and the spherical segment are equal, and the number of cylindrical segments and spherical segments on the standard calibration rod is equal, the purpose of which is to make the scanned image of the standard calibration rod and the scanned image after its flipping complementary. In addition, when tilted in the X direction, the height of the scanned image is reduced, and the jump edge of the cylindrical segment and the arc segment is arc-shaped, but it does not affect the scanning result of the diameter; when tilted in the Y direction, the height of the scanned image is reduced, and the diameter scanning result of the cylindrical end is affected.
[0197] like Fig.15As shown, in step S6, the system compensation correction parameters include horizontal error compensation and height error compensation. The horizontal error compensation is as follows:
[0198] Step S601: obtaining a scanned image of a standard calibration stick;
[0199] Step S602: Obtain a boundary distance based on the scanned image of the cylindrical segment and the boundary of the scanned image. The boundary distance represents the distance from the cylindrical segment image to the scanned image. The boundary distance data is represented by a T [d1,d2,...d n ], the corresponding height is represented by h T :[h1,h2,...h n ];
[0200] Step S603: Obtain a linear function f(h)=ph+q of the cylindrical segment image by least squares fitting;
[0201] Step S604: Obtain the tilt angle value α in the Y direction according to a linear function, where tanα=p;
[0202] Step S605: Obtaining the horizontal direction error compensation coefficient △l=r 直径 -r 测量 *cosα, r 直径 represents the true diameter of the cylindrical segment, r 测量 It represents the scanning measurement diameter of the cylindrical segment, and △l represents the system error.
[0203] In step S604, since the tilt angle β of the standard calibration rod in the XZ plane does not affect the scanning result of the diameter, only the tilt angle α in the YZ plane needs to be considered.
[0204] like Fig.16 As shown, the height error compensation is as follows:
[0205] Step S611: Based on the scanned image of the standard calibration rod, obtain the scanned data A of one of the spherical segments: And perform differential processing on the second column of data to obtain detR: where h T :[h1,h2,...h n ] indicates height, r T :[r1,r2,...r n ] represents the width, α represents the tilt angle value in the YZ plane;
[0206] Step S612: According to detR, obtain the two points with the largest absolute values, whose corresponding height values are V1 and V2 respectively; set b'=(H1+H2) / 2;
[0207] Step S613: Extract data S from data A with V1 as the starting point and V2 as the end point: Among them, V1 and V2 represent the initial height and the end height of the spherical segment respectively, V1 corresponds to the height value H1, and V2 corresponds to the height value Hm;
[0208] Step S614: Obtain the general equation x of the image of the sphere segment according to the height b' of the center of the circle 2 +(y+b') 2 =r 2 , where r is the input setting value, in this case r is the true diameter of the spherical segment;
[0209] Step S615: According to the relationship between the chord length and radius of the circle, obtain Where R represents the radius, L represents the chord length, and H represents the height;
[0210] Step S616: Take the second column of data in data S and bring it into Obtain As a high truth value;
[0211] Step S617: Establish a mapping relationship F(X) so that Established;
[0212] Step S618: Through the “rounding function” method, and Segmentation; in this example, 0.02mm is set as the segmentation unit, one millimeter can be divided into 50 segments, and the data of the first segment is expressed as and the corresponding
[0213] Step S619: As x, As F(X), the least square method is used for fitting to obtain the values of A and z in F(X)=Ax+z;
[0214] Step S6110: Calculate the correction coefficients A and z for all segments to obtain the height correction coefficient matrix
[0215] Step S6111: for the remaining arc segments, obtain the height correction coefficients of all arc segments according to steps S611-S6110;
[0216] Step S6112: Flip the calibration rod and repeat steps S611-S6111 to obtain the height calibration parameters of all heights of the standard calibration rod, and end the steps.
[0217] The above description is only a specific example of the present invention and does not constitute any limitation to the present invention. It is obvious that for professionals in this field, after understanding the content and principle of the present invention, various modifications and changes in form and details may be made without departing from the principle and structure of the present invention, but these modifications and changes based on the idea of the present invention are still within the scope of protection of the claims of the present invention.
Claims
1. A data compensation calibration method for a rotating body scanning process, characterized in that: The steps include: Step S1: the data processing device receives a corresponding instruction and enters a tilt self-calibration mode; Step S2: The scanning device scans the standard calibration stick and obtains scanning data in combination with the distance measuring device; Step S3: The data processing device obtains the tilt angle α of the standard calibration rod in the YZ plane according to the scanning data; Step S4: Obtaining the inclination angle β of the standard calibration rod in the XZ plane according to the inclination angle α; Step S5: Determine the relationship between the tilt angle α and the tilt angle β and the set threshold; if they are greater than the set threshold, adjust the position of the lower positioning device and display it on the display of the data processing device, and return to step S1; otherwise, enter step S6; Step S6: Obtain tilt compensation correction parameters according to the tilt angle α and the tilt angle β, and end the step; in the step S6, a system compensation correction parameter is also obtained according to the tilt angle α and the tilt angle β, and the system compensation correction parameter is used to compensate for the system error; the system compensation correction parameter includes horizontal error compensation and height error compensation.
2. The data compensation calibration method for a rotating body scanning process according to claim 1, characterized in that: The standard calibration rod is cylindrical; the X direction is the direction in which the scanning light is emitted; the Z direction is the direction in which the scanning device moves; and the Y direction is perpendicular to the X direction and the Z direction respectively.
3. The data compensation calibration method for a rotating body scanning process according to claim 2, characterized in that: The method for obtaining the tilt angle α in the YZ plane in step S3 is as follows: Wherein, L′ represents the scan width of the standard calibration rod obtained according to the scanned image; and L represents the known width of the standard calibration rod.
4. The data compensation calibration method for a rotating body scanning process according to claim 3, characterized in that: In step S4, the calculation of the inclination angle β of the standard calibration rod in the XZ plane first requires the calculation of the height change H caused by the inclination angle α in the YZ plane. α : H α =(H*cosα+L*sinα)-H Wherein, H represents the known height of the standard calibration rod; L represents the known width of the upper or lower end of the standard calibration rod; H α represents the height change caused by the tilt angle in the YZ plane; secondly, obtain the height change H of the standard calibration rod in the XZ plane β ; H β =h-(H+H α ) Where h represents the scanning height of the standard calibration rod; according to the tilt relationship, we can obtain: H β =(H*cosβ+L*sinβ)-H Finally, perform trigonometric function transformation on the above formula to obtain the tilt angle β in the XZ plane: Here, β represents the tilt angle in the XZ plane.
5. The data compensation calibration method for a rotating body scanning process according to claim 2, characterized in that: In step S5, the position adjustment of the lower positioning device includes the following steps: Step S51: obtaining the adjustment distance △Y of the lower positioning device in the Y direction according to the tilt angle α; Step S52: obtaining the adjustment direction in the Y direction according to the contour and vertex coordinates of the scanned image; Step S53: sending the adjustment distance and adjustment direction to the driver of the Y motor in the sliding assembly to control the Y motor to complete the adjustment in the Y direction; Step S54: obtaining the adjustment distance △X of the lower positioning device in the X direction according to the tilt angle β; Step S55: Control the X motor so that the lower positioning device adjusts the distance △X' in the positive direction or negative direction of X, wherein △X' is less than △X; Step S56: obtaining a scanned image of the adjusted standard calibration rod; Step S57: Determine the height change of the scanned image of the standard calibration rod. If the tilt angle β in the XZ plane of the scanned image is smaller than that before adjustment, control the X motor to continue adjusting the distance (△X-△X') in this direction, otherwise adjust the distance (△X+△X') in the opposite direction; end the step.
6. The data compensation calibration method for a rotating body scanning process according to claim 5, characterized in that: In step S52, if the sum of the upper fixed point coordinates of the scanned image is greater than the sum of the lower fixed point coordinates, the lower positioning device is moved in the positive direction of the Y direction; if the sum of the upper fixed point coordinates is less than the sum of the lower fixed point coordinates, the lower positioning device is moved in the negative direction of the Y direction.
7. The data compensation calibration method for a rotating body scanning process according to claim 5, characterized in that: In step S51, the adjustment distance in the Y direction is △Y=H*sinα, where H represents the known height of the standard calibration rod; in step S54, the adjustment distance in the X direction is △X=H*sinβ, where H represents the known height of the standard calibration rod; in step S55, △X' is less than △X, and in this example, △X'=0.5*△X.
8. The data compensation calibration method for a rotating body scanning process according to claim 4, characterized in that: In step S6, the tilt compensation correction parameters are obtained, including the following steps: Step S61: Obtaining a height tilt compensation coefficient A of the YZ plane through trigonometric conversion according to the tilt angle α in the YZ plane; Step S62: performing data compensation on the height data in the scanned data obtained by scanning according to the height tilt compensation coefficient A of the YZ plane; Step S63: Compare the compensated data with the real height data of the standard calibration rod to obtain the height tilt compensation coefficient B of the XZ plane; Step S64: Obtain a width compensation coefficient C according to the tilt angle α in the YZ plane, and end the step; The calculation of the height tilt compensation coefficient A of the YZ plane is as follows: Wherein, H represents the known height of the standard calibration rod; L represents the known width of the upper or lower end of the standard calibration rod; α represents the tilt angle in the YZ plane; the height tilt compensation coefficient B of the XZ plane is calculated as follows: Where β represents the tilt angle in the XZ plane; the width compensation coefficient C is calculated as follows: C = cosα.
9. A high-precision rotating body measurement method, characterized in that: The steps include: Step 1: The scanning device determines whether there is a sample to be tested between the upper positioning cone and the lower positioning cone; if there is a sample to be tested, proceed to step 2; otherwise, the display of the data processing device displays that there is no sample to be tested, and the step ends; Step 2: The scanning device quickly scans the sample to be tested, and combines with the distance measuring device to obtain the rapid scanning data of the sample to be tested; Step 3: The data processing device obtains the rapid scan data, and compares the rapid scan data with the pre-stored template data; determines whether there is a corresponding pre-stored template according to the comparison result; if there is a corresponding pre-stored template, proceeds to step 4; If there is no corresponding pre-stored template, you will be prompted to create a template. After completing the template creation, proceed to step 4; Step 4: The data processing device obtains the detection area and the jump area according to the pre-stored template data; Step 5: The data processing device plans a variable speed scanning trajectory according to the detection area and the jump area; Step 6: The scanning device performs variable speed scanning on the sample to be tested according to the variable speed scanning trajectory; and transmits the variable speed scanning data to the data processing center; Step 7: The data processing center performs compensation correction processing on the variable speed scanning data according to the method described in any one of claims 1 to 8, and ends the step.
