Vision caliper-based dimensional measurement method and apparatus

By selecting reference points on both sides of the object in the visual caliper measurement method and constructing an approximate relationship model, the problems of high measurement error and computational complexity in the existing technology are solved, and efficient and accurate size measurement is achieved.

CN123175136APending Publication Date: 2026-11-27BOSCH REXROTH (XIAN) ELECTRIC DRIVES & CONTROLS CO LTD XIAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611208201.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing visual caliper measurement methods, the crossing point may not be on the fitted edge line, leading to measurement errors. The computational complexity is high, the amount of computation is large, and it is difficult to guarantee measurement accuracy.

Method used

By establishing a measurement model based on visual calipers, selecting reference points on both sides of the object's edge, and constructing a measurement model using approximate relationships, the calculation process is simplified, and the computational complexity is optimized from O(n) to O(1). Furthermore, measurement is performed based on the midpoint of the edge, thereby improving measurement accuracy.

Benefits of technology

While reducing the amount of computation, it significantly improves the accuracy and stability of dimensional measurements, reduces computational complexity, and ensures the accuracy of measurement results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175136A_ABST
    Figure CN123175136A_ABST
Patent Text Reader

Abstract

A visual caliper-based size measurement method and apparatus are provided, which perform a first process of establishing a measurement model based on a visual caliper, the first process including the steps of: applying a visual caliper to an image containing a modeled object under measurement, the visual caliper passing through two lateral edge straight lines of the object under measurement after image processing; selecting a first reference point on the first lateral edge straight line and a second reference point on the second lateral edge straight line, and establishing a measurement model based on the first and second reference points, the measurement model defining a relationship between a lateral size of the object under measurement and coordinates of the first and second reference points.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to a size measurement method and device based on visual calipers. Background Technology

[0002] In industrial product manufacturing, to improve the measurement accuracy of product dimensions during manufacturing and measurement processes, an artificial intelligence measurement method based on vision calipers in machine vision software has been introduced. When using this vision caliper-based measurement method, the product being measured can be sequentially passed through the measurement positions, and standardized and streamlined measurement can be achieved through photographic measurement. This reduces reliance on worker experience, improves measurement accuracy and stability, provides digital measurement results, and offers a data foundation for the digitalization and intelligentization of manufacturing.

[0003] The general visual caliper measurement process is as follows: measure the intersection points (edge ​​points) of all caliper units with the two sides of the object being measured; fit the two side edge points to edge lines respectively; calculate the average vertical distance from all edge points on one side to the other side edge, thus representing the size (width) of the object being measured. The drawback of this measurement process is that the intersection points may not lie on the fitted edge lines, causing measurement errors. Furthermore, the computation time is directly proportional to the number of caliper units n, with a complexity of O(n), resulting in a large computational load. Summary of the Invention

[0004] This application aims to provide an improved visual dimension measurement method and device that ensures dimension measurement accuracy while reducing computational load.

[0005] According to one embodiment of this application, a size measurement method based on visual calipers is provided, including: The first process of establishing a measurement model based on visual calipers includes the following steps: A visual caliper is applied to an image containing the test object for modeling, the visual caliper passing through the horizontal two-sided edge lines of the test object obtained after image processing; A first reference point located on the first side edge line and a second reference point located on the second side edge line are selected to establish a measurement model based on the first and second reference points. The measurement model defines the relationship between the lateral dimension of the measured object and the coordinates of the first and second reference points.

[0006] According to another embodiment of this application, a vision caliper-based dimensional measuring device is provided, configured to perform the dimensional measuring method of this application.

[0007] According to the visual caliper-based size measurement method and device of this application, a measurement model is constructed based on the approximate relationship between the size of the object being measured and the coordinates of reference points on both sides of the object, simplifying the size calculation process and optimizing the computational complexity from O(n) to O(1). Furthermore, compared to the scheme that uses the average distance from all edge measurement points on one side (the measurement points are not necessarily on the fitted edge line) to the straight line on the other side of the edge to represent the object size, this application establishes a measurement model based on the midpoint of the edge, resulting in more accurate measurement results. Attached Figure Description

[0008] The technical solution of this application will become clearer from the following detailed description taken in conjunction with the accompanying drawings. It is understood that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application.

[0009] Figure 1 A schematic diagram is shown of applying a width caliper to an image of a measured object according to the dimension measurement method of this application.

[0010] Figure 2 A schematic diagram of the image generated after applying this dimensional measurement method is shown.

[0011] Figures 3-5 A schematic diagram illustrating the measurement principle of a first exemplary embodiment of the size measurement method according to this application is shown.

[0012] Figure 6 , Figure 7 A schematic diagram illustrating the measurement principle of a second exemplary embodiment of the size measurement method according to this application is shown.

[0013] Figure 8 A flowchart of the dimension measurement method according to this application is shown. Detailed Implementation

[0014] This application generally relates to a vision caliper-based size measurement method and device, which is an artificial intelligence measurement technology.

[0015] First, refer to Figure 1 The size measurement method of this application generally includes: using machine vision software, applying a visual caliper 3 along the direction of the measured size of the object to an image 2 containing the object to be measured, in an image 1 captured by an imaging device on a production line or measurement line. The visual caliper 3 includes a set of n parallel caliper units. Figure 1In this image, the measured dimension of the object is its width, which lies between the object's lateral (left and right) edges. The object has a substantially constant measured dimension (e.g., width) at least at the measurement location. In other words, at least at the measurement location, the variation in the measured dimension of the object is less than a predetermined threshold, or the angle between the object's lateral edges is less than a predetermined threshold at least at the measurement location. The lateral width of the visual caliper 3 should be sufficient to cover the entire width of the object, such that the visual caliper 3 substantially crosses these two edges laterally. It should be noted that the longitudinal centerline 4 of the visual caliper 3 does not necessarily coincide with the longitudinal centerline of the object image 2. In the longitudinal direction, the visual caliper 3 may only cover the portion of the object whose dimension needs to be measured, such as the longitudinal middle section of the object.

[0016] The longitudinal height of the visual caliper 3 is defined by its longitudinal start and end points. Typically, the height of the visual caliper 3 is set to cover only the longitudinal middle section of the object being measured, without covering the longitudinal sides. The longitudinal start and end points of the visual caliper 3 can be defined as the intersections of the longitudinal sides (top and bottom edges) of the visual caliper 3 with the longitudinal central axis 4 of the visual caliper 3, respectively. If the visual caliper 3 does not cover one or both longitudinal edges of the object in the longitudinal direction, then the longitudinal start and end points of the visual caliper 3 can be defined as the intersections of the longitudinal sides (top and bottom edges) of the overlapping area between the visual caliper 3 and the image of the object being measured with the longitudinal central axis 4 of the visual caliper 3, respectively.

[0017] Next, as Figure 2 As shown, the dimension measurement method includes: applying a measurement model to process the object image 2 to determine the dimension (width) d between the two edges of the object. In the processed image 5 containing the object under test, the measurement area 6 defined by the visual calipers 3 covers a portion of the object image 2, indicated by the shaded area in the figure. Specifically, in the longitudinal direction, the measurement area 6 only covers the longitudinal middle section of the object image 2. The object dimension (width) determined by the measurement model is the distance (lateral dimension) between the approximate longitudinal centers of the two edges. The image 5 processed by this dimension measurement method can be presented as the output of this dimension measurement method. Image 5 contains the object image 2 and the object dimension (width) d, as well as the possible angle between the two edges and the longitudinal position of the object dimension (width) d on the object, allowing the operator to visually see the measured object dimension.

[0018] The first exemplary implementation of this size measurement method will now be described.

[0019] First, refer to Figure 3Consider a right trapezoid X1X2X3X4 in an XY coordinate system, where X1X2 is the base, X3X4 is the top, and the angle between vertices X1 and X4 is a right angle. Vertex X1 is located at the origin, vertex X2 is located on the X-axis, and vertex X4 is located on the Y-axis. The coordinates of each vertex can be represented as X1(0, 0), X2(a, 0), X3(b, h), and X4(0, h).

[0020] Point M is the midpoint of line segment X1X4, and point N is the midpoint of line segment X2X3. There are n equally divided points M on line segment X1X4. i There exist n equal division points N on the line segment X2X3. i , i=1~n.

[0021] The vector X2X3 can be represented as: Any pair of equal division points M i N i The lateral dimension (width) d in the X direction i (i=1~n) can be represented as: In the above formula, the subscript X represents the component of the vector in the X direction. Then, the points M that bisect the right trapezoid X1X2X3X4 are... i N i The distance d in the X direction at the location i The mean value d (width dimension) is equal to the distance d between the midpoints M and N in the X direction. MN : Therefore, it can be proved that the mean distance between the points on the legs of a right trapezoid is equal to the distance between the midpoints on the legs.

[0022] Next, see Figure 4 Assume that points S and E are the starting and ending points of the longitudinal central axis 4 of the visual caliper 3 of the machine vision software in the measurement area 6, respectively, and L1 and L2 are the edge lines fitted at the two sides of the measured object by the image processing software (which can be independent software or part of the machine vision software) through processing the object image 2.

[0023] Draw perpendicular lines from point S to edge lines L1 and L2, with the feet of the perpendiculars at points S1 and S2, respectively. Draw perpendicular lines from point E to edge lines L1 and L2, with the feet of the perpendiculars at points E1 and E2, respectively. Point M1 is the midpoint of line segment S1E1 in edge line L1, serving as the first reference point on edge line L1. Point M2 is the midpoint of line segment S2E2 in edge line L2, serving as the second reference point on edge line L2. Line segments M1N1 and M2N2 intersect at point Q.

[0024] Assume M1 i Let M2 be the n equally divided points of line segment S1E1. i Let N1 be the n equally divided points in line segment S2E2. i N2 i Point M1 i M2 i The feet of the perpendiculars to the edge lines L1 and L2 are i = 1 to n. These points are not on... Figure 4 As shown in the image.

[0025] Points SE-E1-S1 form a right trapezoid, and points SE-E2-S2 form another right trapezoid. Since the angle between the two edge lines L1 and L2 is very small, in this application, the average of the width dimensions d1 and d2 of these two right trapezoids is used to approximate the width dimension d of the object being measured. That is, in the first measurement model of this application, the width dimension d of the object being measured is expressed as: Where d M1N1 It is the length of line segment M1N1, that is, the shortest distance from point M1 to the edge line L2, d M2N2 It is the length of line segment M2N2, that is, the shortest distance from point M2 to the edge line L1.

[0026] Based on the preceding reference Figure 3 The description of the width dimension of a right trapezoid, the width dimension d of the measured object, can be simplified as follows: The above formula confirms the validity of the calculation formula for the width dimension d.

[0027] In measurement area 6, based on image analysis, the X (horizontal) and Y (vertical) coordinates of points M1, N1, M2, and N2 are extracted, and d can be easily calculated. M1N1 and d M2N2 This allows us to obtain the width dimension d of the object being measured. The width dimension d obtained in this way is an approximation; however, since the angle between the edge lines L1 and L2 is very small, the accuracy of the width dimension d obtained in this way is sufficient.

[0028] Furthermore, based on Figure 4 From the angular relationship in the image, we can deduce that ∠M1QN2 = ∠M2QN1 = ∠L1L2, which is the angle between the edge lines L1 and L2. In measurement area 6, based on image analysis, the XY coordinates of points M1, Q, and N2, or the XY coordinates of M2, Q, and N1, can be extracted, and ∠L1L2 can be easily calculated.

[0029] As can be seen, in the dimensional measurement method of this application, the calculation of the width dimension d of the measured object and the included angle between the two sides is simplified from 2n times to 2 times, and the computational complexity is optimized from O(n) to O(1). Furthermore, the included angle between the two sides can represent the included angle δ used in engineering. This included angle can characterize the engineering error on both sides of the object. When the error included angle is greater than a certain threshold, it can be considered that the two sides of the object are not parallel, the width measurement is meaningless, or the caliper width should be reduced and the measurement repeated.

[0030] Using the first measurement model described above, a relatively accurate object width can be calculated. If it is desired to further improve the calculation accuracy of the width dimension d, the advanced measurement model of this application can be used, as described below.

[0031] See Figure 5 The diagram shows the imaginary intersection point O where the two edge lines L1 and L2 intersect, the angle δ between the two edge lines L1 and L2, and points M1, M2, N1, N2, and Q. The definitions of each point are as described above. Figure 4 As described. Point P1 is the midpoint of line segment M1N2 in edge line L1, serving as the first reference point on edge line L1. Point P2 is the midpoint of line segment M2N1 in edge line L2, serving as the second reference point on edge line L2. The length of line segment P1P2 (the distance between points P1 and P2) is d. P1P2 The width dimension d' of the object being measured, obtained from the advanced measurement model, is: d = d''. In the advanced measurement model of this application, the width dimension d of the object being measured is: d = d''. P1P2 .

[0032] To verify the validity of the width dimension d' obtained from the advanced measurement, let b1 represent the length of line segment M1N2 (the distance between points M1 and N2), b2 represent the length of line segment M2N1 (the distance between points M2 and N1), and let a1, a2, c1, c2, e1, and e2 represent the distances between point Q and points N2, N1, M1, M2, P1, and P2, respectively. Based on geometric analysis, the following two relationships are obtained: because Therefore, it can be deduced that... .

[0033] Similarly, it can be deduced that Furthermore, Therefore, d'≤d. As δ→0, d' approaches equal to d.

[0034] The width dimension d' obtained based on the advanced measurement model is smaller than the width dimension d obtained based on the first measurement model, which is suitable for situations where the edges of the measured object have shadows. Specifically, the advanced measurement model is suitable for objects with a certain height, where shadow errors are unavoidable when photographing the object's edges. The advanced measurement model can further reduce these shadow errors.

[0035] Next, refer to Figure 6 , Figure 7 A second exemplary embodiment of the size measurement method according to this application is described.

[0036] See Figure 6 Using machine vision software, in the processed image 5 containing the object under test, the measurement area 6 defined by the visual calipers has a longitudinal central axis 4. The longitudinal central axis 4 does not coincide with the angle bisectors between the two side edge lines L1 and L2 of the object image 2. The starting point and ending point of the longitudinal central axis 4 in the measurement area 6 are B and A, respectively. The midpoint of line segment BA is C.

[0037] See Figure 7 Assume that the two edge lines L1 and L2 of object image 2 intersect at an imaginary intersection point O, and the included angle between the two edge lines L1 and L2 is δ. The angle bisector L3 of the edge lines L1 and L2 bisects the included angle δ. Draw a perpendicular line L4 from point C to the angle bisector L3. The perpendicular line L4 intersects lines L1, L2, and L3 at points M, N, and T, respectively. Point M is designated as the first reference point on edge line L1, and point N is designated as the second reference point on edge line L2.

[0038] In a second exemplary embodiment of the size measurement method of this application, namely in the second measurement model of this application, the length of line segment MN (i.e., the distance between points M and N) is used as the width dimension of the object being measured, that is, the width dimension d of the object being measured is: d = d MN .

[0039] To verify the effectiveness of the second measurement model, in Figure 7 In the triangle, draw a perpendicular line from point A to the angle bisector L3. This perpendicular line intersects lines L1, L2, and L3 at points Y, F, and P, respectively. Draw another perpendicular line from point B to the angle bisector L3. This perpendicular line intersects lines L1, L2, and L3 at points Z, G, and R, respectively. Therefore, triangles OYF, OMN, and OZG are all isosceles triangles, quadrilateral ZGFY is an isosceles trapezoid, and trapezoids ZRPY and RGFP are both right trapezoids. Since point C is the midpoint of line segment BA, point M is the midpoint of line segment ZY, and point N is the midpoint of line segment GF. Line segment MN is the transverse median of isosceles trapezoid ZGFY; therefore, the length d of line segment MN is... MN It can be used as the width dimension d of the object being measured.

[0040] The above verification process used many intermediate variables and values, but in actual measurement, it is necessary to simplify the measurement steps and improve computational efficiency as much as possible. Therefore, this application determines that the length of line segment MN can be obtained based on the slopes of the edge lines L1 and L2, and the coordinates of points A and B. Specifically, let the coordinates of points A and B be (x...). a y a ), (x b y b Then the coordinates of point C (x) c y c ) is ((x) a +x b ) / 2, (y a +y b ) / 2).

[0041] Given that edge line L1 is represented by y = k1x + b1, and edge line L2 by y = k2x + b2, where k1 and k2 are the slopes of edge lines L1 and L2 respectively, and b1 and b2 are constant terms, then the slope k3 of angle bisector L3 is: The above formula can be simplified to: The slope of the perpendicular line L4 is k4 = -1 / k3.

[0042] The perpendicular line L4 passing through point C can be expressed as: y = k4x + b4 = k4x + (y c -k4x c In the formula, b4 = (y c -k4x c ), which is a constant term.

[0043] Let the coordinates of points M and N be (x, y, y) respectively. m y m ), (x n y n The coordinates of point M can be obtained as follows: The coordinates of point N are: The width d of the object being measured is equal to the length of line segment MN, that is: By substituting the coordinates of M and N into the above formula, the width dimension d of the measured object can be calculated.

[0044] The inclination angle of line segment MN, such as its inclination angle relative to the X-axis, can be calculated based on the slope k4 of the perpendicular line L4. The angle δ between lines L1 and L2 can be calculated based on their slopes.

[0045] In the second measurement model according to this application, an isosceles trapezoid is fitted based on the straight lines L1 and L2 on both sides of the object being measured and the longitudinal centerline 4 of the visual caliper. The length of the transverse centerline of the isosceles trapezoid is used as the distance between the two sides of the object (i.e., the width of the object). This can eliminate certain measurement errors, better conform to the real measurement standards and the real distance, and make the measurement results more accurate.

[0046] The computational complexity is small when calculating distances, requiring only algebraic operations on the line coordinates and point distances, thus reducing the computational complexity from O(n) to O(1).

[0047] It should be noted that in the second measurement model of this application, it is generally optimal to select the midpoint between points Z and Y on edge line L1 as the first reference point on edge line L1 and the midpoint between points G and F on edge line L2 as the second reference point on edge line L2; however, the second measurement model of this application may also select other points between points Z and Y on edge line L1 as the first reference point on edge line L1 and other points between points G and F on edge line L2 as the second reference point on edge line L2.

[0048] It should also be noted that, in the second measurement model of this application, the width dimension of the measured object can also be half of the sum of the shortest distance from the first reference point on the edge line L1 to the edge line L2 and the shortest distance from the second reference point on the edge line L2 to the edge line L1, as in the first measurement model described above.

[0049] Furthermore, in the second measurement model of this application, as in the aforementioned advanced measurement model, an auxiliary perpendicular line can be drawn from point M to the edge line L2, with the foot of the perpendicular being the foot of the second midpoint; and an auxiliary perpendicular line can be drawn from point N to the edge line L1, with the foot of the perpendicular being the foot of the first midpoint. The midpoint of the line segment between point M on the edge line L1 and the foot of the first midpoint perpendicular is taken as the first reference point, and the midpoint of the line segment between point N on the edge line L2 and the foot of the second midpoint perpendicular is taken as the second reference point. The distance between the first reference point and the second reference point thus determined is taken as the width dimension of the object being measured.

[0050] In practical measurement applications, the dimensional measurement method of this application can be specified to include: Figure 8 The exemplary process is shown below.

[0051] See Figure 8 The dimensional measurement method of this application generally includes: First process S1: Establish a visual caliper model; Second process S2: Perform dimensional measurement.

[0052] Specifically, the first process S1 may include the following steps.

[0053] First, in step S11, a test object for modeling is placed in the field of view of the imaging device and imaged, generating and processing an object image, wherein the horizontal edges of the object image are processed to obtain straight lines on both sides of the object. The test object for modeling here can be one of multiple test objects of the same specification.

[0054] Next, in step S12, input the object image.

[0055] Next, in step S13, a visual caliper model is constructed.

[0056] The visual caliper model constructed in step S13 includes at least the following caliper parameters: The number of caliper segments, n, is the number of caliper units. Caliper width, which is the width of the caliper in the horizontal direction, is set so that the visual caliper passes through the straight lines of both sides of the object in the horizontal direction; The starting and ending points of the calipers, i.e. the starting and ending positions of the calipers in the longitudinal direction, wherein the starting and ending points of the calipers, as well as the number of caliper units, are combined to ensure that the visual calipers cover at least the middle section of the object image in the longitudinal direction.

[0057] The visual caliper model also includes the measurement models described above. For example, the visual caliper model may include first and second measurement models and an advanced measurement model, or it may include first and second measurement models, or it may include a first measurement model and an advanced measurement model, or it may include an advanced measurement model and a second measurement model. Thus, in step S13, the measurement model to be used in the second process S2 can be selected. Alternatively, the visual caliper model may include one of the above-mentioned measurement models, and that measurement model can be directly applied to the second process S2.

[0058] Next, in step S14, the visual caliper model is output.

[0059] After constructing and outputting a visual caliper model suitable for the object under test through the first process S1, the visual caliper model can be applied to the size (width) measurement of multiple objects of the same specification (with approximately the same shape and size) as the object under test in the second process S2.

[0060] Specifically, the second process S2 may include the following steps.

[0061] First, in step S21, the visual caliper model output in the first process S1 is called.

[0062] Next, in step S22, one of the multiple test objects of the same specification is placed in the field of view of the imaging device and imaged to generate an object image.

[0063] Next, in step S23, input the object image.

[0064] Next, in step S24, the straight lines on both sides of the object image are detected according to the caliper parameters in the visual caliper model.

[0065] Next, in step S25, based on the measurement model in the visual caliper model, the distance between the straight lines on both sides is calculated, and the angle (e.g., the included angle between the two sides) may also be calculated.

[0066] If the visual caliper model uses a first measurement model and an advanced measurement model, then in step S25, it is possible to choose whether to use only the first measurement model to calculate the distance dimension, or only the advanced measurement model to calculate the distance dimension, or to use both the first measurement model and the advanced measurement model to calculate the distance dimension (for example, to compare measurement results).

[0067] Next, in step S26, the distance dimensions (and possible angles) and the processed image are output.

[0068] It should be noted that in step S26, the output distance dimension is related to the reference points selected on the two side edge lines L1, L2. To provide more detailed output information, the longitudinal position of the measured object corresponding to the distance dimension can be output at the same time. For example, the longitudinal position of the measured object can be represented by the average value of the ordinate (Y-axis coordinate) of the reference points on the two side edge lines L1, L2.

[0069] This application further relates to a visual caliper-based dimension measuring device configured to perform the dimension measuring method described above. The device includes: a caliper modeling module configured to execute the first process S1 of the dimension measuring method described above, for establishing a visual caliper model based on an image of a measured object captured by an imaging device, wherein the caliper modeling module includes one or more of the aforementioned measurement models; and a dimension measuring module configured to execute the second process S2 of the dimension measuring method described above, for measuring the lateral dimension (width) of the measured object (typically multiple measured objects of the same specification) using the visual caliper model generated by the caliper modeling module.

[0070] Based on the first and second measurement models and the advanced measurement model of the size measurement method and device of this application, the lateral dimensions (width) of the two side edge lines L1 and L2 at the set reference points on the two side edge lines L1 and L2 of the image of the object under test are calculated. Compared with the scheme of using the average distance from all edge measurement points on one side (the measurement points are not necessarily on the fitted edge line) to the other side edge line as the width of the object under test, the computational complexity is greatly reduced, and sufficient measurement accuracy can be ensured.

[0071] The measurement model of this application is particularly suitable for measuring the lateral dimensions of objects with approximately constant width. The included angle between the two edge lines determined by the measurement can intuitively represent the engineering angle (engineering error) of the object's edge. When the determined engineering angle is greater than a set threshold, it can be determined that the two edges of the object are not parallel; in this case, the width measurement can be deemed meaningless.

[0072] While some embodiments have been described above, these embodiments are given by way of example only and are not intended to limit the scope of this application. The appended claims and their equivalents are intended to cover all modifications, substitutions, and alterations made within the scope and spirit of this application.

Claims

1. A dimension measurement method based on visual calipers, comprising: The first process of establishing a measurement model based on visual calipers includes the following steps: A visual caliper (3) is applied to an image containing the test object for modeling, the visual caliper (3) passing through the horizontal two-sided edge lines (L1, L2) of the test object obtained after image processing. A first reference point located on the first side edge line (L1) and a second reference point located on the second side edge line (L2) are selected to establish a measurement model based on the first and second reference points. The measurement model defines the relationship between the lateral dimension of the measured object and the coordinates of the first and second reference points.

2. The dimension measurement method as described in claim 1, wherein, The measurement model includes a first measurement model, in which: Draw perpendicular lines from the longitudinal starting point and ending point of the visual caliper (3) to the first side edge line (L1), with the feet of the perpendiculars being the first starting point foot (S1) and the first ending point foot (E1), respectively. The first reference point (M1) is selected between the first starting point foot (S1) and the first ending point foot (E1). Draw perpendicular lines from the longitudinal starting point and ending point of the visual caliper (3) to the second side edge line (L2), with the feet of the perpendiculars being the second starting point foot (S2) and the second ending point foot (E2), respectively. The second reference point (M2) is selected between the second starting point foot (S2) and the second ending point foot (E2).

3. The dimension measurement method as described in claim 2, wherein, In the first measurement model: The first reference point (M1) is the midpoint of the line segment between the first starting point perpendicular foot (S1) and the first ending point perpendicular foot (E1); The second reference point (M2) is the midpoint of the line segment between the foot of the second starting point (S2) and the foot of the second ending point (E2); The lateral dimension of the object under test is set to half the sum of the shortest distance from the first reference point (M1) to the straight line (L2) of the second side edge and the shortest distance from the second reference point (M2) to the straight line (L1) of the first side edge.

4. The dimensional measurement method according to any one of claims 1-3, wherein, The measurement model includes a second measurement model, in which: Draw the angle bisector (L3) of the angle between the two edge lines (L1, L2); Draw a first perpendicular line from the longitudinal starting point of the visual caliper (3) to the angle bisector (L3). The first perpendicular line intersects the first side edge line (L1) at the first starting point intersection point (Z) and the second side edge line (L2) at the second starting point intersection point (G). Draw a second perpendicular line from the longitudinal endpoint of the visual caliper (3) to the angle bisector (L3). The second perpendicular line intersects the first side edge line (L1) at the first endpoint intersection point (Y) and the second side edge line (L2) at the second endpoint intersection point (F). The first reference point (M) is selected between the intersection of the first starting point (Z) and the intersection of the first ending point (Y); The second reference point (N) is selected between the intersection of the second starting point (G) and the intersection of the second ending point (F).

5. The dimension measurement method as described in claim 4, wherein, In the second measurement model: The first reference point (M) is the midpoint between the intersection of the first starting point (Z) and the intersection of the first ending point (Y); The second reference point (N) is the midpoint between the intersection of the second starting point (G) and the intersection of the second ending point (F); The lateral dimension of the object under test is set as the distance between the first reference point (M) and the second reference point (N).

6. The dimensional measurement method according to any one of claims 2-5, wherein, The measurement model includes an advanced measurement model, in which: Draw a perpendicular line from the first midpoint (M1) of the line segment between the first starting point perpendicular foot (S1) and the first ending point perpendicular foot (E1) to the second side edge line (L2), with the foot of the perpendicular being the second midpoint perpendicular foot (N1). Draw a perpendicular line from the second midpoint (M2) of the line segment between the second starting point (S2) and the second ending point (E2) to the first side edge line (L1), with the foot of the perpendicular being the first midpoint (N2). The first reference point (P1) is the midpoint of the line segment between the first midpoint (M1) and the foot of the perpendicular from the first midpoint (N2); The second reference point (P2) is the midpoint of the line segment between the second midpoint (M2) and the foot of the perpendicular from the second midpoint (N1).

7. The dimension measurement method as described in claim 6, wherein, In advanced measurement models: The lateral dimension of the object under test is set as the distance between the first reference point (P1) and the second reference point (P2).

8. The dimensional measurement method according to any one of claims 1-7, further comprising: The second process involves measuring the lateral dimensions of the object being measured using the measurement model established in the first process.

9. The dimension measurement method as described in claim 8, wherein, In the second process, the angle between the two edge lines (L1, L2) is determined based on the slope of each edge line (L1, L2) and is used as the engineering angle between the edges of the object being measured.

10. A dimension measuring device based on visual calipers, comprising: A caliper modeling module, configured to perform the first process as defined in any one of claims 1-7.

11. The dimensional measuring device as claimed in claim 10, further comprising: The dimension measurement module is configured to perform the second process as defined in claim 8 or 9.