CN113081034B - Ultrasonic height measurement method, device, measuring instrument and storage medium - Google Patents

Ultrasonic height measurement method, device, measuring instrument and storage medium Download PDF

Info

Publication number
CN113081034B
CN113081034B CN202110335815.5A CN202110335815A CN113081034B CN 113081034 B CN113081034 B CN 113081034B CN 202110335815 A CN202110335815 A CN 202110335815A CN 113081034 B CN113081034 B CN 113081034B
Authority
CN
China
Prior art keywords
array
value
height
ultrasonic
measurement
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.)
Active
Application number
CN202110335815.5A
Other languages
Chinese (zh)
Other versions
CN113081034A (en
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.)
Shenzhen Yolanda Technology Co ltd
Original Assignee
Shenzhen Yolanda Technology 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 Shenzhen Yolanda Technology Co ltd filed Critical Shenzhen Yolanda Technology Co ltd
Priority to CN202110335815.5A priority Critical patent/CN113081034B/en
Publication of CN113081034A publication Critical patent/CN113081034A/en
Application granted granted Critical
Publication of CN113081034B publication Critical patent/CN113081034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B8/00Diagnosis using ultrasonic, sonic or infrasonic waves
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/107Measuring physical dimensions, e.g. size of the entire body or parts thereof
    • A61B5/1072Measuring physical dimensions, e.g. size of the entire body or parts thereof measuring distances on the body, e.g. measuring length, height or thickness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E30/00Energy generation of nuclear origin
    • Y02E30/30Nuclear fission reactors

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Pathology (AREA)
  • Public Health (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Biophysics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Radiology & Medical Imaging (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Dentistry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
  • Length Measuring Devices Characterised By Use Of Acoustic Means (AREA)

Abstract

The invention discloses an ultrasonic height measurement method, an ultrasonic height measurement device, an ultrasonic height measurement instrument and a storage medium. The method comprises the following steps: 1. setting a lowest height limit LL and a highest height limit LH; 2. performing primary measurement by using ultrasonic waves to obtain an array D and an array V, wherein the array D stores target distances detected in primary measurement of the ultrasonic waves, and the array V stores echo voltage peaks corresponding to each distance in the array D; 3. calculating to obtain a height array H; 4. deleting values smaller than LL or larger than LH in the array H; 5. if the number of the arrays H is not zero, selecting the value in the array V corresponding to the maximum value in the array H and storing the value in the array R; 6. circularly executing the second to fifth steps until the number of elements of the array R reaches a preset value; 7. and (3) sequencing, and averaging the preset number of numerical values in the middle of the sequenced array to obtain a final height measurement value. The method eliminates invalid targets such as bulges measured by the ultrasonic module, and improves the measurement accuracy.

Description

Ultrasonic height measurement method, device, measuring instrument and storage medium
Technical Field
The embodiment of the invention relates to the technical field of body side devices, in particular to an ultrasonic height measurement method, an ultrasonic height measurement device, an ultrasonic height measurement instrument and a storage medium.
Background
There are many ultrasonic height and weight measuring devices on the market, and the structure of the ultrasonic height and weight measuring device generally comprises: the device comprises a bottom plate, a support column and a top plate, wherein two ends of the support column are respectively connected with the bottom plate and the top plate; the ultrasonic measuring module is arranged on the top plate and is positioned on one side of the top plate, which is close to the bottom plate; the function box is arranged on the support column, and a display unit, a voice unit, a data transmission unit and a control unit are arranged in the function box. The ultrasonic measuring module measures the distance between the top plate and the head of the target, transmits the distance to the control unit, and then the internal program of the control unit subtracts the distance between the top plate and the target from the distance between the top plate and the bottom plate to obtain the height of the target to be measured.
The ultrasonic measuring module usually confirms the target through the amplitude of the echo, the program sets a reference amplitude Vs, the peak exceeding Vs at first in one measurement is regarded as the echo peak of the target to be measured, and the distance from the target to the ultrasonic measuring module can be calculated through the interval between the time T0 of ultrasonic wave emission and the time T1 of receiving the echo.
Because of the absorption effect of human body on ultrasonic waves, ultrasonic echoes reflected by female testers with dense hairs and children with low heights may be weaker, the set reference amplitude Vs cannot be achieved, ultrasonic echoes reflected by the multifunctional box are stronger, and at the moment, the ultrasonic module sends the detected distance of the multifunctional box to an application program, so that height measurement is abnormal.
To solve this problem, the current practice generally reduces the reference amplitude Vs to enable it to detect weaker echoes, or increases the amplification of the echo signal to enable the weaker echoes to reach the reference amplitude Vs, but because of the presence of the telescopic support column protrusion and surrounding interfering debris, these targets reflect weaker ultrasonic waves as well, both of which have a constraint angle that amplifies the ultrasonic detection, so that the module detects interfering objects at and around the support column protrusion, which makes the value or amplification of Vs difficult to determine. However, the currently used ultrasonic measuring module only returns the detected nearest target distance value, and the application program also has difficulty in choosing the value returned by the ultrasonic measuring module.
Disclosure of Invention
The embodiment of the invention provides an ultrasonic height measurement method, an ultrasonic height measurement device, an ultrasonic height measurement instrument and a storage medium, so as to realize the elimination of invalid targets such as a bulge of a telescopic support column and a multifunctional box measured by an ultrasonic module in a main control application program through various known information.
In a first aspect, an embodiment of the present invention provides an ultrasonic height measurement method, which is applied to an ultrasonic height measurement apparatus, where the measurement apparatus includes a bottom plate, a support column, and a top plate, and two ends of the support column are respectively connected to the bottom plate and the top plate; an ultrasonic detection device is arranged on the top plate, and the ultrasonic detection device is positioned on one surface of the top plate facing the bottom plate; the support column is provided with a function box, a display screen and a control unit are arranged in the function box, and the control unit is respectively connected with the ultrasonic detection device and the display screen; the control unit executes a computer program corresponding to the measurement method, the measurement method comprising:
step one, setting the lowest height limit LL and the highest height limit LH of the height limit range according to preset rules;
step two, performing primary measurement by using an ultrasonic detection device, and sending the primary measurement to a control unit array D [ D1, D2, D3 … Dn ] and an array V [ V1, V2, V3 … Vn ], wherein the array D stores target distances detected in primary ultrasonic measurement, and the array V stores echo voltage peaks corresponding to each distance in the array D;
Respectively subtracting each numerical value of the array D according to the distance Ds from the bottom plate to the top plate to obtain a height array H [ H1, H2, H3 … Hn ];
deleting the values smaller than LL or larger than LH in the array H, and deleting the corresponding voltage peaks in the array V;
fifthly, judging the number of elements in the array H, if the number of the array H is not zero, selecting the value of the largest numerical value in the array V corresponding to the value in the array H, and storing the value in the array R as the target height;
step six, circularly executing the steps two to five until the number of elements of the array R reaches a preset value;
and seventhly, sequencing the numerical values in the array R, and averaging the numerical values of the preset number in the middle of the sequenced array to obtain a final height measurement value.
Optionally, after the seventh step, the method further includes:
and step eight, storing the final height measurement value into a queue with the size of N, wherein N is more than 2 and is a positive integer, taking the average value of all values in the queue as a new final height measurement value if the difference of the maximum and minimum values in the queue is within a preset range and taking the average value of all values in the queue as a new final height measurement value if the difference of the maximum and minimum values in the queue is full, continuing to circularly execute the steps two to seven until the queue is full, and emptying the queue and repeatedly circularly executing the steps two to seven if the difference of the maximum and minimum values in the queue exceeds the preset range.
Optionally, in step five, after determining the number of elements in the array H, the method further includes:
if the number of the arrays H is zero, a fixed value or a characteristic value is assigned to the arrays R.
Optionally, in step five, after determining the number of elements in the array H, the method further includes:
if the number of the array H is zero, recording the measurement result as 0, and re-executing the steps two to four;
if the number of the arrays H is one, the result of the measurement is stored into an array R as the target height;
if the number of the arrays H is greater than one, further filtering specifically comprises:
judging the number of values in the array H, which are not in the preset range by taking LL or LH as the center;
if the number is zero, selecting the value of the maximum peak value in the array V corresponding to the array H, if the peak value is larger than a preset threshold value, storing the value of the peak value corresponding to the array H as a target height into the array R, if the peak value does not exceed the preset threshold value, recording the result of the measurement as 0, and re-executing the steps two to four;
if the number is one, storing the numerical value which is not in a preset range with LL or LH as a center into an array R as the target height;
if the number is two, the value of the maximum peak value corresponding to the value in the array H is selected from the values which are not in the preset range and are centered on LL or LH as the target height and stored in the array R.
Optionally, after the sixth step, the method further includes:
judging whether the number of times of recording the measured result as 0 exceeds a preset number of times;
if yes, determining that the array R is invalid, and executing the steps two to five in a recycling way.
Optionally, the first step includes:
acquiring a first lowest height L1 and a first highest height L2 of a product application range of the measuring instrument;
measuring the weight W of the human body, and calculating the second lowest height according to the weight W and the BMI limit rangeSecond highest height->
The larger value of L1 and L3 is selected as the lowest height limit LL and the smaller value of L2 and L4 is selected as the highest height limit LH.
Optionally, after the seventh step, the method further includes:
and displaying the final height measurement value on a display screen.
In a second aspect, an embodiment of the present invention further provides an ultrasonic height measurement apparatus, including:
the height limiting unit is used for setting and measuring the lowest height limit LL and the highest height limit LH of the height limiting range according to a preset rule;
the sound wave measuring unit is used for carrying out one-time measurement by utilizing the ultrasonic wave detecting device and sending the sound wave measuring unit to the control unit arrays D [ D1, D2, D3 … Dn ] and the arrays V [ V1, V2, V3 … Vn ], wherein the array D stores the target distance detected in one-time ultrasonic wave measurement, and the array V stores echo voltage peaks corresponding to each distance in the array D;
The height calculating unit is used for respectively subtracting each numerical value of the array D according to the distance Ds from the bottom plate to the top plate to obtain a height array H [ H1, H2, H3 … Hn ];
the value deleting unit is used for deleting the values smaller than LL or larger than LH in the array H and deleting the corresponding voltage peaks in the array V;
the numerical value screening unit is used for judging the number of elements in the array H, and if the number of the array H is not zero, selecting the value of the largest numerical value in the array V corresponding to the array H as the target height to store the value into the array R;
the circulation execution unit is used for circularly executing the sound wave measurement unit to the numerical value screening unit until the number of elements of the array R reaches a preset value;
the sorting selection unit is used for sorting the numerical values in the array R, and averaging the numerical values of the preset number in the middle of the sorted array to obtain a final height measurement value.
In a third aspect, the embodiment of the invention also provides an ultrasonic height measuring instrument, which comprises a bottom plate, a support column and a top plate, wherein two ends of the support column are respectively connected with the bottom plate and the top plate; an ultrasonic detection device is arranged on the top plate, and the ultrasonic detection device is positioned on one surface of the top plate facing the bottom plate; the support column is provided with a function box, a display screen and a control unit are arranged in the function box, and the control unit is respectively connected with the ultrasonic detection device and the display screen; the control unit comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the ultrasonic height measurement method according to any one of the above embodiments when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the ultrasonic height measurement method according to any of the above embodiments.
According to the technical scheme, the plurality of target distances detected by the ultrasonic measuring module are filtered and screened, so that invalid targets such as the protrusion of the telescopic support column and the multifunctional box measured by the ultrasonic measuring module can be eliminated in an application program more conveniently through various known information.
Drawings
FIG. 1 is a schematic view of an ultrasonic height gauge according to a first embodiment of the invention;
FIG. 2 is a flow chart of an ultrasonic height measurement method according to a first embodiment of the invention;
FIG. 3 is a schematic diagram of an ultrasonic height measurement device according to a second embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts steps as a sequential process, many of the steps may be implemented in parallel, concurrently, or with other steps. Furthermore, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Furthermore, the terms "first," "second," and the like, may be used herein to describe various directions, acts, steps, or elements, etc., but these directions, acts, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first minimum height may be referred to as a second minimum height, and similarly, a second minimum height may be referred to as a first minimum height, without departing from the scope of the present application. Both the first and second lowest heights are the lowest heights, but they are not the same lowest height. The terms "first," "second," and the like, are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Example 1
FIG. 1 is a schematic diagram of an ultrasonic height measurement instrument according to an embodiment of the present invention. As shown in fig. 1, the ultrasonic height measuring instrument of the present embodiment includes a bottom plate 800, a support column 500 and a top plate 400, wherein two ends of the support column 500 are respectively connected with the bottom plate 800 and the top plate 400; an ultrasonic probe 100 is provided on the top plate 400, and the ultrasonic probe 100 is positioned on a surface of the top plate 400 facing the bottom plate 800; a function box 700 is arranged on the support column 500, a display screen and a control unit are arranged in the function box 700, and the control unit is respectively connected with the ultrasonic detection device 100 and the display screen; the control unit executes a computer program corresponding to the measurement method.
In this embodiment, the ultrasonic height measurement apparatus may further include a weighing module, which has a following workflow, and the weighing module has a pressure start function, and once the weighing module receives a certain degree of pressure, the whole measurement system is woken up, the control unit controls the display screen to display the weight measurement UI and the voice unit to play a weighing reminder, then the weighing module starts to perform weighing, and transmits the weight data to the control unit, and then the control unit controls the voice unit and the display unit, switches the height measurement voice and the display UI, and transmits a measurement command to the ultrasonic detection apparatus 100, and starts height measurement. The ultrasonic detection device 100 emits ultrasonic waves downwards along the direction 200, measures the distance between the top plate 400 and the head of the target, transmits the distance to the control unit, then the internal program of the control unit subtracts the distance between the top plate 400 and the bottom plate 800 by using the distance between the top plate 400 and the target to obtain the height of the target, and after the height measurement is finished, the control unit respectively controls the voice end member, the display unit and the data transmission unit, plays the measurement result, displays the measurement result UI and transmits the data to the server or other terminal equipment. However, due to the presence of the telescopic support column protrusions 600 and some interfering impurities around the protrusions, interfering objects at and around the protrusions of the support column are detected within the constraint angle 300 of the ultrasonic detection, resulting in inaccurate height measurement.
In order to improve measurement accuracy, the ultrasonic height measuring instrument provided by the embodiment of the invention is used for executing the ultrasonic height measuring method provided by the embodiment of the invention, and the ultrasonic height measuring method provided by the embodiment of the invention is described in detail below.
FIG. 2 is a flow chart of an ultrasonic height measurement method according to an embodiment of the present invention, which is applicable to the situation of ultrasonic height measurement. The method of the embodiment of the invention can be implemented by an ultrasonic height measuring device which can be implemented by software and/or hardware and can be generally integrated in an ultrasonic height measuring instrument. Referring to fig. 2, the ultrasonic height measurement method according to the embodiment of the invention specifically includes the following steps:
step S110, setting the lowest height limit LL and the highest height limit LH of the height limit range according to a preset rule.
Specifically, firstly, initializing and opening up a data storage space: a. setting an array D to store the target distance detected in ultrasonic one-time measurement; b. setting an array H to store the values of converting the distances of a plurality of targets measured each time into heights; c. setting an array V to store the value of the echo amplitude corresponding to each height in the array H; d. setting an array R to store the height after each measurement is filtered; e. a COUNT variable COUNT is set that records the number of measurements.
Executing weight measurement, calculating upper and lower limits of the height, and making a basic measurement height according to the structure of the height measuring instrument, limiting a first lowest height L1 and a first highest height L2, wherein the product is only suitable for measuring targets with actual heights smaller than L2 and larger than L1, and obtaining the first lowest height L1 and the first highest height L2 of the product application range of the measuring instrument; next, based on a large amount of body height, weight and BMI data analysis, the BMI of the human being is maintained within a range of about 10-55, and BMI is the ratio of the weight (Kg) to the square of the height (m), the weight W of the human being is measured by the measuring instrument, and a second minimum height is calculated based on the weight W and the BMI limitSecond highest height->The larger value of L1 and L3 is selected as the lowest height limit LL and the smaller value of L2 and L4 is selected as the highest height limit LH.
Step S120, performing primary measurement by using the ultrasonic detection device, and sending the primary measurement to a control unit array D [ D1, D2, D3 … Dn ] and an array V [ V1, V2, V3 … Vn ], wherein the array D stores target distances detected in primary ultrasonic measurement, and the array V stores echo voltage peaks corresponding to each distance in the array D.
And step 130, respectively subtracting each numerical value of the array D according to the distance Ds from the bottom plate to the top plate to obtain a height array H [ H1, H2, H3 … Hn ].
Specifically, the ultrasonic wave is measured once, and is sent to the control unit to form an array D [ D1, D2, D3 … Dn ] formed by the distances of a plurality of targets and a voltage peak array V [ V1, V2, V3 … Vn ] of echoes thereof, and the ultrasonic wave measuring module is subtracted from the control unit to send back to the main control unit for a plurality of distances according to the distance Ds from the bottom plate to the top plate, so that a height array H [ H1, H2, H3 … Hn ] is obtained.
In step S140, the values smaller than LL or larger than LH in the array H are deleted, and the corresponding voltage peaks are deleted in the array V.
Specifically, the data collaborative filtering is performed after the ultrasonic measurement is performed, the heights in the data array H are filtered by using LH and LL, only the values smaller than LL or larger than LH in H are deleted, and the corresponding voltage peaks are deleted in the array V.
Further, as an alternative embodiment, in order to reduce the influence of the protrusion of the telescopic support column and the invalid targets such as the multifunctional box, when the data filtering is performed, the exclusion value is set for each invalid target, and when the values smaller than LL or larger than LH in the array H are deleted, the values within the preset range with the exclusion value of the invalid target as the center are deleted. For example, if the distance between the ultrasonic wave and the multifunctional box is 50cm, and the distance between the ultrasonic wave and the multifunctional box is 250cm from the bottom plate to the top plate, subtracting 50cm from the distance between the ultrasonic wave and the multifunctional box, and the exclusion value of the invalid target is 200cm, further deleting the numerical value between 195-205 in the array H, and deleting the corresponding voltage peak value in the array V.
And S150, judging the number of elements in the array H, and if the number of the array H is not zero, selecting the value of the largest numerical value in the array V corresponding to the value in the array H as the target height and storing the value into the array R.
Specifically, the number of elements in the array H is judged, if no element exists in the array H, the fact that no reasonable target is detected in the measurement is indicated, and a fixed value or a characteristic value is assigned to the array R [ COUNT ]; if the array H is not empty, the largest value in the array V is selected to correspond to the value in H, and is stored as the target height into R [ COUNT ], and COUNT is increased by one.
As an alternative embodiment, in addition to selecting the value in the array H corresponding to the largest value in the array V as the target height to store in the array R, the largest value in the height array H may be selected as the target height to store in the array R.
Step S160, the steps S120 to S150 are circularly executed until the number of the elements of the array R reaches a preset value.
Specifically, if the COUNT is not greater than the preset value, the process returns to step S120 to continue to read the data of the ultrasonic detection device, and when the COUNT exceeds the set value, the value of the COUNT is cleared, the values in the data R are sorted, and several values in the middle of the sorted data set are averaged.
Step S170, sorting the values in the array R, and averaging the values of the preset number in the middle of the sorted array to obtain a final height measurement value.
Specifically, after collaborative filtering of the data, performing data smoothing processing, if there is no requirement for data stability, sorting the values in the array R, and averaging the values of the preset number in the middle of the sorted array to obtain a final height measurement value.
If the stability of the data is required to be judged, the final height measurement value is stored into a queue with the size of N, N is more than 2 and is a positive integer, if the difference of the maximum and minimum values in the queue is within a preset range and the queue is full, taking the average value of all values in the queue as a new final height measurement value, if the difference of the maximum and minimum values in the queue is within the preset range but the queue is not full, continuing to circularly execute the steps two to seven until the queue is full, and if the difference of the maximum and minimum values in the queue exceeds the preset range, emptying the queue and repeatedly circularly executing the steps two to seven.
As an alternative embodiment, after the seventh step, the method further includes: and displaying the final height measurement value on a display screen.
As an alternative embodiment, the data filtering in this embodiment is applicable to filtering a plurality of target distance values detected by the ultrasonic module according to the weight calculation limit value and the predetermined measurement range of the product, and storing the targets within the measurement limit value. In the fifth step, after judging the number of elements in the array H, the method further includes:
if the number of the array H is zero, recording the measurement result as 0, and re-executing the steps two to four;
if the number of the arrays H is one, the result of the measurement is stored into an array R as the target height;
if the number of the arrays H is greater than one, further filtering specifically comprises:
judging the number of values in the array H, which are not in the preset range by taking LL or LH as the center;
if the number is zero, selecting the value of the maximum peak value in the array V corresponding to the array H, if the peak value is larger than a preset threshold value, storing the value of the peak value corresponding to the array H as a target height into the array R, if the peak value does not exceed the preset threshold value, recording the result of the measurement as 0, and re-executing the steps two to four;
if the number is one, storing the numerical value which is not in a preset range with LL or LH as a center into an array R as the target height;
If the number is two, the value of the maximum peak value corresponding to the value in the array H is selected from the values which are not in the preset range and are centered on LL or LH as the target height and stored in the array R.
As an alternative embodiment, after the step six, the method further includes: judging whether the number of times of recording the measured result as 0 exceeds a preset number of times; if yes, determining that the array R is invalid, and executing the steps two to five in a recycling way. By judging the number of times that the measured result is recorded as 0, the error is reduced, and the measurement precision is improved.
The invention designs a method for filtering and screening a plurality of target distances detected by an ultrasonic measuring module by using a plurality of information such as product structure information, human Body Mass Index (BMI), human body weight information, target reflected echo intensity and the like through using an ultrasonic module capable of measuring multiple targets and carrying out statistical analysis on a large amount of human height and weight data. The method can more conveniently eliminate invalid targets such as the bulge of the telescopic support column, the multifunctional box and the like measured by the ultrasonic module in an application program through various known information.
In general, the greater the angle away from the axis 200 of the ultrasonic wave, the more distant from the ultrasonic module, the weaker the reflected ultrasonic wave echo, and in height measurement, the object to be measured is generally located on the axis of the ultrasonic module, so that the echo intensity of the object to be measured is generally stronger than that of surrounding higher interfering objects. According to the invention, the surrounding targets can be eliminated through the echo amplitude values corresponding to the targets transmitted back by the ultrasonic module, so that the constraint effect on the radiation angle of the ultrasonic measurement module is realized.
Example two
The ultrasonic height measuring device provided by the embodiment of the invention can execute the ultrasonic height measuring method provided by any embodiment of the invention, has corresponding functional modules and beneficial effects of the executing method, can be realized in a software and/or hardware (integrated circuit) mode, and can be generally integrated in an ultrasonic height measuring instrument. FIG. 3 is a schematic diagram of an ultrasonic height measurement device according to a second embodiment of the present invention. Referring to fig. 3, an ultrasonic height measurement apparatus 200 according to an embodiment of the present invention may specifically include:
a height limiting unit 210, configured to set a lowest height limit LL and a highest height limit LH of the measurement height limiting range according to a preset rule;
the acoustic wave measurement unit 220 is configured to perform one measurement by using the ultrasonic detection device, and send the measurement result to the control unit arrays D [ D1, D2, D3 … Dn ] and arrays V [ V1, V2, V3 … Vn ], where the array D stores the target distance detected in one ultrasonic measurement, and the array V stores the echo voltage peak value corresponding to each distance in the array D;
the height calculating unit 230 is configured to subtract each value of the array D according to the distance Ds from the bottom plate to the top plate, so as to obtain a height array H [ H1, H2, H3 … Hn ];
A value deleting unit 240, configured to delete values smaller than LL or larger than LH in the array H, and delete corresponding voltage peaks in the array V;
the value screening unit 250 is configured to determine the number of elements in the array H, and if the number of the array H is not zero, select a value in the array H corresponding to the largest value in the array V, and store the value as the target height in the array R;
the circulation execution unit 260 is configured to perform circulation of the acoustic wave measurement unit 220 to the numerical screening unit 250 until the number of elements of the array R reaches a preset value;
the sorting selection unit 270 is configured to sort the values in the array R, and average the values of the preset number in the sorted array to obtain a final height measurement value.
Optionally, the apparatus 200 further includes:
and the stability judging unit is used for storing the final height measured value into a queue with the size of N, wherein N is more than 2 and is a positive integer, taking the average value of all values in the queue as a new final height measured value if the difference of the maximum and minimum values in the queue is within a preset range and taking the average value of all values in the queue as a new final height measured value if the difference of the maximum and minimum values in the queue is full, continuing to circularly execute the second to seventh steps until the queue is full, and emptying the queue and repeatedly circularly executing the second to seventh steps if the difference of the maximum and minimum values in the queue exceeds the preset range.
Optionally, the numerical screening unit 250 is further configured to, after determining the number of elements in the array H, further include: if the number of the arrays H is zero, a fixed value or a characteristic value is assigned to the arrays R.
Optionally, the numerical screening unit 250 is further configured to, after determining the number of elements in the array H, further include:
if the number of the array H is zero, recording the measurement result as 0, and re-executing the steps two to four;
if the number of the arrays H is one, the result of the measurement is stored into an array R as the target height;
if the number of the arrays H is greater than one, further filtering specifically comprises:
judging the number of values in the array H, which are not in the preset range by taking LL or LH as the center;
if the number is zero, selecting the value of the maximum peak value in the array V corresponding to the array H, if the peak value is larger than a preset threshold value, storing the value of the peak value corresponding to the array H as a target height into the array R, if the peak value does not exceed the preset threshold value, recording the result of the measurement as 0, and re-executing the steps two to four;
if the number is one, storing the numerical value which is not in a preset range with LL or LH as a center into an array R as the target height;
If the number is two, the value of the maximum peak value corresponding to the value in the array H is selected from the values which are not in the preset range and are centered on LL or LH as the target height and stored in the array R.
Optionally, the apparatus 200 further includes:
an error screening unit for judging whether the number of times of recording the measured result as 0 exceeds a preset number of times; if yes, determining that the array R is invalid, and executing the steps two to five in a recycling way.
Optionally, the height limiting unit 210 is further configured to:
acquiring a first lowest height L1 and a first highest height L2 of a product application range of the measuring instrument;
measuring the weight W of a human body, and binding according to the weight WCalculating the second minimum height according to the limit range of BMISecond highest height->
The larger value of L1 and L3 is selected as the lowest height limit LL and the smaller value of L2 and L4 is selected as the highest height limit LH.
Optionally, the apparatus 200 further includes:
and the display unit is used for displaying the final height measurement value on a display screen.
According to the technical scheme, the plurality of target distances detected by the ultrasonic measuring module are filtered and screened, so that invalid targets such as the protrusion of the telescopic support column and the multifunctional box measured by the ultrasonic measuring module can be eliminated in an application program more conveniently through various known information.
Example III
Fig. 1 is a schematic structural diagram of an ultrasonic height measurement instrument according to a third embodiment of the present invention, as shown in fig. 1, the ultrasonic height measurement instrument includes a bottom plate 800, a support column 500 and a top plate 400, wherein two ends of the support column 500 are respectively connected with the bottom plate 800 and the top plate 400; an ultrasonic probe 100 is provided on the top plate 400, and the ultrasonic probe 100 is positioned on a surface of the top plate 400 facing the bottom plate 800; a function box 700 is arranged on the support column 500, a display screen and a control unit are arranged in the function box 700, and the control unit is respectively connected with the ultrasonic detection device 100 and the display screen; the control unit includes a memory, a processor, and a computer program stored on the memory and executable on the processor.
The memory is used as a computer readable storage medium for storing software programs, computer executable programs and modules, such as program instructions/modules corresponding to the ultrasonic height measurement method in the embodiment of the present invention (for example, the height limiting unit 210, the acoustic wave measuring unit 220, the height calculating unit 230, the numerical value deleting unit 240, the numerical value screening unit 250, the loop executing unit 260 and the sorting selecting unit 270 in the ultrasonic height measuring device). The processor executes various functional applications of the device/terminal/server and data processing by running software programs, instructions and modules stored in the memory, i.e. implements the above-mentioned ultrasonic height measurement method.
Namely:
step one, setting the lowest height limit LL and the highest height limit LH of the height limit range according to preset rules;
step two, performing primary measurement by using an ultrasonic detection device, and sending the primary measurement to a control unit array D [ D1, D2, D3 … Dn ] and an array V [ V1, V2, V3 … Vn ], wherein the array D stores target distances detected in primary ultrasonic measurement, and the array V stores echo voltage peaks corresponding to each distance in the array D;
respectively subtracting each numerical value of the array D according to the distance Ds from the bottom plate to the top plate to obtain a height array H [ H1, H2, H3 … Hn ];
deleting the values smaller than LL or larger than LH in the array H, and deleting the corresponding voltage peaks in the array V;
fifthly, judging the number of elements in the array H, if the number of the array H is not zero, selecting the value of the largest numerical value in the array V corresponding to the value in the array H, and storing the value in the array R as the target height;
step six, circularly executing the steps two to five until the number of elements of the array R reaches a preset value;
and seventhly, sequencing the numerical values in the array R, and averaging the numerical values of the preset number in the middle of the sequenced array to obtain a final height measurement value.
Of course, the processor of the ultrasonic height measuring instrument provided by the embodiment of the invention is not limited to executing the method operation described above, and may also execute the related operation in the ultrasonic height measuring method provided by any embodiment of the invention.
The memory may mainly include a memory program area and a memory data area, wherein the memory program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, the memory may further include memory remotely located with respect to the processor, which may be connected to the device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
According to the technical scheme, the plurality of target distances detected by the ultrasonic measuring module are filtered and screened, so that invalid targets such as the protrusion of the telescopic support column and the multifunctional box measured by the ultrasonic measuring module can be eliminated in an application program more conveniently through various known information.
Example IV
A fourth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing an ultrasonic height measurement method, the method comprising:
step one, setting the lowest height limit LL and the highest height limit LH of the height limit range according to preset rules;
step two, performing primary measurement by using an ultrasonic detection device, and sending the primary measurement to a control unit array D [ D1, D2, D3 … Dn ] and an array V [ V1, V2, V3 … Vn ], wherein the array D stores target distances detected in primary ultrasonic measurement, and the array V stores echo voltage peaks corresponding to each distance in the array D;
respectively subtracting each numerical value of the array D according to the distance Ds from the bottom plate to the top plate to obtain a height array H [ H1, H2, H3 … Hn ];
deleting the values smaller than LL or larger than LH in the array H, and deleting the corresponding voltage peaks in the array V;
fifthly, judging the number of elements in the array H, if the number of the array H is not zero, selecting the value of the largest numerical value in the array V corresponding to the value in the array H, and storing the value in the array R as the target height;
Step six, circularly executing the steps two to five until the number of elements of the array R reaches a preset value;
and seventhly, sequencing the numerical values in the array R, and averaging the numerical values of the preset number in the middle of the sequenced array to obtain a final height measurement value.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the ultrasonic height measurement method provided in any embodiment of the present invention.
The computer-readable storage media of embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
According to the technical scheme, the plurality of target distances detected by the ultrasonic measuring module are filtered and screened, so that invalid targets such as the protrusion of the telescopic support column and the multifunctional box measured by the ultrasonic measuring module can be eliminated in an application program more conveniently through various known information.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. The ultrasonic height measurement method is characterized by being applied to an ultrasonic height measurement instrument, wherein the measurement instrument comprises a bottom plate, a support column and a top plate, and two ends of the support column are respectively connected with the bottom plate and the top plate; an ultrasonic detection device is arranged on the top plate, and the ultrasonic detection device is positioned on one surface of the top plate facing the bottom plate; the support column is provided with a function box, a display screen and a control unit are arranged in the function box, and the control unit is respectively connected with the ultrasonic detection device and the display screen; the control unit executes a computer program corresponding to the measurement method, the measurement method comprising:
Step one, setting the lowest height limit LL and the highest height limit LH of the height limit range according to preset rules;
step two, performing primary measurement by using an ultrasonic detection device, and sending the primary measurement to a control unit array D [ D1, D2, D3 … Dn ] and an array V [ V1, V2, V3 … Vn ], wherein the array D stores target distances detected in primary ultrasonic measurement, and the array V stores echo voltage peaks corresponding to each distance in the array D;
respectively subtracting each numerical value of the array D according to the distance Ds from the bottom plate to the top plate to obtain a height array H [ H1, H2, H3 … Hn ];
deleting the values smaller than LL or larger than LH in the array H, and deleting the corresponding voltage peaks in the array V;
fifthly, judging the number of elements in the array H, if the number of the array H is not zero, selecting the value of the largest numerical value in the array V corresponding to the value in the array H, and storing the value in the array R as the target height;
step six, circularly executing the steps two to five until the number of elements of the array R reaches a preset value;
and seventhly, sequencing the numerical values in the array R, and averaging the numerical values of the preset number in the middle of the sequenced array to obtain a final height measurement value.
2. The ultrasonic height measurement method according to claim 1, further comprising, after step seven:
and step eight, storing the final height measurement value into a queue with the size of N, wherein N is more than 2 and is a positive integer, taking the average value of all values in the queue as a new final height measurement value if the difference of the maximum and minimum values in the queue is within a preset range and taking the average value of all values in the queue as a new final height measurement value if the difference of the maximum and minimum values in the queue is full, continuing to circularly execute the steps two to seven until the queue is full, and emptying the queue and repeatedly circularly executing the steps two to seven if the difference of the maximum and minimum values in the queue exceeds the preset range.
3. The ultrasonic height measurement method according to claim 1, wherein in the fifth step, after judging the number of elements in the array H, further comprising:
if the number of the arrays H is zero, a fixed value or a characteristic value is assigned to the arrays R.
4. The ultrasonic height measurement method according to claim 1, wherein in the fifth step, after judging the number of elements in the array H, further comprising:
if the number of the array H is zero, recording the measurement result as 0, and re-executing the steps two to four;
If the number of the arrays H is one, the result of the measurement is stored into an array R as the target height;
if the number of the arrays H is greater than one, further filtering specifically comprises:
judging the number of values in the array H, which are not in the preset range by taking LL or LH as the center;
if the number is zero, selecting the value of the maximum peak value in the array V corresponding to the array H, if the peak value is larger than a preset threshold value, storing the value of the peak value corresponding to the array H as a target height into the array R, if the peak value does not exceed the preset threshold value, recording the result of the measurement as 0, and re-executing the steps two to four;
if the number is one, storing the numerical value which is not in a preset range with LL or LH as a center into an array R as the target height;
if the number is two, the value of the maximum peak value corresponding to the value in the array H is selected from the values which are not in the preset range and are centered on LL or LH as the target height and stored in the array R.
5. The ultrasonic height measurement method according to claim 4, further comprising, after step six:
judging whether the number of times of recording the measured result as 0 exceeds a preset number of times;
if yes, determining that the array R is invalid, and executing the steps two to five in a recycling way.
6. The ultrasonic height measurement method according to claim 1, wherein step one comprises:
acquiring a first lowest height L1 and a first highest height L2 of a product application range of the measuring instrument;
measuring the weight W of the human body, and calculating the second lowest height according to the weight W and the BMI limit rangeSecond highest height->
The larger value of L1 and L3 is selected as the lowest height limit LL and the smaller value of L2 and L4 is selected as the highest height limit LH.
7. The ultrasonic height measurement method according to claim 1, further comprising, after step seven:
and displaying the final height measurement value on a display screen.
8. An ultrasonic height measurement device, comprising:
the height limiting unit is used for setting and measuring the lowest height limit LL and the highest height limit LH of the height limiting range according to a preset rule;
the sound wave measuring unit is used for carrying out one-time measurement by utilizing the ultrasonic wave detecting device and sending the sound wave measuring unit to the control unit arrays D [ D1, D2, D3 … Dn ] and the arrays V [ V1, V2, V3 … Vn ], wherein the array D stores the target distance detected in one-time ultrasonic wave measurement, and the array V stores echo voltage peaks corresponding to each distance in the array D;
The height calculating unit is used for respectively subtracting each numerical value of the array D according to the distance Ds from the bottom plate to the top plate to obtain a height array H [ H1, H2, H3 … Hn ];
the value deleting unit is used for deleting the values smaller than LL or larger than LH in the array H and deleting the corresponding voltage peaks in the array V;
the numerical value screening unit is used for judging the number of elements in the array H, and if the number of the array H is not zero, selecting the value of the largest numerical value in the array V corresponding to the array H as the target height to store the value into the array R;
the circulation execution unit is used for circularly executing the sound wave measurement unit to the numerical value screening unit until the number of elements of the array R reaches a preset value;
the sorting selection unit is used for sorting the numerical values in the array R, and averaging the numerical values of the preset number in the middle of the sorted array to obtain a final height measurement value.
9. The ultrasonic height measuring instrument is characterized by comprising a bottom plate, a supporting column and a top plate, wherein two ends of the supporting column are respectively connected with the bottom plate and the top plate; an ultrasonic detection device is arranged on the top plate, and the ultrasonic detection device is positioned on one surface of the top plate facing the bottom plate; the support column is provided with a function box, a display screen and a control unit are arranged in the function box, and the control unit is respectively connected with the ultrasonic detection device and the display screen; the control unit comprises a memory, a processor and a computer program stored on the memory and executable on the processor, which processor, when executing the computer program, implements the ultrasonic height measurement method according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the ultrasonic height measurement method according to any one of claims 1-7.
CN202110335815.5A 2021-03-29 2021-03-29 Ultrasonic height measurement method, device, measuring instrument and storage medium Active CN113081034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110335815.5A CN113081034B (en) 2021-03-29 2021-03-29 Ultrasonic height measurement method, device, measuring instrument and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110335815.5A CN113081034B (en) 2021-03-29 2021-03-29 Ultrasonic height measurement method, device, measuring instrument and storage medium

Publications (2)

Publication Number Publication Date
CN113081034A CN113081034A (en) 2021-07-09
CN113081034B true CN113081034B (en) 2024-04-16

Family

ID=76670639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110335815.5A Active CN113081034B (en) 2021-03-29 2021-03-29 Ultrasonic height measurement method, device, measuring instrument and storage medium

Country Status (1)

Country Link
CN (1) CN113081034B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060040566A (en) * 2005-12-26 2006-05-10 주식회사 리얼디바이스 Bmi height and weight scales
CN206556745U (en) * 2017-02-07 2017-10-13 北京艾听科技有限公司 A kind of height and weight measurement apparatus
CN208795349U (en) * 2018-08-28 2019-04-26 广东小天才科技有限公司 A kind of height and weight measuring instrument
CN211583229U (en) * 2019-12-12 2020-09-29 上海为彪汽配制造有限公司 Ultrasonic height measuring device
CN112182067A (en) * 2020-09-27 2021-01-05 深圳市伊欧乐科技有限公司 Individual height prediction method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060040566A (en) * 2005-12-26 2006-05-10 주식회사 리얼디바이스 Bmi height and weight scales
CN206556745U (en) * 2017-02-07 2017-10-13 北京艾听科技有限公司 A kind of height and weight measurement apparatus
CN208795349U (en) * 2018-08-28 2019-04-26 广东小天才科技有限公司 A kind of height and weight measuring instrument
CN211583229U (en) * 2019-12-12 2020-09-29 上海为彪汽配制造有限公司 Ultrasonic height measuring device
CN112182067A (en) * 2020-09-27 2021-01-05 深圳市伊欧乐科技有限公司 Individual height prediction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113081034A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US10215609B2 (en) Method for fill level measurement using the travel time principle
Wing et al. Consumer-grade global positioning system (GPS) accuracy and reliability
EP2166320B1 (en) Apparatus and method for dynamic peak detection, identification, and tracking in level gauging applications
US6195614B1 (en) Method of characterizing events in acquired waveform data from a metallic transmission cable
US9001620B2 (en) Method for echo processing in a pulse-echo ranging system
US9097805B2 (en) Systems and methods for calibrating dual polarization radar systems
KR101244605B1 (en) Method and Apparatus for Recognizing Parking Area
US9032801B2 (en) Ultrasonic measurement apparatus and method
US20040257269A1 (en) Method and device for determining an expectancy range for a filling level echo and a false echo
DE202010018581U1 (en) Systems for detecting positions of underground objects
CN108196242B (en) Laser radar timing method based on edge detection and data processing unit
CN113081034B (en) Ultrasonic height measurement method, device, measuring instrument and storage medium
CN108982941A (en) A kind of method for real-time measurement and device, oscillograph, storage medium of period frequency
EP2518528A2 (en) Method and apparatus for measuring target length, and computer readable media storing target length measurement program
Vasilenko et al. A compact lightweight multipurpose ground-penetrating radar for glaciological applications
CN114578040B (en) Sample detection method, sample analyzer and control device thereof
KR20080039634A (en) System and method for evaluating performance of probe
CN104042235A (en) Ultrasonic measuring device, ultrasonic image device, and measuring method
CN114270219A (en) Measurement method, apparatus, movable platform and computer readable medium
CN111399038B (en) Slope parameter extraction method and device and computer readable storage medium
US20170065257A1 (en) Ultrasound diagnostic device and ultrasound image processing method
JP2004361314A (en) System and method for calibrating observed data of amount of rainfall, and program used for system
EP0480720A2 (en) Bandwidth analysis system and method
CN113295774B (en) Method and device for measuring deterioration and development characteristics of rock mass and storage medium
CN206910319U (en) Human body crosses over detection means and system

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
GR01 Patent grant
GR01 Patent grant