[go: up one dir, main page]

CN109141355B - Relative height measurement method and wearable device based on multi-sensor - Google Patents

Relative height measurement method and wearable device based on multi-sensor Download PDF

Info

Publication number
CN109141355B
CN109141355B CN201810985193.9A CN201810985193A CN109141355B CN 109141355 B CN109141355 B CN 109141355B CN 201810985193 A CN201810985193 A CN 201810985193A CN 109141355 B CN109141355 B CN 109141355B
Authority
CN
China
Prior art keywords
air pressure
value
measurement
pressure value
relative
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
CN201810985193.9A
Other languages
Chinese (zh)
Other versions
CN109141355A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201810985193.9A priority Critical patent/CN109141355B/en
Publication of CN109141355A publication Critical patent/CN109141355A/en
Application granted granted Critical
Publication of CN109141355B publication Critical patent/CN109141355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C5/00Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels
    • G01C5/06Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels by using barometric means

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种基于多传感器的相对高度测量方法及可穿戴设备,包括:当检测到可穿戴设备内置的紫外线传感器所采集的参数值发生变化时,控制可穿戴设备内置的气压传感器检测第一气压值,并将该第一气压值的检测位置确定为初始位置;检测是否接收到高度测量指令,如果是,根据该高度测量指令,控制气压传感器检测第二气压值,并将第二气压值的检测位置确定为测量位置;根据第一气压值和第二气压值确定测量位置相对于初始位置的相对高度,该相对高度用于表示测量位置与初始位置之间的垂直距离。实施本发明实施例,能够降低设备的电量损耗。

Figure 201810985193

A method for measuring relative height based on multiple sensors and a wearable device, comprising: when it is detected that a parameter value collected by a built-in ultraviolet sensor in the wearable device changes, controlling an air pressure sensor built in the wearable device to detect a first air pressure value, Determine the detection position of the first air pressure value as the initial position; detect whether an altitude measurement command is received, if yes, control the air pressure sensor to detect the second air pressure value according to the altitude measurement command, and determine the detection position of the second air pressure value Determine the measurement position; determine the relative height of the measurement position relative to the initial position according to the first air pressure value and the second air pressure value, where the relative height is used to represent the vertical distance between the measurement position and the initial position. By implementing the embodiments of the present invention, the power consumption of the device can be reduced.

Figure 201810985193

Description

Relative height measuring method based on multiple sensors and wearable equipment
Technical Field
The invention relates to the technical field of wearable equipment, in particular to a relative height measuring method based on multiple sensors and the wearable equipment.
Background
Because of poor safety awareness and discrimination, the missing and abducted events of children and teenagers occur occasionally, and parents hope to know the accurate position of the children when the children go out alone. For example, when a child enters a shopping mall by itself, parents want to know not only the geographical location of the shopping mall but also the specific floor where the child is located, and therefore, the relative height of the location of the child with respect to the ground needs to be measured.
Currently, height measuring instruments are commonly used to measure relative heights. Specifically, a telephone watch worn by a child is provided with a height measuring instrument, and the relative height of the child relative to the ground can be calculated through data measured by the height measuring instrument. However, with this method of measuring relative height, the height measuring instrument needs to be turned on for a long time without interruption, which aggravates the power consumption of the telephone watch.
Disclosure of Invention
The embodiment of the invention discloses a relative height measuring method based on multiple sensors and wearable equipment, which can reduce the electric quantity loss of the equipment.
The embodiment of the invention discloses a relative height measuring method based on multiple sensors in a first aspect, which comprises the following steps:
when detecting that the parameter value collected by the ultraviolet sensor changes, controlling an air pressure sensor to detect a first air pressure value, and determining the detection position of the first air pressure value as an initial position; the ultraviolet sensor and the air pressure sensor are both arranged in the wearable device;
detecting whether a height measurement instruction is received or not, if so, controlling the air pressure sensor to detect a second air pressure value according to the height measurement instruction, and determining the detection position of the second air pressure value as a measurement position;
determining a relative height of the measurement position relative to the initial position from the first air pressure value and the second air pressure value, the relative height being indicative of a vertical distance between the measurement position and the initial position.
As an alternative implementation, in the first aspect of the embodiments of the present invention, the controlling, according to the height measurement instruction, the air pressure sensor to detect a second air pressure value and determine a detection position of the second air pressure value as a measurement position includes:
controlling the air pressure sensor to detect a measured air pressure value according to the height measurement instruction, and determining a detection position of the measured air pressure value as a measurement position;
acquiring a measurement temperature value of the measurement position;
correcting the measured air pressure value according to the temperature difference value to obtain a second air pressure value of the measured position; wherein the temperature difference is a difference between a sea level standard atmospheric temperature value and the measured temperature value.
As an alternative implementation, in the first aspect of the embodiment of the present invention, the determining the relative height of the measurement position with respect to the initial position according to the first air pressure value and the second air pressure value includes:
determining a plane where the initial position of the first air pressure value is detected as a reference plane;
normalizing the second air pressure value and the measured temperature value to obtain a normalization processing result;
inputting the normalization processing result into a relative height measurement model trained in advance; the training data of the relative height measurement model comprises a sample temperature value, a sample air pressure value and a sample relative height of a plurality of measurement points, wherein the sample relative height is a height value of each measurement point relative to the reference plane;
determining a relative height of the measurement position with respect to the initial position based on an output result of the relative height measurement model.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining the relative height of the measurement position with respect to the initial position based on the output result of the relative height measurement model includes:
obtaining an output result of the relative height measurement model;
performing inverse normalization processing on the output result to obtain an inverse normalization processing result;
and determining the relative height of the measurement position relative to the initial position according to the result of the reverse normalization processing.
As an alternative implementation manner, in the first aspect of the embodiment of the present invention, the parameter value collected by the ultraviolet sensor is an ultraviolet intensity value; the method further comprises the following steps:
acquiring a first ultraviolet intensity value acquired by the ultraviolet sensor at a first moment and a second ultraviolet intensity value acquired by the ultraviolet sensor at a second moment, wherein a preset time interval exists between the first moment and the second moment;
calculating a difference value between the first ultraviolet intensity value and the second ultraviolet intensity value, and judging whether the difference value is greater than a preset threshold value;
and if the difference value is larger than the preset threshold value, determining that the parameter value acquired by the ultraviolet sensor is changed.
A second aspect of an embodiment of the present invention discloses a wearable device, including:
the first control unit is used for controlling the air pressure sensor to detect a first air pressure value when detecting that the parameter value collected by the ultraviolet sensor changes, and determining the detection position of the first air pressure value as an initial position; the ultraviolet sensor and the air pressure sensor are both arranged in the wearable device;
the detection unit is used for detecting whether a height measurement instruction is received or not;
the second control unit is used for controlling the air pressure sensor to detect a second air pressure value according to the height measurement instruction after the detection unit detects that the height measurement instruction is received, and determining the detection position of the second air pressure value as a measurement position;
a first determining unit, configured to determine a relative height of the measurement position with respect to the initial position according to the first air pressure value and the second air pressure value, where the relative height is used to indicate a vertical distance between the measurement position and the initial position.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the second control unit includes:
the control subunit is used for controlling the air pressure sensor to detect a measured air pressure value according to the height measurement instruction after the detection unit detects that the height measurement instruction is received, and determining the detection position of the measured air pressure value as a measurement position;
the acquisition subunit is used for acquiring the measurement temperature value of the measurement position;
the correcting subunit is used for correcting the measured air pressure value according to the temperature difference value to obtain a second air pressure value of the measured position; wherein the temperature difference is a difference between a sea level standard atmospheric temperature value and the measured temperature value.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the first determining unit includes:
the first determining subunit is used for determining a plane where the initial position for detecting the first air pressure value is located as a reference plane;
the processing subunit is used for carrying out normalization processing on the second air pressure value and the measured temperature value to obtain a normalization processing result;
the input subunit is used for inputting the normalization processing result to a relative height measurement model trained in advance; the training data of the relative height measurement model comprises a sample temperature value, a sample air pressure value and a sample relative height of a plurality of measurement points, wherein the sample relative height is a height value of each measurement point relative to the reference plane;
a second determining subunit, configured to determine, based on an output result of the relative height measurement model, a relative height of the measurement position with respect to the initial position, the relative height being used to represent a vertical distance between the measurement position and the initial position.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the manner in which the second determining subunit determines the relative height of the measurement position with respect to the initial position based on the output result of the relative height measurement model is specifically:
obtaining an output result of the relative height measurement model;
performing inverse normalization processing on the output result to obtain an inverse normalization processing result;
and determining the relative height of the measurement position relative to the initial position according to the result of the reverse normalization processing.
As an alternative implementation manner, in the second aspect of the embodiment of the present invention, the parameter value collected by the ultraviolet sensor is an ultraviolet intensity value; the wearable device further comprises:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a first ultraviolet intensity value acquired by an ultraviolet sensor at a first moment and acquiring a second ultraviolet intensity value acquired by the ultraviolet sensor at a second moment, and a preset time interval exists between the first moment and the second moment;
a calculation unit for calculating a difference between the first ultraviolet intensity value and the second ultraviolet intensity value;
the judging unit is used for judging whether the difference value is larger than a preset threshold value or not;
and the second determining unit is used for determining that the parameter value acquired by the ultraviolet sensor is detected to be changed when the judging unit judges that the difference value is greater than the preset threshold value.
A third aspect of an embodiment of the present invention discloses another wearable device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute all or part of the steps of any one of the methods disclosed in the first aspect of the embodiments of the present invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, which is characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute all or part of the steps in any one of the methods disclosed in the first aspect of the embodiments of the present invention.
A fifth aspect of embodiments of the present invention discloses a computer program product, which, when run on a computer, causes the computer to perform some or all of the steps of any one of the methods of the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when detecting that the parameter value collected by the ultraviolet sensor arranged in the wearable device changes, controlling the air pressure sensor arranged in the wearable device to detect a first air pressure value, and determining the detection position of the first air pressure value as an initial position; detecting whether a height measurement instruction is received or not, if so, controlling the air pressure sensor to detect a second air pressure value according to the height measurement instruction, and determining the detection position of the second air pressure value as a measurement position; and determining the relative height of the measuring position relative to the initial position according to the first air pressure value and the second air pressure value, wherein the relative height is used for representing the vertical distance between the measuring position and the initial position. Therefore, by implementing the embodiment of the invention, the ultraviolet sensor and the air pressure sensor can be combined, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, compared with the prior art in which a height measuring instrument built in the wearable equipment is started uninterruptedly for a long time, the invention can reduce the electric quantity loss of the wearable equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a multi-sensor based relative height measurement method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another multi-sensor based relative height measurement method disclosed in the embodiments of the present invention;
FIG. 3 is a schematic flow chart of another multi-sensor based relative height measurement method disclosed in the embodiments of the present invention;
fig. 4 is a schematic structural diagram of a wearable device disclosed in the embodiment of the invention;
FIG. 5 is a schematic structural diagram of another wearable device disclosed in the embodiments of the present invention;
FIG. 6 is a schematic structural diagram of another wearable device disclosed in the embodiments of the present invention;
fig. 7 is a block diagram of a partial structure of a telephone watch 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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a relative height measuring method based on multiple sensors and wearable equipment, which can reduce the electric quantity loss of the equipment. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for measuring relative height based on multiple sensors according to an embodiment of the present invention. As shown in fig. 1, the multi-sensor based relative height measuring method may include the following steps:
101. when detecting that the parameter value collected by the ultraviolet sensor changes, the wearable device controls the air pressure sensor to detect a first air pressure value, and determines the detection position of the first air pressure value as an initial position; the ultraviolet sensor and the air pressure sensor are both arranged in the wearable device.
In the embodiment of the present invention, the parameter value collected by the ultraviolet sensor may be an ultraviolet intensity value.
As an alternative implementation, before performing step 101, the method may further include the following operations:
the wearable device acquires a first ultraviolet intensity value acquired by the ultraviolet sensor at a first moment and a second ultraviolet intensity value acquired by the ultraviolet sensor at a second moment, wherein a preset time interval exists between the first moment and the second moment;
the wearable device calculates a difference value between the first ultraviolet intensity value and the second ultraviolet intensity value and judges whether the difference value is larger than a preset threshold value or not;
if the difference value is larger than a preset threshold value, the wearable device determines that the change of the parameter value acquired by the ultraviolet sensor is detected.
In the embodiment of the invention, the wearable equipment is internally provided with the ultraviolet sensor, and the ultraviolet sensor can work in real time and is used for detecting the ultraviolet condition of the environment where the wearable equipment is located. The ultraviolet ray collected by the ultraviolet ray sensor is mainly medium-wave ultraviolet ray, and the medium-wave ultraviolet ray mainly appears in outdoor environment. Therefore, when the ultraviolet intensity values acquired by the ultraviolet sensor at two adjacent moments (i.e., the first moment and the second moment) change (i.e., the difference between the first ultraviolet intensity value and the second ultraviolet intensity value is greater than the preset threshold), it may be determined that the environment in which the wearable device is located changes (i.e., changes from an outdoor environment to an indoor environment, or changes from an indoor environment to an outdoor environment). For example, when a first uv intensity value collected by the uv sensor at a first time is greater than a second uv intensity value collected by the uv sensor at a second time, and a difference between the first uv intensity value and the second uv intensity value is greater than a preset threshold, it may indicate that the user (and the wearable device) enters the indoor environment from the outdoor environment; for another example, when a first uv intensity value collected by the uv sensor at a first time is not greater than a second uv intensity value collected by the uv sensor at a second time, and a difference between the first uv intensity value and the second uv intensity value is greater than a preset threshold, it may indicate that the user (and the wearable device) enters the outdoor environment from the indoor environment.
Therefore, the embodiment of the invention can judge whether the environment where the user is located changes or not based on the change conditions of the ultraviolet intensity values at two adjacent moments, and trigger the detection of the air pressure value after determining that the environment where the user is located changes (such as from indoor to outdoor), so that the electric quantity loss of the wearable equipment is reduced.
102. The wearable device detects whether a height measurement instruction is received, and if the height measurement instruction is received, the wearable device triggers to execute step 103; if it is detected that the height measurement command has not been received, execution continues with step 102.
In an embodiment of the present invention, the altitude measurement instruction is configured to instruct the wearable device to measure a relative altitude between an environment in which the wearable device is currently located and a detection position (initial position) of the first air pressure value. In addition, the height measurement instruction may be actively triggered by a user of the wearable device, or may be sent by a terminal device associated with the wearable device, which is not limited in the embodiment of the present invention.
103. The wearable device controls the air pressure sensor to detect a second air pressure value according to the height measurement instruction, and determines the detection position of the second air pressure value as a measurement position.
In this embodiment of the present invention, optionally, the wearable device may control the air pressure sensor to detect a plurality of initial second air pressure values at the measurement position, delete two initial second air pressure values with the highest value and the lowest value among the plurality of initial second air pressure values, and obtain an average value of the remaining initial second air pressure values as the second air pressure value at the measurement position. For example, the wearable device collects 10 initial second air pressure values at the measurement location, then deletes two initial second air pressure values with the highest air pressure value and the lowest air pressure value from the 10 initial air pressure values, and obtains an average value of the remaining 8 initial second air pressure values as the second air pressure value at the measurement location.
104. The wearable device determines a relative height of the measurement position relative to the initial position according to the first air pressure value and the second air pressure value, wherein the relative height is used for representing a vertical distance between the measurement position and the initial position.
In the embodiment of the invention, after the wearable device determines the relative height of the measurement position relative to the initial position, the wearable device can also determine an output mode of the relative height according to a receiving mode of the height measurement instruction. For example, the height measurement instruction is triggered by a user of the wearable device, then the wearable device may output the relative height to a display interface of the wearable device; for another example, if the height measurement instruction is triggered by a user of the monitoring terminal (parent, teacher, etc.) associated with the wearable device, the wearable device may send the relative height to the monitoring terminal for viewing by the user of the monitoring terminal.
In this embodiment of the present invention, optionally, after determining the relative height of the measurement position with respect to the initial position according to the first air pressure value and the second air pressure value, the wearable device may further obtain the position coordinates of the measurement position and the position coordinates of the initial position, and send the relative height of the measurement position with respect to the initial position, the position coordinates of the measurement position, and the position coordinates of the initial position to the monitoring terminal associated with the wearable device, so as to be viewed by a user of the monitoring terminal.
Therefore, by the method described in fig. 1, the ultraviolet sensor and the air pressure sensor can be combined, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, so that compared with the prior art in which the height measuring instrument built in the wearable device is started uninterruptedly for a long time, the method disclosed by the invention can reduce the electric quantity loss of the wearable device.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another method for measuring relative height based on multiple sensors according to an embodiment of the present invention. As shown in fig. 2, the multi-sensor based relative height measuring method may include the following steps:
in the embodiment of the present invention, the method for measuring relative height based on multiple sensors includes steps 201 to 202, and for the description of steps 201 to 202, please refer to the detailed description of steps 101 to 102 in the first embodiment, which is not repeated herein; wherein, the step 202 detects that the height measurement instruction is received, and the step 203 is triggered to be executed; detecting in step 202 that the height measurement command has not been received, execution continues with step 202.
203. The wearable device controls the air pressure sensor to detect a measured air pressure value according to the height measurement instruction, and determines a detection position of the measured air pressure value as a measurement position.
204. The wearable device obtains a measured temperature value for the measurement location.
In the embodiment of the invention, the wearable device can acquire the measured temperature value of the measuring position by controlling the built-in temperature sensor of the wearable device.
205. The wearable device corrects the measured air pressure value according to the temperature difference value to obtain a second air pressure value of the measured position; wherein the temperature difference is a difference between a standard atmospheric temperature value and a measured temperature value at sea level.
In the embodiment of the invention, as the air pressure value has correlation with the change of the temperature value, the overall trend is that the temperature value is increased and the air pressure value is reduced; otherwise, the temperature value is decreased and the air pressure value is increased. Optionally, based on the correlation between the air pressure value and the temperature value, the wearable device corrects the measured air pressure value according to the temperature difference value, and obtaining the second air pressure value of the measurement location may include: the wearable device calculates a product of the first correction factor and the temperature difference value, and determines a second air pressure value based on the product, a sum of the measured air pressure value and the second correction factor; the temperature difference is the difference between the sea level standard atmospheric temperature value and the measured temperature value, the sea level standard atmospheric temperature value is 288.15K, and the first correction coefficient and the second correction coefficient are preset constants. Therefore, the embodiment of the invention can correct the measured air pressure value through the temperature difference value, thereby improving the measurement precision of the second air pressure value of the measurement position and further improving the accuracy of calculating the relative height.
206. The wearable device determines a relative height of the measurement position relative to the initial position according to the first air pressure value and the second air pressure value, wherein the relative height is used for representing a vertical distance between the measurement position and the initial position.
Therefore, by the method described in fig. 2, the ultraviolet sensor and the air pressure sensor can be combined, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, so that compared with the prior art in which a height measuring instrument built in the wearable device is started uninterruptedly for a long time, the method disclosed by the invention can reduce the electric quantity loss of the wearable device; in addition, the measured air pressure value can be corrected through the temperature difference value, the measurement precision of the second air pressure value of the measurement position is improved, and the accuracy of calculating the relative height is further improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flow chart of another method for measuring relative height based on multiple sensors according to an embodiment of the present invention. As shown in fig. 3, the multi-sensor based relative height measuring method may include the following steps:
in the embodiment of the present invention, the method for measuring relative height based on multiple sensors includes steps 301 to 305, and for the description of steps 301 to 305, please refer to the detailed description of steps 201 to 205 in the second embodiment, which is not repeated herein.
306. The wearable device determines a plane where an initial position of detecting the first air pressure value is located as a reference plane.
In the embodiment of the present invention, the wearable device controls the air pressure sensor to acquire the first air pressure value when detecting that the parameter value acquired by the ultraviolet sensor changes, so that the reference plane may be a ground, an open balcony, or a balcony, which is not limited in the embodiment of the present invention.
307. And the wearable equipment performs normalization processing on the second air pressure value and the measured temperature value to obtain a normalization processing result.
308. The wearable equipment inputs the normalization processing result into a relative height measurement model trained in advance; the training data of the relative height measurement model comprises a sample temperature value, a sample air pressure value and a sample relative height of a plurality of measurement points, wherein the sample relative height is a height value of each measurement point relative to a reference plane.
In the embodiment of the invention, the wearable device takes the normalization processing result of the air pressure value and the measured temperature value as the input value of the relative height measurement model, so that the convergence rate of the relative height measurement model can be increased, and the acquisition speed of the relative height is increased.
In this embodiment of the present invention, optionally, before the wearable device inputs the normalization processing result to the pre-trained relative height measurement model, the method may further include the following steps:
the wearable device determines a datum point, and the datum point is located on the reference plane;
the wearable equipment determines sample training temperature values, sample air pressure values and sample relative heights corresponding to the plurality of measuring points based on the reference points as training data;
the wearable device trains an initial neural network model by using the training data to obtain the relative height measurement model.
309. The wearable device determines a relative height of the measurement location with respect to the initial location based on an output of the relative height measurement model.
As an alternative embodiment, the wearable device determining the relative height of the measurement position with respect to the initial position based on the output result of the relative height measurement model may include:
the wearable equipment acquires an output result of the relative height measurement model;
the wearable device performs inverse normalization processing on the output result to obtain an inverse normalization processing result;
the wearable device determines a relative height of the measurement location with respect to the initial location from the denormalization process result.
With respect to steps 306 to 309, when determining the relative height of the measurement position with respect to the initial position according to the first air pressure value of the initial position and the second air pressure value of the measurement position, the wearable device may calculate the relative height by using a standard air pressure height formula of the relative height, however, the formula is greatly affected by the atmospheric temperature or humidity (i.e., the formula has a principle error), and further, the measurement of the relative height is affected by a large error. In the embodiment of the invention, the wearable device can determine a plane where the initial position for detecting the first air pressure value is located as a reference plane, and determine the relative height measurement model according to the reference plane; and normalizing the second air pressure value and the measured temperature value to obtain a normalization processing result, inputting the normalization processing result into the relative height measurement model as an input value, and determining the relative height of the measurement position relative to the initial position according to the output result of the relative height measurement model. Therefore, the embodiment of the invention can calculate the relative height of the measurement position relative to the initial position based on the relative height measurement model, improves the calculation accuracy, and reduces the influence of the environmental factor change on the calculation result (namely the relative height of the measurement position relative to the initial position) due to the good stability of the relative height measurement model.
Therefore, by the method described in fig. 3, the ultraviolet sensor and the air pressure sensor can be combined, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, so that compared with the prior art in which a height measuring instrument built in the wearable device is started uninterruptedly for a long time, the method disclosed by the invention can reduce the electric quantity loss of the wearable device; the measurement precision of the second air pressure value of the measurement position is improved, and the accuracy of calculating the relative height is further improved; in addition, the relative height of the measurement position relative to the initial position can be calculated based on the relative height measurement model, so that the calculation accuracy is improved, and meanwhile, due to the good stability of the relative height measurement model, the influence of the change of the environmental factors on the calculation result (namely the relative height of the measurement position relative to the initial position) is reduced.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of a wearable device according to an embodiment of the present invention. As shown in fig. 4, the wearable device may include:
a first control unit 401, configured to control the air pressure sensor to detect a first air pressure value when detecting that a parameter value collected by the ultraviolet sensor changes, determine a detection position of the first air pressure value as an initial position, and provide the first air pressure value measured at the initial position to the first determination unit 404; wherein, this ultraviolet ray sensor and this baroceptor all place in wearable equipment.
A detection unit 402 for detecting whether the height measurement instruction is received, and providing the detection result to the second control unit 403.
A second control unit 403, configured to, after the detection unit 402 detects that the height measurement instruction is received, control the air pressure sensor to detect a second air pressure value according to the height measurement instruction, determine a detection position of the second air pressure value as a measurement position, and provide the second air pressure value measured by the measurement position to the first determination unit 404.
In this embodiment of the present invention, optionally, the second control unit 403 may control the air pressure sensor to detect a plurality of initial second air pressure values at the measurement position, delete two initial second air pressure values with the highest value and the lowest value among the plurality of initial second air pressure values, and obtain an average value of the remaining initial second air pressure values as the second air pressure value at the measurement position. For example, the second control unit 403 may collect 10 initial second air pressure values at the measurement position, delete two initial second air pressure values with the highest air pressure value and the lowest air pressure value from the 10 initial air pressure values, and obtain an average value of the remaining 8 initial second air pressure values as the second air pressure value at the measurement position.
A first determining unit 404, configured to determine a relative height of the measurement position with respect to the initial position according to the first air pressure value and the second air pressure value, where the relative height is used to indicate a vertical distance between the measurement position and the initial position.
In this embodiment of the present invention, optionally, after determining the relative height of the measurement position with respect to the initial position according to the first air pressure value and the second air pressure value, the first determining unit 404 may further obtain the position coordinate of the measurement position and the position coordinate of the initial position, and send the relative height of the measurement position with respect to the initial position, the position coordinate of the measurement position, and the position coordinate of the initial position to the monitoring terminal associated with the wearable device for the user of the monitoring terminal to view.
Therefore, the wearable device described in fig. 4 can combine the ultraviolet sensor and the air pressure sensor, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, so that compared with the prior art in which the height measuring instrument built in the wearable device is started uninterruptedly for a long time, the wearable device can reduce the electric quantity loss of the wearable device.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of another wearable device according to an embodiment of the present invention, wherein the wearable device shown in fig. 5 is obtained by further optimizing the wearable device shown in fig. 4. In contrast to the wearable device shown in fig. 4, in the wearable device shown in fig. 5, the second control unit 403 may include:
a control subunit 4031, configured to, after the detection unit 402 detects that the height measurement instruction has been received, control the air pressure sensor to detect the measured air pressure value according to the height measurement instruction, determine the detection position of the measured air pressure value as a measurement position, and provide the measurement air pressure value to the correction subunit 4033.
The obtaining subunit 4032 is configured to obtain a measured temperature value of the measurement location, and provide the measured temperature value to the correcting subunit 4033.
A correction subunit 4033, configured to correct the measured air pressure value according to the temperature difference value, to obtain a second air pressure value at the measurement position; wherein the temperature difference is the difference between the sea level standard atmospheric temperature value and the measured temperature value.
In the embodiment of the invention, as the air pressure value has correlation with the change of the temperature value, the overall trend is that the temperature value is increased and the air pressure value is reduced; otherwise, the temperature value is decreased and the air pressure value is increased. Optionally, based on the correlation between the air pressure value and the temperature value, the manner of correcting the measured air pressure value by the correction subunit 4033 according to the temperature difference value to obtain the second air pressure value at the measurement position may specifically be: calculating a product of the first correction factor and the temperature difference value, and determining a second air pressure value based on the product, the measured air pressure value and a sum of the second correction factor; the temperature difference is the difference between the sea level standard atmospheric temperature value and the measured temperature value, the sea level standard atmospheric temperature value is 288.15K, and the first correction coefficient and the second correction coefficient are preset constants. Therefore, the embodiment of the invention can correct the measured air pressure value through the temperature difference value, thereby improving the measurement precision of the second air pressure value of the measurement position and further improving the accuracy of calculating the relative height.
Therefore, the wearable device described in fig. 5 can combine the ultraviolet sensor and the air pressure sensor, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, so that compared with the prior art in which a height measuring instrument built in the wearable device is started uninterruptedly for a long time, the wearable device can reduce the electric quantity loss of the wearable device; in addition, the measured air pressure value can be corrected through the temperature difference value, the measurement precision of the second air pressure value of the measurement position is improved, and the accuracy of calculating the relative height is further improved.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of another wearable device according to an embodiment of the present invention, wherein the wearable device shown in fig. 6 is obtained by further optimizing the wearable device shown in fig. 5. In comparison with the wearable device shown in fig. 5, in the wearable device shown in fig. 5, the first determination unit 404 may include:
the first determining sub-unit 4041 is configured to determine a plane where an initial position of the first air pressure value is detected as a reference plane, and provide the reference plane to the input sub-unit 4043.
The processing sub-unit 4042 is configured to perform normalization processing on the second air pressure value and the measured temperature value to obtain a normalization processing result, and provide the normalization processing result to the input sub-unit 4043.
An input sub-unit 4043 configured to input the normalization processing result to the pre-trained relative height measurement model, and supply an output result obtained by the pre-trained relative height measurement model to the second determination sub-unit 4044; the training data of the relative height measurement model comprises a sample temperature value, a sample air pressure value and a sample relative height of a plurality of measurement points, wherein the sample relative height is a height value of each measurement point relative to a reference plane.
In the embodiment of the present invention, the input subunit 4043 uses the normalization processing result of the air pressure value and the measured temperature value as the input value of the relative altitude measurement model, which can improve the convergence rate of the relative altitude measurement model, thereby improving the acquisition speed of the relative altitude.
In this embodiment of the present invention, optionally, before the inputting the normalization processing result into the pre-trained relative height measurement model, the inputting sub-unit 4043 may further include:
determining a datum point, which is located on the reference plane;
determining sample training temperature values, sample air pressure values and sample relative heights corresponding to the plurality of measuring points based on the reference points as training data;
and training an initial neural network model by using the training data to obtain the relative height measurement model.
A second determining sub-unit 4044, configured to determine a relative height of the measurement position with respect to the initial position based on an output result of the relative height measurement model, the relative height being used to represent a vertical distance between the measurement position and the initial position.
As an alternative embodiment, the second determining sub-unit 4044 may specifically determine the relative height of the measurement position with respect to the initial position based on the output result of the relative height measurement model by:
obtaining an output result of the relative height measurement model;
performing inverse normalization processing on the output result to obtain an inverse normalization processing result;
and determining the relative height of the measurement position relative to the initial position according to the result of the anti-normalization processing.
As an alternative embodiment, as shown in fig. 6, the parameter value collected by the ultraviolet sensor may be an ultraviolet intensity value; the wearable device may further include:
an obtaining unit 405, configured to obtain a first ultraviolet intensity value collected by the ultraviolet sensor at a first time, obtain a second ultraviolet intensity value collected by the ultraviolet sensor at a second time, and provide the first ultraviolet intensity value and the second ultraviolet intensity value to a calculating unit 406; and a preset time interval exists between the first moment and the second moment.
The calculating unit 406 is configured to calculate a difference between the first ultraviolet intensity value and the second ultraviolet intensity value, and provide the calculation result to the determining unit 407.
A judging unit 407, configured to judge whether the difference is greater than a preset threshold, and provide the judgment result to the second determining unit 408.
The second determining unit 408 is configured to determine that the parameter value collected by the ultraviolet sensor is detected to change when the determining unit 407 determines that the difference is greater than the preset threshold, and trigger the first control unit 401 to start.
Therefore, the wearable device described in fig. 6 can combine the ultraviolet sensor and the air pressure sensor, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, so that compared with the prior art in which a height measuring instrument built in the wearable device is started uninterruptedly for a long time, the wearable device can reduce the electric quantity loss of the wearable device; the measurement precision of the second air pressure value of the measurement position is improved, and the accuracy of calculating the relative height is further improved; in addition, the relative height of the measurement position relative to the initial position can be calculated based on the relative height measurement model, so that the calculation accuracy is improved, and meanwhile, due to the good stability of the relative height measurement model, the influence of the change of the environmental factors on the calculation result (namely the relative height of the measurement position relative to the initial position) is reduced.
Fig. 7 shows only a portion related to the embodiment of the present invention, and for convenience of description, please refer to the method portion of the embodiment of the present invention for a specific technical detail that is not disclosed. This wearable equipment can be for including arbitrary terminal equipment such as phone wrist-watch, intelligent wrist strap, intelligent glasses to the terminal is the phone wrist-watch as an example:
fig. 7 is a block diagram showing a part of the structure of a telephone wristwatch relating to a terminal provided by an embodiment of the present invention. Referring to fig. 7, the telephone watch includes: radio Frequency (RF) circuit 1110, memory 1120, input unit 1130, display unit 1140, sensor 1150, audio circuit 1160, wireless communication module 1170, processor 1180, power supply 1190, and camera 1100. Those skilled in the art will appreciate that the telephone watch configuration shown in fig. 7 does not constitute a limitation of a telephone watch, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The various components of the telephone watch are described in detail below with reference to fig. 7:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages to processor 1180; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1110 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1120 may be used to store executable program code, and the processor 1180 coupled to the memory 1120 may be used to execute various functional applications of the telephone watch and data processing by executing the executable program code stored in the memory 1120, and in particular, may be used to execute all or part of the steps of any one of the first to third embodiments of the drowning alarm method based on user behavior. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the stored data area may store data (such as audio data, a phonebook, etc.) created according to the use of the telephone watch, and the like. Further, the memory 1120 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 volatile solid state storage device.
The input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the telephone watch. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1131 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by the user or information provided to the user, as well as various menus of the telephone watch. The Display unit 1140 may include a Display panel 1141, and optionally, the Display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141, and when the touch panel 1131 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 1180 to determine the type of the touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of the touch event. Although in fig. 7, touch panel 1131 and display panel 1141 are shown as two separate components to implement the input and output functions of the telephone watch, in some embodiments, touch panel 1131 and display panel 1141 may be integrated to implement the input and output functions of the telephone watch.
The phone watch may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1160, speaker 1161, and microphone 1162 may provide an audio interface between a user and a telephone watch. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are processed by the audio data output processor 1180, and then passed through the RF circuit 1110 for transmission to, for example, another telephone watch, or for output to the memory 1120 for further processing.
The wireless communication module 1170 may be configured to transmit information to an external device, receive a control instruction of the external device, and the like, and in particular, transmit the control instruction to the processor 1180 after receiving the control instruction of the external device, and process the control instruction by the processor 1180. The wireless communication module 1170 may include, for example, a wireless fidelity (WiFi) module. WiFi belongs to a short-distance wireless transmission technology, the telephone watch can be used for sending information, helping a user to receive and send emails, browsing webpages, accessing streaming media, receiving control instructions of external equipment and the like through a WiFi module, and wireless broadband internet access is provided for the user.
Processor 1180 is the control center for the telephone watch, and is connected to various components of the overall handset using various interfaces and lines, and performs various functions of the telephone watch and processes data by running or executing software programs and/or modules stored in memory 1120, and calling data stored in memory 1120, thereby monitoring the telephone watch as a whole. Optionally, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The telephone watch also includes a power supply 1190 (such as a battery) for powering the various components, which may be logically coupled to the processor 1180 via a power management system that may be used to manage charging, discharging, and power consumption.
Although not shown, the phone watch may also include a bluetooth module or the like, which will not be described in detail herein.
In an embodiment of the present invention, the telephone watch includes a processor 1180 for executing executable program code stored in the memory 1120, and further includes the following functions:
the control sensor 1150 detects the ultraviolet intensity value, and when the ultraviolet intensity value is detected to be changed, the control sensor 1150 detects a first air pressure value, and determines the detection position of the first air pressure value as an initial position;
detecting whether a height measurement command is received, and if so, controlling the sensor 1150 to detect a second air pressure value according to the height measurement command, and determining a detection position of the second air pressure value as a measurement position;
and determining the relative height of the measuring position relative to the initial position according to the first air pressure value and the second air pressure value, wherein the relative height is used for representing the vertical distance between the measuring position and the initial position.
It can be seen that the processor 1180 included in the telephone watch can combine the ultraviolet sensor and the air pressure sensor, and the air pressure sensor is started to work when the parameter value acquired by the ultraviolet sensor changes, so that compared with the prior art in which the height measuring instrument built in the wearable device is started uninterruptedly for a long time, the wearable device and the method can reduce the electric quantity loss of the wearable device.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The above embodiments are only used for illustrating the technical solutions of the present application and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1.一种基于多传感器的相对高度测量方法,其特征在于,所述方法包括:1. A method for measuring relative height based on multiple sensors, wherein the method comprises: 当检测到紫外线传感器所采集的参数值发生变化时,控制气压传感器检测第一气压值,并将所述第一气压值的检测位置确定为初始位置;所述紫外线传感器和所述气压传感器均内置于可穿戴设备中;When it is detected that the parameter value collected by the ultraviolet sensor changes, the air pressure sensor is controlled to detect the first air pressure value, and the detection position of the first air pressure value is determined as the initial position; both the ultraviolet sensor and the air pressure sensor are built-in in wearable devices; 检测是否接收到高度测量指令,如果是,根据所述高度测量指令,控制所述气压传感器检测第二气压值,并将所述第二气压值的检测位置确定为测量位置;Detecting whether an altitude measurement instruction is received, and if so, controlling the air pressure sensor to detect the second air pressure value according to the height measurement instruction, and determining the detection position of the second air pressure value as the measurement position; 根据所述第一气压值和所述第二气压值确定所述测量位置相对于所述初始位置的相对高度,所述相对高度用于表示所述测量位置与所述初始位置之间的垂直距离;以及,获取所述测量位置的位置坐标以及所述初始位置的位置坐标,并将所述测量位置相对于所述初始位置的相对高度、所述测量位置的位置坐标以及所述初始位置的位置坐标发送至与可穿戴设备关联的监控终端,供监控终端的用户查看;The relative height of the measurement position relative to the initial position is determined according to the first air pressure value and the second air pressure value, and the relative height is used to represent the vertical distance between the measurement position and the initial position and, obtain the position coordinates of the measurement position and the position coordinates of the initial position, and compare the relative height of the measurement position with respect to the initial position, the position coordinates of the measurement position and the position of the initial position The coordinates are sent to the monitoring terminal associated with the wearable device for viewing by the user of the monitoring terminal; 所述根据所述高度测量指令,控制所述气压传感器检测第二气压值,并将所述第二气压值的检测位置确定为测量位置,包括:The controlling the air pressure sensor to detect the second air pressure value according to the altitude measurement instruction, and determining the detection position of the second air pressure value as the measurement position, includes: 根据所述高度测量指令,控制所述气压传感器检测测量气压值,并将所述测量气压值的检测位置确定为测量位置;According to the altitude measurement instruction, the air pressure sensor is controlled to detect the measured air pressure value, and the detection position of the measured air pressure value is determined as the measurement position; 获取所述测量位置的测量温度值;obtaining the measured temperature value of the measurement location; 根据温度差值对所述测量气压值进行修正,得到所述测量位置的第二气压值;即:计算第一修正系数与温度差值的乘积,并基于该乘积、测量气压值以及第二修正系数的和,确定第二气压值;其中,第一修正系数和第二修正系数为预设常数;其中,所述温度差值是海平面标准大气温度值与所述测量温度值之间的差值。Correct the measured air pressure value according to the temperature difference value to obtain the second air pressure value at the measurement location; that is, calculate the product of the first correction coefficient and the temperature difference value, and based on the product, the measured air pressure value and the second correction The sum of the coefficients determines the second air pressure value; wherein the first correction coefficient and the second correction coefficient are preset constants; wherein the temperature difference value is the difference between the sea level standard atmospheric temperature value and the measured temperature value value. 2.根据权利要求1所述的方法,其特征在于,所述根据所述第一气压值和所述第二气压值确定所述测量位置相对于所述初始位置的相对高度,包括:2 . The method according to claim 1 , wherein the determining the relative height of the measurement position relative to the initial position according to the first air pressure value and the second air pressure value comprises: 2 . 将检测所述第一气压值的所述初始位置所在的平面确定为参考平面;Determining the plane where the initial position of the first air pressure value is detected as a reference plane; 对所述第二气压值和所述测量温度值进行归一化处理,得到归一化处理结果;performing normalization processing on the second air pressure value and the measured temperature value to obtain a normalization processing result; 将所述归一化处理结果输入到预先训练的相对高度测量模型;其中,所述相对高度测量模型的训练数据包括若干测量点的样本温度值、样本气压值以及样本相对高度,所述样本相对高度是每个所述测量点相对于所述参考平面的高度值;The normalized processing result is input into a pre-trained relative height measurement model; wherein, the training data of the relative height measurement model includes sample temperature values, sample air pressure values, and sample relative heights of several measurement points. height is the height value of each of the measurement points relative to the reference plane; 基于所述相对高度测量模型的输出结果,确定所述测量位置相对于所述初始位置的相对高度。Based on the output of the relative height measurement model, the relative height of the measurement position relative to the initial position is determined. 3.根据权利要求2所述的方法,其特征在于,所述基于所述相对高度测量模型的输出结果,确定所述测量位置相对于所述初始位置的相对高度,包括:3. The method according to claim 2, wherein the determining the relative height of the measurement position relative to the initial position based on the output result of the relative height measurement model comprises: 获取所述相对高度测量模型的输出结果;obtaining the output result of the relative height measurement model; 对所述输出结果进行反归一化处理,得到反归一化处理结果;Perform inverse normalization processing on the output result to obtain an inverse normalization processing result; 根据所述反归一化处理结果确定所述测量位置相对于所述初始位置的相对高度。The relative height of the measurement position relative to the initial position is determined according to the denormalization processing result. 4.根据权利要求1~3任一项所述的方法,其特征在于,所述紫外线传感器所采集的参数值为紫外线强度值;所述方法还包括:4. The method according to any one of claims 1 to 3, wherein the parameter value collected by the ultraviolet sensor is an ultraviolet intensity value; the method further comprises: 获取所述紫外线传感器在第一时刻采集到的第一紫外线强度值,以及获取所述紫外线传感器在第二时刻采集到的第二紫外线强度值,所述第一时刻与所述第二时刻之间存在预设时长间隔;Obtain the first ultraviolet intensity value collected by the ultraviolet sensor at the first time, and obtain the second ultraviolet intensity value collected by the ultraviolet sensor at the second time, between the first time and the second time. There is a preset time interval; 计算所述第一紫外线强度值与所述第二紫外线强度值之间的差值,并判断所述差值是否大于预设阈值;Calculate the difference between the first ultraviolet intensity value and the second ultraviolet intensity value, and determine whether the difference is greater than a preset threshold; 如果所述差值大于所述预设阈值,则确定检测到所述紫外线传感器所采集的参数值发生变化。If the difference is greater than the preset threshold, it is determined that a change in the parameter value collected by the ultraviolet sensor is detected. 5.一种可穿戴设备,其特征在于,包括:5. A wearable device, comprising: 第一控制单元,用于当检测到紫外线传感器所采集的参数值发生变化时,控制气压传感器检测第一气压值,并将所述第一气压值的检测位置确定为初始位置;所述紫外线传感器和所述气压传感器均内置于所述可穿戴设备中;The first control unit is used to control the air pressure sensor to detect the first air pressure value when it is detected that the parameter value collected by the ultraviolet sensor changes, and determine the detection position of the first air pressure value as the initial position; the ultraviolet sensor and the air pressure sensor are built into the wearable device; 检测单元,用于检测是否接收到高度测量指令;a detection unit for detecting whether an altitude measurement command is received; 第二控制单元,用于在所述检测单元检测出接收到所述高度测量指令之后,根据所述高度测量指令,控制所述气压传感器检测第二气压值,并将所述第二气压值的检测位置确定为测量位置;A second control unit, configured to control the air pressure sensor to detect a second air pressure value according to the height measurement instruction after the detection unit detects that the height measurement instruction is received, and calculate the value of the second air pressure value according to the height measurement instruction. The detection position is determined as the measurement position; 第一确定单元,用于根据所述第一气压值和所述第二气压值确定所述测量位置相对于所述初始位置的相对高度,所述相对高度用于表示所述测量位置与所述初始位置之间的垂直距离;以及,获取所述测量位置的位置坐标以及所述初始位置的位置坐标,并将所述测量位置相对于所述初始位置的相对高度、所述测量位置的位置坐标以及所述初始位置的位置坐标发送至与可穿戴设备关联的监控终端,供监控终端的用户查看;a first determining unit, configured to determine the relative height of the measurement position relative to the initial position according to the first air pressure value and the second air pressure value, where the relative height is used to represent the difference between the measurement position and the The vertical distance between the initial positions; and, acquiring the position coordinates of the measurement position and the position coordinates of the initial position, and comparing the relative height of the measurement position with respect to the initial position, the position coordinates of the measurement position and the position coordinates of the initial position are sent to the monitoring terminal associated with the wearable device for viewing by the user of the monitoring terminal; 所述第二控制单元包括:The second control unit includes: 控制子单元,用于在所述检测单元检测出接收到所述高度测量指令之后,根据所述高度测量指令,控制所述气压传感器检测测量气压值,并将所述测量气压值的检测位置确定为测量位置;a control subunit, configured to control the air pressure sensor to detect the measured air pressure value according to the height measurement instruction after the detection unit detects that the height measurement instruction is received, and determine the detection position of the measured air pressure value is the measurement position; 获取子单元,用于获取所述测量位置的测量温度值;an acquisition subunit for acquiring the measured temperature value of the measurement position; 修正子单元,用于根据温度差值对所述测量气压值进行修正,得到所述测量位置的第二气压值;即:计算第一修正系数与温度差值的乘积,并基于该乘积、测量气压值以及第二修正系数的和,确定第二气压值;其中,第一修正系数和第二修正系数为预设常数;其中,所述温度差值是海平面标准大气温度值与所述测量温度值之间的差值。A correction subunit, configured to correct the measured air pressure value according to the temperature difference value to obtain the second air pressure value of the measurement position; namely: calculate the product of the first correction coefficient and the temperature difference value, and based on the product, measure the The sum of the air pressure value and the second correction coefficient determines the second air pressure value; wherein, the first correction coefficient and the second correction coefficient are preset constants; wherein, the temperature difference is the sea level standard atmospheric temperature value and the measurement Difference between temperature values. 6.根据权利要求5所述的可穿戴设备,其特征在于,所述第一确定单元包括:6. The wearable device according to claim 5, wherein the first determining unit comprises: 第一确定子单元,用于将检测所述第一气压值的所述初始位置所在的平面确定为参考平面;a first determination subunit, configured to determine a plane where the initial position of the first air pressure value is detected as a reference plane; 处理子单元,用于对所述第二气压值和所述测量温度值进行归一化处理,得到归一化处理结果;a processing subunit, configured to perform normalization processing on the second air pressure value and the measured temperature value to obtain a normalized processing result; 输入子单元,用于将所述归一化处理结果输入到预先训练的相对高度测量模型;其中,所述相对高度测量模型的训练数据包括若干测量点的样本温度值、样本气压值以及样本相对高度,所述样本相对高度是每个所述测量点相对于所述参考平面的高度值;The input subunit is used to input the normalized processing result into a pre-trained relative altitude measurement model; wherein, the training data of the relative altitude measurement model includes sample temperature values, sample air pressure values, and sample relative values of several measurement points height, the relative height of the sample is the height value of each of the measurement points relative to the reference plane; 第二确定子单元,用于基于所述相对高度测量模型的输出结果,确定所述测量位置相对于所述初始位置的相对高度,所述相对高度用于表示所述测量位置与所述初始位置之间的垂直距离。a second determination subunit, configured to determine the relative height of the measurement position relative to the initial position based on the output result of the relative height measurement model, where the relative height is used to represent the measurement position and the initial position vertical distance between. 7.根据权利要求6所述的可穿戴设备,其特征在于,所述第二确定子单元基于所述相对高度测量模型的输出结果,确定所述测量位置相对于所述初始位置的相对高度的方式具体为:7 . The wearable device according to claim 6 , wherein the second determination subunit determines the relative height of the measurement position relative to the initial position based on an output result of the relative height measurement model. 8 . The method is as follows: 获取所述相对高度测量模型的输出结果;obtaining the output result of the relative height measurement model; 对所述输出结果进行反归一化处理,得到反归一化处理结果;Perform inverse normalization processing on the output result to obtain an inverse normalization processing result; 根据所述反归一化处理结果确定所述测量位置相对于所述初始位置的相对高度。The relative height of the measurement position relative to the initial position is determined according to the denormalization processing result. 8.根据权利要求5~7任一项所述的可穿戴设备,其特征在于,所述紫外线传感器所采集的参数值为紫外线强度值;所述可穿戴设备还包括:The wearable device according to any one of claims 5 to 7, wherein the parameter value collected by the ultraviolet sensor is an ultraviolet intensity value; the wearable device further comprises: 获取单元,用于获取所述紫外线传感器在第一时刻采集到的第一紫外线强度值,以及获取所述紫外线传感器在第二时刻采集到的第二紫外线强度值,所述第一时刻与所述第二时刻之间存在预设时长间隔;The acquisition unit is used to acquire the first ultraviolet intensity value collected by the ultraviolet sensor at the first moment, and the second ultraviolet intensity value collected by the ultraviolet sensor at the second moment, the first moment and the There is a preset time interval between the second moments; 计算单元,用于计算所述第一紫外线强度值与所述第二紫外线强度值之间的差值;a calculation unit for calculating the difference between the first ultraviolet intensity value and the second ultraviolet intensity value; 判断单元,用于判断所述差值是否大于预设阈值;a judgment unit for judging whether the difference is greater than a preset threshold; 第二确定单元,用于在所述判断单元判断出所述差值大于所述预设阈值时,确定检测到所述紫外线传感器所采集的参数值发生变化。The second determination unit is configured to determine that the parameter value collected by the ultraviolet sensor has changed when the determination unit determines that the difference value is greater than the preset threshold value.
CN201810985193.9A 2018-08-28 2018-08-28 Relative height measurement method and wearable device based on multi-sensor Active CN109141355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810985193.9A CN109141355B (en) 2018-08-28 2018-08-28 Relative height measurement method and wearable device based on multi-sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810985193.9A CN109141355B (en) 2018-08-28 2018-08-28 Relative height measurement method and wearable device based on multi-sensor

Publications (2)

Publication Number Publication Date
CN109141355A CN109141355A (en) 2019-01-04
CN109141355B true CN109141355B (en) 2021-10-01

Family

ID=64828344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810985193.9A Active CN109141355B (en) 2018-08-28 2018-08-28 Relative height measurement method and wearable device based on multi-sensor

Country Status (1)

Country Link
CN (1) CN109141355B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111751848A (en) * 2019-06-14 2020-10-09 广东小天才科技有限公司 A method and electronic device for saving power consumption
CN110689702B (en) * 2019-09-30 2021-11-19 广东小天才科技有限公司 Safety early warning method and device based on intelligent wearable device and intelligent wearable device
CN111397551B (en) * 2020-03-11 2021-07-20 支付宝(杭州)信息技术有限公司 Displacement recognition method and device based on air pressure
CN115327452A (en) * 2021-05-11 2022-11-11 广州视源电子科技股份有限公司 Magnetometer data processing method and device
CN116337002A (en) * 2023-03-24 2023-06-27 上海外高桥造船有限公司 Post wheel built-in area space height measuring device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103712599A (en) * 2013-12-27 2014-04-09 南京信息工程大学 Relative height measuring device and method
CN104169680A (en) * 2012-03-13 2014-11-26 皇家飞利浦有限公司 Monitoring the change in height of a device using an air pressure sensor
CN104374368A (en) * 2014-06-25 2015-02-25 中国科学院国家天文台 Altimeter based on atmospheric pressure difference and measure method using same
CN105208182A (en) * 2014-06-24 2015-12-30 中兴通讯股份有限公司 Method enabling mobile terminal to automatically adjust parameters and mobile terminal
CN105865417A (en) * 2015-01-19 2016-08-17 上海丽恒光微电子科技有限公司 Height measuring method, height measuring instrument and wearable device
CN108180895A (en) * 2018-01-10 2018-06-19 云南电网有限责任公司电力科学研究院 A kind of method based on height above sea level peak value measurement relative altitude

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1292742A (en) * 1970-03-17 1972-10-11 Kollsman Instr Corp Improvements in and relating to altimeters
CN101968356B (en) * 2010-10-29 2013-08-28 常州市新瑞得仪器有限公司 Digital leveling instrument
JP5652418B2 (en) * 2012-03-27 2015-01-14 カシオ計算機株式会社 Advanced information acquisition device and advanced information acquisition system
WO2014042727A2 (en) * 2012-06-12 2014-03-20 Trxs Systems, Inc. Methods resolving the elevation of a tracked personnel or assets
US9986529B2 (en) * 2013-11-12 2018-05-29 Qualcomm Incorporated Methods and apparatuses for use in determining an altitude of a mobile device
CN105091851B (en) * 2015-04-24 2018-07-17 广东小天才科技有限公司 Height measuring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104169680A (en) * 2012-03-13 2014-11-26 皇家飞利浦有限公司 Monitoring the change in height of a device using an air pressure sensor
CN103712599A (en) * 2013-12-27 2014-04-09 南京信息工程大学 Relative height measuring device and method
CN105208182A (en) * 2014-06-24 2015-12-30 中兴通讯股份有限公司 Method enabling mobile terminal to automatically adjust parameters and mobile terminal
CN104374368A (en) * 2014-06-25 2015-02-25 中国科学院国家天文台 Altimeter based on atmospheric pressure difference and measure method using same
CN105865417A (en) * 2015-01-19 2016-08-17 上海丽恒光微电子科技有限公司 Height measuring method, height measuring instrument and wearable device
CN108180895A (en) * 2018-01-10 2018-06-19 云南电网有限责任公司电力科学研究院 A kind of method based on height above sea level peak value measurement relative altitude

Also Published As

Publication number Publication date
CN109141355A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109141355B (en) Relative height measurement method and wearable device based on multi-sensor
CN108834068B (en) Positioning method based on wearable device and wearable device
CN108600546B (en) Environment light detection method and mobile terminal
CN109905907B (en) A kind of network search method and mobile terminal
CN111328119B (en) A kind of voice service processing method and electronic device
CN107532900A (en) A method and mobile device for determining calibration parameters
CN108597186B (en) A drowning alarm method and wearable device based on user behavior
CN108293080A (en) A kind of method of contextual model switching
CN109542279B (en) Terminal device control method and terminal device
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN107832067B (en) Application update method, mobile terminal and computer-readable storage medium
CN110471808B (en) A pressure button detection method, device and mobile terminal
CN109660657B (en) Application control method and device
CN108416982A (en) Drowning monitoring method based on motion change rule and wearable device
CN111142618A (en) Method for detecting folding angle and electronic equipment
CN111366170B (en) State determination method and electronic equipment
CN110824516B (en) Positioning method and electronic equipment
CN112128925B (en) Method for intelligently remotely controlling air conditioner, intelligent terminal and storage medium
CN108650041B (en) Signal quality display method and mobile terminal
CN109041190B (en) A power control method and terminal
CN108429363B (en) Wireless charging method and wireless charging device
CN111221602A (en) Interface display method and electronic device
CN112414370B (en) Building floor positioning method, electronic equipment and computer storage medium
CN110730013B (en) Method for improving transmission stray and mobile terminal
CN110826115B (en) A management method, wearable device and electronic device

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