Nothing Special   »   [go: up one dir, main page]

CN105866781B - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN105866781B
CN105866781B CN201610172252.1A CN201610172252A CN105866781B CN 105866781 B CN105866781 B CN 105866781B CN 201610172252 A CN201610172252 A CN 201610172252A CN 105866781 B CN105866781 B CN 105866781B
Authority
CN
China
Prior art keywords
distance
position information
relative position
distance sensor
determining
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
CN201610172252.1A
Other languages
Chinese (zh)
Other versions
CN105866781A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610172252.1A priority Critical patent/CN105866781B/en
Publication of CN105866781A publication Critical patent/CN105866781A/en
Application granted granted Critical
Publication of CN105866781B publication Critical patent/CN105866781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Optical Radar Systems And Details Thereof (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a data processing method and electronic equipment, wherein the method comprises the following steps: acquiring relative position information between a first body and a second body of the electronic equipment at the current moment; acquiring a measurement distance acquired by a distance sensor in the electronic equipment at the current moment; determining an actual distance corresponding to the relative position information according to a corresponding relation between preset position information and the distance; based on the measured distance and the actual distance, an amount of compensation required to calibrate the distance sensor is determined to calibrate the distance sensor. The method and the electronic device can reduce the calibration complexity and improve the distance measurement value output by the electronic device.

Description

Data processing method and electronic equipment
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a data processing method and an electronic device.
Background
After the distance sensor is arranged on the electronic equipment, functions of distance measurement, focusing and the like can be provided for a user through the distance sensor. However, the distance sensor on the electronic device is easily interfered by various factors, such as crosstalk interference, and the detection accuracy of the distance sensor is affected. At present, in order to improve the precision of the distance sensor, calibration is required before the electronic device leaves a factory or in the process of using the electronic device, so that the calibration process is complex, and the operation complexity of a user is increased.
Disclosure of Invention
In view of the above, the present application provides a data processing method and an electronic device to reduce calibration complexity and improve a distance measurement value output by the electronic device.
In order to achieve the above purpose, the present application provides the following technical solutions:
a method of data processing, comprising:
acquiring relative position information between a first body and a second body of the electronic equipment at the current moment;
acquiring a measurement distance acquired by a distance sensor in the electronic equipment at the current moment;
determining an actual distance corresponding to the relative position information according to a corresponding relation between preset position information and distance;
determining an amount of compensation required to calibrate the distance sensor based on the measured distance and the actual distance to calibrate the distance sensor.
Preferably, before determining the actual distance corresponding to the relative position information according to the preset corresponding relationship between the position information and the distance, the method further includes:
judging whether the relative position relationship between the first body and the second body belongs to a preset position relationship or not based on the relative position information, wherein when the relative position relationship belongs to the preset position relationship, the distance sensor can acquire the distance between the distance sensor and the first body, and the distance sensor is arranged in the second body;
and when the relative position relationship belongs to a preset position relationship, executing the operation of determining the actual distance corresponding to the relative position information according to the corresponding relationship between the preset position information and the distance.
Preferably, the acquiring of the relative position information between the first body and the second body of the electronic device at the current time includes:
acquiring a target included angle between a first body and a second body of the electronic equipment at the current moment;
determining the actual distance corresponding to the relative position information according to the preset corresponding relationship between the position information and the distance, including:
and determining the actual distance corresponding to the target included angle according to the corresponding relation between the preset included angle and the distance.
Preferably, the acquiring of the relative position information between the first body and the second body of the electronic device at the current time includes:
and when a calibration instruction is received, acquiring relative position information between the first body and the second body.
Preferably, after the determining the compensation amount required for calibrating the distance sensor, the method further includes:
acquiring a to-be-calibrated measuring distance which is acquired by a distance sensor in the electronic equipment and is used for outputting;
determining a target distance according to the compensation quantity and the distance to be calibrated and measured;
and outputting the target distance.
On the other hand, an embodiment of the present application further provides an electronic device, including:
the memory is used for storing the corresponding relation between preset position information and distance;
the processor is used for acquiring relative position information between a first body and a second body of the electronic equipment at the current moment; acquiring a measurement distance acquired by a distance sensor in the electronic equipment at the current moment; determining an actual distance corresponding to the relative position information according to the corresponding relation; determining an amount of compensation required to calibrate the distance sensor based on the measured distance and the actual distance to calibrate the distance sensor.
Preferably, the processor is further configured to, before determining an actual distance corresponding to the relative position information according to the corresponding relationship, determine whether the relative position relationship between the first body and the second body belongs to a preset position relationship based on the relative position information, where when the relative position relationship belongs to the preset position relationship, the distance sensor is capable of acquiring the distance between the distance sensor and the first body, where the distance sensor is disposed in the second body; and when the relative position relationship belongs to a preset position relationship, executing the operation of determining the actual distance corresponding to the relative position information according to the corresponding relationship between the preset position information and the distance.
Preferably, the processor obtains the relative position information between the first body and the second body of the electronic device at the current moment, specifically:
acquiring a target included angle between a first body and a second body of the electronic equipment at the current moment;
the processor determines an actual distance corresponding to the relative position information according to the corresponding relationship, specifically:
and determining the actual distance corresponding to the target included angle according to the corresponding relation between the preset included angle and the distance.
Preferably, the electronic device further includes:
a receiver for receiving calibration instructions;
then, the processor obtains the relative position information between the first body and the second body of the electronic device at the current moment, specifically: when it is determined that the receiver receives a calibration instruction, relative position information between the first body and the second body is acquired.
Preferably, the processor is further configured to, after the determining the compensation amount required for calibrating the distance sensor, acquire the distance to be calibrated, which is acquired by the distance sensor in the electronic device and used for outputting; determining a target distance according to the compensation quantity and the distance to be calibrated and measured; and outputting the target distance.
According to the technical scheme, when the distance sensor needs to be calibrated, the first body and the second body of the first electronic device can be set to be at a certain relative position, the measurement distance sensed by the distance sensor is obtained at the relative position, the actual distance measured by the distance sensor at the relative position is obtained, and the compensation quantity required by the distance sensor is determined by using the actual distance and the measurement distance, so that the distance sensor can be calibrated by using the compensation quantity, the condition that the distance measurement of the distance sensor is inaccurate due to interference of other elements on the distance sensor is reduced, and the distance measurement accuracy of the distance sensor in the electronic device is improved. The relative position can reflect the position relation between the first body and the second body and also contain attitude information.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
FIG. 1 is a flow chart illustrating an embodiment of a data processing method of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a data processing method of the present application;
FIG. 3 is a schematic diagram illustrating a scenario in which the data processing method according to the embodiment of the present application is applied;
fig. 4 shows a schematic structural diagram of an embodiment of an electronic device according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
Referring to fig. 1, a flowchart of an embodiment of a data processing method according to the present application is shown, where the method of the present embodiment is applied to an electronic device having a first body and a second body, such as a notebook computer, a flip phone, and the like.
The method of the embodiment comprises the following steps:
101, obtaining relative position information between a first body and a second body of the electronic device at the current moment.
It is understood that the first body and the second body are two main constituent bodies of the electronic device, and the first body and the second body are rotatably connected so that the first body and the second body can have different positional relationships therebetween. For example, taking a notebook as an example, the first body and the second body may be a panel provided with a display screen and a panel provided with a keyboard, respectively.
The relative position information may be information reflecting a position relationship or a posture between the first ontology and the second ontology, for example, the position relationship reflected by the relative position information may include: the first body and the second body are in a mutually-jointed position state; the first body and the second body are separated from each other in position relation, and the like.
Optionally, in order to more intuitively reflect the relative relationship between the first body and the second body, the relative position information may include an included angle between the first body and the second body. For example, an angle sensor is used to obtain the included angle between the first body and the second body. Of course, in practical application, the first acceleration value of the first body can be obtained through the first acceleration sensor arranged in the first body, the second acceleration value of the second body can be obtained through the second acceleration sensor arranged on the second body, and the included angle between the first body and the second body can be determined according to the first acceleration value and the second acceleration value.
And 102, acquiring the measurement distance acquired by the distance sensor in the electronic equipment at the current moment.
Wherein the distance sensor can sense the distance of the object from the distance sensor. For example, the distance sensor may calculate the distance to the object by using the time from the emission of the light pulse to the reflection of the light pulse by the object, but the distance sensor may measure the distance in various ways, which is not limited herein.
In practical applications, the distance sensor may be built into the first body or the second body of the electronic device, and of course, in order to realize functions such as focusing, the distance sensor is generally disposed on the body having the display screen.
The distance sensor is used for sensing the distance between the first body and the second body, wherein the distance is measured by the distance sensor when the relative position information between the first body and the second body is acquired, namely the distance is measured by the distance sensor under the condition that the first body and the second body are in a certain relative position relation.
The distance sensor is arranged on the first body, and the distance sensor is arranged on the second body and is used for sensing the distance between the first body and the second body.
103, determining the actual distance corresponding to the relative position information according to the preset corresponding relationship between the position information and the distance.
The preset corresponding relationship may be obtained through testing before the electronic device leaves a factory.
It is understood that, in the case where the positional relationship between the first body and the second body is fixed, the distance between the distance sensor provided in the first body and the first body is also fixed, and therefore, the actual distance corresponding to a certain relative positional information is actually the actual distance between the distance sensor and the first body to which the distance sensor is not provided under the relative positional information. Therefore, under the condition that the first body and the second body are at different relative positions, the actual distances from the distance sensors to the first body can be respectively tested, and the corresponding relation between the relative positions and the actual distances can be generated according to the test results, so that a basis is provided for subsequently generating compensation required by calibration.
And 104, determining the compensation amount required for calibrating the distance sensor based on the measured distance and the actual distance so as to calibrate the distance sensor.
Wherein the difference between the actual distance and the measured distance is the compensation required for the measured distance of the distance sensor. For example, if the actual distance is 3cm and the measured distance is 2.5cm, then the offset should be 0.5 cm; the actual distance is 2.5cm and the measured distance is 3cm, then the offset should be-0.5 cm.
In this application embodiment, when the distance sensor needs to be calibrated, the first body and the second body of the first electronic device may be set to a certain relative position, and the measurement distance sensed by the distance sensor is obtained at the relative position, then the actual distance measured by the distance sensor at the relative position is obtained, and the compensation amount required to be compensated by the distance sensor is determined by using the actual distance and the measurement distance, so that the distance sensor may be calibrated by using the compensation amount, thereby reducing the situation that the distance measurement of the distance sensor is inaccurate due to interference of other elements on the electronic device on the distance sensor, and improving the distance measurement accuracy of the distance sensor in the electronic device.
It can be understood that, in practical applications, a user may trigger the electronic device to determine a compensation value of the distance sensor as needed to calibrate the distance sensor, and then the electronic device may obtain the relative position information between the first body and the second body of the electronic device at the current time when receiving the calibration instruction. For example, a user may trigger the electronic device to determine the amount of compensation for the distance sensor by touching a key of the electronic device.
It can be understood that, in a case that the first body and the second body of the electronic device are in a certain relative position relationship, only when a pulse output by the distance sensor disposed on the second body is projected onto the first body of the electronic device, the distance between the distance sensor and the first body measured by the distance sensor should be a fixed distance, at this time, the electronic device may measure an actual distance between the distance sensor and the first body in advance, and preset a corresponding relationship between the actual distance and the relative position.
In the case of the relative position relationship, if the pulse output by the distance sensor cannot be projected onto the first body of the electronic device, the distance measured by the distance sensor is the distance between the distance sensor and an object other than the electronic device, and the electronic device cannot know the distance between the distance sensor and the object at any other position in advance, so that the electronic device cannot preset the actual distance between the distance sensor and the object other than the electronic device.
It can be seen that at least one positional relationship may be preset, and when the first body and the second body are in the preset positional relationship, the distance sensor of the electronic device can acquire the distance between the distance sensor and the first body, wherein the distance sensor is disposed in the second body. And the electronic device can preset the actual distance from the distance sensor to the first body under the preset position relationship. Therefore, before determining the actual distance corresponding to the relative position information, it may also be determined whether the relative position relationship between the first ontology and the second ontology belongs to a preset position relationship based on the relative position information. Correspondingly, when the relative position relationship belongs to the preset position relationship, the operation of determining the actual distance corresponding to the relative position information according to the corresponding relationship between the preset position information and the distance is executed.
Further, when the relative position relationship between the first body and the second body does not belong to the preset position relationship, prompt information can be output, and the prompt information can prompt a user that the first body or the second body needs to be rotated, so that the first body and the second body are in the preset position relationship.
For convenience of understanding, a data processing method according to an embodiment of the present application is described by taking an example that relative position information between a first body and a second body is characterized by an included angle between the first body and the second body.
Referring to fig. 2, which shows a schematic flow chart of another embodiment of the data processing method of the present application, the method of the present embodiment may include:
and 201, acquiring a target included angle between a first body and a second body of the electronic equipment at the current moment.
It is understood that, for the sake of convenience of distinction, the angle between the first body and the second body at the current moment is referred to as a target angle.
And 202, acquiring the measurement distance acquired by the distance sensor in the electronic equipment at the current moment.
The measured distance is a distance measured by the distance sensor in the current actual measurement process, and the measured distance may have a deviation, so that the measured distance does not conform to the actual distance.
And 203, judging whether the target included angle is in a preset angle range.
Wherein, this angle scope of predetermineeing can set for as required, as long as can guarantee: when the angle between the first body and the second body is within the preset angle range, the distance sensor can detect the measuring distance between the distance sensor and the first body. Wherein the distance sensor is arranged on the second body.
For example, the predetermined angle range may be 0 to 45 degrees, in which the pulse output from the distance sensor disposed in the second body is projected onto the first body, where the measured distance measured by the distance sensor is the measured distance from the distance sensor to the first body.
And 204, when the target included angle is within the preset angle range, determining the actual distance corresponding to the target included angle according to the corresponding relation between the preset included angle and the distance.
When the actual distance corresponding to the target included angle is the included angle between the first body and the second body, the actual distance can be understood as the actual distance between the distance sensor and the second body measured in advance.
For convenience of understanding, the following description is provided in conjunction with an application scenario, for example, referring to fig. 3, in fig. 3, a first body 301 may be provided with a physical keyboard, and a second body 302 may be provided with a display screen, but of course, in an actual application, the electronic device may not have the physical keyboard, and at this time, the first body may understand a support frame and the like that support the second body on a platform. A distance sensor 303 is disposed in the second body 302, and a target included angle a exists between the first body 301 and the second body 302 at the current moment, for example, the target included angle a may be 30 degrees, and the predetermined angle range may be 0-45 degrees, in which case, a distance measuring pulse output by the distance sensor is projected onto the first body, as shown by a dotted line in fig. 3, and a measured distance between the distance sensor and the first body is measured by the distance sensor. In order to determine whether the measured distance has a deviation or not and whether compensation is needed or not, an actual distance corresponding to the target included angle may be preset, where the actual distance is an actual distance from the distance sensor to the first body when the first body and the second body are located at the target included angle. Thus, if the measured distance does not correspond to the actual distance, it is indicated that the distance sensor needs to be calibrated and a compensation value required for the calibration is determined.
It can be understood that when the target included angle is not within the preset angle range, prompt information can be output to prompt a user to adjust the included angle between the first body and the second body, so that when the included angle between the first body and the second body is within the preset angle range, subsequent operations are performed.
Based on the measured distance and the actual distance, an amount of compensation required to calibrate the distance sensor is determined 205 to calibrate the distance sensor.
It is understood that, in any of the above embodiments, after determining the compensation amount, if the distance sensor is used for distance measurement, the distance measured by the distance sensor may be compensated by using the compensation amount, and the compensated distance is used as the actual distance.
Specifically, the distance to be calibrated, which is acquired by a distance sensor in the electronic device and is used for outputting, can be acquired; determining a target distance according to the compensation quantity and the distance to be calibrated; and outputting the target distance. The target distance may be the sum of the measured distance to be calibrated and the compensation amount.
It is understood that the distance measured by the distance sensor may be transmitted to the embedded controller, and then transmitted to the processor of the electronic device by the embedded controller, so that the measurement data transmitted by the embedded controller is compensated by the processor according to the compensation amount.
In another aspect, an embodiment of the present application provides an electronic device to support processing by the above data processing method.
Referring to fig. 4, which shows a schematic structural diagram of an embodiment of an electronic device according to the present application, the electronic device of the present embodiment may include:
a memory 401 for storing a correspondence between preset position information and a distance;
a processor 402, configured to obtain relative position information between a first body and a second body of the electronic device at a current time; acquiring a measurement distance acquired by a distance sensor in the electronic equipment at the current moment; determining an actual distance corresponding to the relative position information according to the corresponding relation; determining an amount of compensation required to calibrate the distance sensor based on the measured distance and the actual distance to calibrate the distance sensor.
Of course, the memory may also be used to store programs and data that are needed for the processor to operate.
The electronic device may further include a memory to cache data generated during operation of the processor.
The electronic device may further include a communication bus for connecting the processor, the memory, and the memory.
Optionally, the processor is further configured to, before determining an actual distance corresponding to the relative position information according to the corresponding relationship, determine, based on the relative position information, whether the relative position relationship between the first body and the second body belongs to a preset position relationship, where when the relative position relationship belongs to the preset position relationship, the distance sensor may acquire a distance between the distance sensor and the first body, where the distance sensor is disposed in the second body; and when the relative position relationship belongs to a preset position relationship, executing the operation of determining the actual distance corresponding to the relative position information according to the corresponding relationship between the preset position information and the distance.
Optionally, the processor obtains the relative position information between the first body and the second body of the electronic device at the current moment, specifically:
acquiring a target included angle between a first body and a second body of the electronic equipment at the current moment;
the processor determines an actual distance corresponding to the relative position information according to the corresponding relationship, specifically:
and determining the actual distance corresponding to the target included angle according to the corresponding relation between the preset included angle and the distance.
Optionally, the electronic device further includes:
a receiver for receiving calibration instructions;
then, the processor obtains the relative position information between the first body and the second body of the electronic device at the current moment, specifically: when it is determined that the receiver receives a calibration instruction, relative position information between the first body and the second body is acquired.
Optionally, the processor is further configured to, after the compensation amount required for calibrating the distance sensor is determined, obtain a distance to be calibrated, which is acquired by the distance sensor in the electronic device and is used for outputting; determining a target distance according to the compensation quantity and the distance to be calibrated and measured; and outputting the target distance.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be embodied in other specific forms without departing from the spirit or scope of the present application. The present embodiment is an exemplary example only, and should not be taken as limiting, and the specific disclosure should not be taken as limiting the purpose of the application. For example, the division of the unit or the sub-unit is only one logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or a plurality of sub-units are combined together. In addition, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
Additionally, the systems and methods described, as well as the illustrations of various embodiments, can be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the application. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The foregoing is directed to embodiments of the present invention, and it is understood that various modifications and improvements can be made by those skilled in the art without departing from the spirit of the invention.

Claims (8)

1. A data processing method, comprising:
acquiring relative position information between a first body and a second body of the electronic equipment at the current moment;
acquiring a measurement distance between a distance sensor and the first body, wherein the measurement distance is acquired by the distance sensor in the electronic equipment at the current moment, and the distance sensor is arranged in the second body;
determining an actual distance corresponding to the relative position information according to a corresponding relation between preset position information and distance;
determining an amount of compensation required to calibrate the distance sensor based on the measured distance and the actual distance to calibrate the distance sensor;
the acquiring of the relative position information between the first body and the second body of the electronic device at the current moment includes:
acquiring a target included angle between a first body and a second body of the electronic equipment at the current moment;
determining the actual distance corresponding to the relative position information according to the preset corresponding relationship between the position information and the distance, including:
and determining the actual distance corresponding to the target included angle according to the corresponding relation between the preset included angle and the distance.
2. The method according to claim 1, before determining the actual distance corresponding to the relative position information according to the preset correspondence between the position information and the distance, further comprising:
judging whether the relative position relationship between the first body and the second body belongs to a preset position relationship or not based on the relative position information, wherein when the relative position relationship belongs to the preset position relationship, the distance sensor can acquire the distance between the distance sensor and the first body, and the distance sensor is arranged in the second body;
and when the relative position relationship belongs to a preset position relationship, executing the operation of determining the actual distance corresponding to the relative position information according to the corresponding relationship between the preset position information and the distance.
3. The method of claim 1, wherein the obtaining of the relative position information between the first ontology and the second ontology of the electronic device at the current moment comprises:
and when a calibration instruction is received, acquiring relative position information between the first body and the second body.
4. The method of claim 1, further comprising, after said determining an amount of compensation required to calibrate said distance sensor:
acquiring a to-be-calibrated measuring distance which is acquired by a distance sensor in the electronic equipment and is used for outputting;
determining a target distance according to the compensation quantity and the distance to be calibrated and measured;
and outputting the target distance.
5. An electronic device, comprising:
the memory is used for storing the corresponding relation between preset position information and distance;
the processor is used for acquiring relative position information between a first body and a second body of the electronic equipment at the current moment; acquiring a measurement distance between a distance sensor and the first body, wherein the measurement distance is acquired by the distance sensor in the electronic equipment at the current moment, and the distance sensor is arranged in the second body; determining an actual distance corresponding to the relative position information according to the corresponding relation; determining an amount of compensation required to calibrate the distance sensor based on the measured distance and the actual distance to calibrate the distance sensor;
the processor acquires relative position information between a first body and a second body of the electronic equipment at the current moment, and specifically comprises the following steps:
acquiring a target included angle between a first body and a second body of the electronic equipment at the current moment;
the processor determines an actual distance corresponding to the relative position information according to the corresponding relationship, specifically:
and determining the actual distance corresponding to the target included angle according to the corresponding relation between the preset included angle and the distance.
6. The electronic device according to claim 5, wherein the processor is further configured to determine whether a relative positional relationship between the first body and the second body belongs to a preset positional relationship based on the relative positional information before determining an actual distance corresponding to the relative positional information according to the corresponding relationship, wherein the distance sensor is capable of acquiring a distance between the distance sensor and the first body when the relative positional relationship belongs to the preset positional relationship, wherein the distance sensor is disposed in the second body; and when the relative position relationship belongs to a preset position relationship, executing the operation of determining the actual distance corresponding to the relative position information according to the corresponding relationship between the preset position information and the distance.
7. The electronic device of claim 5, further comprising:
a receiver for receiving calibration instructions;
then, the processor obtains the relative position information between the first body and the second body of the electronic device at the current moment, specifically: when it is determined that the receiver receives a calibration instruction, relative position information between the first body and the second body is acquired.
8. The electronic device of claim 5, wherein the processor is further configured to, after the determining the compensation amount required for calibrating the distance sensor, obtain the measured distance to be calibrated, which is collected by the distance sensor and used for outputting in the electronic device; determining a target distance according to the compensation quantity and the distance to be calibrated and measured; and outputting the target distance.
CN201610172252.1A 2016-03-24 2016-03-24 Data processing method and electronic equipment Active CN105866781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610172252.1A CN105866781B (en) 2016-03-24 2016-03-24 Data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610172252.1A CN105866781B (en) 2016-03-24 2016-03-24 Data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105866781A CN105866781A (en) 2016-08-17
CN105866781B true CN105866781B (en) 2020-09-25

Family

ID=56625656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610172252.1A Active CN105866781B (en) 2016-03-24 2016-03-24 Data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105866781B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106524922B (en) * 2016-10-28 2019-01-15 深圳地平线机器人科技有限公司 Ranging calibration method, device and electronic equipment
CN106842224A (en) * 2016-12-28 2017-06-13 北京小鸟看看科技有限公司 For the mounting structure detection method and device of the range sensor of electronic equipment
CN106842167B (en) * 2017-02-13 2019-09-24 联想(北京)有限公司 A kind of data processing method, device and radar
CN107229043B (en) * 2017-05-22 2019-04-09 中国农业科学院农业资源与农业区划研究所 A kind of range sensor external parameters calibration method and system
CN110319851B (en) * 2018-03-30 2022-03-01 北京百度网讯科技有限公司 Sensor correction method, device, equipment and storage medium
CN109186657B (en) * 2018-09-26 2022-03-08 Oppo广东移动通信有限公司 Proximity sensor parameter calibration method and device, terminal equipment and storage medium
CN109443261B (en) * 2018-10-12 2020-09-15 维沃移动通信有限公司 Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN111381238A (en) * 2018-12-28 2020-07-07 北京小米移动软件有限公司 Distance sensor, mobile terminal, and method and device for detecting distance
CN110113528B (en) 2019-04-26 2021-05-07 维沃移动通信有限公司 Parameter obtaining method and terminal equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004065901A1 (en) * 2003-01-20 2004-08-05 Sae Magnetics (H. K.) Ltd. System and method for calibrating a hard disc drive magnetic head flying height tester by optical interference techniques
TWI428567B (en) * 2010-09-03 2014-03-01 Pixart Imaging Inc Distance measurement method and system, and processing software thereof
CN201852570U (en) * 2010-11-25 2011-06-01 陆建生 Laser range finder with external calibration scale
CN204605249U (en) * 2015-03-26 2015-09-02 西南大学 A kind of based on hyperacoustic Anti-shortsightedness pupil book case
CN204679035U (en) * 2015-04-29 2015-09-30 沈阳工程学院 A kind of architectural design special measurement device
CN204679637U (en) * 2015-05-25 2015-09-30 北京雷动云合智能技术有限公司 The high precision CCD multipoint ranging apparatus that double excitation is demarcated
CN105372643B (en) * 2015-10-15 2017-11-03 广东欧珀移动通信有限公司 A kind of ranging calibration method and device

Also Published As

Publication number Publication date
CN105866781A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105866781B (en) Data processing method and electronic equipment
CN106210227B (en) A kind of calibration method of infrared proximity transducer, device and mobile terminal
US8928609B2 (en) Combining touch screen and other sensing detections for user interface control
KR102351946B1 (en) Extended kalman filter based autonomous magnetometer calibration
EP2846135B1 (en) Portable Electronic Device with Environmental Sensor
US10883812B2 (en) Calibrating a magnetic transmitter
CN106225806B (en) Calibrate the method, device and mobile terminal of Magnetic Sensor
CN107967701B (en) Calibration method, device and equipment of depth camera equipment
KR20170010593A (en) Method and apparatus for measuring location of user terminal
EP2630559B1 (en) Mobile communication device with three-dimensional sensing and a method therefore
CN111854966A (en) Temperature measurement method, device, wearable equipment and medium
CN105596006A (en) Stature measuring method and device and electronic equipment with collection device
CN109088993A (en) Proximity state judgment method, device and electronic equipment based on proximity sensor
CN108895603B (en) Air supply equipment, air supply control method and device thereof and readable storage medium
CN108362310A (en) Determination method, apparatus, storage medium and the terminal of earth magnetism accuracy
GB2576273A (en) Cloud-enabled testing of control systems
CN108594150B (en) Calibration method, calibration device, calibration terminal and storage medium
CN109029443B (en) Position determination method and device in virtual environment
US20120044211A1 (en) Optical touch locating system and method thereof
CN117191013A (en) Inertial measurement unit error correction method, device, electronic equipment and storage medium
CN113447064B (en) Calibration method and electronic equipment
US20170220133A1 (en) Accurately positioning instruments
CN111896144B (en) Body temperature detection method, device, equipment and computer readable storage medium
CN113740817A (en) Microwave radar control method, electronic device, microwave radar and storage medium
CN106556749A (en) For the measurement apparatus and measuring method of systematic error detection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant