Sensor data processing method, electronic device, and readable storage medium
AssigneeHonor Device Co., Ltd.
InventorYangsen Duan
Life of this patent
Estimating the term…
Abstract
This application discloses a sensor data processing method, an electronic device, and a readable storage medium, and relates to the field of data processing technologies. The method includes: obtaining a group of raw sensor data, where the raw sensor data is sensor data output, based on an actual output data rate ODR, by a sensor; and obtaining a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR. The target sensor data is estimated sensor data output, based on the target ODR, by the sensor, and there is no ODR error.
Claims20
A sensor data processing method, applied to an electronic device, wherein the sensor data processing method comprises:
- obtaining a group of raw sensor data, wherein raw sensor data in the group of raw sensor data is sensor data that is output, based on an actual output data rate (ODR), by a sensor;
- and
- obtaining a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR, wherein target sensor data of the group of target sensor data is estimated sensor data that is output, based on the target ODR, by the sensor, and the target sensor data is used to implement a function of an application, and wherein obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
- obtaining the group of target sensor data using an interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR, and wherein obtaining the group of target sensor data by using the interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
- obtaining a total quantity of data entries in the group of target sensor data through calculation based on a time length of the group of raw sensor data and the target ODR, wherein the time length of the group of raw sensor data is a ratio of a total quantity of data entries in the group of raw sensor data to the actual ODR;
- and
- obtaining the group of target sensor data through calculation, after the actual ODR, the target ODR, the time length of the group of raw sensor data, the total quantity of the data entries in the group of raw sensor data, the total quantity of the data entries in the group of target sensor data, and the group of raw sensor data are substituted into the interpolation algorithm.
An electronic device, comprising:
- one or more sensors, configured to output raw sensor data to one or more processors;
- the one or more processors;
- and
- a memory, wherein a program is stored on the memory, and
- wherein when the program is executed by the one or more processors, the electronic device is enabled to:
- obtain a group of raw sensor data, wherein raw sensor data of the group of raw sensor data is sensor data that is output, based on an actual output data rate (ODR), by a sensor;
- and
- obtain a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR, wherein target sensor data of the group of target sensor data is estimated sensor data that is output, based on the target ODR, by the sensor, and the target sensor data is used to implement a function of an application, and wherein obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
- obtaining the group of target sensor data using an interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR, and wherein obtaining the group of target sensor data by using the interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
- obtaining a total quantity of data entries in the group of target sensor data through calculation based on a time length of the group of raw sensor data and the target ODR, wherein the time length of the group of raw sensor data is a ratio of a total quantity of data entries in the group of raw sensor data to the actual ODR;
- and
- obtaining the group of target sensor data through calculation, after the actual ODR, the target ODR, the time length of the group of raw sensor data, the total quantity of the data entries in the group of raw sensor data, the total quantity of the data entries in the group of target sensor data, and the group of raw sensor data are substituted into the interpolation algorithm.
A non-transitory computer readable storage medium, wherein a computer program is stored on the non-transitory computer readable storage medium, and the computer program is executed by a processor to:
- obtain a group of raw sensor data, wherein raw sensor data of the group of raw sensor data is sensor data that is output, based on an actual output data rate (ODR), by a sensor;
- and
- obtain a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR, wherein target sensor data of the group of target sensor data is estimated sensor data that is output, based on the target ODR, by the sensor, and the target sensor data is used to implement a function of an application, and wherein obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
- obtaining the group of target sensor data using an interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR, and wherein obtaining the group of target sensor data by using the interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
- obtaining a total quantity of data entries in the group of target sensor data through calculation based on a time length of the group of raw sensor data and the target ODR, wherein the time length of the group of raw sensor data is a ratio of a total quantity of data entries in the group of raw sensor data to the actual ODR;
- and
- obtaining the group of target sensor data through calculation, after the actual ODR, the target ODR, the time length of the group of raw sensor data, the total quantity of the data entries in the group of raw sensor data, the total quantity of the data entries in the group of target sensor data, and the group of raw sensor data are substituted into the interpolation algorithm.
Dependencies are inferred from the claim text.