CN112462928B - Operation execution method, device and storage medium - Google Patents

Operation execution method, device and storage medium Download PDF

Info

Publication number
CN112462928B
CN112462928B CN201910842051.1A CN201910842051A CN112462928B CN 112462928 B CN112462928 B CN 112462928B CN 201910842051 A CN201910842051 A CN 201910842051A CN 112462928 B CN112462928 B CN 112462928B
Authority
CN
China
Prior art keywords
parameter information
weight
pieces
acquiring
distance
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
CN201910842051.1A
Other languages
Chinese (zh)
Other versions
CN112462928A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910842051.1A priority Critical patent/CN112462928B/en
Publication of CN112462928A publication Critical patent/CN112462928A/en
Application granted granted Critical
Publication of CN112462928B publication Critical patent/CN112462928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides an operation execution method, an operation execution device and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring at least two pieces of parameter information in the first parameter information, the second parameter information and the third parameter information; acquiring the weight of each item of parameter information in at least two items of parameter information; weighting and summing each item of parameter information in at least two items of parameter information according to the corresponding weight to obtain a negative distance, wherein the negative distance and the distance between the electronic equipment and the obstacle are in a negative correlation; an operation corresponding to the negative distance is performed. The negative distance comprehensively considers the influence of the first parameter information, the second parameter information and the third parameter information on the negative distance, and the negative correlation relation is also formed between the negative distance and the distance between the electronic equipment and the obstacle, so that the accuracy is improved. And the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken, and the corresponding operation is executed according to the negative distance, so that the accuracy of executing the operation is improved.

Description

Operation execution method, device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an operation execution method, an operation execution device, and a storage medium.
Background
A distance sensor is a common device on an electronic apparatus, and is generally disposed at one side of a display screen, and is capable of measuring a distance between the electronic apparatus and an obstacle, thereby performing an operation corresponding to the distance.
At present, as the size of the display screen becomes larger, the use of the distance sensor is affected by the display screen. In the related art, a scheme of measuring a distance by an ultrasonic sensor is proposed, the ultrasonic sensor is arranged in an electronic device, the ultrasonic sensor transmits an ultrasonic signal outwards through a through hole formed in the electronic device, receives the ultrasonic signal reflected back after the ultrasonic signal is transmitted to an obstacle, determines the distance between the electronic device and the obstacle according to the time difference between the time of transmitting the ultrasonic signal and the time of receiving the ultrasonic signal, and then executes corresponding operation according to the distance.
However, if the through hole on the electronic device is clogged, the distance measured by the ultrasonic sensor is caused to be small, and thus, the erroneous operation is caused to be performed later according to the small distance.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an operation execution method, an operation execution device, and a storage medium, where the technical scheme is as follows:
According to a first aspect of embodiments of the present disclosure, there is provided an operation execution method, the method including:
acquiring at least two pieces of parameter information in the first parameter information, the second parameter information and the third parameter information;
acquiring the weight of each item of parameter information in the at least two items of parameter information;
each item of parameter information in the at least two items of parameter information is weighted and summed according to the corresponding weight to obtain a negative distance, and the negative distance and the distance between the electronic equipment and the obstacle are in a negative correlation;
performing an operation corresponding to the negative distance;
the first parameter information is determined by the energy of a transmitted first sound wave signal and the energy of a second sound wave signal reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, and the first parameter information and the second parameter information are in negative correlation with the distance;
the third parameter information is determined by similarity between the motion trail of the electronic equipment and a preset trail, and the preset trail is the motion trail when the electronic equipment is lifted.
In one possible implementation, the performing an operation corresponding to the negative distance includes:
And when the negative distance is larger than a first preset value, extinguishing the display screen of the electronic equipment.
In another possible implementation manner, the acquiring at least two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information includes:
acquiring first energy of the first acoustic wave signal;
acquiring second energy of the second acoustic signal;
and acquiring the ratio of the second energy to the first energy as the first parameter information.
In another possible implementation manner, the acquiring at least two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information includes:
and acquiring the ratio of the area of the face area to the area of the display screen as the second parameter information.
In another possible implementation manner, the acquiring at least two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information includes:
and acquiring at least two parameter information which are larger than a second preset value in the first parameter information, the second parameter information and the third parameter information.
In another possible implementation manner, the obtaining the weight of each item of parameter information in the at least two items of parameter information includes:
If three parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, acquiring initial weights of each parameter information in the three parameter information, wherein the sum of the initial weights of the three parameter information is 1; or,
if two items of parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, increasing the initial weight of each item of parameter information in the two items of parameter information so that the sum of the weights of the two items of parameter information after the increase is 1.
In another possible implementation manner, the at least two pieces of parameter information include the second parameter information, and the obtaining the weight of each piece of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
when the environmental temperature is smaller than a preset temperature, the initial weight of the second parameter information is reduced, and the initial weight of other parameter information in the at least two pieces of parameter information is increased, so that the sum of the weights of the at least two pieces of parameter information after adjustment is 1.
In another possible implementation manner, the at least two pieces of parameter information include the second parameter information, and the obtaining the weight of each piece of parameter information includes:
Acquiring the environmental temperature of the current environment of the electronic equipment;
and determining the weight corresponding to the ambient temperature as the weight of the second parameter information, and adjusting the initial weight of other parameter information in the at least two pieces of parameter information so that the sum of the weights after the adjustment of the at least two pieces of parameter information is 1.
According to a second aspect of embodiments of the present disclosure, there is provided an operation performing device, the device comprising:
the parameter acquisition module is used for acquiring at least two parameter information of the first parameter information, the second parameter information and the third parameter information;
the weight acquisition module is used for acquiring the weight of each item of parameter information in the at least two items of parameter information;
the weighting module is used for carrying out weighted summation on each item of parameter information in the at least two items of parameter information according to the corresponding weight to obtain a negative distance, and the negative distance and the distance between the electronic equipment and the obstacle are in a negative correlation;
the operation execution module is used for executing the operation corresponding to the negative distance;
the first parameter information is determined by the energy of a transmitted first sound wave signal and the energy of a second sound wave signal reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, and the first parameter information and the second parameter information are in negative correlation with the distance;
The third parameter information is determined by similarity between the motion trail of the electronic equipment and a preset trail, and the preset trail is the motion trail when the electronic equipment is lifted.
In one possible implementation manner, the operation execution module includes:
and the extinguishing unit is used for extinguishing the display screen of the electronic equipment when the negative distance is larger than a first preset value.
In another possible implementation manner, the parameter obtaining module includes:
an energy acquisition unit configured to acquire first energy of the first acoustic wave signal;
the energy acquisition unit is used for acquiring second energy of the second sound wave signal;
and the proportion acquisition unit is used for acquiring the proportion of the second energy to the first energy as the first parameter information.
In another possible implementation manner, the parameter obtaining module includes:
and the proportion acquisition unit is used for acquiring the proportion of the area of the face area to the area of the display screen as the second parameter information.
In another possible implementation manner, the parameter obtaining module includes:
the parameter acquisition unit is used for acquiring at least two parameter information which are larger than a second preset value in the first parameter information, the second parameter information and the third parameter information.
In another possible implementation manner, the weight acquisition module includes:
the weight acquisition unit is used for acquiring initial weights of each item of parameter information in the three items of parameter information if three items of parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, and the sum of the initial weights of the three items of parameter information is 1; or,
the weight obtaining unit is further configured to, if two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information are obtained, increase an initial weight of each piece of parameter information of the two pieces of parameter information, so that a weight sum after the two pieces of parameter information are increased is 1.
In another possible implementation manner, the weight acquisition module includes:
the temperature acquisition unit is used for acquiring the environmental temperature of the current environment of the electronic equipment;
and the weight adjustment unit is used for reducing the initial weight of the second parameter information and increasing the initial weight of other parameter information in the at least two pieces of parameter information when the environmental temperature is smaller than a preset temperature so that the sum of the weights of the at least two pieces of parameter information after adjustment is 1.
In another possible implementation manner, the weight acquisition module includes:
the temperature acquisition unit is used for acquiring the environmental temperature of the current environment of the electronic equipment;
and the weight adjusting unit is used for determining the weight corresponding to the ambient temperature as the weight of the second parameter information, and adjusting the initial weight of other parameter information in the at least two pieces of parameter information so that the sum of the weights after the adjustment of the at least two pieces of parameter information is 1.
According to a third aspect of embodiments of the present disclosure, there is provided an operation performing device, the device comprising:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the operations performed in the operation performing method according to the first aspect.
According to a fourth aspect provided by embodiments of the present disclosure, the computer-readable storage medium has stored therein at least one instruction that is loaded and executed by a processor to implement the operations performed in the operation performing method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure has the beneficial effects that at least:
The operation execution method, the operation execution device and the storage medium provided by the embodiment of the disclosure acquire at least two pieces of parameter information in first parameter information, second parameter information and third parameter information, acquire weights of each piece of parameter information in the at least two pieces of parameter information, perform weighted summation on each piece of parameter information in the at least two pieces of parameter information according to the corresponding weights to obtain a negative distance, and execute an operation corresponding to the negative distance. The first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of the second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, the third parameter information is determined by the similarity of the motion track of the electronic equipment and the preset track, the first parameter information, the second parameter information and the third parameter information are in negative correlation with the distance between the electronic equipment and the obstacle, the negative distance comprehensively considers the influence of the first parameter information, the second parameter information and the third parameter information on the negative distance, and the negative correlation with the distance between the electronic equipment and the obstacle is also achieved, so that the accuracy is improved. And the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken, and the corresponding operation is executed according to the negative distance, so that the accuracy of executing the operation is improved.
And the weight corresponding to each item of parameter information in the parameter information combination can be determined according to the parameter information combination comprising at least two items of parameter information in the first parameter information, the second parameter information and the third parameter information, and the weight of each item of parameter information determined for different parameter information combinations is also different, so that the importance degree more conforming to each item of parameter information is determined, the accuracy is further improved, and the accuracy of executing operation is further improved.
And when the second parameter information is included in the at least two items of parameter information, the weight of the second parameter information is acquired according to the environmental temperature because the second parameter information is influenced by the environmental temperature, and the weight of other parameter information in the at least two items of parameter information is adjusted, so that the purpose of automatically adjusting the weight of the parameter information is achieved, and the accuracy of executing operation is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flowchart illustrating a method of performing operations according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of performing operations according to an exemplary embodiment;
fig. 3 is a schematic view of a structure of an operation performing device according to an exemplary embodiment;
FIG. 4 is a schematic diagram of another operation performing device according to an exemplary embodiment;
fig. 5 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present disclosure, the following further details the embodiments of the present disclosure with reference to the accompanying drawings.
According to the method provided by the implementation of the disclosure, first parameter information is determined according to the energy of a transmitted first sound wave signal and the energy of a second sound wave signal reflected by the first sound wave signal, second parameter information is determined according to the detected face area and the display screen area, third parameter information is determined according to the similarity of the motion track of the electronic equipment and a preset track, at least two of the first parameter information, the second parameter information and the third parameter information are weighted and summed to obtain a negative distance which is in negative correlation with the distance between the electronic equipment and an obstacle, and the operation corresponding to the negative distance is executed.
The method provided by the embodiment of the disclosure can be applied to a scene of electronic equipment conversation, and when the display screen of the electronic equipment is in a lighting state and the electronic equipment is in a conversation state with other electronic equipment, the display screen can be extinguished when the display screen of the electronic equipment is close to the ear area of a user by adopting the method provided by the embodiment of the disclosure.
FIG. 1 is a flowchart illustrating a method of performing operations, see FIG. 1, according to an exemplary embodiment, the method comprising:
in step 101, at least two parameter information among the first parameter information, the second parameter information, and the third parameter information are acquired.
In step 102, a weight of each of the at least two pieces of parameter information is obtained.
In step 103, each item of parameter information in the at least two items of parameter information is weighted and summed according to the corresponding weight, so as to obtain the negative distance.
The negative distance and the distance between the electronic equipment and the obstacle are in negative correlation.
In step 104, an operation corresponding to the negative distance is performed.
The first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of the second sound wave signal reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, and the first parameter information and the second parameter information are in negative correlation with the distance; the third parameter information is determined by the similarity of the motion trail of the electronic equipment and a preset trail, and the preset trail is the motion trail when the electronic equipment is lifted.
According to the method provided by the embodiment of the disclosure, at least two pieces of parameter information in the first parameter information, the second parameter information and the third parameter information are obtained, the weight of each piece of parameter information in the at least two pieces of parameter information is obtained, each piece of parameter information in the at least two pieces of parameter information is weighted and summed according to the corresponding weight, the negative distance is obtained, and the operation corresponding to the negative distance is executed. The first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of the second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, the third parameter information is determined by the similarity of the motion track of the electronic equipment and the preset track, the first parameter information, the second parameter information and the third parameter information are in negative correlation with the distance between the electronic equipment and the obstacle, the negative distance comprehensively considers the influence of the first parameter information, the second parameter information and the third parameter information on the negative distance, and the negative correlation with the distance between the electronic equipment and the obstacle is also achieved, so that the accuracy is improved. And the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken, and the corresponding operation is executed according to the negative distance, so that the accuracy of executing the operation is improved.
In one possible implementation, performing an operation corresponding to a negative distance includes:
and when the negative distance is larger than the first preset value, extinguishing the display screen of the electronic equipment.
In another possible implementation manner, acquiring at least two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information includes:
acquiring first energy of a first sound wave signal;
acquiring second energy of a second acoustic signal;
the ratio of the second energy to the first energy is obtained as the first parameter information.
In another possible implementation manner, acquiring at least two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information includes:
and acquiring the ratio of the area of the face area to the area of the display screen as second parameter information.
In another possible implementation manner, acquiring at least two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information includes:
and acquiring at least two parameter information which are larger than a second preset value in the first parameter information, the second parameter information and the third parameter information.
In another possible implementation manner, acquiring the weight of each parameter information in at least two items of parameter information includes:
If three parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, initial weight of each parameter information in the three parameter information is acquired, and the sum of the initial weights of the three parameter information is 1; or,
if two items of parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, the initial weight of each item of parameter information in the two items of parameter information is increased, so that the sum of the weights of the two items of parameter information after the increase is 1.
In another possible implementation manner, the at least two pieces of parameter information include second parameter information, and acquiring a weight of each piece of parameter information in the at least two pieces of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
when the ambient temperature is smaller than the preset temperature, the initial weight of the second parameter information is reduced, and the initial weight of other parameter information in at least two pieces of parameter information is increased, so that the sum of the weights of the at least two pieces of parameter information after adjustment is 1.
In another possible implementation manner, the at least two pieces of parameter information include second parameter information, and acquiring a weight of each piece of parameter information in the at least two pieces of parameter information includes:
Acquiring the environmental temperature of the current environment of the electronic equipment;
and determining the weight of the second parameter information corresponding to the ambient temperature, and adjusting the initial weight of other parameter information in at least two pieces of parameter information so that the sum of the weights after the adjustment of the at least two pieces of parameter information is 1.
Fig. 2 is a flowchart illustrating an operation execution method according to an exemplary embodiment, which is applied to an electronic device, and referring to fig. 2, the method includes:
in step 201, at least two pieces of parameter information among the first parameter information, the second parameter information, and the third parameter information are acquired.
The method provided by the embodiment of the disclosure is applied to electronic equipment, the electronic equipment can be a mobile phone, a personal computer, a tablet personal computer and the like, the electronic equipment comprises a display screen and a processor, the display screen is used for displaying an interface of an application program provided in the electronic equipment, and a user can also light up the display screen or extinguish the display screen. The processor of the electronic device may process the received instructions, perform operations, control time, and process data in the electronic device.
The first parameter information is determined by the energy of the emitted first sound wave signal and the energy of the second sound wave signal reflected by the first sound wave signal.
In one possible implementation, the first acoustic signal may be an ultrasonic signal, a infrasonic signal, or may be other acoustic signals.
In another possible implementation, an earpiece and a microphone are included in the electronic device. The earphone is used for transmitting a first sound wave signal to the outside according to the energy preset by the processor, the microphone is used for receiving a second sound wave signal, and the second sound wave signal is a sound wave signal obtained by reflecting the first sound wave signal through an obstacle. The microphone sends the received second sound wave signal to the processor, and the processor can acquire the energy of the second sound wave signal. The obstacle may be a face part, a finger part or other parts of a user using the electronic device.
The second parameter information is determined by the detected face area and the display screen area.
In one possible implementation manner, a capacitive plate is arranged below a display screen in the electronic device, the capacitive plate has a capacitance value, when the distance between a face area and the display screen is smaller than a preset distance, the capacitance value of the capacitive plate is changed, an area of the capacitive plate, of which the capacitance value is larger than the preset capacitance value, is obtained, and the obtained area is the area of the face area.
The third parameter information is determined by the similarity between the motion trail of the electronic device and a preset trail, and the preset trail is the motion trail when the electronic device is lifted.
In one possible implementation manner, a gyroscope sensor is arranged in the electronic device, the gyroscope sensor can acquire a motion track of the electronic device, and whether the motion track of the electronic device is a lifting track can be determined by calculating the similarity between the motion track of the electronic device and a preset track when the electronic device is lifted.
According to the embodiment of the disclosure, the negative distance can be determined later by acquiring at least two items of the first parameter information, the second parameter information and the third parameter information, whether the electronic equipment is close to the obstacle or not is determined according to the negative distance, and then the operation corresponding to the negative distance is executed.
The at least two pieces of parameter information comprise any two pieces of first parameter information, second parameter information and third parameter information, or comprise three pieces of first parameter information, second parameter information and third parameter information.
In one possible implementation manner, acquiring at least two pieces of parameter information of the first parameter information, the second parameter information and the third parameter information includes at least two cases:
1. The method comprises the steps of obtaining first energy of a first sound wave signal, obtaining second energy of a second sound wave signal, and obtaining the proportion of the second energy to the first energy as first parameter information.
The first parameter information and the distance between the electronic equipment and the obstacle are in a negative correlation.
2. And acquiring the ratio of the area of the face area to the area of the display screen as second parameter information.
The second parameter information and the distance between the electronic device and the obstacle are in a negative correlation relationship, that is, the larger the second parameter information is, the smaller the distance between the electronic device and the obstacle is.
3. And obtaining the similarity between the motion track of the electronic equipment and a preset track, and taking the similarity as third parameter information.
The preset track is a motion track of the electronic equipment when lifted. When the motion track of the electronic device is more similar to the lifting motion, the electronic device is more close to the obstacle, namely, the third parameter information and the distance between the electronic device and the obstacle are in a negative correlation.
4. And acquiring at least two parameter information which are larger than a second preset value in the first parameter information, the second parameter information and the third parameter information.
When any parameter information is not greater than the second preset value, the failure of the parameter information is indicated, if the negative distance is determined by adopting the parameter information continuously, the determined negative distance is inaccurate, therefore, only the parameter information with the parameter information greater than the second preset value is acquired, and the accuracy of the acquired negative distance is improved.
Wherein the second preset value is set by the electronic device or by a developer. The second preset value may be 0.6, 0.7, 0.8 or other values.
In step 202, a weight of each of the at least two pieces of parameter information is obtained.
Each item of parameter information corresponds to a weight, and the weight is used for representing the importance degree of the corresponding parameter information.
In one possible implementation manner, a preset corresponding relation is set in the parameter information, the preset corresponding relation includes a weight corresponding to each item of parameter information in the parameter information combination, and according to the corresponding relation, the weight of each item of parameter information in the parameter information combination can be obtained. Wherein the parameter information combination comprises at least two items of parameter information. And the sum of the weights corresponding to each item of parameter information in the parameter information combination is 1.
The preset corresponding relation is as follows: when the first parameter information and the second parameter information are a group, the sum of weights of the first parameter information and the second parameter information is 1. Alternatively, when the first parameter information and the third parameter information are a set, the sum of weights of the first parameter information and the third parameter information is 1. Alternatively, when the second parameter information and the third parameter information are a set, the sum of weights of the second parameter information and the third parameter information is 1. Or when the first parameter information, the second parameter information and the third parameter information are a group, the sum of the weights of the first parameter information, the second parameter information and the third parameter information is 1.
For example, the preset correspondence may be as shown in table 1 below:
TABLE 1
In another possible implementation manner, each item of parameter information in the first parameter information, the second parameter information and the third parameter information corresponds to one initial weight, and the sum of the initial weights corresponding to each item of parameter information is 1. After at least two pieces of parameter information are determined, the weight of each piece of parameter information can be obtained according to the initial weight corresponding to each piece of parameter information in the at least two pieces of parameter information, and the sum of the weights determined by each piece of parameter information is 1.
The method comprises the steps of obtaining the weight after adjustment of each item of parameter information according to the initial weight corresponding to each item of parameter information, wherein the weight after adjustment of each item of parameter information comprises any one of the following items:
1. if three parameter information of the first parameter information, the second parameter information and the third parameter information are acquired, initial weight of each parameter information of the three parameter information is acquired, and the sum of the initial weights of the three parameter information is 1.
2. If two items of parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, the initial weight of each item of parameter information in the two items of parameter information is increased, so that the sum of the weights of the two items of parameter information after the increase is 1.
In one possible implementation manner, when two pieces of parameter information of the first parameter information, the second parameter information and the third parameter information are acquired, an initial weight of the other piece of parameter information is acquired, and a sum of the initial weight corresponding to each piece of parameter information in the two pieces of parameter information and half of the initial weight of the other piece of parameter information is acquired as the adjusted weight of each piece of parameter information.
For example, the initial weights corresponding to the first parameter information, the second parameter information, and the third parameter information are respectively 0.1, 0.4, and 0.5. When the two pieces of acquired parameter information are the first parameter information and the third parameter information, the weight of the first parameter information is increased by 0.2 and adjusted to 0.3, and the weight of the third parameter information is increased by 0.2 and adjusted to 0.7.
In another possible implementation manner, when two items of parameter information are obtained, an initial weight of another parameter information is obtained, a proportion of the initial weights corresponding to the two items of parameter information is determined, the initial weight of the other parameter information is divided into two parts according to the proportion, a divided weight is obtained, and a sum of the initial weight corresponding to each item of parameter information and the corresponding divided weight in the two items of parameter information is obtained and is used as the adjusted weight of each item of parameter information.
For example, the initial weights corresponding to the first parameter information, the second parameter information and the third parameter information are respectively 0.1, 0.4 and 0.5. When the two obtained parameter information are the first parameter information and the second parameter information, the weight of the first parameter information is adjusted to 0.2, and the weight of the second parameter information is adjusted to 0.8 according to the proportion of the first parameter information and the second parameter information to obtain the weight of the first parameter information and the weight of the second parameter information.
3. The at least two pieces of parameter information comprise second parameter information, the environmental temperature of the current environment of the electronic equipment is obtained, when the environmental temperature is smaller than the preset temperature, the initial weight of the second parameter information is reduced, the initial weight of other parameter information in the at least two pieces of parameter information is increased, and the sum of the weights of the at least two pieces of parameter information after adjustment is 1.
Wherein the preset temperature is set by the electronic device or by a developer. The preset temperature may be-10 degrees celsius, -20 degrees celsius or other values.
In one possible implementation manner, when the at least two pieces of parameter information include the second parameter information and the other piece of parameter information, and the ambient temperature is less than the preset temperature, the initial weight of the second parameter information is reduced by a preset value, and the initial weight of the other piece of parameter information is increased by the preset value, so as to obtain the weight of each piece of parameter information in the at least two pieces of parameter information.
In another possible implementation manner, when at least two pieces of parameter information include three pieces of parameter information and the ambient temperature is less than the preset temperature, the initial weight of the second parameter information is reduced by a preset value, the sum of the initial weight corresponding to each piece of parameter information in the other two pieces of parameter information and half of the preset value is obtained and is used as the adjusted weight of each piece of parameter information, and finally the weight of each piece of parameter information in the three pieces of parameter information is obtained.
In another possible implementation manner, when at least two parameter messages include three parameter information and the ambient temperature is less than the preset temperature, the initial weight of the second parameter information is reduced by a preset value, the proportion of the initial weights of the other two parameter information is determined, the preset value is divided into two parts according to the proportion, the divided weights are obtained, the sum of the initial weight corresponding to each parameter information in the other two parameter information and the corresponding divided weight is obtained and is used as the adjusted weight of each parameter information, and finally the weight of each parameter information in the three parameter information is obtained.
4. The at least two pieces of parameter information comprise second parameter information, the environmental temperature of the current environment of the electronic equipment is obtained, the weight corresponding to the environmental temperature is determined to be the weight of the second parameter information, and the initial weight of other parameter information in the at least two pieces of parameter information is adjusted so that the sum of the weights after the adjustment of the at least two pieces of parameter information is 1.
In one possible implementation manner, when the at least two pieces of parameter information include the second parameter information and the other piece of parameter information, determining the weight corresponding to the ambient temperature as the weight of the second parameter information, acquiring the difference weight of the second parameter information and the initial weight of the second parameter information, and acquiring the sum of the initial weight and the difference weight of the other piece of parameter information as the weight of the other piece of parameter information.
In another possible implementation manner, when the at least two pieces of parameter information include three pieces of parameter information, determining weights corresponding to the second parameter information and the ambient temperature, obtaining a difference weight between the weights of the second parameter information and the initial weights, obtaining a sum of half of the initial weights and the difference weights corresponding to each piece of parameter information in the other two pieces of parameter information, and taking the sum as the adjusted weight of each piece of parameter information, and finally obtaining the weight of each piece of parameter information in the three pieces of parameter information.
In another possible implementation manner, when at least two items of parameter information include three items of parameter information, determining weights corresponding to the second parameter information and the ambient temperature, obtaining a difference value between the weights of the second parameter information and the initial weights, obtaining a proportion of the initial weights of other two items of parameter information, dividing the difference value into two parts according to the proportion, obtaining a division value, obtaining a sum of the initial weights corresponding to each item of parameter information in the other two items of parameter information and the corresponding division value, and taking the sum as the weight of the parameter information, and finally obtaining the weight of each item of parameter information in the three items of parameter information.
In the embodiment of the disclosure, since the effect of detecting the second parameter information is affected by temperature, the weight of the second parameter information is adjusted according to the environmental temperature of the current environment of the electronic device, so that when the electronic device is at a lower temperature, the second parameter information is adjusted to be smaller weight, and when the electronic device is at a higher temperature, the second parameter information is adjusted to be larger weight, thereby improving the accuracy of the obtained negative distance.
In step 203, each item of parameter information in the at least two items of parameter information is weighted and summed according to the corresponding weight, so as to obtain the negative distance.
After the weight of each parameter information in at least two parameter information items is obtained, the product of each parameter information item and the corresponding weight is obtained, and then the sum of the obtained products is determined, so that the negative distance is obtained.
And the distance between the electronic equipment and the obstacle is in negative correlation, wherein each item of parameter information in the at least two items of parameter information is in negative correlation with the distance between the electronic equipment and the obstacle, so that each item of parameter information in the at least two items of parameter information is weighted and summed according to the corresponding weight, and the obtained negative distance is in negative correlation with the distance between the electronic equipment and the obstacle.
For example, when the at least two items of parameter information include the first parameter information, the second parameter information and the third parameter information, a first product of the first parameter information and the corresponding weight is obtained, a second product of the second parameter information and the corresponding weight is obtained, a third product of the third parameter information and the corresponding weight is obtained, and a sum of the first product, the second product and the third product is calculated to obtain the negative distance.
In step 204, when the negative distance is greater than the first preset value, the display screen of the electronic device is turned off.
Because the negative distance and the distance between the electronic equipment and the obstacle are in a negative correlation, when the negative distance is larger than a first preset value, the distance between the electronic equipment and the obstacle is indicated to be relatively close, and the display screen of the electronic equipment is extinguished, so that the obstacle is prevented from operating the display screen of the electronic equipment.
The first preset value may be set by the electronic device or by a developer. The first preset value may be 0.75, 0.8, 0.85, or other value.
For example, the following formula may be used to determine if the negative distance is greater than a first preset value:
0.5*A+0.25*B+0.25*C≥0.75;
wherein A is first parameter information, B is second parameter information, and C is third parameter information.
In one possible implementation manner, after the display screen of the electronic device is turned off, the electronic device further acquires a negative distance, and when the negative distance is not greater than a first preset value, the distance between the electronic device and the obstacle is indicated to be longer, and the display screen of the electronic device is turned on, so that a user can execute an operation through the display screen.
It should be noted that, in the embodiment of the present disclosure, the display screen of the electronic device is turned off only according to the negative distance, and in another embodiment, after the negative distance is obtained, an operation corresponding to the negative distance may be performed.
In the embodiment of the present disclosure, a plurality of negative distance ranges may be divided according to the negative distances, and each negative distance range corresponds to one operation, that is, different negative distance ranges correspond to different operations. After the negative distance is obtained, determining a negative distance range to which the negative distance belongs, and determining an operation corresponding to the negative distance range, namely determining the operation corresponding to the negative distance, and further executing the determined operation.
For example, when the negative distance is not less than a first preset threshold, belonging to the first negative distance range, the electronic device performs an operation of extinguishing the display screen; when the negative distance is larger than a third preset threshold value and smaller than the first preset threshold value, the electronic equipment executes the operation of displaying the prompt of whether to extinguish the display screen; and when the negative distance is not greater than the third preset threshold value and the electronic equipment is in a state of extinguishing the display screen, the electronic equipment performs an operation of lighting the display screen.
According to the method and the device for performing the operation, the operation corresponding to the negative distance can be performed by acquiring the negative distance, the specific distance between the electronic equipment and the obstacle is not required to be acquired, the limitation of performing the operation according to the specific distance is broken, and the accuracy of performing the operation is improved.
According to the method provided by the embodiment of the disclosure, at least two pieces of parameter information in the first parameter information, the second parameter information and the third parameter information are obtained, the weight of each piece of parameter information in the at least two pieces of parameter information is obtained, each piece of parameter information in the at least two pieces of parameter information is weighted and summed according to the corresponding weight, the negative distance is obtained, and the operation corresponding to the negative distance is executed. The first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of the second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, the third parameter information is determined by the similarity of the motion track of the electronic equipment and the preset track, the first parameter information, the second parameter information and the third parameter information are in negative correlation with the distance between the electronic equipment and the obstacle, the negative distance comprehensively considers the influence of the first parameter information, the second parameter information and the third parameter information on the negative distance, and the negative correlation with the distance between the electronic equipment and the obstacle is also achieved, so that the accuracy is improved. And the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken, and the corresponding operation is executed according to the negative distance, so that the accuracy of executing the operation is improved.
And the weight corresponding to each item of parameter information in the parameter information combination can be determined according to the parameter information combination comprising at least two items of parameter information in the first parameter information, the second parameter information and the third parameter information, and the weight of each item of parameter information determined for different parameter information combinations is also different, so that the importance degree more conforming to each item of parameter information is determined, the accuracy is further improved, and the accuracy of executing operation is further improved.
And when the second parameter information is included in the at least two items of parameter information, the weight of the second parameter information is acquired according to the environmental temperature because the second parameter information is influenced by the environmental temperature, and the weight of other parameter information in the at least two items of parameter information is adjusted, so that the purpose of automatically adjusting the weight of the parameter information is achieved, and the accuracy of executing operation is improved.
Fig. 3 is a schematic structural view of an operation performing device according to an exemplary embodiment. Referring to fig. 3, the apparatus includes:
a parameter obtaining module 301, configured to obtain at least two parameter information of the first parameter information, the second parameter information, and the third parameter information;
The weight obtaining module 302 is configured to obtain a weight of each item of parameter information in at least two items of parameter information;
the weighting module 303 is configured to perform weighted summation on each item of parameter information in the at least two items of parameter information according to a corresponding weight, so as to obtain a negative distance, where the negative distance and a distance between the electronic device and the obstacle are in a negative correlation;
an operation execution module 304, configured to execute an operation corresponding to the negative distance;
the first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of the second sound wave signal reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, and the first parameter information and the second parameter information are in negative correlation with the distance;
the third parameter information is determined by the similarity of the motion trail of the electronic equipment and a preset trail, and the preset trail is the motion trail when the electronic equipment is lifted.
The device provided by the embodiment of the disclosure obtains at least two pieces of parameter information of first parameter information, second parameter information and third parameter information, obtains the weight of each piece of parameter information of the at least two pieces of parameter information, performs weighted summation on each piece of parameter information of the at least two pieces of parameter information according to the corresponding weight to obtain a negative distance, and executes the operation corresponding to the negative distance. The first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of the second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, the third parameter information is determined by the similarity of the motion track of the electronic equipment and the preset track, the first parameter information, the second parameter information and the third parameter information are in negative correlation with the distance between the electronic equipment and the obstacle, the negative distance comprehensively considers the influence of the first parameter information, the second parameter information and the third parameter information on the negative distance, and the negative correlation with the distance between the electronic equipment and the obstacle is also achieved, so that the accuracy is improved. And the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken, and the corresponding operation is executed according to the negative distance, so that the accuracy of executing the operation is improved.
In one possible implementation, referring to fig. 4, the operation execution module 304 includes:
and the extinguishing unit 3041 is used for extinguishing the display screen of the electronic equipment when the negative distance is larger than a first preset value.
In another possible implementation, referring to fig. 4, the parameter obtaining module 301 includes:
an energy acquisition unit 3011 for acquiring first energy of the first acoustic wave signal;
an energy acquisition unit 3011 for acquiring second energy of the second acoustic signal;
the proportion acquiring unit 3012 is configured to acquire a proportion of the second energy to the first energy as the first parameter information.
In another possible implementation, referring to fig. 4, the parameter obtaining module 301 includes:
the ratio obtaining unit 3012 is configured to obtain a ratio of the face area to the display screen area, as second parameter information.
In another possible implementation, referring to fig. 4, the parameter obtaining module 301 includes:
and a parameter obtaining unit 3013, configured to obtain at least two parameter information items greater than a second preset value from the first parameter information item, the second parameter information item, and the third parameter information item.
In another possible implementation, referring to fig. 4, the weight acquisition module 302 includes:
A weight obtaining unit 3021 configured to obtain an initial weight of each of the three pieces of parameter information if three pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information are obtained, where a total of the initial weights of the three pieces of parameter information is 1; or,
the weight obtaining unit 3021 is further configured to, if two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information are obtained, increase an initial weight of each piece of parameter information of the two pieces of parameter information so that a sum of weights of the two pieces of parameter information after the increase is 1.
In another possible implementation, referring to fig. 4, the weight acquisition module 302 includes:
a temperature obtaining unit 3022, configured to obtain an ambient temperature of an environment in which the electronic device is currently located;
the weight adjustment unit 3023 is configured to reduce the initial weight of the second parameter information and increase the initial weight of the other parameter information in the at least two items of parameter information when the ambient temperature is less than the preset temperature, so that the sum of the weights of the at least two items of parameter information after adjustment is 1.
In another possible implementation, referring to fig. 4, the weight acquisition module 302 includes:
a temperature obtaining unit 3022, configured to obtain an ambient temperature of an environment in which the electronic device is currently located;
The weight adjustment unit 3023 is configured to determine a weight corresponding to the ambient temperature as a weight of the second parameter information, and adjust initial weights of other parameter information in the at least two pieces of parameter information so that a sum of the weights after adjustment of the at least two pieces of parameter information is 1.
It should be noted that: in the operation execution device provided in the above embodiment, when executing an operation, only the division of the above functional modules is used as an example, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the electronic device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the operation executing device and the operation executing method embodiment provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the operation executing device and the operation executing method embodiment are detailed in the method embodiment, and are not repeated herein.
Fig. 5 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 500 may be a mobile phone, computer, digital broadcaster, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, and the like.
Referring to fig. 5, an electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 506 provides power to the various components of the electronic device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 500.
The multimedia component 508 includes a screen between the electronic device 500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. When the electronic device 500 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the electronic device 500. For example, the sensor assembly 514 may detect an on/off state of the electronic device 500, a relative positioning of components such as a display and keypad of the electronic device 500, a change in position of the electronic device 500 or a component of the electronic device 500, the presence or absence of a user's contact with the electronic device 500, an orientation or acceleration/deceleration of the electronic device 500, and a change in temperature of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the electronic device 500 and other devices, either wired or wireless. The electronic device 500 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described operation performing methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 504, including instructions executable by processor 520 of electronic device 500 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A method of performing an operation, the method comprising:
acquiring at least two pieces of parameter information in the first parameter information, the second parameter information and the third parameter information, and weights of each piece of parameter information in the at least two pieces of parameter information; the at least two pieces of parameter information comprise the second parameter information;
acquiring the environmental temperature of the current environment of the electronic equipment;
When the environmental temperature is smaller than a preset temperature, reducing the initial weight of the second parameter information, and increasing the initial weight of other parameter information in the at least two pieces of parameter information so that the sum of the weights of the at least two pieces of parameter information after adjustment is 1;
weighting and summing each item of parameter information in the at least two items of parameter information according to corresponding weights to obtain a negative distance, wherein the negative distance and the distance between the electronic equipment and the obstacle are in a negative correlation;
performing an operation corresponding to the negative distance;
the first parameter information is determined by the energy of a transmitted first sound wave signal and the energy of a second sound wave signal reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, and the first parameter information and the second parameter information are in negative correlation with the distance;
the third parameter information is determined by similarity between the motion trail of the electronic equipment and a preset trail, and the preset trail is the motion trail when the electronic equipment is lifted.
2. The method of claim 1, wherein the performing an operation corresponding to the negative distance comprises:
And when the negative distance is larger than a first preset value, extinguishing the display screen of the electronic equipment.
3. The method of claim 1, wherein the obtaining at least two of the first parameter information, the second parameter information, and the third parameter information comprises:
acquiring first energy of the first acoustic wave signal;
acquiring second energy of the second acoustic signal;
and acquiring the ratio of the second energy to the first energy as the first parameter information.
4. The method of claim 1, wherein the obtaining at least two of the first parameter information, the second parameter information, and the third parameter information comprises:
and acquiring the ratio of the area of the face area to the area of the display screen as the second parameter information.
5. The method of claim 1, wherein the obtaining at least two of the first parameter information, the second parameter information, and the third parameter information comprises:
and acquiring at least two parameter information which are larger than a second preset value in the first parameter information, the second parameter information and the third parameter information.
6. The method of claim 1, wherein the obtaining the weight of each of the at least two pieces of parameter information comprises:
if three parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, acquiring initial weights of each parameter information in the three parameter information, wherein the sum of the initial weights of the three parameter information is 1; or,
if two items of parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, increasing the initial weight of each item of parameter information in the two items of parameter information so that the sum of the weights of the two items of parameter information after the increase is 1.
7. The method according to claim 1, wherein the second parameter information is included in the at least two pieces of parameter information, and the obtaining the weight of each piece of parameter information in the at least two pieces of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
and determining the weight corresponding to the ambient temperature as the weight of the second parameter information, and adjusting the initial weight of other parameter information in the at least two pieces of parameter information so that the sum of the weights after the adjustment of the at least two pieces of parameter information is 1.
8. An operation execution device, characterized in that the device comprises:
the parameter acquisition module is used for acquiring at least two pieces of parameter information in the first parameter information, the second parameter information and the third parameter information and the weight of each piece of parameter information in the at least two pieces of parameter information; the at least two pieces of parameter information comprise the second parameter information;
the weight acquisition module comprises a temperature acquisition unit and a weight adjustment unit;
the temperature acquisition unit is used for acquiring the environmental temperature of the current environment of the electronic equipment;
the weight adjustment unit is configured to reduce an initial weight of the second parameter information and increase an initial weight of other parameter information in the at least two parameter information when the ambient temperature is less than a preset temperature, so that a total weight of the adjusted at least two parameter information is 1;
the weighting module is used for carrying out weighted summation on each item of parameter information in the at least two items of parameter information according to the corresponding weight to obtain a negative distance, and the negative distance and the distance between the electronic equipment and the obstacle are in a negative correlation;
the operation execution module is used for executing the operation corresponding to the negative distance;
The first parameter information is determined by the energy of a transmitted first sound wave signal and the energy of a second sound wave signal reflected by the first sound wave signal, the second parameter information is determined by the detected face area and the display screen area, and the first parameter information and the second parameter information are in negative correlation with the distance;
the third parameter information is determined by similarity between the motion trail of the electronic equipment and a preset trail, and the preset trail is the motion trail when the electronic equipment is lifted.
9. The apparatus of claim 8, wherein the operation execution module comprises:
and the extinguishing unit is used for extinguishing the display screen of the electronic equipment when the negative distance is larger than a first preset value.
10. The apparatus of claim 8, wherein the parameter acquisition module comprises:
an energy acquisition unit configured to acquire first energy of the first acoustic wave signal;
the energy acquisition unit is used for acquiring second energy of the second sound wave signal;
and the proportion acquisition unit is used for acquiring the proportion of the second energy to the first energy as the first parameter information.
11. The apparatus of claim 8, wherein the parameter acquisition module comprises:
and the proportion acquisition unit is used for acquiring the proportion of the area of the face area to the area of the display screen as the second parameter information.
12. The apparatus of claim 8, wherein the parameter acquisition module comprises:
the parameter acquisition unit is used for acquiring at least two parameter information which are larger than a second preset value in the first parameter information, the second parameter information and the third parameter information.
13. The apparatus of claim 12, wherein the weight acquisition module comprises:
the weight acquisition unit is used for acquiring initial weights of each item of parameter information in the three items of parameter information if three items of parameter information in the first parameter information, the second parameter information and the third parameter information are acquired, and the sum of the initial weights of the three items of parameter information is 1; or,
the weight obtaining unit is further configured to, if two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information are obtained, increase an initial weight of each piece of parameter information of the two pieces of parameter information, so that a weight sum after the two pieces of parameter information are increased is 1.
14. The apparatus of claim 8, wherein the weight acquisition module comprises:
the temperature acquisition unit is used for acquiring the environmental temperature of the current environment of the electronic equipment;
and the weight adjusting unit is used for determining the weight corresponding to the ambient temperature as the weight of the second parameter information, and adjusting the initial weight of other parameter information in the at least two pieces of parameter information so that the sum of the weights after the adjustment of the at least two pieces of parameter information is 1.
15. An operation execution device, characterized in that the device comprises:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the operations performed in the operation performing method of any one of claims 1-7.
16. A computer-readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the operations performed in the operation performing method of any one of claims 1 to 7.
CN201910842051.1A 2019-09-06 2019-09-06 Operation execution method, device and storage medium Active CN112462928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910842051.1A CN112462928B (en) 2019-09-06 2019-09-06 Operation execution method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910842051.1A CN112462928B (en) 2019-09-06 2019-09-06 Operation execution method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112462928A CN112462928A (en) 2021-03-09
CN112462928B true CN112462928B (en) 2024-03-26

Family

ID=74807097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910842051.1A Active CN112462928B (en) 2019-09-06 2019-09-06 Operation execution method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112462928B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002111801A (en) * 2000-09-28 2002-04-12 Casio Comput Co Ltd Mobile telephone device
JP2007150919A (en) * 2005-11-29 2007-06-14 Kyocera Corp Communication terminal and display method thereof
CN104714626A (en) * 2013-12-11 2015-06-17 联想(北京)有限公司 Information processing method and electronic device
CN106210356A (en) * 2016-09-07 2016-12-07 青岛海信移动通信技术股份有限公司 Close a terminal the method and device of screen
CN106936993A (en) * 2017-03-07 2017-07-07 广东欧珀移动通信有限公司 Terminal screen control method and device
WO2017185701A1 (en) * 2016-04-29 2017-11-02 乐视控股(北京)有限公司 Distance sensor antifouling method and system on mobile terminal
CN107831901A (en) * 2017-11-22 2018-03-23 广东欧珀移动通信有限公司 Display panel control method, device, storage medium and electronic installation
CN108875332A (en) * 2017-08-01 2018-11-23 北京旷视科技有限公司 For starting the methods, devices and systems and storage medium of face unlock
CN108965509A (en) * 2018-06-15 2018-12-07 Oppo广东移动通信有限公司 Electronic equipment, screen control method and Related product
CN110166618A (en) * 2018-02-12 2019-08-23 北京小米移动软件有限公司 Screen control method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002111801A (en) * 2000-09-28 2002-04-12 Casio Comput Co Ltd Mobile telephone device
JP2007150919A (en) * 2005-11-29 2007-06-14 Kyocera Corp Communication terminal and display method thereof
CN104714626A (en) * 2013-12-11 2015-06-17 联想(北京)有限公司 Information processing method and electronic device
WO2017185701A1 (en) * 2016-04-29 2017-11-02 乐视控股(北京)有限公司 Distance sensor antifouling method and system on mobile terminal
CN106210356A (en) * 2016-09-07 2016-12-07 青岛海信移动通信技术股份有限公司 Close a terminal the method and device of screen
CN106936993A (en) * 2017-03-07 2017-07-07 广东欧珀移动通信有限公司 Terminal screen control method and device
CN108875332A (en) * 2017-08-01 2018-11-23 北京旷视科技有限公司 For starting the methods, devices and systems and storage medium of face unlock
CN107831901A (en) * 2017-11-22 2018-03-23 广东欧珀移动通信有限公司 Display panel control method, device, storage medium and electronic installation
CN110166618A (en) * 2018-02-12 2019-08-23 北京小米移动软件有限公司 Screen control method and device
CN108965509A (en) * 2018-06-15 2018-12-07 Oppo广东移动通信有限公司 Electronic equipment, screen control method and Related product

Also Published As

Publication number Publication date
CN112462928A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US10498873B2 (en) Screen control method, apparatus, and non-transitory tangible computer readable storage medium
EP3301551B1 (en) Electronic device for identifying touch
CN108766457B (en) Audio signal processing method, audio signal processing device, electronic equipment and storage medium
US10248855B2 (en) Method and apparatus for identifying gesture
US10027785B2 (en) Method for switching screen state of terminal, terminal thereof, and computer-readable medium thereof
CN106354504B (en) Message display method and device
JP2021509963A (en) Multi-beam selection method and equipment
CN109862169B (en) Electronic equipment control method, device and storage medium
CN107392160B (en) Optical fingerprint identification method and device and computer readable storage medium
CN110392334B (en) Microphone array audio signal self-adaptive processing method, device and medium
CN106599858B (en) Fingerprint identification method and device and electronic equipment
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN109769191B (en) Audio output detection method and device and electronic equipment
CN106445122B (en) Equipment state control method and device
CN108206884B (en) Terminal, adjusting method for communication signal transmitted by terminal and electronic equipment
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN107203315B (en) Click event processing method and device and terminal
CN109922203B (en) Terminal, screen off method and device
CN107402677B (en) Method and device for recognizing finger lifting in touch operation and terminal
CN112462928B (en) Operation execution method, device and storage medium
CN112954596B (en) Data sharing method, device, equipment and storage medium
CN110968155A (en) Full-screen terminal, operation execution method and device based on full-screen terminal
CN112925466B (en) Touch control method and device
CN111212159B (en) Terminal device
CN109813295B (en) Orientation determination method and device and electronic equipment

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