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

Operation execution method, device and storage medium Download PDF

Info

Publication number
CN112462928A
CN112462928A CN201910842051.1A CN201910842051A CN112462928A CN 112462928 A CN112462928 A CN 112462928A CN 201910842051 A CN201910842051 A CN 201910842051A CN 112462928 A CN112462928 A CN 112462928A
Authority
CN
China
Prior art keywords
parameter information
weight
items
distance
acquiring
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.)
Granted
Application number
CN201910842051.1A
Other languages
Chinese (zh)
Other versions
CN112462928B (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

Images

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

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 the 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 relationship; and executing the operation corresponding to the negative distance. 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 is in a negative correlation relation with the distance between the electronic equipment and the obstacle, so that the accuracy is improved. Moreover, the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken through, the corresponding operation is executed according to the negative distance, and 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 device, and is generally disposed at one side of a display screen, and the distance sensor can measure a distance between the electronic device and an obstacle, so as to perform an operation corresponding to the distance.
In the meantime, as the size of the display screen becomes larger, the use of the distance sensor is affected by the display screen. The related art provides a scheme for measuring a distance through an ultrasonic sensor, the ultrasonic sensor is arranged in electronic equipment, the ultrasonic sensor transmits an ultrasonic signal outwards through a through hole formed in the electronic equipment, receives the ultrasonic signal reflected back after the ultrasonic signal is transmitted to an obstacle, determines the distance between the electronic equipment and the obstacle according to a 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 of the electronic device is blocked, the distance measured by the ultrasonic sensor is small, and then an error operation is performed 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 solution 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;
weighting and summing each item of parameter information in the 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 relationship;
executing 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 area of a detected human face region and the area of a display screen, and the first parameter information and the second parameter information are in a negative correlation relation with the distance;
the third parameter information is determined by the similarity between the motion track of the electronic equipment and a preset track, wherein the preset track is the motion track of the electronic equipment when lifted.
In one possible implementation, the performing the operation corresponding to the negative direction distance includes:
and when the negative distance is larger than a first preset value, turning off a display screen of the electronic equipment.
In another possible implementation manner, the obtaining 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 sound 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 obtaining 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 region to the area of the display screen as the second parameter information.
In another possible implementation manner, the obtaining 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 pieces of 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 a weight of each of the at least two pieces of parameter information includes:
if three pieces of parameter information in the first parameter information, the second parameter information and the third parameter information are obtained, obtaining the initial weight of each piece of parameter information in the three pieces of parameter information, wherein the sum of the initial weights of the three pieces of parameter information is 1; alternatively, the first and second electrodes may be,
and 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 as to enable the sum of the increased weights of the two items of parameter information to be 1.
In another possible implementation manner, the at least two items of parameter information include the second parameter information, and the obtaining the weight of each item of parameter information in the at least two items of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
and when the environment temperature is lower than the preset temperature, reducing the initial weight of the second parameter information, and increasing the initial weights of other parameter information in the at least two items of parameter information, so that the sum of the adjusted weights of the at least two items of parameter information is 1.
In another possible implementation manner, the at least two items of parameter information include the second parameter information, and the obtaining the weight of each item of parameter information in the at least two items of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
and determining the weight corresponding to the environment temperature as the weight of the second parameter information, and adjusting the initial weights of other parameter information in the at least two items of parameter information so that the sum of the adjusted weights of the at least two items of parameter information is 1.
According to a second aspect of the embodiments of the present disclosure, there is provided an operation performing apparatus including:
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;
the weight obtaining module is used for obtaining the weight of each item of parameter information in the at least two items of parameter information;
the weighting module is used for weighting and summing 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 relationship;
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 area of a detected human face region and the area of a display screen, and the first parameter information and the second parameter information are in a negative correlation relation with the distance;
the third parameter information is determined by the similarity between the motion track of the electronic equipment and a preset track, wherein the preset track is the motion track of the electronic equipment when lifted.
In one possible implementation, 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 for acquiring first energy of the first acoustic signal;
the energy acquisition unit is used for acquiring second energy of the second acoustic signal;
a ratio obtaining unit, configured to obtain a ratio 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 region to the area of the display screen as the second parameter information.
In another possible implementation manner, the parameter obtaining module includes:
and the parameter acquiring unit is used for acquiring at least two pieces of 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 obtaining module includes:
a weight obtaining unit, configured to obtain an initial weight of each of the three pieces of parameter information if three pieces of parameter information among the first parameter information, the second parameter information, and the third parameter information are obtained, where a sum of the initial weights of the three pieces of parameter information is 1; alternatively, the first and second electrodes may be,
the weight obtaining unit is further configured to, if two items of parameter information among the first parameter information, the second parameter information, and the third parameter information are obtained, increase an initial weight of each item of parameter information among the two items of parameter information, so that a sum of the weights of the two items of parameter information after increase is 1.
In another possible implementation manner, the weight obtaining 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 reducing the initial weight of the second parameter information and increasing the initial weights of other parameter information in the at least two items of parameter information when the ambient temperature is less than a preset temperature, so that the total weight of the at least two items of parameter information after adjustment is 1.
In another possible implementation manner, the weight obtaining module includes:
the temperature acquisition unit is used for acquiring the environmental temperature of the current environment of the electronic equipment;
and a weight adjusting unit, configured to determine a weight corresponding to the ambient temperature as a weight of the second parameter information, and adjust an initial weight of another parameter information of the at least two items of parameter information so that a sum of the adjusted weights of the at least two items of parameter information is 1.
According to a third aspect of the embodiments of the present disclosure, there is provided an operation performing apparatus including:
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 as described in the first aspect.
According to a fourth aspect provided by embodiments of the present disclosure, the computer-readable storage medium has at least one instruction stored therein, and the instruction is loaded and executed by a processor to implement the operations performed in the operation execution method according to the first aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the disclosure at least comprise:
the operation execution method, the operation execution device, and the storage medium provided by the embodiments of the present disclosure obtain at least two pieces of parameter information among the first parameter information, the second parameter information, and the third parameter information, obtain a weight of each of the at least two pieces of parameter information, perform weighted summation on each of the at least two pieces of parameter information according to a corresponding weight, obtain a negative-going distance, and execute an operation corresponding to the negative-going distance. The first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the area of a detected human face area and the area of a display screen, the third parameter information is determined by the similarity of a motion track of the electronic equipment and a 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, and the accuracy is improved. Moreover, the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken through, the corresponding operation is executed according to the negative distance, and the accuracy of executing the operation is improved.
Moreover, the weight corresponding to each parameter information in the parameter information combination can be determined according to the parameter information combination comprising at least two parameter information of the first parameter information, the second parameter information and the third parameter information, and the determined weight of each parameter information is different for different parameter information combinations, so that the importance degree more conforming to each parameter information is determined, the accuracy is improved, and the accuracy of executing operation is improved.
And when the at least two items of parameter information include the second parameter information, because the second parameter information is influenced by the ambient temperature when being obtained, the weight of the second parameter information is obtained according to the ambient temperature, and then the weights of other parameter information in the at least two items of parameter information are adjusted, so that the purpose of automatically adjusting the weights 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 present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of operation execution in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of operation execution in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating the structure of an operation performing device according to one exemplary embodiment;
FIG. 4 is a schematic diagram illustrating another operation performing apparatus in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
The method comprises the steps of determining first parameter information according to energy of a transmitted first sound wave signal and energy of a second sound wave signal reflected by the first sound wave signal, performing weighted summation on at least two of the first parameter information, the second parameter information and the third parameter information according to second parameter information determined by the area of a detected face region and the area of a display screen and third parameter information determined by the similarity of a motion track of electronic equipment and a preset track to obtain a negative distance in a negative correlation relation with a distance between the electronic equipment and an obstacle, and executing operation corresponding to the negative distance.
The method provided by the embodiment of the disclosure can be applied to a scene of conversation of electronic equipment, 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 method provided by the embodiment of the disclosure can be adopted, namely, when the display screen of the electronic equipment is close to an ear area of a user, the display screen is turned off.
Fig. 1 is a flow chart illustrating a method of operation execution, according to an exemplary embodiment, and referring to fig. 1, the method includes:
in step 101, at least two parameter information of the first parameter information, the second parameter information, and the third parameter information are obtained.
In step 102, a weight of each of the at least two items of parameter information is obtained.
In step 103, each item of parameter information of the at least two items of parameter information is subjected to weighted summation according to the corresponding weight, so as to obtain a negative distance.
Wherein the negative distance is in a negative correlation with the distance between the electronic device and the obstacle.
In step 104, an operation corresponding to the negative direction distance is performed.
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 area of a detected face region and the area of a display screen, 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 between the motion track of the electronic equipment and a preset track, and the preset track is the motion track of the electronic equipment when lifted.
The method provided by the embodiment of the disclosure includes obtaining at least two pieces of parameter information of the first parameter information, the second parameter information and the third parameter information, obtaining a weight of each piece of parameter information of the at least two pieces of parameter information, performing 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 executing 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 second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the area of a detected human face area and the area of a display screen, the third parameter information is determined by the similarity of a motion track of the electronic equipment and a 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, and the accuracy is improved. Moreover, the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken through, the corresponding operation is executed according to the negative distance, and the accuracy of executing the operation is improved.
In one possible implementation, performing an operation corresponding to a negative direction distance includes:
and when the negative distance is larger than a first preset value, turning off a display screen of the electronic equipment.
In another possible implementation manner, the obtaining 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 the second acoustic signal;
and acquiring the ratio of the second energy to the first energy as first parameter information.
In another possible implementation manner, the obtaining 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 region to the area of the display screen as second parameter information.
In another possible implementation manner, the obtaining 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 pieces of 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, obtaining a weight of each of the at least two items of parameter information includes:
if three items of parameter information in the first parameter information, the second parameter information and the third parameter information are obtained, obtaining the initial weight of each item of parameter information in the three items of parameter information, wherein the sum of the initial weights of the three items of parameter information is 1; alternatively, the first and second electrodes may be,
and 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 increased weights of the two items of parameter information is 1.
In another possible implementation manner, the at least two items of parameter information include second parameter information, and the obtaining of the weight of each item of parameter information in the at least two items of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
and when the ambient temperature is lower than the 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 items of parameter information to enable the total weight of the at least two items of parameter information after adjustment to be 1.
In another possible implementation manner, the at least two items of parameter information include second parameter information, and the obtaining of the weight of each item of parameter information in the at least two items of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
determining the weight of the second parameter information corresponding to the environment temperature, and adjusting the initial weight of other parameter information in the at least two items of parameter information to make the sum of the adjusted weights of the at least two items of parameter information be 1.
Fig. 2 is a flowchart illustrating an operation execution method applied to an electronic device according to an exemplary embodiment, and referring to fig. 2, the method includes:
in step 201, at least two parameter information of the first parameter information, the second parameter information, and the third parameter information are obtained.
The method provided by the embodiment of the disclosure is applied to an electronic device, which may be a mobile phone, a personal computer, a tablet computer, and the like, and the electronic device includes a display screen and a processor, the display screen is used for displaying an interface of an application program provided in the electronic device, and a user may further light up the display screen or extinguish the display screen. The processor of the electronic device may process received instructions, perform operations, control time, and process data in the electronic device.
Wherein 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 back by the first sound wave signal.
In one possible implementation, the first acoustic signal may be an ultrasonic signal, an infrasonic signal, or may be another acoustic signal.
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 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 acoustic signal to the processor, and the processor can obtain the energy of the second acoustic signal. The obstacle may be a face part, a finger part, or other parts of a user using the electronic device.
And the second parameter information is determined by the area of the detected face region and the area of the display screen.
In a possible implementation manner, a capacitor plate is disposed below a display screen in the electronic device, the capacitor plate has a capacitance value, when a distance between a face area and the display screen is smaller than a preset distance, the capacitance value of the capacitor plate changes, an area where the capacitance value of the capacitor plate is larger than the preset capacitance value is obtained, and the obtained area is an area of the face area.
The third parameter information is determined by the similarity between the motion track of the electronic equipment and a preset track, and the preset track is the motion track of the electronic equipment when lifted.
In a 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 a similarity between the motion track of the electronic device and a preset track when the electronic device is lifted.
In the embodiment of the disclosure, by acquiring at least two items of the first parameter information, the second parameter information, and the third parameter information, a negative distance may be subsequently determined, and whether the electronic device and the obstacle are close to each other is determined according to the negative distance, so as to execute an operation corresponding to the negative distance.
The at least two items of parameter information include any two items of first parameter information, second parameter information and third parameter information, or include three items of first parameter information, second parameter information and third parameter information.
In one possible implementation manner, the obtaining 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 of the following cases:
first, first energy of a first sound wave signal is obtained, second energy of a second sound wave signal is obtained, and the ratio of the second energy to the first energy is obtained to serve as first parameter information.
The first parameter information and the distance between the electronic equipment and the obstacle are in a negative correlation relationship.
And secondly, acquiring the ratio of the area of the face region to the area of the display screen as second parameter information.
The second parameter information is in a negative correlation with the distance between the electronic device and the obstacle, that is, the larger the second parameter information is, the smaller the distance between the electronic device and the obstacle is.
And thirdly, acquiring the similarity between the motion track of the electronic equipment and the preset track as third parameter information.
The preset track is a motion track of the electronic equipment when lifted. When the motion trail of the electronic device is more similar to the lifting motion, the electronic device is closer to the obstacle, that is, the third parameter information is in a negative correlation with the distance between the electronic device and the obstacle.
And fourthly, acquiring at least two pieces of 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 parameter information is invalid, and if the parameter information is continuously adopted to determine the negative distance subsequently, the determined negative distance is inaccurate, so that only the parameter information of which the parameter information is 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 predetermined value may be 0.6, 0.7, 0.8 or other values.
In step 202, a weight of each of at least two items 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 a possible implementation manner, a preset corresponding relationship is set in the parameter information, the preset corresponding relationship includes a weight corresponding to each item of parameter information in the parameter information combination, and the weight of each item of parameter information in the parameter information combination can be obtained according to the corresponding relationship. 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 in one group, the sum of the weights of the first parameter information and the second parameter information is 1. Or, when the first parameter information and the third parameter information are in one group, the sum of the weights of the first parameter information and the third parameter information is 1. Or, when the second parameter information and the third parameter information are in one group, the sum of the 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 in one 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 relationship may be as shown in table 1 below:
TABLE 1
Figure BDA0002194018670000111
In another possible implementation manner, each item of the first parameter information, the second parameter information, and the third parameter information corresponds to an initial weight, and the sum of the initial weights corresponding to each item of the parameter information is 1. After at least two items of parameter information are determined, the weight of each item of parameter information can be obtained according to the initial weight corresponding to each item of parameter information in the at least two items of parameter information, and the sum of the weights determined by each item of parameter information is 1.
The weight adjusted by each item of parameter information is obtained according to the initial weight corresponding to each item of parameter information, and the method comprises any one of the following steps:
if three items of parameter information in the first parameter information, the second parameter information and the third parameter information are obtained, the initial weight of each item of parameter information in the three items of parameter information is obtained, and the sum of the initial weights of the three items of parameter information is 1.
And secondly, 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 increased weights of the two items of parameter information is 1.
In a possible implementation manner, when two pieces of parameter information among 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 an initial weight corresponding to each piece of parameter information among the two pieces of parameter information and a half of the initial weight of the other piece of parameter information is acquired as an 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 0.1, 0.4, and 0.5, respectively. When the two 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 pieces of acquired first parameter information, second parameter information, and third parameter information are obtained, an initial weight of the other piece of parameter information is obtained, a ratio of the initial weights corresponding to the two pieces of parameter information is determined, the initial weight of the other piece of parameter information is divided into two parts according to the ratio to obtain a dividing weight, and a sum of the initial weight corresponding to each piece of parameter information and the corresponding dividing weight in the two pieces of parameter information is obtained as a weight after each piece of parameter information is adjusted.
For example, the initial weights corresponding to the first parameter information, the second parameter information, and the third parameter information are 0.1, 0.4, and 0.5, respectively. When the two acquired parameter information are the first parameter information and the second parameter information, the dividing weights 0.1 and 0.4 are obtained according to the ratio of the first parameter information to 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.
And thirdly, the at least two items of parameter information comprise second parameter information, the environment temperature of the current environment of the electronic equipment is obtained, when the environment temperature is lower than the preset temperature, the initial weight of the second parameter information is reduced, and the initial weights of other parameter information in the at least two items of parameter information are increased, so that the sum of the adjusted weights of the at least two items of parameter information is 1.
Wherein the preset temperature is set by the electronic device or by a developer. The predetermined temperature may be-10 degrees celsius, -20 degrees celsius, or some other value.
In a possible implementation manner, when the at least two items of parameter information include second parameter information and another item of parameter information, and the ambient temperature is less than the preset temperature, the initial weight of the second parameter information is decreased by a preset value, and the initial weight of the another item of parameter information is increased by the preset value, so as to obtain the weight of each item of parameter information in the at least two items of parameter information.
In another possible implementation manner, when the at least two items of parameter information include three items 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 item of parameter information in the other two items of parameter information and half of the preset value is obtained and used as the adjusted weight of each item of parameter information, and finally the weight of each item of parameter information in the three items of parameter information is obtained.
In another possible implementation manner, when the 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 to obtain a division weight, the sum of the initial weight corresponding to each parameter information in the other two parameter information and the corresponding division weight is obtained and used as the adjusted weight of each parameter information, and finally the weight of each parameter information in the three parameter information is obtained.
And fourthly, the at least two items of parameter information comprise second parameter information, the environment temperature of the current environment of the electronic equipment is obtained, the weight corresponding to the environment temperature is determined as the weight of the second parameter information, and the initial weights of other parameter information in the at least two items of parameter information are adjusted, so that the sum of the adjusted weights of the at least two items of parameter information is 1.
In a possible implementation manner, when the at least two items of parameter information include second parameter information and another item of parameter information, the weight corresponding to the ambient temperature is determined as the weight of the second parameter information, a difference weight between the weight of the second parameter information and the initial weight of the second parameter information is obtained, and then the sum of the initial weight and the difference weight of the another item of parameter information is obtained as the weight of the another item of parameter information.
In another possible implementation manner, when the at least two items of parameter information include three items of parameter information, determining a weight of the second parameter information corresponding to the ambient temperature, obtaining a difference weight between the weight of the second parameter information and the initial weight, obtaining a sum of half of the initial weight and the difference weight corresponding to each item of parameter information in the other two items of parameter information, taking the sum as the adjusted weight of each item of parameter information, and finally obtaining the weight of each item of parameter information in the three items of parameter information.
In another possible implementation manner, when the at least two items of parameter information include three items of parameter information, determining a weight corresponding to the second parameter information and the ambient temperature, obtaining a difference between the weight of the second parameter information and the initial weight, obtaining a ratio of the initial weights of the other two items of parameter information, dividing the difference into two parts according to the ratio to obtain a division value, obtaining a sum of the initial weight corresponding to each item of parameter information in the other two items of parameter information and the corresponding division value 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 the 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 the second parameter information is adjusted to be a smaller weight when the electronic device is at a lower temperature, and the second parameter information is adjusted to be a larger weight when the electronic device is at a higher temperature, thereby improving the accuracy of the obtained negative distance.
In step 203, each item of parameter information of the at least two items of parameter information is subjected to weighted summation according to the corresponding weight, so as to obtain a 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 to obtain the negative distance.
Each item of parameter information in the at least two items of parameter information is in a negative correlation with the distance between the electronic device and the obstacle, so that each item of parameter information in the at least two items of parameter information is subjected to weighted summation according to the corresponding weight, and the obtained negative distance is also in a negative correlation with the distance between the electronic device and the obstacle.
For example, when the at least two items of parameter information include first parameter information, second parameter information, and 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 a 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 relationship, when the negative distance is larger than a first preset value, the distance between the electronic equipment and the obstacle is close, and the display screen of the electronic equipment is turned off to prevent the obstacle from operating the display screen of the electronic equipment.
Wherein the first preset value can be set by an electronic device or a developer. The first predetermined value may be 0.75, 0.8, 0.85 or other values.
For example, the following formula may be used to determine whether the negative direction 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 may further continue to obtain the negative distance, and when the negative distance is not greater than the first preset value, it indicates that the distance between the electronic device and the obstacle is farther, and the display screen of the electronic device is lit, so that the user may perform an operation through the display screen.
It should be noted that, in the embodiment of the present disclosure, the turning off of the display screen of the electronic device is only described as an example according to the negative distance, and in another embodiment, after the negative distance is obtained, an operation corresponding to the negative distance may be executed.
In the embodiment of the present disclosure, the negative distance may be divided into a plurality of negative distance ranges, 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, determining an operation corresponding to the negative distance range, that is, determining the operation corresponding to the negative distance, and then executing the determined operation.
For example, when the negative distance is not less than a first preset threshold, the electronic device belongs to a first negative distance range, and the electronic device performs an operation of turning off the display screen; when the negative distance is greater than a third preset threshold and smaller than the first preset threshold, the electronic equipment executes an operation of displaying a prompt of whether to extinguish the display screen; and when the negative distance is not greater than a third preset threshold and the electronic equipment is in a state of turning off the display screen, the electronic equipment executes an operation of turning on the display screen.
According to the embodiment of the disclosure, the operation corresponding to the negative distance can be executed by acquiring the negative distance, and the specific distance between the electronic device and the obstacle does not need to be acquired, so that the limitation of executing the operation according to the specific distance is broken, and the accuracy of executing the operation is improved.
The method provided by the embodiment of the disclosure includes obtaining at least two pieces of parameter information of the first parameter information, the second parameter information and the third parameter information, obtaining a weight of each piece of parameter information of the at least two pieces of parameter information, performing 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 executing 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 second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the area of a detected human face area and the area of a display screen, the third parameter information is determined by the similarity of a motion track of the electronic equipment and a 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, and the accuracy is improved. Moreover, the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken through, the corresponding operation is executed according to the negative distance, and the accuracy of executing the operation is improved.
Moreover, the weight corresponding to each parameter information in the parameter information combination can be determined according to the parameter information combination comprising at least two parameter information of the first parameter information, the second parameter information and the third parameter information, and the determined weight of each parameter information is different for different parameter information combinations, so that the importance degree more conforming to each parameter information is determined, the accuracy is improved, and the accuracy of executing operation is improved.
And when the at least two items of parameter information include the second parameter information, because the second parameter information is influenced by the ambient temperature when being obtained, the weight of the second parameter information is obtained according to the ambient temperature, and then the weights of other parameter information in the at least two items of parameter information are adjusted, so that the purpose of automatically adjusting the weights of the parameter information is achieved, and the accuracy of executing operation is improved.
Fig. 3 is a schematic structural diagram illustrating an operation performing apparatus according to an exemplary embodiment. Referring to fig. 3, the apparatus includes:
a parameter obtaining module 301, configured to obtain at least two pieces of parameter information of the first parameter information, the second parameter information, and the third parameter information;
a weight obtaining module 302, configured to obtain a weight of each parameter information of the at least two parameter information;
the weighting module 303 is configured to perform weighted summation on each of the at least two items of parameter information according to a corresponding weight to obtain a negative distance, where the negative distance is in a negative correlation with a distance between the electronic device and the obstacle;
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 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 area of a detected face region and the area of a display screen, 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 between the motion track of the electronic equipment and a preset track, and the preset track is the motion track of the electronic equipment when lifted.
The device provided by the embodiment of the disclosure acquires at least two pieces of parameter information among the first parameter information, the second parameter information and the third parameter information, acquires the weight of each piece of parameter information among the at least two pieces of parameter information, performs weighted summation on each piece of parameter information among the at least two pieces of parameter information according to the corresponding weight to obtain a negative-going distance, and executes an operation corresponding to the negative-going distance. The first parameter information is determined by the energy of the transmitted first sound wave signal and the energy of second sound wave information reflected by the first sound wave signal, the second parameter information is determined by the area of a detected human face area and the area of a display screen, the third parameter information is determined by the similarity of a motion track of the electronic equipment and a 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, and the accuracy is improved. Moreover, the limitation mode of executing the operation according to the distance between the electronic equipment and the obstacle is broken through, the corresponding operation is executed according to the negative distance, and the accuracy of executing the operation is improved.
In one possible implementation, referring to fig. 4, the operation execution module 304 includes:
the turning-off unit 3041 is configured to turn off the display screen of the electronic device when the negative distance is greater than a first preset value.
In another possible implementation manner, referring to fig. 4, the parameter obtaining module 301 includes:
an energy acquiring unit 3011 configured to acquire first energy of the first acoustic wave signal;
an energy obtaining unit 3011, configured to obtain second energy of the second acoustic signal;
a ratio obtaining unit 3012, configured to obtain a ratio of the second energy to the first energy as the first parameter information.
In another possible implementation manner, referring to fig. 4, the parameter obtaining module 301 includes:
a ratio obtaining unit 3012, configured to obtain a ratio of the area of the face region to the area of the display screen as the second parameter information.
In another possible implementation manner, referring to fig. 4, the parameter obtaining module 301 includes:
the parameter obtaining unit 3013 is configured to obtain at least two pieces of parameter information, which are greater than a second preset value, in the first parameter information, the second parameter information, and the third parameter information.
In another possible implementation manner, referring to fig. 4, the weight obtaining 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 among 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; alternatively, the first and second electrodes may be,
the weight obtaining unit 3021 is further configured to, if two items of parameter information among the first parameter information, the second parameter information, and the third parameter information are obtained, increase an initial weight of each item of parameter information among the two items of parameter information, so that a sum of the increased weights of the two items of parameter information is 1.
In another possible implementation manner, referring to fig. 4, the weight obtaining module 302 includes:
a temperature obtaining unit 3022, configured to obtain an ambient temperature of an environment where the electronic device is currently located;
the weight adjusting unit 3023 is configured to, when the ambient temperature is lower than the preset temperature, decrease the initial weight of the second parameter information, and increase the initial weights of the other parameter information in the at least two items of parameter information, so that a total weight of the adjusted at least two items of parameter information is 1.
In another possible implementation manner, referring to fig. 4, the weight obtaining module 302 includes:
a temperature obtaining unit 3022, configured to obtain an ambient temperature of an environment where the electronic device is currently located;
a weight adjusting unit 3023, configured to determine a weight corresponding to the ambient temperature as a weight of the second parameter information, and adjust an initial weight of the other parameter information of the at least two items of parameter information so that a sum of the adjusted weights of the at least two items of parameter information is 1.
It should be noted that: in the operation executing apparatus provided in the above embodiment, only the division of the functional modules is illustrated when executing the operation, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the electronic device may be divided into different functional modules to complete all or part of the functions described above. In addition, the operation execution device and the operation execution method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcaster, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and 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 components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction 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 non-volatile 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 disks.
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 that provides an output interface between the electronic device 500 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect 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. The front camera and/or the rear camera may receive external multimedia data when the electronic device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
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 further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes 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: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 may detect an open/closed state of the electronic device 500, the relative positioning of components, such as a display and keypad of the electronic device 500, the sensor assembly 514 may detect a change in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, orientation or acceleration/deceleration of the electronic device 500, and a change in the temperature of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. 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 an exemplary embodiment, the communication component 516 receives a broadcast signal 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, micro-controllers, microprocessors or other electronic components for performing the above-described operation performing methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the electronic device 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. An operation execution method, characterized in that the method comprises:
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;
weighting and summing each item of parameter information in the 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 relationship;
executing 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 area of a detected human face region and the area of a display screen, and the first parameter information and the second parameter information are in a negative correlation relation with the distance;
the third parameter information is determined by the similarity between the motion track of the electronic equipment and a preset track, wherein the preset track is the motion track of the electronic equipment when lifted.
2. The method of claim 1, wherein the performing the operation corresponding to the negative-going distance comprises:
and when the negative distance is larger than a first preset value, turning off a 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 sound 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 region 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 pieces of 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 pieces of parameter information in the first parameter information, the second parameter information and the third parameter information are obtained, obtaining the initial weight of each piece of parameter information in the three pieces of parameter information, wherein the sum of the initial weights of the three pieces of parameter information is 1; alternatively, the first and second electrodes may be,
and 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 as to enable the sum of the increased weights of the two items of parameter information to be 1.
7. The method according to claim 1, wherein the at least two pieces of parameter information include the second parameter information, and the obtaining the weight of each of the at least two pieces of parameter information includes:
acquiring the environmental temperature of the current environment of the electronic equipment;
and when the environment temperature is lower than the preset temperature, reducing the initial weight of the second parameter information, and increasing the initial weights of other parameter information in the at least two items of parameter information, so that the sum of the adjusted weights of the at least two items of parameter information is 1.
8. The method according to claim 1, wherein the at least two pieces of parameter information include the second parameter information, and the obtaining the weight of each of 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 environment temperature as the weight of the second parameter information, and adjusting the initial weights of other parameter information in the at least two items of parameter information so that the sum of the adjusted weights of the at least two items of parameter information is 1.
9. An operation execution apparatus, characterized in that the apparatus 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;
the weight obtaining module is used for obtaining the weight of each item of parameter information in the at least two items of parameter information;
the weighting module is used for weighting and summing 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 relationship;
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 area of a detected human face region and the area of a display screen, and the first parameter information and the second parameter information are in a negative correlation relation with the distance;
the third parameter information is determined by the similarity between the motion track of the electronic equipment and a preset track, wherein the preset track is the motion track of the electronic equipment when lifted.
10. The apparatus of claim 9, 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.
11. The apparatus of claim 9, wherein the parameter obtaining module comprises:
an energy acquisition unit for acquiring first energy of the first acoustic signal;
the energy acquisition unit is used for acquiring second energy of the second acoustic signal;
a ratio obtaining unit, configured to obtain a ratio of the second energy to the first energy as the first parameter information.
12. The apparatus of claim 9, wherein the parameter obtaining module comprises:
and the proportion acquisition unit is used for acquiring the proportion of the area of the face region to the area of the display screen as the second parameter information.
13. The apparatus of claim 9, wherein the parameter obtaining module comprises:
and the parameter acquiring unit is used for acquiring at least two pieces of parameter information which are larger than a second preset value in the first parameter information, the second parameter information and the third parameter information.
14. The apparatus of claim 13, wherein the weight obtaining module comprises:
a weight obtaining unit, configured to obtain an initial weight of each of the three pieces of parameter information if three pieces of parameter information among the first parameter information, the second parameter information, and the third parameter information are obtained, where a sum of the initial weights of the three pieces of parameter information is 1; alternatively, the first and second electrodes may be,
the weight obtaining unit is further configured to, if two items of parameter information among the first parameter information, the second parameter information, and the third parameter information are obtained, increase an initial weight of each item of parameter information among the two items of parameter information, so that a sum of the weights of the two items of parameter information after increase is 1.
15. The apparatus of claim 9, wherein the weight obtaining 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 reducing the initial weight of the second parameter information and increasing the initial weights of other parameter information in the at least two items of parameter information when the ambient temperature is less than a preset temperature, so that the total weight of the at least two items of parameter information after adjustment is 1.
16. The apparatus of claim 9, wherein the weight obtaining module comprises:
the temperature acquisition unit is used for acquiring the environmental temperature of the current environment of the electronic equipment;
and a weight adjusting unit, configured to determine a weight corresponding to the ambient temperature as a weight of the second parameter information, and adjust an initial weight of another parameter information of the at least two items of parameter information so that a sum of the adjusted weights of the at least two items of parameter information is 1.
17. An operation execution apparatus, characterized in that the apparatus 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 operations performed in the operation performing method of any one of claims 1-8.
18. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to perform an operation performed in an operation performing method according to any one of claims 1 to 8.
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 true CN112462928A (en) 2021-03-09
CN112462928B 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
CN112462928B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
US10498873B2 (en) Screen control method, apparatus, and non-transitory tangible computer readable storage medium
CN108510987B (en) Voice processing method and device
CN108766457B (en) Audio signal processing method, audio signal processing device, electronic equipment and storage medium
US10027785B2 (en) Method for switching screen state of terminal, terminal thereof, and computer-readable medium thereof
CN111128092B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
WO2020103353A1 (en) Multi-beam selection method and device
CN110262692B (en) Touch screen scanning method, device and medium
CN110059547B (en) Target detection method and device
CN109862169B (en) Electronic equipment control method, device and storage medium
CN110392334B (en) Microphone array audio signal self-adaptive processing method, device and medium
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
CN108206884B (en) Terminal, adjusting method for communication signal transmitted by terminal and electronic equipment
CN106445122B (en) Equipment state control method and device
CN112905035A (en) Touch screen control method and device and computer storage medium
CN107948876B (en) Method, device and medium for controlling sound box equipment
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
CN112925466B (en) Touch control method and device
CN111539617B (en) Data processing method and device, electronic equipment, interaction system and storage medium
CN113300664B (en) Method, device and medium for determining motor driving signal
CN107665340B (en) Fingerprint identification method and device and electronic equipment
CN112752191A (en) Audio acquisition method, device and storage medium
CN107329604B (en) Mobile terminal control method and device

Legal Events

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