A centroid measurement method, device and storage medium

Through the combination of digital photogrammetry technology and return reflection marks, the centroid measurement process is simplified, the problems of many equipment and large errors in the existing methods are solved, and high-precision and automated centroid measurement are achieved, which is suitable for large vehicles.

CN113049184BInactive Publication Date: 2024-11-05CHINESE PEOPLES LIBERATION ARMY UNIT 63853
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110366315.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-06
Publication Date
2024-11-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing centroid measurement methods have problems such as complex equipment, large investment, large errors and high operational difficulties, especially when measuring large vehicles, it is difficult to achieve high-precision measurement.

Method used

Using digital photogrammetry technology, by pasting backlight reflection marks as measurement feature points on the surface of the measured object, using professional cameras to capture quasi-binary images, establish three-dimensional point cloud data, and measure the vertical line position of the hanging point, intersect according to the vertical line of the hanging point. Points determine the center of mass coordinates, simplify equipment requirements, and improve measurement accuracy and automation.

Benefits of technology

It realizes high-precision, fast and automated centroid measurement, reduces equipment and parameter requirements, is suitable for large vehicles, and improves measurement efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113049184B_ABST
    Figure CN113049184B_ABST
Patent Text Reader

Abstract

The present application discloses a centroid measurement method, device and storage medium, the method comprising: pasting a backlight reflection mark on the surface of the measured object as a measurement feature point; using a professional camera to shoot the measured object under the illumination of a light source at a specific position to obtain two or more quasi-binary images; using a digital photogrammetry system to process the quasi-binary images to obtain three-dimensional point cloud data of the measured object and establish a three-dimensional coordinate system of the object; measuring the position of the vertical line of the hanging point of the measured object at different hanging angles in the three-dimensional coordinate system of the object, and determining the centroid coordinates of the measured object according to the coordinate value of the intersection of the two hanging point vertical lines. The above method can automatically extract the spatial information of the photographed object, does not require special measuring equipment such as a platform and a ground scale, does not require the measurement of parameters such as the weight and size of the object, and can ensure and improve the measurement accuracy, reliability, measurement efficiency and automation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital photogrammetry, and in particular to a centroid measurement method, device and storage medium. Background Art

[0002] The center of mass position of a gun is one of the important performance parameters of the gun, and is closely related to the driving safety and shooting stability of the gun. The center of mass position of a gun has an important influence on the overall design and layout of the gun, and the height measurement of the center of mass position is the difficulty of the center of mass position measurement.

[0003] At present, the existing methods for measuring the center of mass mainly include the swing method, the platform support reaction method, the lifting method and the suspension method. The swing method requires complex equipment and is not suitable for vehicles with large mass and volume, so its application is limited; the platform support reaction method requires special equipment, with large investment and low popularity; the lifting method has a small angle change and the axle load caused by weight reaction is also small, which leads to large errors; the suspension method requires less equipment, but involves measuring dimensions after suspension, and there is a problem of difficulty in calculating the center of mass.

[0004] Therefore, how to solve the problems of too many measurement parameters, too many measurement devices and high operation difficulty in the previous measurement of center of mass height is a technical problem that needs to be solved urgently by technical personnel in this field. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a centroid measurement method, device and storage medium, which can well perform high-precision measurement and object space description, with high measurement accuracy, fast measurement speed and high degree of automation. The specific scheme is as follows:

[0006] A centroid measurement method, comprising:

[0007] Paste the retro-reflective mark on the surface of the object to be measured as the measurement feature point;

[0008] Using a professional camera to photograph the object under illumination of a light source at a specific position to obtain two or more quasi-binary images;

[0009] Processing the quasi-binary image using a digital photogrammetry system to obtain three-dimensional point cloud data of the object to be measured and establish a three-dimensional coordinate system of the object;

[0010] The positions of the vertical lines of the hanging points of the object to be measured at different hanging angles in the three-dimensional coordinate system of the object are measured, and the coordinates of the centroid of the object to be measured are determined according to the coordinate values ​​of the intersection points of the two hanging point vertical lines.

[0011] Preferably, in the centroid measurement method provided in the embodiment of the present invention, the retroreflective mark is a mark point and a coding mark made of retroreflective material; the mark point is located around the coding mark;

[0012] The distance between each two of the marking points is measured by a reference ruler;

[0013] Each of the coding marks has unique digital coding information and is used as a common point between different images to enable the quasi-binary images to be automatically spliced.

[0014] Preferably, in the above-mentioned centroid measurement method provided by the embodiment of the present invention, the marking point is a circular marking point; the coding mark is a point-shaped coding mark; the coding mark determines the coding by different positions of the coding point in a pre-designed coordinate system;

[0015] The light source is a ring flash; the optical axis of the ring flash is coaxial with the optical axis of the professional camera lens.

[0016] Preferably, in the centroid measurement method provided in the embodiment of the present invention, processing the quasi-binary image to obtain three-dimensional point cloud data of the object to be measured specifically includes:

[0017] Identify and locate the coded mark from the quasi-binary image, and determine the image point coordinates of the mark point;

[0018] According to the coding mark and the image point coordinates of the mark point, the quasi-binary image is matched and spliced;

[0019] The three-dimensional point cloud data of the object to be measured is obtained by using the bundle adjustment method.

[0020] Preferably, in the centroid measurement method provided in the embodiment of the present invention, before identifying and locating the coding mark from the quasi-binary image, it also includes:

[0021] Using the Canny operator to perform edge detection on the quasi-binary image;

[0022] Performing edge tracking on the quasi-binary image with boundary information obtained after edge detection;

[0023] The edges obtained by tracking are judged, false edges or non-marker edges are eliminated, and the image point edges of the coding points and the image point edges of the mark points are extracted.

[0024] Preferably, in the centroid measurement method provided in the embodiment of the present invention, identifying the coding mark from the quasi-binary image specifically includes:

[0025] Finding image points of template points in the quasi-binary image;

[0026] Restoring the found image points to the coordinates in the pre-designed coordinate system through affine transformation, and calculating affine transformation parameters at the same time;

[0027] Restoring the image points of the encoding points around the template point by using the affine transformation parameters;

[0028] The code point is decoded to identify the code of the coding mark.

[0029] Preferably, in the centroid measurement method provided in the embodiment of the present invention, locating the coded mark from the quasi-binary image and determining the image point coordinates of the mark point specifically includes:

[0030] According to the pixel edge of the coding point, the pixel center coordinates of the coding point are determined by least square fitting;

[0031] The image point center coordinates of the marker point are determined according to the center coordinates of the encoding point and in combination with the positional relationship between the encoding mark and the marker point.

[0032] Preferably, in the above-mentioned centroid measurement method provided by an embodiment of the present invention, measuring the positions of the vertical lines of the hanging points of the object to be measured at different hanging angles in the three-dimensional coordinate system of the object, and determining the centroid coordinates of the object to be measured according to the coordinate values ​​of the intersection points of the two hanging point vertical lines, specifically includes:

[0033] A plurality of the measurement feature points are pasted on the vertical line of the hanging point of the object to be measured;

[0034] Under different suspension angles, the spatial three-dimensional coordinates of the measurement feature points pasted on the vertical line of the suspension point in the three-dimensional coordinate system of the object are obtained through feature extraction and spatial solution;

[0035] The spatial three-dimensional coordinates of the measurement feature points pasted on the vertical line of the hanging point are fitted by the least square method to obtain the corresponding straight line equation of the vertical line of the hanging point;

[0036] The two fitted perpendicular line equations of the hanging point are combined to obtain the centroid coordinates of the object to be measured.

[0037] An embodiment of the present invention further provides a centroid measurement device, comprising a processor and a memory, wherein the processor implements the above-mentioned centroid measurement method provided in the embodiment of the present invention when executing a computer program stored in the memory.

[0038] An embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the centroid measurement method provided in the embodiment of the present invention is implemented.

[0039] It can be seen from the above technical scheme that a centroid measurement method provided by the present invention includes: pasting a backlight reflection mark on the surface of the object to be measured as a measurement feature point; using a professional camera to shoot the object to be measured under the illumination of a light source at a specific position to obtain two or more quasi-binary images; using a digital photogrammetry system to process the quasi-binary images to obtain three-dimensional point cloud data of the object to be measured and establish a three-dimensional coordinate system of the object; measuring the position of the vertical line of the hanging point of the object to be measured at different hanging angles in the three-dimensional coordinate system of the object, and determining the centroid coordinates of the object to be measured according to the coordinate value of the intersection point of the two hanging point vertical lines.

[0040] The centroid measurement method provided by the present invention is based on digital photogrammetry technology, with a simple principle and easy operation. By adding artificial marks with obvious characteristics to the measured object as measurement feature points to assist in completing the measurement process, the spatial information of the photographed object can be automatically extracted. No special measurement equipment such as platforms and ground scales is required, and no parameters such as object weight and size are required. Fewer parameters are required, which can solve the problem of too many measurement equipment and measurement parameters in the previous centroid height measurement, and can perform high-precision measurement and object space description well, and can ensure and improve measurement accuracy, reliability, measurement efficiency and automation. In addition, the present invention also provides corresponding equipment and computer-readable storage media for the centroid measurement method, which further makes the above centroid measurement method more practical, and the equipment and computer-readable storage medium have corresponding advantages. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0042] Figure 1 A flow chart of a centroid measurement method provided by an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a marker point provided by an embodiment of the present invention;

[0044] Figure 3 A schematic diagram of a coding mark provided by an embodiment of the present invention;

[0045] Figure 4 A schematic diagram of a high refractive index glass microbead provided in an embodiment of the present invention;

[0046] Figure 5 A schematic diagram of the incident angle and the light source deviation angle provided by an embodiment of the present invention;

[0047] Figure 6 The circular sign ellipse imaging diagram provided by the embodiment of the present invention;

[0048] Figures 7a to 7c They are schematic diagrams of edge tracking provided by embodiments of the present invention;

[0049] Figure 8 A schematic diagram of the design of dot-shaped coding marker points provided in an embodiment of the present invention;

[0050] Fig. 9 A schematic diagram of an epipolar line provided in an embodiment of the present invention;

[0051] Fig.10 A schematic diagram of corresponding epipolar lines of multiple camera stations provided in an embodiment of the present invention;

[0052] Fig.11 The initial matching result provided by the embodiment of the present invention;

[0053] Fig.12 The accurate matching result provided by the embodiment of the present invention;

[0054] Fig.13 A schematic diagram of a centroid measurement test provided by an embodiment of the present invention;

[0055] Fig.14 A schematic diagram of first state measurement provided by an embodiment of the present invention;

[0056] Fig.15 A schematic diagram of second state measurement provided by an embodiment of the present invention;

[0057] Fig.16 A schematic diagram of a method for calculating centroid space solution provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] The present invention provides a centroid measurement method, such as Figure 1 As shown, the following steps are included:

[0060] S101. Paste a retroreflective mark on the surface of the object to be measured as a measurement feature point.

[0061] It should be noted that most of the objects to be measured, especially weapons and equipment, are of a single color, without obvious feature points and good contrast features. Therefore, the present invention adds artificial marks with obvious features to the objects to be measured as measurement feature points to assist in completing the measurement process, which can perform high-precision measurement and object space description, and can ensure and improve measurement accuracy, reliability and measurement efficiency.

[0062] S102, using a professional camera to photograph the object under illumination of a light source at a specific position to obtain two or more quasi-binary images.

[0063] In practical applications, a professional camera is a camera that is packaged after high-precision calibration of an ordinary digital camera. It is used for high-precision three-dimensional measurement and has the advantages of stable mechanical structure, good optical performance, high resolution, and strong storage capacity. This professional camera is a component of the digital photogrammetry system. When photographing, under the illumination of a light source at a specific position, a high-resolution measurement professional camera is used to shoot the object to be measured at different positions and directions. The image of the model of the object to be measured is dim, and the image of the marked feature points has a high grayscale and clear "quasi-binary image", which can be effectively distinguished from the background environment and clearly obtain the image of the measured feature points.

[0064] S103, using a digital photogrammetry system to process the aligned binary image, obtain three-dimensional point cloud data of the object to be measured and establish a three-dimensional coordinate system of the object.

[0065] It should be noted that the digital photogrammetry method is a non-contact large-scene measurement method that uses a professional camera to obtain a digital image of the object to be measured to obtain the spatial three-dimensional coordinates of the object to complete the measurement of the shape, position, posture, movement, etc. of the object to be measured. Photogrammetry mainly has the advantages of high three-dimensional measurement accuracy, fast measurement speed and high degree of automation. Monocular photogrammetry refers to the use of only one photogrammetry sensor to capture images to complete the measurement of the position and posture of the object to be measured in the spatial range. The structure is simple and the calibration measurement is clear and understandable. The monocular photogrammetry system is not easily limited by the field of view. By replacing the imaging lens, the spatial position and posture of the object can be measured within the required measurement range and measurement distance. The digital photogrammetry system used in the present invention uses one (or more) high-resolution professional cameras to shoot the object to be measured, and uses the backlight reflection mark to obtain the quasi-binary digital image of the object. After computer image processing, accurate three-dimensional spatial coordinates can be obtained.

[0066] S104, measuring the positions of the vertical lines of the hanging points of the object to be measured at different hanging angles in the object's three-dimensional coordinate system, and determining the centroid coordinates of the object to be measured according to the coordinate values ​​of the intersection points of the two hanging point vertical lines.

[0067] In the above-mentioned centroid measurement method provided in the embodiment of the present invention, based on digital photogrammetry technology, the principle is simple and the operation is easy. By adding artificial marks with obvious characteristics on the measured object as measurement feature points to assist in completing the measurement process, the spatial information of the photographed object can be automatically extracted. No special measuring equipment such as platforms and ground scales is required. There is no need to measure parameters such as object weight and size. Fewer parameters are required, which can solve the problem of too many measuring equipment and measurement parameters in previous centroid height measurement. It can perform high-precision measurement and object space description well, and can ensure and improve measurement accuracy, reliability, measurement efficiency and degree of automation.

[0068] Furthermore, in the specific implementation, in the above-mentioned centroid measurement method provided in the embodiment of the present invention, in order to obtain a high-quality digital image, in step S101, as Figure 2 and Figure 3 As shown, the retro-reflective mark can be a mark point and a coding mark made of retro-reflective material. Figure 4 As shown in the figure, one side of the backlight reflective material is composed of glass microbeads or microcrystalline cubic corner bodies with a diameter of about 50μm. Each microbead has the function of a cat's eye or a reflecting prism, and the direction of the reflected light is the same as the direction of the incident light. The marking points are located around the coding mark; the distance between each two marking points is measured by a reference ruler, that is, an artificial marking point is fixed at each end of the reference ruler, and the distance between the two marking points is known before measurement. The reference ruler provides a high-precision length reference during the measurement process. Each coding mark has unique digital coding information, which is used as a common point between different images to automatically splice quasi-binary images, that is, the coding mark is an artificial mark with digital coding information itself, which can realize accurate recognition, positioning and image splicing of the coding mark.

[0069] It should be noted that in the quasi-binary image, the target's own image "disappears", but the image of the reflected light mark is particularly clear and prominent, forming a dark background with only a group of bright spots that are generally circular or elliptical. This "quasi-binary image" can achieve fast, accurate and reliable positioning in high-precision mark image measurement.

[0070] Preferably, if Figure 2 As shown, the marker points used in the present invention can be circular marker points; during the measurement process, the circular marker points are mainly pasted around the coded marker points, and their coordinate information is read with the help of the positional relationship of the surrounding coded marker points. Since the camera movement and offset angle are controlled within a certain range during the measurement process, the circular marker points can basically be presented in different images taken, and the positional relationship between them and the coded marker points will basically not change. The matching information of the circular marker points can be obtained only by analyzing the positional relationship between them and the adjacent coded marker points, without the need for special identity compilation, that is, without the need for encoding.

[0071] Preferably, if Figure 3 As shown, the coding mark used in the present invention can be a dot coding mark; the dot coding mark points are digital codes formed according to different distributions on the plane. The coordinate system is introduced in the design of the dot coding mark, and the code is determined by the different positions of the coding points in the pre-designed coordinate system. The same code will not be generated due to the overall translation and rotation of the coding points, because the coding principle of the dot coding mark belongs to absolute coding; the dot coding mark is composed of coding points of the same size, so a complex algorithm is required to achieve it during recognition. There are many conditions used in the recognition process, and the recognition algorithm is stable.

[0072] Preferably, the light source may be a ring flash lamp. Figure 5 As shown in the figure, the reflective ability of the retro-reflective material to light depends on two angles, namely the incident angle γ of the light and the light source deviation angle β (or observation angle). The incident angle γ refers to the angle between the axis of the flash light source and the normal of the plane where the retro-reflective material is located; while the light source deviation angle β refers to the angle between the axis of the flash light and the optical axis of the camera. The smaller the light source deviation angle β, the stronger the reflective ability of the retro-reflective material. In order to reduce the β angle, a ring flash commonly used for macro photography is selected. It can be mounted in front of a professional camera lens, thereby ensuring that the optical axis of the ring flash is coaxial with the optical axis of the professional camera lens, that is, β is almost zero.

[0073] In a specific implementation, in the above-mentioned centroid measurement method provided in an embodiment of the present invention, step S103 processes the quasi-binary image to obtain three-dimensional point cloud data of the object to be measured, which can specifically include: first, identifying and locating the coding mark from the quasi-binary image, and determining the image point coordinates of the mark point; then, according to the coding mark and the image point coordinates of the mark point, performing image matching and splicing on the quasi-binary image; finally, using the bundle adjustment method to solve and obtain the three-dimensional point cloud data of the object to be measured.

[0074] It is understandable that digital photogrammetry is to obtain the two-dimensional image coordinates of the characteristic target (such as a circular retroreflective mark, etc.) by processing the image of the measured object, that is, to locate the characteristic target image, and then measure it. If the positioning accuracy of the characteristic target on the image can be improved by software processing, it is equivalent to directly improving the measurement accuracy. One of the key technologies of digital photogrammetry is the recognition and positioning of the mark. In high-precision three-dimensional measurement, all subsequent processing depends on the recognition and precise positioning of the mark in the initial image processing process. In the process of computer processing the mark image and performing sub-pixel positioning, two tasks are usually completed, mark recognition and mark positioning. The recognition of the mark image requires the unique detection of the mark image in the image, and the positioning is to accurately determine the center of the mark image.

[0075] Since the present invention uses a circular artificial mark, the positioning accuracy of the center of the circular artificial mark affects the three-dimensional coordinate accuracy of the detected point in space. Figure 6 As shown, the circular mark is a part of an ellipse or a cone after being imaged by a lens. In order to calculate the center of the circular mark, it can be achieved by accurately calculating the center of the ellipse image in the image. In order to achieve high-precision positioning of the ellipse center, the edge of the mark image can be first extracted, and then the extracted mark image edge can be identified and calculated to determine the exact position of the mark center.

[0076] Therefore, in a specific implementation, in the above-mentioned centroid measurement method provided in an embodiment of the present invention, before identifying and locating the coding mark from the quasi-binary image, it may also include: first, using the Canny operator to perform edge detection on the quasi-binary image; then, performing edge tracking on the quasi-binary image with boundary information obtained after edge detection; finally, distinguishing the edges obtained by tracking, eliminating false edges or non-mark edges, and extracting the image point edges of the coding points and the image point edges of the mark points.

[0077] It should be noted that the edge of an object is a basic feature of an image. The so-called edge refers to the set of pixels in an image whose grayscale has a step or peak-like change. The edge widely exists between objects and objects, and between objects and backgrounds. It is manifested in the discontinuity of the image (such as a sudden change in grayscale, a sudden change in texture structure, etc.). Discontinuity in a large range is called a boundary. The key to artificial mark image recognition lies in edge extraction.

[0078] Edge detection is to use edge points to outline the contours of each object, so as to analyze whether the image contains certain targets that need to be identified. The purpose of edge detection is to highlight the edges of the image in order to extract image features. If a pixel falls on the boundary of an object in the image, then its neighborhood will become a grayscale change band. The two most useful features for this change are the grayscale change rate and direction, which are represented by the amplitude and direction of the gradient vector respectively. Since edge points are generally located at positions where the grayscale value changes dramatically in the image, that is, where the grayscale value derivative is large or extremely large, the classic edge extraction method is to examine the grayscale changes of each pixel of the image in a certain neighborhood, and use the change law of the first-order or second-order directional derivatives of the edge neighborhood to detect the edge. This method is called the edge detection gradient method. The present invention uses the Canny operator for edge detection. The Canny operator produces a single-pixel edge, is insensitive to noise, and is suitable for extracting the edges of circular artificial signs.

[0079] The edge detection method proposed by Canny is optimal for step-type edges affected by white noise. The optimality of the Canny detection operator is related to the following three criteria: no important edges are lost, there should be no false edges; the deviation between the actual edge and the detected edge position is minimal; multiple responses are reduced to a single edge response. This is partially covered by the first criterion, because when there are two responses corresponding to a single edge, one of them should be considered false. This criterion solves the problem of edges affected by noise and plays a role in resisting non-smooth edge detection operators.

[0080] Canny derived a new detection operator based on the following concepts:

[0081] The edge detection operator is expressed for 1D signals and the first two optimal criteria, and the complete solution can be obtained using calculus methods.

[0082] If a third criterion (multiple responses) is added, the optimal solution needs to be obtained through numerical optimization. The optimal filter can be effectively approximated as the first-order differential of a Gaussian smoothing filter with a standard deviation of less than 20%, which is for ease of implementation.

[0083] Extend the edge detection operator to the 2D case. A step edge is determined by position, direction, and possibly amplitude (intensity). It can be shown that convolving the image with a symmetric 2D Gaussian and then differentiating it along the gradient direction (perpendicular to the edge direction) forms a simple and effective directional operator.

[0084] Let G be a 2D Gaussian smoothing operator, also known as a Gaussian filter, whose expression is:

[0085]

[0086] Where x and y are image coordinates, and σ is the standard deviation of the associated probability distribution. The standard deviation σ is the only parameter of the Gaussian filter, and it is proportional to the size of the filter's operating neighborhood. The farther away from the center of the operator, the less influence the pixel has, and the influence of pixels more than 3σ away from the center can be ignored.

[0087] Convolve the image with operator G, let G n is the first-order directional derivative of G along the n direction, and its expression is:

[0088]

[0089] The direction n should be perpendicular to the edge. Although this direction is not known in advance, a reliable estimate based on the direction of the smoothed gradient can be obtained. If f is an image function, the normal n of the edge can be estimated as follows:

[0090]

[0091] The edge is located at G n Convolve with the image f at the local maximum position in the n direction, so:

[0092]

[0093] Substituting (2) into the above formula, we get:

[0094]

[0095] Formula (5) shows how to find the local maximum in the direction perpendicular to the edge. This operator is often called non-maximum suppression.

[0096] Since convolution and differentiation in formula (5) are operations that satisfy the associative law, we can first convolve the image f with a symmetrical Gaussian G, and then use the estimated value of the direction n calculated according to formula (2) to calculate the second-order directional derivative. The strength of the edge (the gradient amplitude of the image function f) is calculated as follows:

[0097]

[0098] The so-called "stripe" problem is caused by spurious responses to individual edges due to noise. Generally speaking, this problem is very common in edge detection. The output of the edge detection operator is usually thresholded to determine which edges are prominent. Streaks refer to the situation where the edge outline is disconnected and are caused by fluctuations in the operator output exceeding or below the threshold. The striation phenomenon can be eliminated by hysteresis thresholding. If the edge response exceeds a high threshold, these pixels constitute the definite output of the edge detection operator at a certain scale. Individual weak responses usually correspond to noise, but if these points are connected to some points with strong responses, they are likely to be real edges in the image. These connected pixels are considered edge pixels when their response exceeds a low threshold. The low and high thresholds here need to be determined based on an estimate of the signal-to-noise ratio.

[0099] The appropriate scale of the operator depends on the objects contained in the image. The solution to this problem is to use multiple scales and collect the obtained information. Canny detection operators of different scales are represented by the standard deviation σ of the Gaussian filter. It is possible that there are several scales of operators that give a prominent response to the edge (that is, the signal-to-noise ratio exceeds the threshold). In this case, the operator with the smallest scale is selected because its positioning is the most accurate.

[0100] The Canny algorithm is a multi-stage processing process. First, the image is Gaussian smoothed, which is achieved through Gaussian convolution. Then a simple two-dimensional first-order differential operation is performed on the smoothed image to obtain a gradient map. The "non-maximum suppression" algorithm is used to find possible edge points in the image. Finally, the image edge points are recursively found through double threshold values ​​to obtain a single-pixel width edge image.

[0101] The performance of the Canny operator is mainly determined by three parameters: the Gaussian filter standard deviation σ used in the smoothing process, and the two thresholds h1 and h2 required in the tracking process. Increasing the width of the Gaussian filter standard deviation can reduce the sensitivity of the detection process to noise, but at the cost of losing some detailed information of the image and blurring the target edge, so that the probability of target edge detection error also increases slightly with the increase of the Gaussian dispersion parameter. The high threshold h2 controls the nature of the starting point for edge detection in the gradient image. The smaller the h2 value, the more edge information is retained, and the finer the target edge is, but the number of mixed pseudo edges will also increase; as h2 increases, pseudo edges can be effectively suppressed, but edge information may be lost. After finding a point above the high threshold, the low threshold h1 controls the nature of the end point of this detection. The smaller h1 is, the more edge information is retained and the more continuous the edge is; as h1 increases, the fewer visible target edge features are, and the edge appears broken. Different parameter settings and different output images will produce different effects. σ=2 is currently a common choice.

[0102] In addition, it should be noted that the image obtained after the Canny operator processing is a binary image with boundary information. Due to the influence of noise in the image, there are false edges in the image. By increasing the threshold value h2, some false edges can be eliminated, but some details will also be lost. Therefore, the present invention obtains the edge through the edge tracking method, and identifies the obtained edge to determine whether the edge meets the circular mark edge.

[0103] Edge tracking is mainly completed through the following steps:

[0104] Step 1: Search the image from the top left until a pixel in a new region is found. The pixel p0 is the pixel with the smallest column number and the smallest row value among all pixels in the new region. Pixel p0 is the starting pixel of the region boundary. Define a variable dir to store the previous moving direction along the boundary from the previous edge element to the current boundary element. Set: dir = 7, such as Figure 7a As shown, 8 directions are defined for the neighborhood of each pixel.

[0105] The second step is to search the 3×3 neighborhood of the current pixel in a counterclockwise direction, such as Figure 7b As shown, when dir is an odd number, take the remainder of (dir+6) divided by 8; Figure 7c As shown, when dir is an even number, take the remainder of (dir+7) divided by 8, according to Figure 7c The first pixel found that has the same value as the current pixel is a new edge p n . Update the value of dir.

[0106] Step 3: If the current edge pixel p n is equal to the second edge pixel p1, and the previous edge pixel p n-1 If it is equal to p0, stop, otherwise repeat the second step.

[0107] During the shooting process, the change in the camera position causes a certain offset in the image formed by the circular mark point. The image formed by the circle is generally an ellipse. The recognition of the mark is to extract the elliptical edge that meets certain requirements. Since the image processed by the Canny operator is an image with false edges or non-mark edges, the edge of the mark image can be obtained by edge tracking, but the false edges will also be tracked at the same time. Therefore, it is necessary to judge the tracked edges and the pixels contained in the edges to realize the recognition of the circular mark.

[0108] Specifically, the image spot can be checked by geometric inspection to see if it meets the mark image standard. These inspections are the basis for positioning the mark image. The geometric inspection includes inspections of size, number of edge pixels (perimeter), aspect ratio, area, and shape factor (circularity). Among them, the size can be the perimeter of the edge of the spot. The perimeter of the figure S can be obtained by the boundary tracking method. The perimeter l is the number of pixels at the boundary of the mark image, is the number of 4-neighborhood pixels in the edge of the image, and s2 is the number of 8-neighborhood pixels in the edge of the image. If the edge perimeter size exceeds a given range, it can be considered that the image spot is not a logo image. The present invention sets a range for the perimeter of the candidate logo edge. If the edge pixels of a candidate area are not within this range, the edge is eliminated. The ratio of the distances in two perpendicular directions of the image spot can also be used as a test standard. This ratio is called the aspect ratio or the height-to-width ratio. The maximum distance or the distance in the scanning direction can be used. The area of ​​the figure S in the image is defined as the total number of pixels contained in the closed figure. When the grayscale logo image is edge tracked, the area A of the image contained in the edge can be obtained. The shape factor (circularity) is the degree to which the shape of the object being evaluated is close to a circle. The shape factor k, It is a parameter used to describe the geometric features of a two-dimensional plane figure. 0<k≤1, when the two-dimensional figure is a circle, k=1. When the photography angle of a circular sign reaches 70 degrees, the k value is about 0.66. The shape of the ellipse changes with the photography angle. If the shape factor of the candidate area does not meet the set value, the edge is also removed.

[0109] After the mark image in the image passes the geometric test, most of the false edges and false mark images can be basically eliminated. However, in the case of complex background at the measurement site, some false marks may still exist, so the image needs to be further identified. Generally, the information of the image itself is used for identification, that is, pixel grayscale inspection. Pixel grayscale inspection includes black / white ratio: the ratio of the minimum closed window area of ​​the mark image including non-zero brightness (non-background brightness) to the given window area is called black / white ratio. The black / white ratio can be used as a mark image inspection standard, and the optimal value for a circular mark should be 1 / π. However, due to the influence of discrete pixel sampling and perspective projection distortion, the ratio range must be determined in advance based on image information and experience. Pixel grayscale inspection also includes brightness standard: the brightness standard refers to the brightness value of the pixels included in the light spot to determine whether the light spot meets the mark image standard. This standard can use the average value, maximum value or minimum value of all pixels in the light spot as the inspection condition. For example, taking the light spot average value as the standard, when the average value is too dark or too bright, the light spot image can be eliminated.

[0110] In order to develop image scale inspection standards and ratio standards, it is necessary to know the prior knowledge of the actual length of the mark, the image scale and the expected perspective projection distortion. These inspection standards can usually eliminate the influence of false marks such as background light sources and specular reflections and other noise. The image spot shape factor can be used as an inspection standard to remove image spots with incorrect shapes.

[0111] Furthermore, in a specific implementation, in the above-mentioned centroid measurement method provided in an embodiment of the present invention, identifying a coding mark from a quasi-binary image may specifically include: first, finding the image point of the template point in the quasi-binary image; then, restoring the found image point to the coordinates in a pre-designed coordinate system through affine transformation, and calculating the affine transformation parameters at the same time; then, using the affine transformation parameters to restore the image points of the coding points around the template point; finally, decoding the coding point to identify the coding of the coding mark.

[0112] It should be noted that the recognition of dot-coded marks can be regarded as a problem of matching point sets in two images. Figure 8 As shown, the five points A, B, C, D, and E are the design template points of the coding mark. These five template points can be regarded as a set of points in one image, and the coding mark formed in the image after photography is regarded as a set of points in another image. The recognition method is to use the designed template points to find the image points of the template points in the image, and then restore the points in the image to the design coordinates through affine transformation, and at the same time calculate the affine transformation parameters. Use the affine transformation parameters to restore the image points of the coding points around the template points, and then compare them with the design coordinates to decode the coding points to obtain the code of the coding mark. The recognition process of the point-shaped coding mark includes: calculating the design template cross ratio, such as Figure 8As shown in the figure, the intersection ratio of four straight lines passing through points A, C, D, and E with point B as the center is obtained; a set of points that meet the conditions is found in the image, and the cross ratio invariant is used for matching to obtain the corresponding point set of the template points in the image; the affine transformation is used to obtain the affine parameters; the encoding points are restored through the affine parameters and decoded at the same time to obtain the encoding of the encoding mark.

[0113] In a specific implementation, in the above-mentioned centroid measurement method provided in an embodiment of the present invention, the coding mark is located from a quasi-binary image, and the image point coordinates of the mark point are determined, which can specifically include: first, according to the image point edge of the coding point, the image point center coordinates of the coding point are determined by least squares fitting; then, according to the center coordinates of the coding point and in combination with the positional relationship between the coding mark and the marker point, the image point center coordinates of the marker point are determined.

[0114] It should be noted that the high-precision positioning of the center of the circular artificial mark is based on the correct recognition of the mark image. The present invention adopts the least squares ellipse fitting method. The premise of using the fitting method is that the characteristics of the target, such as the grayscale distribution of the image, the noise of the shadow pattern and the measured object, meet the known or assumed function form. By fitting the grayscale or coordinates of the target in the discrete image, the continuous function form of the target can be obtained, thereby determining the parameter values ​​describing the object to perform sub-pixel positioning on the target.

[0115] The least squares ellipse fitting method uses the coordinates of the point set located on the circumference of the logo image to obtain the five parameters of the ellipse through the least squares fitting method, and calculates the coordinates of the center of the ellipse based on the ellipse parameters, thereby locating the coordinates of the center of the logo image. The point set on the circumference is realized through edge detection and logo recognition algorithms. There are five parameters that describe the ellipse, namely the major semi-axis, minor semi-axis, center coordinates of the ellipse, and the angle between the major semi-axis and the x-axis in the image coordinate system. The analytical expression of the plane ellipse is:

[0116] Ax 2 +2Bxy+Cy 2 +2Dx+2Ey+1=0 (7)

[0117] When there are many edge points, the coefficients A, B, C, D, and E of the ellipse equation can be obtained by least squares ellipse fitting. The five parameters of the ellipse can be calculated based on the ellipse equation coefficients. The calculation formula is as follows:

[0118]

[0119]

[0120] In equations (8) and (9), (x0, y0) are the coordinates of the center of the fitted ellipse, and θ is the angle between the major semi-axis and the x-axis of the image coordinate system. According to equations (7) and (9), we can get the following equation:

[0121]

[0122] The parameters obtained from formula (10) can be used to calculate the major and minor semi-axes P1 and P2 of the ellipse, as shown in formula (11):

[0123]

[0124] In order to suppress the influence of image noise and improve positioning accuracy, the boundary can be fitted multiple times. That is, after the first fitting, each boundary point is substituted into the above formula to calculate the residual. Then, a part of the points with large residuals are removed, and the remaining points are fitted with a secondary ellipse. This process can be repeated several times until the mean square error is less than a certain threshold.

[0125] Next, we need to automatically match the artificial coding marks with the marking points. The automation of measurement has always been the goal pursued by people. Using artificial coding marks and automatic matching of marking points to speed up the measurement and realize the automation of measurement is a good shortcut.

[0126] In digital industrial photogrammetry, due to the use of artificial markers with regular shapes, the image points can be accurately located before matching. Image matching only needs to determine the image points with the same name (i.e., the image points of the same marker on different images). In view of the characteristics of digital photogrammetry, the matching based on the nuclear line constraint is more commonly used. The nuclear line principle is that one or two cameras shoot the same object at different positions (camera stations) to obtain two images of the measured target at different angles, which are called stereo image pairs (models). In the field of computer vision, this process is called binocular stereo vision.

[0127] Fig. 9 Represents a stereo image pair. The images of the object point P on the image 1 and the image 2 are p1 and p2 respectively. p1 and p2 are called homologous image points. The object point P, the projection centers s1 and s2 are coplanar. This plane is called the epipolar plane of the object point P. The intersection of the epipolar plane and the image plane (l1 and l2) is called the epipolar line. Obviously, the corresponding image points p1 and p2 must be on the corresponding epipolar lines l1 and l2.

[0128] Epipolar line is an important concept in photogrammetry. In digital industrial photogrammetry, when the rough orientation and image point positioning are completed, the corresponding epipolar line of the image point on other images can be obtained, and the image point matching range is converted from two-dimensional matching to one-dimensional matching, which greatly improves the matching speed and accuracy.

[0129] According to the epipolar principle, if the image point of a certain object on one image is known, then the corresponding image point of the image point on other images must be on its corresponding epipolar line. If the exact value or approximate value of the image orientation parameter is known, the corresponding epipolar line can be calculated.

[0130] Now take three camera stations as an example. Fig.10 As shown, S1, S2 and S3 are the optical centers of the camera lenses, I1, I2 and I3 are image planes, O1, O2 and O3 are image principal points, p′, p″ and p″′ are the corresponding image points of the object point P, l 12 and l 13 is the corresponding epipolar line of the image point p′ on I2 and I3.

[0131] Suppose the coordinates of a point in the image space coordinate system of camera station 1 are (x1, y1, z1), and its coordinates in the image space coordinate system of camera station 2 are (x, y, z), then the following equation holds:

[0132]

[0133] In the above formula, (Xs i ,Ys i ,Zs i ) is the translation parameter of camera station i in the object space coordinate system (i=1,2), M1 and M2 are the rotation matrices of camera station 1 and camera station 2 relative to the object space coordinate system. In the image space coordinate system of camera station 1, the coordinates of S1 and p′ are known values, which are (0,0,0) and (x1,y1,-f) respectively. Therefore, according to the above formula, the coordinates of S1 and p′ in the image space coordinate system of camera station 2 can be obtained, which are set as (Xs 12 ,Ys 12 ,Zs 12 ) and (x 12 ,y 12 ,z 12 ).

[0134] Because the three points S1, p′ and S2 are coplanar (epithelial plane), in the image space coordinate system of camera station 2, the plane equation can be expressed as:

[0135]

[0136] In the image space coordinate system of camera station 2, the plane equation of the image plane is:

[0137] z=-f (14)

[0138] Substituting (14) into (13), we can obtain the epipolar line l of the image point p′ on the image plane I2: 12 The equation is:

[0139]

[0140] Substituting the determinant values ​​in the above formula with k1, k2, and c respectively, the above formula can be simplified as follows:

[0141] k1x-k2y-c·f=0 (16)

[0142] Similarly, we can also get the epipolar line l of the image point p′ on the image plane I3 13 The equation for .

[0143] Epipolar matching is carried out in two steps: the first step is initial matching to determine the range of points with the same name; the second step is precise matching to determine the only point with the same name. The specific process is as follows:

[0144] Initial matching: Fig.11 As shown in Figure 1, theoretically, the same-name points on images 2 and 3 should be on the corresponding epipolar lines. However, due to certain errors in camera parameters, camera station parameters, and image point coordinates, the same-name points usually deviate from the epipolar line by a certain distance in actual measurement. Therefore, a threshold ε (ε is related to the accuracy of the initial parameters) is given, and all image points whose perpendicular distance to the epipolar line is less than ε are initially treated as same-name points, that is,

[0145]

[0146] like Fig.11 As shown in the figure, p″, p 21 、p 22 、p 23 and p″′, p 31 、p 32 、p 33 These are the points with the same name that are initially found.

[0147] Exact match: Fig.12 As shown in the figure, in order to reduce the ambiguity of matching, the only same-name point p′ on images I2 and I3 is determined, and all preliminary same-name points p″, p′ on image I2 are 21 、p 22 、p 23 , find the corresponding epipolar line l on the image I3 according to the above method p ″3, l 213 , l 223 , l 233 , let l 13 intersect at points p3″, p 213 、p 223 、p 233 Then, find p″′, p 31 、p 32 、p 33 and p3″, p 213 、p 223 、p 233The two points with the smallest distance between the two groups of points, then the corresponding points of these two points on images I2 and I3 are the same-name points of point p′ on I1. Fig.12 As shown, the two nearest points are p3″ and p″′, and their corresponding image points are point p″ on I2 and p″′ on I3, that is, the image points with the same name as p′ are p″ and p″′.

[0148] The above is based on the epipolar line matching of three stations. If there are more than three stations, the stations can be grouped and matched in such a way that three adjacent stations form a group. Finally, the matching results of each group are combined to obtain the final result.

[0149] In addition, it should be noted that in the process of rapid solution of self-calibration bundle adjustment, the target image taken by a professional measurement digital camera can obtain the precise coordinates of the marker point on the image after digital image processing. The image can be roughly oriented by identifying the coded marker, that is, the initial value of the image's external orientation element (camera station parameter) can be determined. On this basis, as long as the same-name image points on each image are determined (that is, the image points of the same marker point on different images), the precise coordinates of the object point can be solved by the bundle adjustment.

[0150] The bundle adjustment method uses the coordinates of the image point as the observation value, each beam as the basic unit, and uses the collinearity equation to list the basic error equation. The adjustment is performed in the entire area, and the camera internal and external parameters, spatial point coordinates, etc. are optimized and solved. If the camera's internal parameters and distortion parameters are added as unknown parameters to the error equation, the camera parameter values ​​are calculated while calculating the three-dimensional coordinates of the point and the camera's external parameters, which is called the self-calibration bundle adjustment method. Since the camera distortion parameters can be accurately calibrated without adding additional observation values, the measurement accuracy is improved.

[0151] In specific implementation, in the above-mentioned centroid measurement method provided in an embodiment of the present invention, step S104 measures the position of the hanging point perpendicular line of the object to be measured at different suspension angles in the three-dimensional coordinate system of the object, and determines the centroid coordinates of the object to be measured according to the coordinate value of the intersection point of the two hanging point perpendicular lines, specifically including: a plurality of measurement feature points are pasted on the hanging point perpendicular line of the object to be measured; at different suspension angles, the spatial three-dimensional coordinates of the measurement feature points pasted on the hanging point perpendicular line in the three-dimensional coordinate system of the object are obtained through feature extraction and spatial solution; the spatial three-dimensional coordinates of the measurement feature points pasted on the hanging point perpendicular line are fitted by the least squares method to obtain the corresponding hanging point perpendicular line straight line equation; the two fitted hanging point perpendicular line straight line equations are combined to solve the centroid coordinates of the object to be measured.

[0152] Specifically, taking the object to be measured as a certain type of artillery as an example, the above-mentioned centroid measurement method provided by the embodiment of the present invention is described:

[0153] Step 1: Paste measurement marks and coding marks on the surface of the artillery, and place a precisely calibrated reference ruler in an appropriate position.

[0154] Step 2: Use a professional camera to photograph the artillery from different positions.

[0155] Step 3: Use the digital photogrammetry system to calculate the three-dimensional coordinates of the center of the measurement mark and establish the three-dimensional point cloud data of the artillery.

[0156] Step 4: Establish the coordinate origin and coordinate system of the artillery. Specifically, Fig.13 As shown, the coordinate origin O is determined at the intersection of the front wheel axis and the left-right symmetry plane; the X axis (ordinate): a horizontal straight line passing through the origin and perpendicular to the front wheel axis, pointing to the rear; the Y axis (abscissa): the front wheel axis, facing the driving direction and pointing to the left; the Z axis (height coordinate): a straight line passing through the origin and perpendicular to the horizontal plane, pointing upward, and the position of the center of mass in the coordinate system is represented by C. By scaling, translating, rotating, and affine transforming the three-dimensional point cloud data of the artillery in step 3, the three-dimensional spatial coordinates of the artillery in the three-dimensional coordinate system of the artillery are obtained.

[0157] Step 5: Hang the gun. Specifically, in order to get the vertical line of the hanging point more intuitively, hang another line with a measurement mark at the starting point of the hanging line, which is the hanging point. This line is the vertical line of the hanging point of the gun. Paste four feature points on the vertical line of the hanging point. This is to use the spatial coordinates of several feature points to fit the spatial straight line in the next step, which is the required vertical line of the hanging point of the gun. During the entire suspension process, keep the spatial position of the suspension point unchanged. The suspension state of the gun is as follows: Fig.14 As shown. By changing the length of the slings on both sides, the artillery suspension status is as follows Fig.15 shown.

[0158] Step 6: Repeat steps 2 to 4 at different suspension angles to obtain a complete image of the feature points on the gun and the feature points on the vertical line of the suspension point. After feature extraction and spatial calculation, the three-dimensional coordinates of the feature points marked on the vertical line of the suspension point in the gun coordinate system are obtained. Fig.16 As shown, after lifting, the three-dimensional spatial coordinates of the feature point marked on another vertical line can be obtained. The least squares method is used to fit the spatial point coordinates to obtain the equation of the vertical line of the lifting point in the three-dimensional coordinate system of the artillery. The spatial straight line equations of the two vertical lines are combined to solve the coordinates of the center of mass of the artillery.

[0159] The above-mentioned artillery centroid measurement method based on photogrammetry technology has a simple principle and is easy to operate. It can automatically extract the spatial information of the photographed artillery, does not require special measurement equipment such as ground scales and platforms, and does not require the measurement of artillery weight, size and other parameters. It can well solve the problems of too many measurement parameters, too many measurement equipment, and high difficulty in operation in the previous artillery centroid measurement. Actual measurements have shown that this measurement method can meet the accuracy requirements of centroid measurement, and is particularly suitable for artillery and equipment equipped with lifting devices. It is a meaningful exploration of centroid measurement methods.

[0160] The results of the center of mass measured by the platform support reaction method are used as the target reference value for comparison, which has a certain reference value. From the comparison of the measurement results of the two methods, it can be seen that the center of mass coordinate error is within the allowable range.

[0161] Correspondingly, an embodiment of the present invention further discloses a centroid measurement device, including a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the centroid measurement method disclosed in the above embodiment is implemented.

[0162] For more specific processes of the above method, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0163] Furthermore, the present invention also discloses a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the centroid measurement method disclosed above is implemented.

[0164] For more specific processes of the above method, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0165] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device and storage medium disclosed in the embodiment, since they correspond to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0166] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0167] The steps of the method or algorithm described in conjunction with the embodiments disclosed in the present invention can be implemented directly by hardware, software modules executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0168] A centroid measurement method provided by an embodiment of the present invention includes: pasting a backlight reflection mark on the surface of the measured object as a measurement feature point; using a professional camera to shoot the measured object under the illumination of a light source at a specific position to obtain two or more quasi-binary images; using a digital photogrammetry system to process the quasi-binary images to obtain three-dimensional point cloud data of the measured object and establish a three-dimensional coordinate system of the object; measuring the vertical line position of the hanging point of the measured object at different hanging angles in the three-dimensional coordinate system of the object, and determining the centroid coordinates of the measured object according to the coordinate value of the intersection of the two hanging point vertical lines. The above centroid measurement method is based on digital photogrammetry technology, with simple principles and simple operation. By adding an artificial mark with obvious characteristics on the measured object as a measurement feature point to assist in completing the measurement process, the spatial information of the photographed object can be automatically extracted, and special measurement equipment such as a platform and a ground scale is not required. It is not necessary to measure parameters such as the weight and size of the object, and fewer parameters are required. It can solve the problem of too many measurement equipment and measurement parameters in the previous centroid height measurement, and it is very good to perform high-precision measurement and object space description, and it can ensure and improve measurement accuracy, reliability, measurement efficiency and automation. In addition, the present invention also provides corresponding equipment and computer-readable storage medium for the centroid measurement method, which further makes the above centroid measurement method more practical. The equipment and computer-readable storage medium have corresponding advantages.

[0169] Finally, it should be noted that, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0170] The centroid measurement method, device and storage medium provided by the present invention are introduced in detail above. The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A centroid measurement method, characterized in that: include: Paste a retroreflective mark on the surface of the object to be measured as a measurement feature point; the retroreflective mark is a mark point and a coding mark made of retroreflective material; One side of the retro-reflective material is composed of glass beads or microcrystalline cubic corner bodies; each of the coding marks has unique digital coding information; the marking points are circular marking points; the coding marks are dot-shaped coding marks; the coding marks determine the coding by the different positions of the coding points in the pre-designed coordinate system; one of the marking points is fixed at each end of the reference ruler, providing a high-precision length reference during the measurement process; The object to be measured is photographed by a professional camera under the illumination of a light source at a specific position to obtain two or more quasi-binary images; the digital coding information of the coding mark is used as a common point between different images to automatically splice the quasi-binary images; the light source is a ring flash; the optical axis of the ring flash is coaxial with the optical axis of the professional camera lens; A digital photogrammetry system is used to identify and locate the coding mark and the marking point from the quasi-binary image, and to determine the image point coordinates of the marking point; image matching and splicing are performed on the quasi-binary image according to the coding mark and the image point coordinates of the marking point; three-dimensional point cloud data of the object to be measured is obtained by solving the bundle adjustment method, and a three-dimensional coordinate system of the object is established; The process of identifying the coded mark from the quasi-binary image specifically includes: finding the image point of the template point in the quasi-binary image; restoring the found image point to the coordinates in the pre-designed coordinate system by affine transformation, and calculating the affine transformation parameters; restoring the image points of the coded points around the template point by using the affine transformation parameters; decoding the coded points to identify the code of the coded mark; The position of the vertical line of the hanging point of the object to be measured at different suspension angles in the three-dimensional coordinate system of the object is measured, and the coordinates of the center of mass of the object to be measured are determined according to the coordinate values ​​of the intersection points of the two hanging point vertical lines, including: a plurality of measurement feature points are pasted on the vertical line of the hanging point of the object to be measured; at different suspension angles, the spatial three-dimensional coordinates of the measurement feature points pasted on the vertical line of the hanging point in the three-dimensional coordinate system of the object are obtained through feature extraction and spatial solution; the spatial three-dimensional coordinates of the measurement feature points pasted on the vertical line of the hanging point are fitted by the least squares method to obtain the corresponding straight line equation of the hanging point vertical line; the two fitted straight line equations of the hanging point vertical line are combined to solve the coordinates of the center of mass of the object to be measured; during the entire suspension process, the spatial position of the suspension point remains unchanged.

2. The centroid measurement method according to claim 1, characterized in that: The marking points are located around the coding mark; The distance between each two of the marking points is measured by a reference ruler.

3. The centroid measurement method according to claim 2, characterized in that: Before identifying and locating the coding mark from the quasi-binary image, the method further includes: Using the Canny operator to perform edge detection on the quasi-binary image; Performing edge tracking on the quasi-binary image with boundary information obtained after edge detection; The edges obtained by tracking are judged, false edges or non-marker edges are eliminated, and the image point edges of the coding points and the image point edges of the mark points are extracted.

4. The centroid measurement method according to claim 3, characterized in that: Locating the coding mark from the quasi-binary image and determining the image point coordinates of the mark point specifically includes: According to the pixel edge of the coding point, the pixel center coordinates of the coding point are determined by least square fitting; The image point center coordinates of the marker point are determined according to the center coordinates of the encoding point and in combination with the positional relationship between the encoding mark and the marker point.

5. A centroid measuring device, characterized in that: The method comprises a processor and a memory, wherein the processor implements the centroid measurement method according to any one of claims 1 to 4 when executing the computer program stored in the memory.

6. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the centroid measurement method according to any one of claims 1 to 4 is implemented.