CN111158766B - Wake-up method and apparatus, electronic device, and medium - Google Patents

Wake-up method and apparatus, electronic device, and medium Download PDF

Info

Publication number
CN111158766B
CN111158766B CN201911352077.4A CN201911352077A CN111158766B CN 111158766 B CN111158766 B CN 111158766B CN 201911352077 A CN201911352077 A CN 201911352077A CN 111158766 B CN111158766 B CN 111158766B
Authority
CN
China
Prior art keywords
sensor
target object
area
preset
wake
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
CN201911352077.4A
Other languages
Chinese (zh)
Other versions
CN111158766A (en
Inventor
肖启华
莫志坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911352077.4A priority Critical patent/CN111158766B/en
Publication of CN111158766A publication Critical patent/CN111158766A/en
Application granted granted Critical
Publication of CN111158766B publication Critical patent/CN111158766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The disclosure provides a wake-up method, which is applied to an electronic device, wherein the electronic device is provided with a first sensor and a second sensor, and the method comprises the following steps: determining whether the first sensor detects that the target object enters the first area; in response to the first sensor detecting that the target object enters the first area, determining whether a preset event occurs; and responding to the occurrence of a preset event, sending a wake-up instruction to the second sensor so as to wake up the second sensor to identify the target object. The disclosure also provides a wake-up apparatus, an electronic device and a computer-readable storage medium.

Description

Wake-up method and apparatus, electronic device, and medium
Technical Field
The present disclosure relates to a wake-up method and apparatus, and an electronic device and medium.
Background
With the development of electronic technology, more and more electronic products with multiple sensors are provided, and how to match multiple sensors with each other is a problem that manufacturers need to research and solve at present.
Disclosure of Invention
One aspect of the present disclosure provides a wake-up method applied to an electronic device, where the electronic device has a first sensor and a second sensor, and the method includes: determining whether the first sensor detects that the target object enters a first area; determining whether a preset event occurs in response to the first sensor detecting that the target object enters the first area; and responding to the occurrence of the preset event, and sending a wake-up instruction to the second sensor so as to wake up the second sensor to identify the target object.
Optionally, the determining whether the preset event occurs includes: determining whether the current time is a preset time, wherein the preset time is a time after delaying for a preset time from the time when the target object enters the first area; or determining whether the first sensor detects that the target object enters a second area, wherein the second area is an area in which the second sensor can recognize the target object.
Optionally, the determining whether the first sensor detects that the target object enters the first area includes: it is determined whether the first sensor detects the target object entering the first area from a side close to the first sensor.
Optionally, the method further includes: immediately sending the wake-up command to the second sensor in response to the first sensor detecting that the target object enters the first area from a side close to the second sensor.
Optionally, the method further includes: determining the preset time length; the determining the preset duration includes: determining a distance between the target object and the electronic device; and determining the preset time length according to the determined distance.
Optionally, the determining the preset duration according to the determined distance includes: in response to the fact that the determined distance is larger than a first threshold value and smaller than or equal to a second threshold value, taking the first time length as the preset time length; setting a second time period shorter than the first time period as the preset time period in response to the determined distance being equal to or less than the first threshold; and taking a third time length longer than the second time length as the preset time length in response to the fact that the determined distance is larger than the second threshold and smaller than or equal to a third threshold.
Another aspect of the present disclosure provides a wake-up apparatus applied to an electronic device, the electronic device having a first sensor and a second sensor, the wake-up apparatus including: the first determining module is used for determining whether the first sensor detects that the target object enters a first area; a second determining module, configured to determine whether a preset event occurs in response to the first sensor detecting that the target object enters the first area; and the awakening module is used for responding to the occurrence of the preset event and sending an awakening instruction to the second sensor so as to awaken the second sensor to identify the target object.
Optionally, the first determining module is further configured to: determining whether the current time is a preset time, wherein the preset time is a time after delaying for a preset time from the time when the target object enters the first area; or determining whether the first sensor detects that the target object enters a second area, wherein the second area is an area which can be identified by the second sensor.
Another aspect of the present disclosure provides an electronic device including: a first sensor; a second sensor; one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of the above embodiment.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which when executed, implement the above-mentioned method of the above-mentioned embodiments.
Another aspect of the present disclosure provides a computer program comprising computer executable instructions that when executed perform the method of the above-described embodiments.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of a wake-up method and a wake-up apparatus according to an embodiment of the present disclosure;
FIG. 2A schematically illustrates a flow chart of a wake-up method according to an embodiment of the disclosure;
FIG. 2B schematically illustrates a schematic diagram of a TOF detection zone and a Camera identification zone according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a diagram relating distance to delay time in accordance with an embodiment of the present disclosure;
FIG. 4 schematically shows a block diagram of a wake-up unit according to an embodiment of the present disclosure; and
fig. 5 schematically shows a block diagram of an electronic device according to another embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B, and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B, and C" would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.). Where a convention analogous to "at least one of A, B, or C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B, or C" would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
The embodiment of the disclosure provides a wake-up method and a wake-up device capable of applying the same. The method is applied to an electronic device having a first sensor and a second sensor. The method includes the following operations. It is determined whether the first sensor detects the entry of the target object into the first zone. In response to the first sensor detecting that the target object enters the first area, it is determined whether a preset event has occurred. And responding to the occurring preset event, and sending a wake-up instruction to the second sensor so as to wake up the second sensor to identify the target object.
Fig. 1 schematically shows an application scenario of a wake-up method and a wake-up apparatus according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, many users now have a habit that they will set the computer to a standby state when they leave their own computer for a short time, and will wake up the computer quickly by object recognition when they come back again.
In the process of implementing the embodiments of the present disclosure, the inventors found that: the object recognition speeds of the sensors of different products are almost the same, and users have the feeling that some products have a Time of flight (TOF) module, some products do not have the TOF module, and the products with the TOF module can make users feel that the object recognition speed is relatively slow.
Further, in the process of implementing the embodiments of the present disclosure, the inventors found that: in the existing electronic device with the TOF module, once the TOF module detects a user, the TOF module immediately wakes up the object recognition module to perform object recognition, but since the user does not enter the object recognition area at this time, the user cannot be recognized in advance even if the TOF module wakes up the object recognition module to perform object recognition, and the TOF module wakes up the object recognition module to perform object recognition in advance, so that the user feels that the waiting time is too long, and further feels that the object recognition speed of the electronic device is relatively slow.
In view of the above, the embodiments of the present disclosure provide an improved wake-up method for waking up an object identification module of an electronic device. By the aid of the awakening method, when the TOF module detects the target object, the TOF module does not awaken the object identification module to identify the object, and then awakens the object identification module to identify the object after the target object enters the object identification area, so that a user can identify the object at the moment when the object identification module is awakened.
The present disclosure will be described in detail below with reference to specific examples.
Fig. 2A schematically shows a flow chart of a wake-up method according to an embodiment of the present disclosure.
The wake-up method is applied to an electronic device having a first sensor (e.g., a TOF module) and a second sensor (e.g., an object recognition module). As shown in fig. 2A, the method may include operations S210 to S230, for example.
It is noted that in embodiments of the present disclosure, the first sensor may be, for example, a TOF module that detects the target object by TOF 3D imaging. Among them, the so-called TOF 3D imaging is to obtain the distance of a target object by continuously transmitting light pulses to the target object and then receiving light returning from the target object with a sensor and by detecting the flight (round trip) time of the light pulses. The second sensor may be, for example, an object recognition module capable of object recognition.
In the disclosed embodiments, the target object may be, for example, a user of the electronic device.
In operation S210, it is determined whether the first sensor detects that the target object enters the first area.
In embodiments of the present disclosure, the first area may be, for example, a detection zone of the first sensor.
Specifically, the first sensor may detect the target object when the target object enters the first area, and the first sensor may not detect the target object when the target object is outside the first area.
TOF representation, as shown in FIG. 2BFirst sensor of notebook computer, using O 1 Denotes, camera denotes a second sensor of the notebook computer, with O 2 Representation of angle aO 1 The area limited in b represents the detection area of TOF, and the angle cO 2 The area defined within d represents the recognition region of Camera.
In operation S220, it is determined whether a preset event occurs in response to the first sensor detecting that the target object enters the first area.
Specifically, once it is detected by the first sensor that the target object enters the first area, it is further determined whether a preset event occurs. Wherein if it is determined that the preset event has occurred, jumping to operation S230; if the preset event is determined not to have occurred, whether the preset event has occurred continues to be detected.
It should be noted that, in the embodiment of the present disclosure, whether the preset event occurs may be determined in various ways. For example, whether a preset event occurs may be determined by means of the manner 1 or the manner 2 described below.
In the mode 1, whether the current time is a preset time is determined, wherein the preset time is a time after a preset time is delayed from the time when the target object enters the first area.
Specifically, assume that the time when the target object enters the first area is T 1 If the preset delay time (i.e. the preset time) is T, then the preset time in the mode 1 is T 2 =T 1 +t。
Based on the method 1, after the target object enters the first area, the time of the target object entering the first area can be recorded, and the formula T is utilized 2 =T 1 + T calculating to obtain preset time T 2 Then, whether the current time reaches the preset time T or not is detected 2 . Wherein if it is detected that the current time has reached the preset time T 2 Otherwise, the operation jumps to operation S230, and otherwise, the current time is continuously detected whether the current time reaches the preset time T 2 Until the current moment is detected to reach the preset moment T 2 Until now.
The preset duration can roughly represent the target object from T 1 The time required for the position at which the time is located to move to the second area,therefore, by means of the method 1, the time when the target object enters the identification area of the second sensor can be estimated, and the second sensor can be woken up at the time to identify the target object, so that the user can complete object identification at the moment when the object identification module is woken up.
Mode 2, it is determined whether the first sensor detects that the target object enters a second area, where the second area is an area where the second sensor can recognize the target object.
Specifically, in mode 2, the first sensor may determine whether the target object has entered the second area from the first area by tracking the trajectory of the target object after detecting that the target object has entered the first area. Wherein the second area may be, for example, an object recognition area of the second sensor. Wherein if it is determined that the target object has entered the second area from the first area, jumping to operation S230, otherwise, continuing to track the trajectory of the target object until it is determined that the target object has entered the second area from the first area.
In operation S230, a wake-up instruction is transmitted to the second sensor in response to the occurrence of the preset event, thereby waking up the second sensor to identify the target object.
Unlike the related art in which the second sensor starts to be woken up for object recognition once the target object enters the detection area of the first sensor, in the embodiment of the present disclosure, the second sensor is not woken up immediately for object recognition when the target object enters the detection area of the first sensor, but is woken up again for object recognition when it is determined or estimated that the target object has entered the recognition area of the second sensor, thereby enabling the user to complete object recognition at the moment when the object recognition module is woken up.
The method of FIG. 2A is further described with reference to FIG. 3 in conjunction with specific embodiments.
As an alternative embodiment, determining whether the first sensor detects the target object entering the first area in operation S210 may include, for example: it is determined whether the first sensor detects the target object entering the first area from a side near the first sensor.
As shown in fig. 2B, set at coordinate point O for TOF 1 Where Camera is set at coordinate point O 2 If the target object enters the detection zone of the TOF from the left side of the figure, the target object is considered to have entered the first area from the side close to the first sensor; if the target object enters the detection region of the TOF from the right side of the graph, the target object is considered to have entered the first region from the side near the second sensor.
Specifically, when determining whether the target object enters the first area from the side close to the first sensor or the side close to the second sensor, the coordinate point O at which the target object enters the first area may be determined first by TOF ranging 3 Then calculating the coordinate point O by the distance formula 1 And the coordinate point O 3 Distance L between 1 And a coordinate point O 2 And the coordinate point O 3 A distance L therebetween 2 And finally comparing L 1 Whether or not less than L 2 . If L is 1 Less than L 2 The target object is considered to have entered the first area from the side close to the first sensor, otherwise if L is 1 Greater than L 2 The target object is considered to have entered the first area from the side close to the second sensor.
Alternatively, the coordinate point O at which the target object is located when entering the first area is determined by TOF ranging 3 Afterwards, the coordinate point O can also be compared 1 And O 3 Abscissa and coordinate point O of 2 And O 3 Determines whether the target object enters the first area from the side near the first sensor or from the side near the second sensor. Wherein, if X is 1 -X 3 Less than X 2 -X 3 The target object is considered to have entered the first area from the side close to the first sensor, otherwise if X is 2 -X 3 Less than X 1 -X 3 Then the target object is considered to enter the first area from the side close to the second sensor, where X 1 Represents a coordinate point O 1 Abscissa of (2), X 2 Represents a coordinate point O 2 Abscissa of (2), X 3 Represents a coordinate point O 3 The abscissa of (a).
It should be noted that the above method for determining whether the target object enters the first area from the side close to the first sensor or the side close to the second sensor is applicable to both the electronic device used in the shell mode (i.e. the normal use mode of the laptop computer) and the electronic device used in the tent mode, and will not be illustrated here.
Due to practical use, the target object may approach the electronic device from one side of the electronic device (e.g., the side near the first sensor) and may approach the electronic device from the other side of the electronic device (e.g., the side near the second sensor).
As shown in fig. 2B, since it takes a certain time to move from the first area to the second area when the target object approaches the electronic device from the side close to the first sensor, the target object may first enter the first area, and in order to avoid that the user feels that the object recognition speed of the electronic device is slow, in this case, the second sensor may not be woken up first after the first sensor detects the target object, but may be woken up after a predetermined time is delayed.
When the electronic device is close to the electronic device from the side close to the second sensor, the target object enters the first area and enters the second area at the same time, that is, no time is consumed when the target object moves from the first area to the second area.
That is, as an optional embodiment, the method may further include, for example: and immediately sending a wake-up instruction to the second sensor in response to the first sensor detecting that the target object enters the first area from the side close to the second sensor.
Through the embodiment of the disclosure, when the target object enters the first area from the side close to the second sensor, it indicates that the target object has entered the second area, and at this time, if the target object enters the first area from the side close to the first sensor, delaying and then waking up the second sensor may make the user feel that the object recognition speed of the electronic device is relatively slow, so in order to avoid such a situation, the second sensor may be directly woken up for object recognition without delaying.
As an alternative embodiment, the method may further include, for example: and determining a preset time length. Wherein determining the preset duration may for example comprise the following operations.
A distance between the target object and the electronic device is determined.
And determining the preset time length according to the determined distance.
Specifically, for convenience of calculation, the distance of the target object to the straight line on which the first sensor and the second sensor are located may be taken as the distance of the target object to the electronic device.
Because the distances are different, the time consumed by the user from entering the detection area of the first sensor to entering the identification area of the second sensor to the position just facing the second sensor is also different, so that different delay preset times can be set according to different distances through the embodiment of the disclosure, and the user can be ensured to wake up the second sensor for object identification when reaching the position just facing the second sensor in the identification area as far as possible.
As an alternative embodiment, determining the preset time period according to the determined distance may include, for example, the following operations.
And taking the first time length as a preset time length in response to the fact that the determined distance is larger than a first threshold and smaller than or equal to a second threshold.
And in response to the determined distance being less than or equal to the first threshold, setting a second duration shorter than the first duration as a preset duration.
And in response to the determined distance being greater than the second threshold and less than or equal to a third threshold, taking a third duration that is longer than the second duration as the preset duration.
Fig. 3 schematically shows a diagram relating distance and delay time according to an embodiment of the present disclosure.
As shown in FIG. 3, O 1 Representing a first sensor (e.g. TOF), O 2 Representing a second sensor (e.g., camera),. Alpha.aO 1 b is a representation of the area defined withinThe detection zone (i.e., the first zone) of the first sensor, < cO 2 The area defined within d represents the identification area of the second sensor (i.e., the second area), and 1 represents O 1 And O 2 On a straight line, the straight line e and the straight line l are perpendicular to the point O 1 The straight line f is perpendicular to the straight line l at the point O 2 Line j is perpendicular to line l 1 、l 2 、l 3 Are all perpendicular to the line j. Wherein l 1 、l 2 、l 3 The distances to the line l are 400mm, 600mm, 800mm, respectively. Wherein, from A 1 The delay preset time to A2 may be set to t 1 From A 3 To A 4 The delay preset time of may be set to t 2 From A 5 To A 6 The delay preset time of may be set to t 3 . In particular, t 1 、t 2 And t 3 Can be estimated based on the average moving speed of most users, and t 1 <t 2 <t 3
For example, t may be set when the distance from the target object to the electronic device is 400mm or less 1 As a delay preset time; when the distance from the target object to the electronic device is greater than 400mm and less than or equal to 600mm, t can be adjusted 2 As a delay preset time; when the distance from the target object to the electronic equipment is more than 600mm and less than or equal to 800mm, t can be adjusted 3 As a delay preset time, etc.
It should be noted that the method for determining the preset duration according to the determined distance is applicable to electronic devices used in a shell mode (i.e., a normal use mode of a laptop computer) and a tent mode, and is not illustrated here.
Fig. 4 schematically shows a block diagram of a wake-up unit according to an embodiment of the present disclosure.
As shown in fig. 4, the wake-up apparatus 400 is applied to an electronic device (not shown) having a first sensor and a second sensor. The wake-up apparatus 400 includes a first determination module 410, a second determination module 420, and a wake-up module 430. The wake-up unit 400 may perform the method described above with reference to fig. 2 for the purpose of waking up the second sensor of the electronic device and performing object recognition.
Specifically, the first determining module 410 is configured to determine whether the first sensor detects that the target object enters the first area.
The second determining module 420 is configured to determine whether a preset event occurs in response to the first sensor detecting that the target object enters the first area.
And the wake-up module 430 is configured to send a wake-up instruction to the second sensor in response to the occurrence of the preset event, so as to wake up the second sensor to identify the target object.
Unlike the related art in which the second sensor is awakened to perform the object recognition once the target object enters the detection area of the first sensor, in the embodiment of the present disclosure, the second sensor is not immediately awakened to perform the object recognition when the target object enters the detection area of the first sensor, but is awakened to perform the object recognition on the target object when it is determined or estimated that the target object has entered the recognition area of the second sensor, so that the user can complete the object recognition at the moment when the object recognition module is awakened.
As an alternative embodiment, the first determining module is further configured to perform operation 1 or operation 2.
And operation 1, determining whether the current time is a preset time, wherein the preset time is a time after a preset time delay from the time when the target object enters the first area.
In operation 2, it is determined whether the first sensor detects that the target object enters a second area, wherein the second area is an area where the second sensor can recognize the target object.
Operation 1 corresponds to the same or similar manner 1, and operation 2 corresponds to the same or similar manner 2, which is not described herein again.
It should be noted that, the embodiments of the apparatus part and the embodiments of the method part, whether the technical problems to be solved, the technical means to be used, and the technical effects to be achieved are the same or similar, and are not described herein again.
Any of the modules according to embodiments of the present disclosure, or at least part of the functionality of any of them, may be implemented in one module. Any one or more of the modules according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules according to the embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging the circuit, or in any one of three implementations, or in any suitable combination of any of the software, hardware, and firmware. Alternatively, one or more of the modules according to embodiments of the disclosure may be implemented at least partly as computer program modules which, when executed, may perform corresponding functions.
For example, any plurality of the first determining module 410, the second determining module 420, and the waking module 430 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first determining module 410, the second determining module 420, and the waking module 430 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one of the first determining module 410, the second determining module 420 and the wake-up module 430 may be at least partially implemented as a computer program module, which when executed may perform a corresponding function.
Fig. 5 schematically shows a block diagram of an electronic device according to another embodiment of the present disclosure. The computer system illustrated in FIG. 5 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 5, the electronic device 500 includes a processor 510, a computer-readable storage medium 520, a first sensor 530, and a second sensor 540. The electronic device 500 may perform a method according to an embodiment of the present disclosure.
In particular, processor 510 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 510 may also include on-board memory for caching purposes. Processor 510 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage media 520, for example, may be non-volatile computer-readable storage media, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 520 may include a computer program 521, which computer program 521 may include code/computer-executable instructions that, when executed by the processor 510, cause the processor 510 to perform a method according to an embodiment of the disclosure, or any variation thereof.
The computer program 521 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 521 may include one or more program modules, including for example 521A, modules 521B, \8230. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, and when these program modules are executed by the processor 510, the processor 510 may execute the method according to the embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present disclosure, processor 510 may interact with first sensor 530 and second sensor 540 to perform a method according to an embodiment of the present disclosure, or any variation thereof.
According to an embodiment of the present disclosure, at least one of the first determining module 410, the second determining module 420 and the waking module 430 may be implemented as computer program modules described with reference to fig. 5, which, when executed by the processor 510, may implement the respective operations described above.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement a method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (9)

1. A wake-up method applied to an electronic device, wherein the electronic device is provided with a first sensor and a second sensor, and the method comprises the following steps:
determining whether the first sensor detects that a target object enters a first area;
wherein the determining whether the first sensor detects that the target object enters the first area comprises:
determining whether the first sensor detects the target object entering the first area from a side proximate to the first sensor;
in response to the first sensor detecting that the target object enters the first area, determining whether a preset event occurs, including:
determining whether the first sensor detects that the target object enters a second area, wherein the second area is an area where the second sensor can recognize the target object; and
and responding to the occurring preset event, and sending a wake-up instruction to the second sensor so as to wake up the second sensor to identify the target object.
2. The method of claim 1, wherein the determining whether a preset event has occurred further comprises:
and determining whether the current time is a preset time, wherein the preset time is a time delayed for a preset time from the time when the target object enters the first area.
3. The method of claim 1, further comprising:
immediately sending the wake-up instruction to the second sensor in response to the first sensor detecting that the target object enters the first area from a side close to the second sensor.
4. The method of claim 2, further comprising:
determining the preset time length;
the determining the preset duration includes:
determining a distance between the target object and the electronic device; and
and determining the preset duration according to the determined distance.
5. The method of claim 4, wherein the determining the preset duration in accordance with the determined distance comprises:
taking the first time length as the preset time length in response to the fact that the determined distance is larger than a first threshold and smaller than or equal to a second threshold;
in response to the determined distance being less than or equal to the first threshold, taking a second duration that is shorter than the first duration as the preset duration;
and in response to the determined distance being greater than the second threshold and less than or equal to a third threshold, taking a third duration that is longer than the second duration as the preset duration.
6. A wake-up device applied to an electronic device, wherein the electronic device is provided with a first sensor and a second sensor, the wake-up device comprises:
a first determination module for determining whether the first sensor detects that the target object enters a first area;
wherein the determining whether the first sensor detects that the target object enters the first area comprises:
determining whether the first sensor detects the target object entering the first area from a side proximate to the first sensor;
a second determining module, configured to determine whether a preset event occurs in response to the first sensor detecting that the target object enters the first area, including:
determining whether the first sensor detects that the target object enters a second area, wherein the second area is an area which can be identified by the target object by the second sensor;
and the awakening module is used for responding to the preset event and sending an awakening instruction to the second sensor so as to awaken the second sensor to identify the target object.
7. The apparatus of claim 6, wherein the first determining means is further configured to:
and determining whether the current time is a preset time, wherein the preset time is a time delayed for a preset time from the time when the target object enters the first area.
8. An electronic device, comprising:
a first sensor;
a second sensor;
one or more processors; and
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5.
9. A computer-readable storage medium storing computer-executable instructions for implementing the method of any one of claims 1 to 5 when executed.
CN201911352077.4A 2019-12-24 2019-12-24 Wake-up method and apparatus, electronic device, and medium Active CN111158766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911352077.4A CN111158766B (en) 2019-12-24 2019-12-24 Wake-up method and apparatus, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911352077.4A CN111158766B (en) 2019-12-24 2019-12-24 Wake-up method and apparatus, electronic device, and medium

Publications (2)

Publication Number Publication Date
CN111158766A CN111158766A (en) 2020-05-15
CN111158766B true CN111158766B (en) 2022-10-21

Family

ID=70558019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911352077.4A Active CN111158766B (en) 2019-12-24 2019-12-24 Wake-up method and apparatus, electronic device, and medium

Country Status (1)

Country Link
CN (1) CN111158766B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112147933B (en) * 2020-09-25 2023-05-23 联想(北京)有限公司 Sensor control method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8472973B2 (en) * 2010-04-23 2013-06-25 Microsoft Corporation Adaptive energy-efficient location determination
CN103179648B (en) * 2013-03-11 2015-04-15 浙江大学 Low-power-consumption personnel zone location method based on multi-sensor coordination
CN108171045A (en) * 2018-01-15 2018-06-15 联想(北京)有限公司 Electronic equipment and its control method
CN109634429B (en) * 2018-12-29 2021-04-13 联想(北京)有限公司 Electronic equipment and information acquisition method
CN109976819A (en) * 2019-04-01 2019-07-05 百度在线网络技术(北京)有限公司 Equipment awakening method, device and storage medium

Also Published As

Publication number Publication date
CN111158766A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN106648576B (en) Method for realizing quick application starting and mobile terminal
EP3156876B1 (en) Low power detection apparatus and method
US10628346B2 (en) Adaptive buffering of data received from a sensor
US9348454B2 (en) Electronic device with touch screen and method and system for protecting same
KR102357965B1 (en) Method of recognizing object and apparatus thereof
KR20210137506A (en) How to upgrade an autonomous driving system, autonomous driving system and in-vehicle device
WO2015131675A1 (en) Compensation method for broken slide paths, electronic device and computer storage medium
US20200189569A1 (en) Driver verified self parking
CN111158766B (en) Wake-up method and apparatus, electronic device, and medium
CN110304051B (en) Automatic parking recommendation method, electronic device and automobile
CN107222641A (en) A kind of mobile terminal unlocking method and mobile terminal
US9367145B2 (en) Intelligent display image orientation based on relative motion detection
JP2016197310A (en) Vehicle image recorder and recording method of vehicle peripheral image
CN110164443B (en) Voice processing method and device for electronic equipment and electronic equipment
US9522657B2 (en) Apparatus and method for controlling electronic parking brake
US20220084379A1 (en) Video pre-recording method, video camera and electronic device
CN109002216B (en) Touch screen repairing method and device and electronic equipment
US8717856B2 (en) Electronic device and method for providing and disarming alarm clock
US10949513B2 (en) Wearable devices and associated security apparatus
US20110285619A1 (en) Method for identifying a sequence of input signals
CN110399043B (en) Data processing method, device and system
CN107526512B (en) Switching method and system for electronic equipment
US9965183B2 (en) Method for processing data in storage device and storage device
US20210200627A1 (en) Integrity check device for safety sensitive data and electronic device including the same
KR102485560B1 (en) Method and apparatus for generating video using radar module

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