Calibration method of measuring device, measuring method, device, medium and program product

By using calibration parts and image feature processing in the measurement device, the posture deviation relationship parameters between the laser lines are obtained, which solves the problem of large thickness errors in measuring object thickness with through-beam laser cameras, achieving more accurate thickness calculations and reducing Signal interference.

CN118376166BActive Publication Date: 2024-10-22카도 인텔리전트 테크놀로지 (상하이) 컴퍼니 리미티드
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410818233.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-22
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

In industrial inspection, when two through-beam line laser cameras are used to measure the thickness of an object, the method of relying on human eyes to determine whether the laser lines overlap is inaccurate, resulting in a large thickness calculation error.

Method used

By arranging at least a pair of a first line laser ranging sensor and a second line laser ranging sensor in the measurement device, using a calibration piece to form a symmetrical calibration pattern, obtaining image features and achieving coincidence in the same image coordinate system, the pose deviation is obtained Relational parameters used to compensate for misaligned deviations between laser lines and perform alignment processing to obtain accurate thickness data.

Benefits of technology

It improves the accuracy of laser line coincidence, reduces thickness measurement errors, and avoids mutual signal interference problems between cameras.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118376166B_ABST
    Figure CN118376166B_ABST
Patent Text Reader

Abstract

In the disclosed embodiments, a calibration method, a measuring method, a device, a medium and a program product for a measuring device are provided. The calibration method includes: synchronously irradiating the surfaces of two opposite sides of a calibration piece by a first line laser ranging sensor and a second line laser ranging sensor to obtain a first calibration depth image and a second calibration depth image; wherein the calibration piece forms at least two through-portions between the two opposite side surfaces to form a pair of symmetrical calibration patterns; based on the goal of achieving overlap of a pair of image features in the same image coordinate system, a posture deviation relationship parameter between a pair of image features is obtained; wherein the posture deviation relationship parameter is used to compensate for the deviation of non-overlap between the line lasers of the first line laser ranging sensor and the second line laser ranging sensor. Through this calibration method, the accuracy of overlap can be effectively improved by getting rid of the reliance on human eye observation for alignment, so that the two line lasers do not have to completely overlap, and the problem of mutual signal interference between cameras can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of measurement technology, and in particular to a calibration method of a measurement device, a measurement method, a device, a medium and a program product. Background Art

[0002] A 3D camera is a camera device that can capture three-dimensional spatial information. Unlike traditional cameras, 3D cameras can obtain calibrated depth images of objects, thereby achieving three-dimensional reconstruction and measurement of objects. In the fields of computer vision, virtual reality, augmented reality, robotics, etc., 3D cameras are widely used, providing more realistic and accurate data for various application scenarios.

[0003] In industrial inspection, it is necessary to detect the thickness of the object, and use the thickness data of each part to determine whether the object is qualified. Therefore, a 3D camera is needed. Usually, a 3D laser camera is used, such as a relatively low-cost line laser camera, which can also be called a line laser ranging sensor. The line laser ranging sensor includes a pair of laser transmitters and a laser receiver. Its imaging principle is to emit laser to the surface of the object through the laser transmitter, and then capture the reflected light through the laser receiver, and obtain the depth value according to, for example, the time from the emission to the receipt of the laser signal. The line laser ranging sensor emits a line of laser at a time, so the depth value of each point on a line of the object can be calculated each time, so that in the process of the object moving through, the depth value of each point on each line of the object is gradually calculated to form the depth value of each point on a surface of the object. If only one line laser camera is used, only the depth value between the surfaces of the irradiated object can be obtained, and the thickness of the measured object cannot be obtained. Therefore, two opposing line laser cameras are used to measure the depth values ​​of the surfaces on both sides of the object, and the distance between the two line laser cameras is obtained by combining the measurements. The thickness of the measured object can be obtained by subtracting the two depth values. However, using two cameras also leads to problems. When calculating the thickness, the two depth values ​​need to be in the same thickness direction, that is, the laser lines emitted by the two laser cameras need to overlap in the thickness direction.

[0004] Usually, two cameras are mounted on a movable camera bracket, and the camera position and posture are roughly and finely adjusted with human observation, so that the two laser lines detected by the camera on the object to be measured overlap. However, this method of relying on human observation to judge whether the laser lines overlap is very inaccurate. It is difficult to distinguish extremely small errors and it is difficult to know the exact distance between the two laser lines, resulting in large errors in the calculation of the object thickness. Summary of the invention

[0005] In view of the above-mentioned shortcomings of the prior art, the purpose of the present disclosure is to provide a calibration method, a measuring method, a device, a medium and a program product for a measuring device, so as to solve the problem of large error in measuring the thickness of an object by a through-beam laser camera in the related art.

[0006] According to a first aspect of the present disclosure, there is provided a calibration method for a measuring device, wherein the measuring device comprises at least a pair of a first line laser ranging sensor and a second line laser ranging sensor which are arranged in opposite emission directions; the calibration method comprises: synchronously irradiating surfaces on opposite sides of a calibration piece by the first line laser ranging sensor and the second line laser ranging sensor to obtain a first calibration depth image and a second calibration depth image; wherein the calibration piece forms at least two through portions between the opposite two side surfaces to form a pair of symmetrical calibration patterns on the opposite two side surfaces; the pair of calibration patterns contain a pair of matching image features; based on achieving overlap of the pair of image features in the same image coordinate system, obtaining a posture deviation relationship parameter between the pair of image features; wherein the posture deviation relationship parameter is used to compensate for the deviation of non-overlap between the line lasers of the first line laser ranging sensor and the second line laser ranging sensor.

[0007] In an embodiment of the first aspect, the goal of obtaining the position deviation relationship parameters between a pair of image features based on achieving overlap between the pair of image features in the same image coordinate system includes: obtaining a rotation and / or translation matrix for achieving overlap in relative motion between the pair of image features.

[0008] In an embodiment of the first aspect, the method further includes: aligning the first calibrated depth image and the second calibrated depth image according to the overlap between the line lasers according to the posture deviation relationship parameters, and combining the first calibrated depth image, the second calibrated depth image and the thickness data of the calibration part after the alignment processing to obtain a preset distance between the first line laser ranging sensor and the second line laser ranging sensor.

[0009] In an embodiment of the first aspect, the image features include straight line features.

[0010] In an embodiment of the first aspect, the through portion includes a through hole extending along a thickness direction between two side surfaces of the calibration member.

[0011] In an embodiment of the first aspect, the cross-sectional shape of the through hole is a centrally symmetrical shape, and the connecting line between the centers of two through holes constitutes a straight line feature; and / or the cross-sectional shape of the through hole is one of the following: circle; rhombus; square; equilateral triangle.

[0012] A second aspect of the present disclosure provides a measurement method, which is applied to a measurement device, wherein the measurement device includes at least a pair of a first line laser ranging sensor and a second line laser ranging sensor arranged in opposite directions; the measurement method includes: obtaining the first line laser ranging sensor and the second line laser ranging sensor to synchronously illuminate surfaces on opposite sides of an object to be measured to obtain first depth information and second depth information; based on the posture deviation relationship parameters obtained by the calibration method described in any one of the first aspects, aligning the first depth information and the second depth information according to the overlap between the line lasers, and obtaining thickness data of the object to be measured based on the aligned first depth information and the second calibrated depth information, and a preset distance between the first line laser ranging sensor and the second line laser ranging sensor.

[0013] According to a third aspect of the present disclosure, there is provided a measuring device, comprising: at least one pair of first line laser ranging sensors and second line laser ranging sensors arranged in opposite directions; a control unit, communicatively coupled to the at least one pair of first line laser ranging sensors and second line laser ranging sensors, for obtaining the first line laser ranging sensors and the second line laser ranging sensors synchronously irradiating surfaces of opposite sides of an object to be measured to obtain first depth information and second depth information; based on the posture deviation relationship parameters obtained by the calibration method described in any one of the first aspects, aligning the first depth information and the second depth information according to the overlap between the line lasers, and obtaining thickness data of the object to be measured based on the aligned first depth information and the second calibrated depth information, and a preset distance between the first line laser ranging sensor and the second line laser ranging sensor.

[0014] A fourth aspect of the present disclosure provides a computer-readable storage medium storing program instructions, wherein the program instructions are executed to perform the calibration method as described in any one of the first aspect; or, to perform the measurement method as described in the second aspect.

[0015] A fifth aspect of the present disclosure provides a computer program product, comprising: program instructions for executing the calibration method as described in any one of the first aspects or executing the measurement method as described in the second aspect.

[0016] As described above, the present disclosure provides a calibration method, a measuring method, a device, a medium and a program product for a measuring device, wherein the calibration method comprises: irradiating the surfaces of the two opposite sides of a calibration piece synchronously by the first line laser ranging sensor and the second line laser ranging sensor to obtain a first calibration depth image and a second calibration depth image; wherein the calibration piece forms at least two through-portions between the two opposite side surfaces to form a pair of symmetrical calibration patterns on the two opposite side surfaces; the pair of calibration patterns contain a pair of matching image features; based on the goal of achieving overlap of the pair of image features in the same image coordinate system, a posture deviation relationship parameter between the pair of image features is obtained; wherein the posture deviation relationship parameter is used to compensate for the deviation of the non-overlap between the line lasers of the first line laser ranging sensor and the second line laser ranging sensor. Through this calibration method, the accuracy of overlap can be effectively improved by getting rid of the reliance on human eye observation for alignment, and the two line lasers do not need to be completely overlapped, and the problem of mutual signal interference between cameras can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1a Schematic diagram showing the front view of the object entering the measurement setup.

[0018] Figure 1b Schematic diagram showing the front view of an object after it passes through the measuring device.

[0019] Figure 1c Schematic diagram showing the structure of the measuring device from a side view.

[0020] Figure 2 A schematic diagram showing a flow chart of a calibration method for a measuring device in an embodiment of the present disclosure.

[0021] Figure 3 A schematic diagram showing the structure of a calibration component in an embodiment of the present disclosure is shown.

[0022] Figure 4a A schematic diagram showing the angular deviation between a pair of straight line features in an embodiment of the present disclosure.

[0023] Figure 4b A schematic diagram showing the position deviation between a pair of straight line features in an embodiment of the present disclosure.

[0024] Figure 5 A flow chart showing a measurement method in one embodiment of the present disclosure.

[0025] Figure 6 A schematic diagram of the circuit structure of a measuring device in one embodiment of the present disclosure is shown.

[0026] Figure 7 A schematic diagram showing the circuit structure of a computer device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0027] The following is an explanation of the embodiments of the present disclosure by specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the information disclosed by the present disclosure. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in the present disclosure can also be modified or changed in various ways according to different viewpoints and application modules without departing from the spirit of the present disclosure. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0028] The following is a detailed description of the embodiments of the present disclosure with reference to the accompanying drawings so that those skilled in the art can easily implement the present disclosure. The present disclosure can be embodied in many different forms and is not limited to the embodiments described herein.

[0029] In the representations of the present disclosure, the reference terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" and the like mean that the specific features, structures, materials or characteristics represented in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics represented may be combined in any one or a group of embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples represented in the present disclosure and the features of different embodiments or examples, unless they are mutually contradictory.

[0030] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the representation of the present disclosure, "a group" means two or more, unless otherwise clearly and specifically defined.

[0031] In order to clearly describe the present disclosure, components not related to the description are omitted, and the same reference numerals are given to the same or similar components throughout the specification.

[0032] Throughout the specification, when a device is said to be "connected" to another device, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a device is said to "include" a certain component, unless otherwise stated, it does not exclude other components, but means that other components may be included.

[0033] Although the terms first, second, etc. are used to represent various elements in this article in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first interface and the second interface, etc. are represented. Moreover, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate that there are the described features, steps, operations, elements, modules, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or a group of other features, steps, operations, elements, modules, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Only when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way, will there be an exception to this definition.

[0034] The technical terms used herein are only used to refer to specific embodiments and are not intended to limit the present disclosure. The singular form used herein also includes the plural form unless the sentence clearly indicates the contrary meaning. The meaning of "including" used in the specification is to specify specific characteristics, regions, integers, steps, operations, elements and / or components, and does not exclude the existence or addition of other characteristics, regions, integers, steps, operations, elements and / or components.

[0035] Although not defined differently, all terms, including technical and scientific terms used herein, have the same meaning as those generally understood by those skilled in the art to which the present disclosure belongs. Terms defined in commonly used dictionaries are additionally interpreted as having meanings consistent with relevant technical literature and the message of the present disclosure, and shall not be overly interpreted as ideal or very formal meanings unless defined.

[0036] In the related art, two opposing line laser cameras are used to measure the depth values ​​of the surfaces of the opposite sides of an object. The thickness of the object being measured can be obtained by combining the measured distance between the two line laser cameras and subtracting the two depth values. When calculating the thickness, the two depth values ​​need to be for each pair of points in the same thickness direction, that is, the laser lines emitted by the two laser cameras need to overlap in the thickness direction. Usually, two cameras are mounted on a movable camera bracket, and the camera position and posture are roughly and finely adjusted in conjunction with human eye observation, so that the two laser lines detected by the camera on the object being measured overlap. However, this method of relying on human eye observation to determine whether the laser lines overlap is very inaccurate, and it is difficult to know the exact distance between the two laser lines, resulting in large errors in the calculation of the object's thickness.

[0037] In view of this, a calibration method for a measuring device is provided in an embodiment of the present disclosure, which can quickly and efficiently calibrate the non-overlapping errors between laser lines through a calibration piece with a specific structure, thereby being used in thickness measurement calculations to solve the problem of inaccurate thickness measurement.

[0038] See also Figure 1a , Figure 1b and Figure 1c , used to illustrate the principle of measuring the thickness of the object 200 by the measuring device in one embodiment of the present disclosure. Figure 1a A schematic diagram showing the structure of the front view when the object 200 enters the measuring device. Figure 1b A schematic diagram showing the structure of the object 200 from the front view after passing through the measuring device. Figure 1c Schematic diagram showing the structure of the measuring device from a side view.

[0039] The measuring device includes a pair of first line laser ranging sensors 101 and second line laser ranging sensors 102 with emitting directions opposite to each other. In an ideal state, the emitting directions of the first line laser ranging sensor 101 and the second line laser ranging sensor 102 are parallel to each other, and the distance between the line lasers emitted by the first line laser ranging sensor 101 and the second line laser ranging sensor 102 is Figure 1a The object 200 passes between the first line laser ranging sensor 101 and the second line laser ranging sensor 102 along the direction A. The object 200 has two opposite surfaces along the thickness direction, corresponding to the first line laser ranging sensor 101 and the second line laser ranging sensor 102 respectively. The two opposite surfaces can be defined as the first surface and the second surface, which are irradiated by a line laser respectively. Figure 1a and Figure 1b In the example, the first surface of the object 200 is shown as the top surface, and the second surface is shown as the bottom surface. Figure 1c As shown, each time the first line laser ranging sensor 101 and the second line laser ranging sensor 102 can periodically and synchronously emit line lasers, and the emitted line lasers are respectively irradiated to points on a horizontal line perpendicular to the A direction on the first surface and the second surface. When the object 200 moves along the A direction, the points on each line of the object 200 along the B direction (the A and B directions can be one and the other of the length and width directions of the object 200, respectively) are scanned by the line laser, so that the points on the entire first surface and the second surface are scanned. Through the scanning of the line laser, the depth value of each point on the first surface and the second surface can be obtained. Therefore, the first line laser ranging sensor 101 forms a first calibration depth image according to the depth value of each point on the first surface collected, and the second line laser ranging sensor 102 forms a second calibration depth image according to the depth value of each point on the second surface collected.

[0040] In some embodiments, the object may be loaded on a conveyor with a hollow bottom, and the conveyor passes between the first line laser ranging sensor 101 and the second line laser ranging sensor 102. The conveyor may be implemented as a conveyor belt, a robotic arm, or the like.

[0041] In some embodiments, the first line laser ranging sensor 101 and the second line laser ranging sensor 102 may be cameras with the same configuration, so that the scales of the obtained first calibrated depth image and the second calibrated depth image are consistent.

[0042] according to Figure 1a , the two lines of laser light are in an overlapping state, that is, the positions irradiated on the first surface and the second surface are arranged along the thickness direction of the object 200. Figure 1a The two irradiation positions are line C and line D, respectively. The depth value from the first line laser ranging sensor 101 to a certain point on C (e.g., the midpoint) is set to m, and the depth value from the second line laser ranging sensor 102 to a corresponding point on D in the thickness direction (e.g., the midpoint) is set to n. If the preset spacing between the first line laser ranging sensor 101 and the second line laser ranging sensor 102 (which can be the vertical spacing between the camera baselines of the two ranging sensors) is h, then the thickness value of the object 200 between C and D is p=hmn. Based on this principle, the thickness value between each pair of points in the thickness direction of the first surface and the second surface can be obtained, and the thickness data of the entire object 200 can be obtained.

[0043] It is understandable that the surface of the actual object 200 is not a plane, and even if it is a plane, there may be some undulations. Therefore, if the two laser lines do not overlap, the positions of the two lines irradiated each time are not arranged in the thickness direction, but arranged in the direction inclined relative to the thickness, and the calculated thickness value has a deviation compared to the correct thickness value. In the related art, the method of adjusting the two laser lines to overlap by an adjustable camera bracket in combination with naked eye observation is extremely inaccurate, and in actual applications, if the two laser lines overlap accurately, when encountering some objects 200 with a through structure between two opposite sides, the laser line emitted by the laser transmitter of one laser ranging sensor may pass through the through structure and be received by the laser receiver of another laser ranging sensor on the opposite side, which will cause interference. For this reason, it may be necessary to deliberately adjust the two laser lines to have a certain deviation relative to the overlap, but in this way, the above-mentioned thickness value calculation deviation will occur. Based on the above analysis, it can be seen that when adjusting the relative overlap position of the line laser, there is a dilemma of difficulty in taking into account the thickness calculation deviation and avoiding mutual interference between the line laser ranging sensors.

[0044] To this end, in some embodiments, a small deviation between the two laser lines can be allowed. For example, the two laser lines can be made to overlap as close as possible by visual observation, but with a small deviation. The deviation amount can be set according to the actual situation. Furthermore, the position deviation relationship parameters (such as translation and / or rotation matrix) of the movement required to achieve overlap between the two laser lines can be calibrated by a calibration method. The position deviation relationship parameters can be used to align the corresponding points of the two laser line scans in the same thickness direction when calculating the thickness and obtain the corresponding two depth values, thereby calculating each thickness value according to the thickness calculation method provided above.

[0045] like Figure 2 As shown, a flow chart of a calibration method for a measuring device in an embodiment of the present disclosure is shown. The measuring method can be applied to calibrate the posture deviation relationship parameters of a measuring device including at least one pair of first line laser ranging sensors 101 and second line laser ranging sensors 102 as shown in FIG1 .

[0046] exist Figure 2 In the calibration method, the calibration method comprises:

[0047] Step S201: synchronously irradiating surfaces of two opposite sides of a calibration object with the first line laser ranging sensor and the second line laser ranging sensor to obtain a first calibration depth image and a second calibration depth image.

[0048] Wherein, the calibration piece forms at least two through-portions between the two opposite side surfaces to form a pair of symmetrical calibration patterns on the two opposite side surfaces, and the pair of calibration patterns contain a pair of matching image features. In some embodiments, the through-portions may be through holes, through-portions, etc., which may extend through the two opposite side surfaces in the thickness direction, so as to conveniently and efficiently construct symmetrical calibration patterns on the two opposite side surfaces. It can be understood that the image features are constructed by the shapes and relative positional relationships of the at least two through-portions. The difference between the pair of image features is used to reflect the relative angular inclination and offset relationship between the two line lasers, so in order to simplify the pattern, the pair of image features may be constructed as straight line features.

[0049] As an example, each through-portion is exemplified as a through hole, and the cross-sectional shape of the through hole is a centrally symmetrical shape, such as one of the following: a circle, a rhombus, a square, an equilateral triangle, etc., so that the center point can be identified by the image, and the straight line feature can be obtained according to the connection line of the two determined center points. The center recognition method of the centrally symmetrical shape, taking the circle as an example, can adopt an algorithm such as circle detection and corresponding circle center positioning prediction. In some embodiments, for example, a Hough circle detection algorithm can be used, such as first performing canny edge detection on the image, and calculating the local gradient for each non-zero point in the edge by the Sobel algorithm. Then the calculated gradient direction is actually the normal of the circle tangent. Three normals can determine a circle center. Similarly, the normals passing through the circle center are accumulated in the accumulator to obtain the determination of the ring and the circle contour is obtained by edge detection. In some other embodiments, a trained deep learning model can be used for circle recognition and circle center determination, such as a model based on feature extraction implemented by CNN, such as YOLO, etc., which is pre-trained with images with labels of circles and center of circles to obtain the desired results. Alternatively, other detection algorithms may be used, which will not be elaborated one by one here.

[0050] like Figure 3 As shown, a schematic diagram of the structure of the calibration component in one embodiment of the present disclosure is shown.

[0051] exist Figure 3 In the example, the calibration piece 300 is in the shape of a rectangular parallelepiped. Two circular through holes 301 and 302 extending in the thickness direction are arranged on the calibration piece 300. As an example, the circular shapes of the two circular through holes 301 and 302 can be located on the horizontal midline of the surface of the calibration piece 300, and the position is also adjustable. Among them, the center connecting lines of the openings of the two circular through holes 301 and 302 on the surfaces of the opposite sides serve as a pair of straight line features. The figure schematically shows the center connecting line 303 of one side, and the point-to-point correspondence between the pair of center connecting lines 303 in the thickness direction.

[0052] It should be noted that the shape of the calibration piece 300 can be changed, and the shapes of the through holes 301 and 302 can also be changed. The purpose of drilling is to find the coordinates of two fixed points. Therefore, the shapes of the through holes 301 and 302 can also be rectangular, square, diamond, or other shapes. Exemplarily, the calibration piece 300 can be made of black metal, or other colors or materials.

[0053] Step S202: based on the goal of achieving overlap between the pair of image features in the same image coordinate system, obtaining a posture deviation relationship parameter between the pair of image features.

[0054] The posture deviation relationship parameter is used to compensate for the deviation of non-overlap between the line lasers of the first line laser ranging sensor and the second line laser ranging sensor.

[0055] In some embodiments, the correlation between a pair of image features (such as one-to-one correspondence between two straight line features in the thickness direction) can be used to unify the image features in the first calibrated depth image and the second calibrated depth image into the coordinate plane of the same image plane coordinate system, and carry their position and posture information in their respective calibrated depth images, and then obtain the deviation in position and posture with the goal of mutual overlap, so as to calibrate the deviation to obtain the posture deviation relationship parameter. The position information can be represented by image coordinates, and the posture information can be represented by angles.

[0056] For reference Figure 4a As shown, the two center connecting lines are projected into the same image plane coordinate system, and are displayed as lines F and G. The angle α between them indicates that the deviation angle between the two line lasers is α. As an example, in a two-dimensional image plane coordinate system, the rotation transformation of the angle between corresponding points on a pair of straight line features to achieve coincidence can be represented by the rotation matrix of the angle between the vectors from the origin to the two corresponding points, such as Figure 4a In the equation, the rotation matrix M(θ) between the vector OJ from the origin O to the point J on the line F and the vector OK from the point K on the line G can be expressed as follows:

[0057] ;

[0058] For example, Figure 4b As shown in FIG. 1 , the relative position offset of the two center connecting lines H and I when projected onto the same image plane coordinate system, i.e., the translation deviation between the two lasers, can be represented by the coordinate displacement on the X and Y axes in the image plane coordinate system, as shown in FIG. Figure 4b As an example, a pair of straight line features must coincide with each other, that is, the translation transformation of each point can be represented by a translation matrix, such as:

[0059] ;

[0060] Among them, X, Y, and Z are the displacement increments of the point on the three axes.

[0061] By unifying a pair of image features in the first calibrated depth image and the second calibrated depth image into the same image coordinate system, and based on the coincidence between the two as the goal, the corresponding translation matrix and / or rotation matrix can be obtained as a posture deviation relationship parameter for the subsequent alignment of the two line lasers in thickness measurement, that is, the alignment between the pairs of corresponding points on the relative two side surfaces irradiated by the two line lasers in the thickness direction, that is, the alignment of the thickness between the corresponding points.

[0062] In some embodiments, in the process of using the calibration part to perform the calibration method, the first calibration depth image and the second calibration depth image can also be aligned according to the obtained posture deviation relationship parameters according to the overlap between the line lasers, and the first calibration depth image, the second calibration depth image and the thickness data of the calibration part after the alignment process are combined to obtain the preset distance between the first line laser ranging sensor and the second line laser ranging sensor. For example, assuming that the posture deviation relationship parameters include a rotation matrix R and a translation matrix T, the coordinates of a point L in the first calibration depth image are (x2, y2) in the image coordinate system, and the depth value is c. The corresponding point in the thickness direction of the second calibration depth image obtained by R and T conversion is P (x3, y3), and the depth value of point P is d. Given the thickness data of the calibration part, assuming that the calibration part is a cuboid, and the thickness values ​​of each position between the two opposite sides of the surface are e, the thickness value between the LP points can be known to be e, and the preset distance between the first line laser ranging sensor and the second line laser ranging sensor can be calculated to be h0=c+d+e. Therefore, in the subsequent actual measurement of the thickness of the object, the thickness can be calculated by subtracting the two depth values ​​from h0.

[0063] In some embodiments, after the calibration is completed, if the positions of the first line laser ranging sensor and the second line laser ranging sensor are kept unchanged, they can be continuously used for thickness measurement. Even if the camera is moved, the calibration method can be executed, and after collecting the calibration picture, the new position deviation relationship parameters are calibrated to update the old parameters, and there is no need to adjust the camera position.

[0064] In combination with the above, a measurement method may also be provided in an embodiment of the present application, which is applied to the measurement device including the calibrated posture deviation relationship parameters to measure the thickness data of the object to be measured.

[0065] like Figure 5 As shown, a flow chart of a measurement method in an embodiment of the present disclosure is shown.

[0066] exist Figure 5 In the measurement method, the measurement method comprises:

[0067] Step S501: The first line laser ranging sensor and the second line laser ranging sensor are acquired to synchronously illuminate surfaces of two opposite sides of the object to be measured, so as to obtain first depth information and second depth information.

[0068] Step S502: Based on the posture deviation relationship parameters obtained by the calibration method, the first depth information and the second depth information are aligned according to the overlap between the line lasers, and based on the aligned first depth information and the second calibrated depth information, and the preset distance between the first line laser ranging sensor and the second line laser ranging sensor, the thickness data of the object to be measured is obtained.

[0069] In some embodiments, the preset spacing can be h0 in the previous example. By aligning the relationship between each pair of corresponding points in the thickness direction between the two opposite sides of the object to be measured through the posture deviation relationship parameters, two depth values ​​m and n of each pair of corresponding points can be obtained, and the thickness value of each pair of corresponding point positions can be obtained as h0-mn.

[0070] like Figure 6 As shown, a schematic diagram of the circuit structure of a measuring device in an embodiment of the present disclosure is shown.

[0071] exist Figure 6 In the embodiment, the measuring device comprises:

[0072] At least one pair of first line laser ranging sensors 101 and second line laser ranging sensors 102 are arranged with their emission directions being opposite to each other. In some embodiments, the first line laser ranging sensor 101 and the second line laser ranging sensor 102 can be implemented as line laser cameras. As an example, to avoid interference of laser signals between sensors, the emission directions of the first line laser ranging sensor 101 and the second line laser ranging sensor 102 can be roughly adjusted to nearly coincide with the line lasers, but with a slight deviation of incomplete coincidence.

[0073] A control unit 103 is communicatively coupled to the at least one pair of the first line laser ranging sensor 101 and the second line laser ranging sensor 102, and is used to obtain the first line laser ranging sensor 101 and the second line laser ranging sensor 102 synchronously irradiating the surfaces of the object to be measured on opposite sides to obtain first depth information and second depth information; based on the posture deviation relationship parameters obtained by the calibration method described in any of the previous embodiments, the first depth information and the second depth information are aligned according to the overlap between the line lasers, and based on the aligned first depth information and the second calibrated depth information, and the preset distance between the first line laser ranging sensor 101 and the second line laser ranging sensor 102, the thickness data of the object to be measured is obtained.

[0074] In some embodiments, the control unit 103 may be implemented as a device with data processing and computing capabilities, such as a controller, a server desktop, a mobile terminal (such as a laptop, a smart phone, a tablet computer), etc.

[0075] like Figure 7 , which shows a schematic diagram of the structure of a computer device in one embodiment of the present disclosure.

[0076] The computer device 700 can be implemented in a server, a desktop, a laptop, a tablet computer, a smart phone or other terminals. The computer device 700 can be used to implement Figure 6 The control unit in.

[0077] The computer device 700 includes a bus 701, a processor 702, and a memory 703. The processor 702 and the memory 703 can communicate with each other through the bus 701. The memory 703 may store program instructions. The processor 702 implements the method steps in the previous embodiment by running the program instructions in the memory 703, for example Figure 2 The steps in the calibration method of the embodiment, or Figure 5 The steps in the measurement method.

[0078] The bus 701 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, although only one thick line is used in the figure, it does not mean that there is only one bus or one type of bus.

[0079] In some embodiments, the processor 702 may be implemented as a central processing unit (CPU), a microprocessing unit (MCU), a system on chip (System On Chip), or a field programmable logic array (FPGA). The memory 703 may include a volatile memory (Volatile Memory) for temporary storage of data when running a program, such as a random access memory (Random Access Memory, RAM).

[0080] The memory 703 may also include a non-volatile memory (non-volatile memory) for data storage, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state disk (SSD).

[0081] In some embodiments, the computer device 700 may further include a communicator 704. The communicator 704 is used to communicate with the outside. In a specific example, the communicator 704 may include one or a group of wired and / or wireless communication circuit modules. For example, the communicator 704 may include one or more of a wired network card, a USB module, a serial interface module, etc. The wireless communication protocols followed by the wireless communication module include: for example, near field communication (NFC) technology, infrared (IR) technology, Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), Bluetooth (BT), Global Navigation Satellite System (GNSS), etc. One or more.

[0082] In an embodiment of the present disclosure, a computer-readable storage medium may also be provided, storing program instructions, wherein the program instructions are executed to implement the method steps in any of the previous embodiments, for example Figure 2 The steps in the calibration method of the embodiment, or Figure 5 The steps in the measurement method.

[0083] That is, the method steps in the above embodiments are implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or are implemented as computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded via a network and to be stored in a local recording medium, so that the method represented herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA).

[0084] In an embodiment of the present disclosure, a computer program product may also be provided, including: a computer program product for executing Figure 2 The steps in the calibration method of the embodiment, or Figure 5 The program instructions for the steps in the measurement method.

[0085] In summary, the present disclosure provides a calibration method, a measuring method, a device, a medium and a program product for a measuring device, wherein the calibration method comprises: synchronously irradiating the surfaces of the two opposite sides of a calibration piece by the first line laser ranging sensor and the second line laser ranging sensor to obtain a first calibration depth image and a second calibration depth image; wherein the calibration piece forms at least two through-portions between the two opposite side surfaces to form a pair of symmetrical calibration patterns on the two opposite side surfaces; the pair of calibration patterns contain a pair of matching image features; based on the goal of achieving overlap of the pair of image features in the same image coordinate system, a posture deviation relationship parameter between the pair of image features is obtained; wherein the posture deviation relationship parameter is used to compensate for the deviation of non-overlap between the line lasers of the first line laser ranging sensor and the second line laser ranging sensor. Through this calibration method, the accuracy of overlap can be effectively improved by getting rid of the reliance on human eye observation for alignment, and the two line lasers do not need to be completely overlapped, and the problem of mutual signal interference between cameras can be avoided.

[0086] The above embodiments are merely illustrative of the principles and effects of the present disclosure, and are not intended to limit the present disclosure. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present disclosure. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed in the present disclosure shall still be covered by the protection scope of the present disclosure.

Claims

1. A calibration method for a measuring device, characterized in that: The measuring device comprises at least one pair of first line laser ranging sensors and second line laser ranging sensors arranged in opposite emission directions; the calibration method comprises: The first line laser ranging sensor and the second line laser ranging sensor are used to synchronously illuminate the surfaces of the two opposite sides of a calibration piece to obtain a first calibration depth image and a second calibration depth image; wherein the calibration piece forms at least two through-portions between the two opposite side surfaces to form a pair of symmetrical calibration patterns on the two opposite side surfaces; the pair of calibration patterns contain a pair of matching image features; the through-portions include a through hole extending in the thickness direction between the two side surfaces of the calibration piece; the cross-sectional shape of the through hole is a centrally symmetrical shape, and the connecting line between the centers of the two through holes constitutes a straight line feature; Based on the goal of achieving overlap between the pair of image features in the same image coordinate system, a posture deviation relationship parameter between the pair of image features is obtained; wherein the posture deviation relationship parameter is used to compensate for the deviation of non-overlap between the line lasers between the first line laser ranging sensor and the second line laser ranging sensor.

2. The calibration method according to claim 1, characterized in that: The step of obtaining the position deviation relationship parameters between the pair of image features based on the goal of achieving overlap of the pair of image features in the same image coordinate system includes: A rotation and / or translation matrix is ​​obtained for achieving coincidence of relative motion between the pair of image features.

3. The calibration method according to claim 1, characterized in that: Also includes: According to the posture deviation relationship parameters, the first calibrated depth image and the second calibrated depth image are aligned according to the overlap between the line lasers, and the preset distance between the first line laser ranging sensor and the second line laser ranging sensor is obtained by combining the first calibrated depth image and the second calibrated depth image after the alignment and the thickness data of the calibration part.

4. The calibration method according to claim 1, characterized in that: The cross-sectional shape of the through hole is one of the following: circle; rhombus; square; equilateral triangle.

5. A measurement method, characterized in that: Applied to a measuring device, the measuring device comprises at least one pair of first line laser ranging sensors and second line laser ranging sensors arranged in opposite emission directions; the measuring method comprises: The first line laser ranging sensor and the second line laser ranging sensor synchronously illuminate surfaces of two opposite sides of the object to be measured to obtain first depth information and second depth information; Based on the posture deviation relationship parameters obtained by calibrating the measuring device using the calibration method described in any one of claims 1 to 4, the first depth information and the second depth information are aligned according to the overlap between the line lasers, and based on the aligned first depth information and the second calibrated depth information, and the preset distance between the first line laser ranging sensor and the second line laser ranging sensor, the thickness data of the object to be measured is obtained.

6. A measuring device, characterized in that: include: At least one pair of first line laser distance measuring sensors and second line laser distance measuring sensors arranged in opposite directions; A control unit, communicatively coupled to the at least one pair of the first line laser ranging sensor and the second line laser ranging sensor, for obtaining the surfaces of the two opposite sides of the object to be measured synchronously illuminated by the first line laser ranging sensor and the second line laser ranging sensor to obtain first depth information and second depth information; based on the posture deviation relationship parameters obtained by calibrating the measuring device using the calibration method described in any one of claims 1 to 4, aligning the first depth information and the second depth information according to the overlap between the line lasers, and obtaining the thickness data of the object to be measured based on the aligned first depth information and the second calibrated depth information, and the preset distance between the first line laser ranging sensor and the second line laser ranging sensor.

7. A computer-readable storage medium, characterized in that: Program instructions are stored, and the program instructions are executed to perform the calibration method according to any one of claims 1 to 4; or, to perform the measurement method according to claim 5.

8. A computer program product, characterized in that include: Program instructions for executing the calibration method according to any one of claims 1 to 4 or executing the measurement method according to claim 5.

Citation Information

Patent Citations

  • Joint calibration method and system for multiple homologous sensors

    CN113589263A

  • Millimeter wave radar, laser radar and camera joint calibration method and device

    CN114076918A

  • Thickness measuring method and thickness measuring device

    CN116929227A

  • High-temperature pipeline wall thickness measuring equipment and laser distance measuring device used for high-temperature pipeline wall thickness measuring equipment

    CN117465807A

  • On-line detection method and system for pose offset of vehicle-mounted distance measuring sensor

    CN117492031A