CN113899333A - Distance measuring method and device, electronic equipment and storage medium - Google Patents

Distance measuring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113899333A
CN113899333A CN202111149795.9A CN202111149795A CN113899333A CN 113899333 A CN113899333 A CN 113899333A CN 202111149795 A CN202111149795 A CN 202111149795A CN 113899333 A CN113899333 A CN 113899333A
Authority
CN
China
Prior art keywords
target point
distance
height
information
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111149795.9A
Other languages
Chinese (zh)
Inventor
方军
任锋
汪旭生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou JQS Info Tech Co Ltd
Original Assignee
Suzhou JQS Info Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou JQS Info Tech Co Ltd filed Critical Suzhou JQS Info Tech Co Ltd
Priority to CN202111149795.9A priority Critical patent/CN113899333A/en
Publication of CN113899333A publication Critical patent/CN113899333A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/16Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring distance of clearance between spaced objects

Abstract

The invention discloses a distance measuring method, a distance measuring device, electronic equipment and a storage medium, wherein the distance measuring method comprises the following steps: acquiring height information corresponding to a plurality of position points of an object to be measured and target point information corresponding to the object to be measured; determining a height curve corresponding to the object to be measured based on the plurality of position points and the height information; determining a target point on the height curve according to the target point information; determining a first distance between the first target point and the second target point in a preset direction; based on the first distance, a second distance between the first position point and the second position point on the object to be measured is determined. According to the technical scheme of the invention, the height curve is generated through the height information, the target point on the height curve is determined through the target point information, and then the second distance is determined, so that the second distance can be measured in a non-contact manner; the method is simple and has low requirement on equipment, can reduce the measurement cost, has high calculation speed under the condition of ensuring the measurement precision, and can also support batch use on an industrial production line.

Description

Distance measuring method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of length measurement technologies, and in particular, to a distance measurement method and apparatus, an electronic device, and a storage medium.
Background
In the field of industrial automation, the process of controlling products plays a crucial role in the quality of industrial products, the products on a production line need to be inspected completely, and the quality control of the products is very strict, so that a high-precision measuring instrument is required to be used for measurement.
The existing product distance measuring precision on an industrial production line cannot reach the precision of standard measurement, but the existing common standard measuring mode is a high-precision three-coordinate measuring instrument which has strong software function and is very suitable for standard product measurement and sampling measurement, but the three-coordinate measuring instrument has high requirement on a testing environment, is not suitable for a complex testing environment, and cannot realize batch testing due to high cost and large calculation amount of the three-coordinate measuring instrument.
Disclosure of Invention
The invention aims to provide a distance measuring method, a distance measuring device, electronic equipment and a storage medium, wherein a height curve is generated through height information, a target point on the height curve is determined through target point information, a second distance between a first position point and a second position point on an object to be measured is further determined, and the second distance can be measured in a non-contact manner; the method is simple and has low requirement on equipment, can reduce the measurement cost, has high calculation speed under the condition of ensuring the measurement precision, and can also support batch use on an industrial production line.
In order to achieve the purpose, the invention provides the following scheme:
a method of distance measurement, the method comprising:
acquiring height information corresponding to a plurality of position points of an object to be measured and target point information corresponding to the object to be measured; the plurality of position points are distributed at intervals in a preset direction, the preset direction is a horizontal direction, and the target point information is information for indicating a target point;
determining a height curve corresponding to the object to be measured based on the plurality of position points and the height information;
determining the target points on the height curve according to the target point information, wherein the target points comprise a first target point and a second target point;
determining a first distance between the first target point and the second target point in the preset direction;
determining a second distance between a first position point and a second position point on the object to be measured based on the first distance; the first location point corresponds to the first target point, and the second location point corresponds to the second target point.
Optionally, the obtaining of the height information corresponding to the multiple position points of the object to be measured includes:
controlling the height measuring device to move along the preset direction;
sending a first control signal to the height measuring equipment under the condition that the height measuring equipment is detected to be located at a first preset position, so that the height measuring equipment performs height acquisition once every preset time interval;
sending a second control signal to the height measuring equipment under the condition that the height measuring equipment is detected to be located at a second preset position, so that the height measuring equipment stops collecting and first height information is obtained;
sending a third control signal to the height measuring equipment under the condition that the height measuring equipment is detected to be located at the third preset position, so that the height measuring equipment moves along the reverse direction of the preset direction, and height acquisition is carried out at intervals of preset time;
under the condition that the height measuring equipment is detected to be located at the fourth preset position, sending a fourth control signal to the height measuring equipment so that the height measuring equipment stops collecting and second height information is obtained;
obtaining height information corresponding to a plurality of position points of the object to be measured based on the first height information and the second height information.
Optionally, the target point information includes a target point type and preset offset information; the determining the target point on the height curve according to the target point information includes:
determining a first reference point and a second reference point of the height curve under the condition that the type of the target point is a first type, wherein the first reference point and the second reference point are characteristic points of the height curve;
determining the first target point and the second target point on the height curve based on the first reference point, the second reference point, and the preset offset information.
Optionally, the target point information includes a target point type and a preset condition; the determining the target point on the height curve according to the target point information includes:
and under the condition that the type of the target point is a second type, screening a point meeting the preset condition on the height curve as the target point.
Optionally, the determining a first distance between the first target point and the second target point in the preset direction includes:
acquiring time information corresponding to the first target point and the second target point respectively and a mapping relation between the time information and the position information;
acquiring first position information of the first target point in the preset direction and second position information of the second target point in the preset direction based on the time information corresponding to the first target point and the second target point respectively and the mapping relation;
and obtaining the first distance according to the first position information and the second position information.
Optionally, the determining a second distance between the first position point and the second position point on the object to be measured based on the first distance includes:
acquiring a second distance type;
determining the second distance based on the second distance type and the first distance.
Optionally, the second distance type includes a horizontal distance type and an actual distance type, and the second distance includes a third distance and a fourth distance; the determining the second distance based on the second distance type and the first distance comprises:
taking the first distance as the third distance if the second distance type is the horizontal distance type;
determining a second distance between the first target point and the second target point in the height direction when the second distance type is the actual distance type;
obtaining the fourth distance based on the first distance and the second distance.
In another aspect, the present invention also provides a distance measuring apparatus, including:
the device comprises an information acquisition module, a position detection module and a position detection module, wherein the information acquisition module is used for acquiring height information corresponding to a plurality of position points of an object to be measured and target point information corresponding to the object to be measured; the plurality of position points are distributed at intervals in a preset direction, the preset direction is a horizontal direction, and the target point information is information for indicating a target point;
a curve determining module, configured to determine a height curve corresponding to the object to be measured based on the plurality of position points and the height information;
a target point determining module, configured to determine the target points on the height curve according to the target point information, where the target points include a first target point and a second target point;
a first distance determining module, configured to determine a first distance between the first target point and the second target point in the preset direction;
a second distance determination module for determining a second distance between a first position point and a second position point on the object to be measured based on the first distance; the first location point corresponds to the first target point, and the second location point corresponds to the second target point.
In another aspect, the present invention further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the distance measurement method described above.
In another aspect, the present invention also provides a non-transitory computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the distance measurement method described above.
According to the distance measuring method, the distance measuring device, the electronic equipment and the storage medium, the height curve is generated through the height information, the target point on the height curve is determined through the target point information, the second distance between the first position point and the second position point on the object to be measured is further determined, and the second distance can be measured in a non-contact mode; the method is simple and has low requirement on equipment, can reduce the measurement cost, has high calculation speed under the condition of ensuring the measurement precision, and can also support batch use on an industrial production line.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings used in the description of the embodiment or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art it is also possible to derive other drawings from these drawings without inventive effort.
Fig. 1 is a flowchart of a method of measuring a distance according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for acquiring height information corresponding to a plurality of position points of an object to be measured according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for determining a target point on a height curve according to target point information according to an embodiment of the present invention;
fig. 4(a) (b) is a schematic diagram of determining a target point corresponding to target point information on a height curve according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for determining a first distance between a first target point and a second target point in a preset direction according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for determining a second distance between a first position point and a second position point on an object to be measured based on a first distance according to an embodiment of the present invention;
FIG. 7 is a flowchart of a method for determining a second distance based on a second distance type and a first distance according to an embodiment of the present invention;
fig. 8 is a block diagram of a distance measuring device according to an embodiment of the present invention;
fig. 9 is a schematic top surface profile of an object to be measured along a predetermined direction in a distance measuring method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
An application environment of the present invention may include a controller and a height measuring device. The height measuring device may refer to a device for measuring the height of a product by non-contact scanning of infrared or laser, etc. The height measuring device can acquire the height of the relative acquisition points by spacing preset lengths to complete height scanning. Before the scanning starts, the object to be measured may be placed on the measurement platform and the second distance may be placed along the preset direction corresponding to two end points (i.e., the first position point and the second position point) on the object to be measured. After the object to be measured is placed, the height measuring equipment is positioned above the object to be measured; the height measuring device will scan along a preset direction. Specifically, the height measuring device may include a driving device for driving the height measuring device to move and a height measuring device for performing height acquisition.
An embodiment of a distance measuring method according to the present invention is described below, and fig. 1 is a flowchart of a distance measuring method according to an embodiment of the present invention. It is noted that the present specification provides the method steps as described in the examples or flowcharts, but may include more or less steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system products may be executed sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) in accordance with the methods described in the embodiments or figures. As shown in fig. 1, the present embodiment provides a distance measuring method, which can be applied to a controller, and the method includes:
s101, acquiring height information corresponding to a plurality of position points of an object to be measured and target point information corresponding to the object to be measured; the plurality of position points are distributed at intervals in a preset direction, the preset direction is a horizontal direction, and the target point information is information for indicating a target point.
The object to be measured may include products, components and parts to be measured, such as an outer frame of a mobile phone. The plurality of position points may refer to a plurality of points that are distributed at intervals along a preset direction on the bottom surface of the object to be measured; in particular, the respective positions of the plurality of position points may be determined from the acquisition points of the height measuring device, the plurality of position points corresponding to a plurality of acquisition points at which the height measuring device is able to acquire the effective height of the object to be measured. It will be appreciated that the spacing between the plurality of location points is the same as the spacing acquired by the height measuring device. The height information on the plurality of position points may include heights of the object to be measured at the plurality of position points, respectively. The height information may be used to generate a corresponding height curve for the object to be measured. The preset direction may refer to a scanning direction of the height measuring apparatus; specifically, the preset direction is a horizontal direction. The target point information may be used to indicate a target point. The target point information may include a target point type, preset offset information, and preset conditions.
In practical applications, the controller may send a height measurement signal to the height measurement device; the height measuring device may start scanning after receiving the height measurement signal; specifically, it may be that the height acquisition is started from an initial position of the apparatus as a starting acquisition point, the height measuring device is driven by the driving device to move along a preset direction, and the height of the acquisition point opposite to the height measuring device is acquired at every preset length.
Alternatively, target point information corresponding to the object to be measured may be set in advance. For example, the target point information may be set according to a height change of the object to be measured along a preset direction after the object to be measured is placed on the platform.
S102, determining a height curve corresponding to the object to be measured based on the plurality of position points and the height information.
Wherein the height curve may characterize the height variation of the object to be measured in a preset direction. The direction of the X axis in the curve corresponds to a preset direction, and the direction of the Y axis corresponds to a height direction.
In practical application, according to the corresponding relation between the plurality of position points and the height information, the sequence numbers of the acquisition points corresponding to the plurality of position points are used as an X axis, the height information is used as a Y axis, and a height curve corresponding to the object to be measured can be drawn. Specifically, the collection point serial numbers corresponding to the plurality of position points may be arranged along a preset direction.
S103, determining target points on the height curve according to the target point information, wherein the target points comprise a first target point and a second target point.
Wherein the target point may refer to a point on the height curve corresponding to both end points of the second distance of the object to be measured.
In practical applications, the target point on the height curve may be determined according to the point indicated by the target point information. For example, the target point information may be a preset slope of the target point; and screening out a point on the height curve, which meets a preset slope, and taking the point as a target point.
S104, determining a first distance between the first target point and the second target point in a preset direction.
In practical application, when the height measuring equipment generates the corresponding sequence numbers of the collecting points according to the sequence numbers in each collection, distance information corresponding to the collecting points and relative to the initial collecting points can be generated based on the collection times and the preset distance of a single collection interval; after the scanning is finished, the mapping relation between the acquisition point serial numbers of all the acquisition points and the distance information can be obtained. After the acquisition point serial numbers corresponding to the first target point and the second target point are determined, distance information of the first target point and the second target point relative to the initial acquisition point can be obtained in a table look-up mode according to the corresponding acquisition point serial numbers and the mapping relation, wherein the distance information is first position information and second position information; the first position information and the second position information may be subjected to difference processing to obtain the first distance.
S105, determining a second distance between the first position point and the second position point on the object to be measured based on the first distance; the first position point corresponds to the first target point, and the second position point corresponds to the second target point.
Wherein the first position point and the second position point may be points on the upper surface of the object to be measured, and a point of a projection of the first position point and the second position point on the horizontal plane is in a preset direction. It is understood that the height curve is a curve of the object to be measured in a preset direction, and the first and second target points on the height curve correspond to the first and second position points on the object to be measured.
In practical application, the second distance can be obtained based on the first distance according to actual measurement requirements. For example, when the second distance is a horizontal distance between the target points, the first distance may be taken as the second distance; when the second distance is the actual distance between the target points, the height difference of the two target points in the height direction can be used as the second distance, and the second distance can be obtained according to the first distance, the second distance and the pythagorean theorem.
Generating a height curve through the height information, determining a target point on the height curve through the target point information, further determining a second distance between a first position point and a second position point on the object to be measured, and measuring the second distance in a non-contact manner; the method is simple and has low requirement on equipment, can reduce the measurement cost, has high calculation speed under the condition of ensuring the measurement precision, and can also support batch use on an industrial production line. It should be noted that, the above method can further improve the accuracy of distance measurement by reducing the preset length of the acquisition interval, that is, increasing the number of acquisition points, improving the accuracy of height measurement, and the like.
Fig. 2 is a flowchart of a method for acquiring height information corresponding to a plurality of position points of an object to be measured according to an embodiment of the present invention. In one possible embodiment, as shown in fig. 2, acquiring height information corresponding to a plurality of location points of the object to be measured may include:
s201, controlling the height measuring equipment to move along a preset direction.
In practical applications, the height measuring device may be controlled by the driving device to move along a predetermined direction.
S202, sending a first control signal to the height measuring equipment under the condition that the height measuring equipment is detected to be located at a first preset position, so that the height measuring equipment can carry out height acquisition once every preset time.
The first preset position may refer to a position where the height measuring device starts to collect in the process of moving along a preset direction; the second preset position may refer to a position where the height measuring device suspends the acquisition during the movement along the preset direction; the third preset position may refer to a position where the height measuring device moves in a direction opposite to the preset direction and starts collecting again; the fourth preset position may refer to a position where the height measuring device stops collecting during the movement in the opposite direction to the preset direction.
Specifically, a platform for placing an object to be measured can be marked with position scales in advance; after the object to be measured is placed on the platform and positioning is completed, the position scales corresponding to the points closest to the outer sides of the two sides of the object to be measured can be used as the first preset position and the third preset position, or the scale points closest to the outer sides of the two sides of the object to be measured in the outward direction can be used as the first preset position and the third preset position. It can be understood that if the points closest to the outer sides of the two sides of the object to be measured are not located at the positions corresponding to a certain scale, the corresponding positions need to be estimated when the corresponding positions are read, and an error may be generated, so that when the height measuring equipment scans, the height information of the points closest to the outer sides of the two sides of the object to be measured is lost, and information loss may be caused; for example, if the feature points are located at the outermost points on both sides of the object to be measured, the feature point related information may be lost in the height information, and thus a distance measurement error may be caused. The nearest scale points in the outward direction of the points closest to the outer sides of the two sides of the object to be measured are selected as the first preset position and the third preset position, so that information loss can be avoided, and the completeness of data acquisition is ensured. The second preset position and the fourth preset position may be any scale between the first target point and the second target point, or may be any scale between the feature point and the target point, or may be an intermediate position of the object to be measured, and may be determined according to an actual height condition of the object to be measured and a position of the target point on the object to be measured. It can be understood that, in order to ensure that the height acquisition equipment can scan the feature point and the target point to realize the distance measurement, in the selection process of the second preset position and the fourth preset position, the feature point and/or the target point of the object to be measured need to be included in the scanning range between the first preset position and the second preset position or between the third preset position and the fourth preset position.
In practical application, when the height measuring device is detected to be located at the first preset position, a control signal can be sent to the height measuring device, and the height measuring device starts height acquisition after receiving the control signal.
S203, under the condition that the height measuring equipment is detected to be located at the second preset position, sending a second control signal to the height measuring equipment so that the height measuring equipment stops collecting and obtains first height information.
Wherein the first height information may represent local height information of the object to be measured in a preset direction.
In practical application, after the height measuring device receives the second control signal, the height measuring device suspends acquisition, and filters the height information of a plurality of position points acquired between the first preset position and the second preset position to obtain the first height information. Specifically, the data corresponding to the position point whose corresponding height continues to be 0 may be deleted from the acquisition point corresponding to the first preset position in the height information of the plurality of position points acquired between the first preset position and the second preset position. After suspending the acquisition, the height measuring device may continue to move in the length direction.
And S204, under the condition that the height measuring equipment is detected to be located at a third preset position, sending a third control signal to the height measuring equipment so that the height measuring equipment moves along the opposite direction of the preset direction, and carrying out height acquisition once at intervals of preset time length.
In practical applications, after the height measuring apparatus receives the third control signal, the driving device may drive the height measuring device to move in a direction opposite to the preset direction, and control the height measuring device to continue to perform the height measurement from the third preset position.
S205, under the condition that the height measuring equipment is detected to be located at the fourth preset position, a fourth control signal is sent to the height measuring equipment, so that the height measuring equipment stops collecting, and second height information is obtained.
Wherein the second height information may represent local height information of the object to be measured in a preset direction.
In practical application, after the height measuring device receives the fourth control signal, the height measuring device stops collecting, and filters the height information of the plurality of position points collected between the third preset position and the fourth preset position to obtain the second height information. Specifically, the data corresponding to the position point whose corresponding height continues to be 0 may be deleted from the acquisition point corresponding to the third preset position in the height information of the plurality of position points acquired between the third preset position and the fourth preset position. After the acquisition is stopped, the height acquisition device can be controlled by the driving device to return to the initial position again so as to facilitate the next height scanning.
S206, obtaining height information corresponding to a plurality of position points of the object to be measured based on the first height information and the second height information.
In practical application, the first height information and the second height information can be subjected to data fusion to obtain height information of the object to be measured. For example, the data table corresponding to the first height information and the data table of the second height information may be merged into the same data file, but may exist independently as different data tables. The height curves obtained based on the height information may be two independent height curves. For the case that the height measuring device scans the object to be measured to obtain two height curves, each height curve may be analyzed to determine the target point corresponding to each height curve, and further determine the length between the two target points. It will be appreciated that each height profile may be used to determine a target point, and that the position of two target points may be determined from the two height profiles, thereby resulting in a length between the two target points.
Through being located first default position, second default position, third default position and fourth default position control height measurement equipment's signal acquisition or stopping respectively at height measurement equipment, can reduce data acquisition point under the prerequisite of guaranteeing distance measurement's accuracy, and then reduce the single and gather required time to help improving the holistic efficiency of distance measurement. In addition, the height curves are divided into two groups for independent analysis, so that the analysis process of the object to be measured with complicated height characteristics can be simplified.
Fig. 3 is a flowchart of a method for determining a target point on a height curve according to target point information according to an embodiment of the present invention. In one possible embodiment, the target point information includes a target point type and preset offset information; as shown in fig. 3, the step S103 may include:
s301, under the condition that the type of the target point is the first type, determining a first reference point and a second reference point of the height curve, wherein the first reference point and the second reference point are characteristic points of the height curve.
Wherein the target point type may include a first type and a second type. The first type may refer to a type in which the target point is a non-characteristic point; the second type may refer to a type in which the target point is a feature point. The first reference point may be used in combination with the target point information to determine a first target point; the second reference point may be used in combination with the target point information to determine a second target point. The first reference point and the second reference point may be characteristic points of the height curve. The feature points may be used to express features of the height curve; for example, the feature points may include inflection points, stagnation points, extreme points, and maximum points.
In practical application, the points of the height curve can be screened according to the characteristics of the characteristic points to obtain a first reference point and a second reference point. For example, when the characteristic point is the maximum point, the maximum value may be screened out from the height values of all the points in the height curve, and the collection point number corresponding to the maximum value in the height curve may be found according to the maximum value, that is, the point corresponding to the collection point number in the height curve is the characteristic point in the height curve.
S302, determining a first target point and a second target point on the height curve based on the first reference point, the second reference point and preset offset information.
The preset offset information may refer to offset information of the first target point or the second target point relative to the first reference point or the second reference point.
In practical application, according to the positions of the first reference point and the second reference point in the height curve and the preset offset information, the first reference point and the second reference point are subjected to offset processing according to the offset amount and the offset direction in the preset offset information, and the positions of the first target point and the second target point on the height curve are obtained. In one example, the preset offset information may include an offset amount and an offset direction; specifically, fig. 9 is a schematic diagram of an upper surface profile of an object to be measured along a preset direction in a distance measuring method according to an embodiment of the present invention, and fig. 4 is two height curves obtained based on the above steps S201 to S206. As shown in fig. 4, the offset may be-0.13 mm, with the direction of the offset being the positive direction; the positive direction of the offset direction may mean that the abscissa value of the target point is greater than the abscissa value of the reference point, and conversely, the negative direction of the offset direction may mean that the abscissa value of the target point is less than the abscissa value of the reference point. The first reference point and the second reference point can be determined to be G and G', respectively, according to the method described above. According to the y-axis coordinate values G, y and G ', y corresponding to G and G ', an auxiliary line y-G, y-0.13 and y ' -G, y-0.13 can be respectively formed on the height curve; selecting a point which meets the condition that the offset direction is a positive direction from two points where the height curve intersects with the corresponding auxiliary line as a first target point and a second target point; specifically, the first target point and the second target point correspond to P and P' in the figure, respectively.
Specifically, for the target point information, a height curve scanned by the height acquisition equipment can be predicted according to the structure and the outer surface profile of the object to be measured, so as to obtain a predicted curve; then, the target point information may be obtained from the prediction curve and the specific positions of the first position point and the second position point. For example, when the target point information includes a target point type and preset offset information, a relative position relationship between the target point and the feature point in the prediction curve may be obtained according to the prediction curve and the specific positions of the first position point and the second position point, and the preset target point type and the preset offset information may be further determined.
By determining the first reference point and the second reference point and determining the first target point and the second target point according to the preset offset information, the target point can be positioned and distance measured under the condition that the type of the target point is the first type, namely the target point is a non-characteristic point, so that various distance measurement requirements are met.
In one possible embodiment, the target point information includes a target point type and a preset condition. The step S103 may further include:
and under the condition that the type of the target point is a second type, screening points meeting preset conditions on the height curve as the target point.
The preset conditions may be used to determine the position of the target point in the height curve. The preset conditions may include, but are not limited to, the slope of the target point on the height curve satisfying a preset slope, and the target point being a height discontinuity in the curve.
In practical applications, the preset condition may be preset by observing the position of the target point to be measured on the object to be measured. For example, for a curve with a height curve shaped like a square wave, the preset condition may be that the target point is a height discontinuity in the curve, and the width of the object to be measured can be measured by screening the height discontinuity in the height curve as the first target point or the second target point. For a curve including a parabola in the height curve, the preset condition may be that the preset slope is 0, and points with a slope of 0 in the height curve are screened as the first target point and the second target point. The specific preset condition may be set according to the actual condition of the object to be measured and the position of the target point, which is not limited herein.
Under the condition that the type of the target point is the second type, the first target point and the second target point are screened by setting preset conditions, the target points which are characteristic points can be positioned, distance measurement between the target points is realized, and various distance measurement requirements are further met.
Fig. 5 is a flowchart of a method for determining a first distance between a first target point and a second target point in a preset direction according to an embodiment of the present invention. In one possible embodiment, as shown in fig. 5, the step S104 may include:
s501, acquiring time information corresponding to the first target point and the second target point respectively, and mapping relation between the time information and the position information.
The time information may refer to the acquisition time corresponding to the acquisition point in the height measurement process. The location information may refer to the relative position of the acquisition point with respect to the starting acquisition point.
In practical applications, the height information may include time information, an acquisition point number, and a height value of an acquisition point corresponding to each of the plurality of position points. After the first target point and the second target point are determined, the corresponding collecting point serial numbers of the first target point and the second target point can be correspondingly obtained according to the positions of the first target point and the second target point in the height curve, and further, the corresponding time information can be obtained according to the collecting point serial numbers. The scanning speed and the adjacent two-scanning interval distance of the height measuring device to the object to be measured can be preset. The mapping relationship between the time information and the position information may be obtained according to the scanning speed and the scanning interval of the height measuring apparatus, and stored in the memory in advance.
S502, acquiring first position information of the first target point in a preset direction and second position information of the second target point in the preset direction based on the time information and the mapping relation respectively corresponding to the first target point and the second target point.
The first position information may refer to position information of the first target point relative to the initial acquisition point in a preset direction; the second position information may refer to position information of the second target point in a preset direction with respect to the start acquisition point.
In practical application, a corresponding table of the time information and the position information can be established through a mapping relation of the time information and the position information, and table lookup is performed based on the time information of the first target point and the time information of the second target point to obtain first position information corresponding to the first target point and second position information corresponding to the second target point.
S503, obtaining a first distance according to the first position information and the second position information.
In practical application, the first distance may be obtained by taking a difference between the first position information and the second position information.
Fig. 6 is a flowchart of a method for determining a second distance between a first position point and a second position point on an object to be measured based on a first distance according to an embodiment of the present invention. In one possible embodiment, as shown in fig. 6, the step S105 may include:
s601, acquiring a second distance type.
Wherein the second distance type may characterize a specific property of the second distance. The second distance type may include a horizontal distance type and an actual distance type.
In practical application, the second distance type can be preset in advance according to actual measurement needs and stored in the memory.
S602, determining a second distance based on the second distance type and the first distance.
In practical applications, the second distance may include a third distance and a fourth distance, as shown in fig. 7, the step S602 may include:
and S701, taking the first distance as a third distance under the condition that the second distance type is a horizontal distance type.
S702, under the condition that the second distance type is the actual distance type, determining a second distance between the first target point and the second target point in the height direction.
Wherein, the second distance may refer to a height difference between the first target point and the second target point in a height direction.
In practical application, the height information of the first target point and the second target point can be respectively obtained based on the height curve; and obtaining a second distance according to the difference value of the height information of the first target point and the second target point.
And S703, obtaining a fourth distance based on the first distance and the second distance.
In practical application, the fourth distance may be obtained by the first distance and the second distance based on the pythagorean theorem.
Fig. 8 is a block diagram of a distance measuring device according to an embodiment of the present invention. On the other hand, the present embodiment further provides a distance measuring apparatus, which includes:
an information acquisition module 10, configured to acquire height information of an object to be measured at a plurality of position points and target point information corresponding to the object to be measured; the position points are distributed at intervals in the preset direction, and the target point information is used for indicating the information of the target point;
a curve determining module 20, configured to determine a height curve corresponding to the object to be measured based on the plurality of position points and the height information;
a target point determining module 30, configured to determine a target point corresponding to the target point information on the height curve, where the target point includes a first target point and a second target point;
a first distance determining module 40, configured to determine a first distance between the first target point and the second target point in a preset direction;
a second distance determination module 50 for determining a second distance of the object to be measured based on the first distance.
On the other hand, an embodiment of the present invention further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the distance measurement method described above.
In another aspect, an embodiment of the present invention further provides a non-volatile computer-readable storage medium, on which computer program instructions are stored, where the computer program instructions, when executed by a processor, implement the distance measurement method described above.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been presented as a series of interrelated states or acts, it should be appreciated by those skilled in the art that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Similarly, the modules of the distance measuring device are computer programs or program segments for performing one or more specific functions, and the distinction between the modules does not mean that the actual program code is also necessarily separate. Further, the above embodiments may be arbitrarily combined to obtain other embodiments.
In the foregoing embodiments, the descriptions of the embodiments have respective emphasis, and reference may be made to related descriptions of other embodiments for parts that are not described in detail in a certain embodiment. Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The foregoing description has disclosed fully preferred embodiments of the present invention. It should be noted that those skilled in the art can make modifications to the embodiments of the present invention without departing from the scope of the appended claims. Accordingly, the scope of the appended claims is not to be limited to the specific embodiments described above.

Claims (10)

1. A distance measuring method, characterized in that the method comprises:
acquiring height information corresponding to a plurality of position points of an object to be measured and target point information corresponding to the object to be measured; the plurality of position points are distributed at intervals in a preset direction, the preset direction is a horizontal direction, and the target point information is information for indicating a target point;
determining a height curve corresponding to the object to be measured based on the plurality of position points and the height information;
determining the target points on the height curve according to the target point information, wherein the target points comprise a first target point and a second target point;
determining a first distance between the first target point and the second target point in the preset direction;
determining a second distance between a first position point and a second position point on the object to be measured based on the first distance; the first location point corresponds to the first target point, and the second location point corresponds to the second target point.
2. The method according to claim 1, wherein the acquiring height information corresponding to a plurality of location points of the object to be measured comprises:
controlling the height measuring device to move along the preset direction;
sending a first control signal to the height measuring equipment under the condition that the height measuring equipment is detected to be located at a first preset position, so that the height measuring equipment performs height acquisition once every preset time interval;
sending a second control signal to the height measuring equipment under the condition that the height measuring equipment is detected to be located at a second preset position, so that the height measuring equipment stops collecting and first height information is obtained;
sending a third control signal to the height measuring equipment under the condition that the height measuring equipment is detected to be located at the third preset position, so that the height measuring equipment moves along the reverse direction of the preset direction, and height acquisition is carried out at intervals of preset time;
under the condition that the height measuring equipment is detected to be located at the fourth preset position, sending a fourth control signal to the height measuring equipment so that the height measuring equipment stops collecting and second height information is obtained;
obtaining height information corresponding to a plurality of position points of the object to be measured based on the first height information and the second height information.
3. The method of claim 1, wherein the target point information comprises a target point type and preset offset information; the determining the target point on the height curve according to the target point information includes:
determining a first reference point and a second reference point of the height curve under the condition that the type of the target point is a first type, wherein the first reference point and the second reference point are characteristic points of the height curve;
determining the first target point and the second target point on the height curve based on the first reference point, the second reference point, and the preset offset information.
4. The method according to claim 1, wherein the target point information includes a target point type and a preset condition; the determining the target point on the height curve according to the target point information includes:
and under the condition that the type of the target point is a second type, screening a point meeting the preset condition on the height curve as the target point.
5. The method of claim 1, wherein determining the first distance between the first target point and the second target point in the preset direction comprises:
acquiring time information corresponding to the first target point and the second target point respectively and a mapping relation between the time information and the position information;
acquiring first position information of the first target point in the preset direction and second position information of the second target point in the preset direction based on the time information corresponding to the first target point and the second target point respectively and the mapping relation;
and obtaining the first distance according to the first position information and the second position information.
6. A method according to claim 1, characterized in that said determining a second distance between a first and a second position point on the object to be measured on the basis of the first distance comprises:
acquiring a second distance type;
determining the second distance based on the second distance type and the first distance.
7. The method of claim 6, wherein the second distance type comprises a horizontal distance type and an actual distance type, and wherein the second distance comprises a third distance and a fourth distance; the determining the second distance based on the second distance type and the first distance comprises:
taking the first distance as the third distance if the second distance type is the horizontal distance type;
determining a second distance between the first target point and the second target point in the height direction when the second distance type is the actual distance type;
obtaining the fourth distance based on the first distance and the second distance.
8. A distance measuring device, characterized in that the device comprises:
the device comprises an information acquisition module, a position detection module and a position detection module, wherein the information acquisition module is used for acquiring height information corresponding to a plurality of position points of an object to be measured and target point information corresponding to the object to be measured; the plurality of position points are distributed at intervals in a preset direction, the preset direction is a horizontal direction, and the target point information is information for indicating a target point;
a curve determining module, configured to determine a height curve corresponding to the object to be measured based on the plurality of position points and the height information;
a target point determining module, configured to determine the target points on the height curve according to the target point information, where the target points include a first target point and a second target point;
a first distance determining module, configured to determine a first distance between the first target point and the second target point in the preset direction;
a second distance determination module for determining a second distance between a first position point and a second position point on the object to be measured based on the first distance; the first location point corresponds to the first target point, and the second location point corresponds to the second target point.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the distance measurement method of any of claims 1 to 7.
10. A non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the distance measurement method of any one of claims 1 to 7.
CN202111149795.9A 2021-09-29 2021-09-29 Distance measuring method and device, electronic equipment and storage medium Pending CN113899333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111149795.9A CN113899333A (en) 2021-09-29 2021-09-29 Distance measuring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111149795.9A CN113899333A (en) 2021-09-29 2021-09-29 Distance measuring method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113899333A true CN113899333A (en) 2022-01-07

Family

ID=79189091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111149795.9A Pending CN113899333A (en) 2021-09-29 2021-09-29 Distance measuring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113899333A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114485435A (en) * 2022-02-10 2022-05-13 苏州佳祺仕信息科技有限公司 Equipment height calibration method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103619567A (en) * 2011-06-22 2014-03-05 波音公司 Automated ply layup system and method of laying up
CN107014296A (en) * 2017-03-30 2017-08-04 中国铁道科学研究院 Comprehensive inspection car OCS inspecting system high speed orientation triggering method and device
CN108340593A (en) * 2017-01-23 2018-07-31 波音公司 The system and method for being used to form composite part
CN112815856A (en) * 2021-02-08 2021-05-18 湖北文理学院 Seat slide rail body detection device based on machine vision
CN113124777A (en) * 2021-04-20 2021-07-16 辽宁因泰立电子信息有限公司 Vehicle size determination method, device and system and storage medium
CN113155047A (en) * 2021-04-02 2021-07-23 中车青岛四方机车车辆股份有限公司 Long-distance hole distance measuring device and method, storage medium, equipment and rail vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103619567A (en) * 2011-06-22 2014-03-05 波音公司 Automated ply layup system and method of laying up
CN108340593A (en) * 2017-01-23 2018-07-31 波音公司 The system and method for being used to form composite part
CN107014296A (en) * 2017-03-30 2017-08-04 中国铁道科学研究院 Comprehensive inspection car OCS inspecting system high speed orientation triggering method and device
CN112815856A (en) * 2021-02-08 2021-05-18 湖北文理学院 Seat slide rail body detection device based on machine vision
CN113155047A (en) * 2021-04-02 2021-07-23 中车青岛四方机车车辆股份有限公司 Long-distance hole distance measuring device and method, storage medium, equipment and rail vehicle
CN113124777A (en) * 2021-04-20 2021-07-16 辽宁因泰立电子信息有限公司 Vehicle size determination method, device and system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114485435A (en) * 2022-02-10 2022-05-13 苏州佳祺仕信息科技有限公司 Equipment height calibration method, device, equipment and storage medium
CN114485435B (en) * 2022-02-10 2024-04-09 苏州佳祺仕信息科技有限公司 Equipment height calibration method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3093611A2 (en) Measuring method and device to measure the straightness error of bars and pipes
CN103459978A (en) Device and method for measuring surfaces
US10508895B2 (en) Method for single-point scanning of a workpiece and coordinate measuring machine
CN104551865A (en) Image measuring system and method
CN105509661B (en) A kind of Ceramic Tiles flatness online test method
CN102168945B (en) System and method for image measurement
CN113899333A (en) Distance measuring method and device, electronic equipment and storage medium
CN104052541B (en) The display packing of fiber laser arrays, system and optical time domain reflectometer
CN116773554A (en) Detection equipment and detection method for processing surface burr characteristics of honeycomb material
JP2010254177A (en) Maintenance data collection device
CN110579483B (en) Terahertz wave-based internal defect imaging device and method and readable storage medium
CN209623612U (en) Part blank scanning device and detection system
CN115791830A (en) Steel plate detection system, steel plate detection method and electronic equipment
CN115165047A (en) Electronic balance capable of synchronously measuring weight and gravity center
CN113567452A (en) Burr detection method, device, equipment and storage medium
CN109211151B (en) Detection device, method, equipment and medium for section bar
JP6202875B2 (en) Image measuring apparatus and control program therefor
CN107084698B (en) Rail vehicle wheel detection system and detection method
JP7000519B2 (en) How to determine the position of the rack on the rack placement unit of the laboratory operating system and the laboratory operating system
WO2023097491A1 (en) Machine vision inspection method, and inspection apparatus and inspection system therefor
JP3539795B2 (en) Stylus type surface roughness measuring instrument and measuring method
EP3929140B1 (en) Method for correlating position and profile measurements for a hoisting appliance
CN115876782A (en) Method and device for detecting flaw point of steel plate and storage medium
Shu et al. Automated generation of FE mesh of concrete structures from 3D point cloud using computer vision technology
CN114459360A (en) Precast concrete member surface roughness detection device and detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220107

RJ01 Rejection of invention patent application after publication