CN112114661B - Method and device for distinguishing objects - Google Patents

Method and device for distinguishing objects Download PDF

Info

Publication number
CN112114661B
CN112114661B CN202010768319.4A CN202010768319A CN112114661B CN 112114661 B CN112114661 B CN 112114661B CN 202010768319 A CN202010768319 A CN 202010768319A CN 112114661 B CN112114661 B CN 112114661B
Authority
CN
China
Prior art keywords
distance
state
amplitude
distance change
terminal
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
CN202010768319.4A
Other languages
Chinese (zh)
Other versions
CN112114661A (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 CN202010768319.4A priority Critical patent/CN112114661B/en
Publication of CN112114661A publication Critical patent/CN112114661A/en
Application granted granted Critical
Publication of CN112114661B publication Critical patent/CN112114661B/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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/02Systems using reflection of radio waves, e.g. primary radar systems; Analogous systems
    • G01S13/06Systems determining position data of a target
    • G01S13/08Systems for measuring distance only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and a device for distinguishing objects, wherein the method comprises the following steps: acquiring first distance change information and second distance change information of an object; the first distance change information is distance change information between the object and the terminal in a first period, and the second distance change information is distance change information between the object and the terminal in a second period; respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information; and determining the object as a specific object when the first distance variation amplitude meets a first specific condition and the second distance variation amplitude meets a second specific condition.

Description

Method and device for distinguishing objects
Technical Field
The present application relates to computer technology, and relates to, but is not limited to, a method and apparatus for distinguishing objects.
Background
Since the user can still monitor the respiratory vibration amplitude even when the user is stationary, when the user interacts with the terminal (such as a computer, etc.), the terminal can detect the respiratory vibration amplitude of the user through the ranging sensor (such as a laser sensor, etc.) installed on the terminal to distinguish people from objects.
However, if the user opens the computer to watch the movie very much, the amplitude of the respiratory shock becomes small, so that the amplitude of the respiratory shock is similar to the interference of the environment, and the user is identified as a static object by the terminal, that is, the terminal mistakenly thinks that the user has left, the movie playing is suspended, or the computer is switched to a screen locking state, which affects the user experience.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, a device, and a storage medium for distinguishing objects.
In a first aspect, an embodiment of the present application provides a method for distinguishing objects, where the method includes: acquiring first distance change information and second distance change information of an object; the first distance change information is distance change information between the object and the terminal in a first period, and the second distance change information is distance change information between the object and the terminal in a second period; respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information; and determining the object as a specific object when the first distance variation amplitude meets a first specific condition and the second distance variation amplitude meets a second specific condition.
In a second aspect, an embodiment of the present application provides an apparatus for distinguishing objects, including: the acquisition module is used for acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period; the first determining module is used for respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information; and the second determining module is used for determining the object as a specific object under the condition that the first distance variation amplitude meets a first specific condition and the second distance variation amplitude meets a second specific condition.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor executes the computer program to implement the steps in any method for distinguishing objects according to the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in any one of the methods for distinguishing objects of the embodiments of the present application.
In the embodiment of the application, the distance change amplitudes corresponding to the two time intervals are determined according to the acquired distance change information of the object in the two continuous time intervals, and the object is determined to be a specific object (such as a person) under the condition that the two distance change amplitudes meet specific conditions respectively, so that the person and the object can be distinguished from the object more accurately and conveniently.
Drawings
Fig. 1 is a schematic flowchart of a method for distinguishing objects according to an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating distance change information of an object according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating distance change information of another object according to an embodiment of the present application;
FIG. 4a is a diagram illustrating distance change information of another object according to an embodiment of the present application;
FIG. 4b is a diagram illustrating distance change information of another object according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another method for distinguishing objects according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating a structure of an apparatus for distinguishing objects according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware entity of a computer device according to an embodiment of the present application.
Detailed Description
The technical solution of the present application is further elaborated below with reference to the drawings and the embodiments.
Fig. 1 is a schematic implementation flow diagram of a method for distinguishing objects according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step 102: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
the object can be things appearing in the terminal monitoring range, the object can be a person, an animal or objects such as a table, a chair, a cup and the like; the terminal can be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital telephone, a video telephone, a television, a sensing device and the like; the distance change information can be used for representing the change situation of the distance between the object and the terminal along with the time; the distance between the object and the terminal can be detected in real time by a distance sensor (for example, a distance measuring instrument such as a laser distance measuring instrument, an ultrasonic distance measuring instrument and a radar distance measuring instrument) installed on the terminal, and the distance change information of the object is generated according to the distance and a timestamp for detecting the distance.
Fig. 2 is a schematic diagram of distance change information of an object, and referring to fig. 2, the units of the time period may be minutes (min), seconds(s), milliseconds (ms), and the like; the first period may be a (T1, T2) period from a time T1 to a time T2, correspondingly, the second period may be a (T2, T3) period from a time T2 to a time T3, the first distance change information may be information generated as a time change in the distance between the object and the terminal within the (T1, T2) period, the second distance change information may be information generated as a time change in the distance between the object and the terminal within the (T2, T3) period, similarly, the first period may be a (T3, T4) period from a time T3 to a time T4, correspondingly, the second period may be a (T4, T5) period from a time T4 to a time T5, the first distance change information may be information generated as a time change in the distance between the object and the terminal within the (T3, T4) period, the second distance change information may be information generated as a time change in the distance between the (T4, the T5 and the terminal, the first period may be a period from time T1 to time T4 (T1, T4), and the second period may be a period from time T4 to time T10 (T4, T10), or the like.
Step 104: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
Wherein the distance variation amplitude is a moving distance of the object as a whole in a unit time, or an amplitude of a portion of the object swinging in the unit time; the unit time may be a time interval t preset on the terminal for determining the range of the distance change, where t may be 1ms, 5ms, 2s, and the like; the distance variation amplitude may be in units of centimeters (cm), millimeters (mm), and the like.
Assuming that the distance variation range is the moving distance of the object as a whole in a unit time, the distance between the object and the terminal in the unit time is shortest at S1, and the distance between the object and the terminal is longest at S2, the moving distance of the object in the unit time is the difference between S2 and S1; referring to fig. 2, a time interval between any two numbered consecutive times from time T1 to time T13 may be T, for example, a time interval between time T1 and time T2 is T, and a time interval between time T12 and time T13 is T; the range of the distance change in the (T1, T2) period may be a, which may be 10cm, 12cm, 15cm, etc., and the range of the distance change in the (T5, T6) period may be c, which may be 3mm, 2mm, 1mm, etc.
Step 106: and determining the object as a specific object when the first distance variation amplitude meets a first specific condition and the second distance variation amplitude meets a second specific condition.
The first specific condition may be that a first distance variation amplitude and a specific certain amplitude threshold satisfy a specific magnitude relationship, for example, the first distance variation amplitude is greater than a certain amplitude, and similarly, the second specific condition may be that a second distance variation data and a specific another amplitude threshold satisfy a specific magnitude relationship, for example, the second distance variation amplitude is smaller than a certain amplitude; the particular object may be a person.
It should be noted that, when a person watches a movie with great investment by using a terminal, there is a small distance variation range, and the distance variation range of an article is also small in general, so that the person and the article may not be distinguished by analyzing the distance variation range of a certain period, because the person is moving in general and the article is still in general, the distance variation range of the person is small in time and large in variation, for example, when the person approaches the terminal, there is a considerable distance variation range due to an approaching and sitting motion, when the person opens an application program on the terminal, adjusts a hinge of a rotating shaft of the terminal (such as a notebook computer) and the like, there is a large distance variation range, when the person leaves the terminal, there is a rising and leaving motion, there is also a considerable distance variation range, therefore, by analyzing the different distance variation ranges in two consecutive periods, it is determined whether the object detected by the terminal is a person or an article.
In the embodiment of the application, the distance change amplitudes corresponding to the two time periods are determined according to the acquired distance change information of the object in the two continuous time periods, and the object is determined to be a specific object (such as a person) under the condition that the two distance change amplitudes meet specific conditions, so that the person and the object can be distinguished from the object more accurately and conveniently. In the implementation process, the distance sensor can be used for detecting the distance change amplitude between the object and the terminal to distinguish the person from the object, and an image recognition mode is not used for recognizing the person and the object, so that the privacy of the person is guaranteed.
An embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 202 to 206:
step 202: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
Step 204: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 206: and determining the object as the specific object under the condition that the first distance change amplitude is larger than the first amplitude and the second distance change amplitude is smaller than the second amplitude.
Wherein the first amplitude may be 12cm, 13cm, 14cm, etc., and the second amplitude may be 3mm, 2mm, 1.5mm, etc.; the specific object may be a person.
The terminal is assumed to be a computer, when a person is far away from the computer, the person can have a larger first distance change range due to the rising and leaving action, and after the person leaves, the distance sensor of the terminal can detect a smaller second distance change range of a relatively static table and chair placed in front of the terminal, so that the object detected by the terminal can be determined to be far away from the terminal and be a movable person according to the larger first distance change range of the first time period and the smaller second distance change range of the second time period, and the object detected by the terminal can be more accurately determined to be the person.
Referring to fig. 2, assuming that the specific object is a person, the first amplitude is 12cm, the second amplitude is 3mm, a is 15cm, and c is 1mm, in the case where the first period is a (T1, T2] period, and the second period is a (T2, T3) period, since the first distance variation amplitude corresponding to the first period and the second distance variation amplitude corresponding to the second period are both 15cm, that is, both the first distance variation amplitude and the second distance variation amplitude are greater than the first amplitude, the object cannot be determined as a person at time T3.
In the case where the first period is the (T3, T4) period and the second period is the (T4, T5) period, since the first distance variation range corresponding to the first period is 15cm, that is, the first distance variation range is greater than the first range, and the second distance variation range corresponding to the second period is 1mm, that is, the second distance variation range is less than the second range, the object may be determined to be a person at time T5.
In the embodiment of the application, in the case that the distance variation amplitude of the previous time interval is larger and the distance variation amplitude of the next time interval is smaller in the two consecutive time intervals, the object is determined as the specific object (such as a person), so that the person and the object can be distinguished from the object more accurately and conveniently.
An embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 302 to 306:
step 302: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
step 304: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 306: determining the object as a specific object if the first magnitude of distance change is less than the second magnitude and the second magnitude of distance change is greater than the first magnitude.
Wherein the particular object may be a person; assuming that the terminal is a computer, when a person approaches the computer, the person has a second distance variation range which is relatively large due to an approaching and sitting action, and before the person arrives, the distance sensor of the terminal detects a first distance variation range which is relatively static and is set in front of the terminal, so that the object detected by the terminal is determined to approach the terminal and be a movable person according to the first distance variation range which is relatively small in the first time period and the second distance variation range which is relatively large in the second time period, and the object detected by the terminal can be more accurately determined to be the person.
Fig. 3 is a schematic diagram of distance change information of another object according to an embodiment of the present application, and referring to fig. 3, assuming that the specific object is a person, the first amplitude is 12cm, the second amplitude is 3mm, a is 15cm, and c is 1mm, and in a case where the first period is a (T1, T2) period and the second period is a (T2, T3) period, since the first distance change amplitude corresponding to the first period and the second distance change amplitude corresponding to the second period are both 1mm, that is, both the first distance change amplitude and the second distance change amplitude are smaller than the second amplitude, the object cannot be determined as a person at time T3.
In the case where the first period is the (T1, T9) period and the second period is the (T9, T10) period, since the first distance variation range corresponding to the first period is 1mm, that is, the first distance variation range is smaller than the second range, and the second distance variation range corresponding to the second period is 15cm, that is, the second distance variation range is larger than the second range, the object may be determined as a person at time T10.
In the embodiment of the application, in the case that the distance variation amplitude of the previous time interval is smaller and the distance variation amplitude of the next time interval is larger in the two consecutive time intervals, the object is determined as the specific object (such as a person), so that the person and the object can be distinguished from the object more accurately and conveniently.
An embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 402 to 408:
step 402: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
Step 404: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 406: determining the object as a specific object if the first distance variation amplitude satisfies a first specific condition and the second distance variation amplitude satisfies a second specific condition;
step 408: and under the condition that the first distance change amplitude and the second distance change amplitude meet a specific relation, switching the terminal from a current first state to a second state.
Wherein the specific relationship may be a magnitude relationship between a difference between the first distance change magnitude and the second distance change magnitude and a specific magnitude threshold, such as the difference being greater than a specific magnitude threshold, and/or a magnitude relationship between the first distance change magnitude and the second distance change magnitude, such as the first distance change magnitude being greater than the second distance change magnitude; the first state and the second state can be two completely different authority states, running states and the like of the terminal, when the first state is a screen locking state of the terminal, the second state can be an unlocking state of the terminal, and when the first state is a foreground running state of the terminal, the second state can be a background running state of the terminal.
If the determined object is a person, the relationship between the distance variation ranges of two continuous time periods is different when the person is far away from the terminal and when the person is close to the terminal, so that whether the person is far away from the terminal or close to the terminal can be judged according to the relationship between the distance variation ranges of the two continuous time periods, and how to realize switching between the first state and the second state of the terminal is determined according to a judgment result, so that the purposes of protecting user information, saving terminal energy, improving user experience and the like can be achieved by switching the state of the terminal.
In the embodiment of the application, whether the object is a specific object (such as a person) is judged according to the relation between the distance change amplitudes corresponding to two continuous time periods, so that the person and the object can be distinguished from the object more accurately and conveniently.
An embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 502 to 508:
step 502: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
Step 504: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 506: determining the object as a specific object if the first distance variation amplitude satisfies a first specific condition and the second distance variation amplitude satisfies a second specific condition;
step 508: and the terminal is switched from the current first state to the second state by decreasing the first distance change amplitude and the second distance change amplitude, wherein the difference between the first distance change amplitude and the second distance change amplitude meets a first distance condition.
Wherein the first distance condition may be that a difference between the first distance variation amplitude and the second distance variation amplitude is greater than a specific first amplitude threshold, and the first amplitude threshold may be 10cm, 11cm, or the like.
The first state comprises a foreground running state, a playing state and a current window state of the application program, and correspondingly, the second state comprises a background running state, a pause state and a minimum state of the application program.
Referring to fig. 2, assuming that the object is a person, since the person gets up and moves away when leaving the terminal, the distance sensor installed on the terminal detects a relatively large distance variation amplitude at this time, and when the user leaves the terminal, the distance sensor installed on the terminal detects a very small distance variation amplitude because the distance sensor detects a chair or a wall surface or detects nothing; therefore, whether to switch the state of the terminal can be determined according to whether the distance change amplitude of the person decreases and the difference value in two continuous time periods.
In the embodiment of the application, whether a person is far away from the terminal is determined according to the magnitude relation between the distance variation amplitudes of the person in two continuous time periods, and the state of the terminal is switched when the person is determined to be far away from the terminal, so that the purposes of energy conservation and information safety can be achieved.
An embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 602 to 614:
step 602: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
Step 604: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 606: determining the object as a specific object if the first distance variation amplitude satisfies a first specific condition and the second distance variation amplitude satisfies a second specific condition;
step 608: acquiring third distance change information of the object; the third distance change information is distance change information between the object and the terminal within a third period of time, the third period of time being continuous with the first period of time or the second period of time;
wherein the third time period may be before and temporally continuous with the first time period, and the third time period may be after and temporally continuous with the second time period.
Step 610: determining a third distance variation amplitude, wherein the third distance variation amplitude is determined according to the third distance variation information, and the third distance variation amplitude is determined in the third time interval by the object;
In this case, assuming that the third time period is subsequent to and temporally continuous with the second time period, fig. 4a is a schematic diagram of distance change information of an object according to an embodiment of the present application, referring to fig. 4a, the first time period may be a (T1, T4) time period, correspondingly, the second time period may be a (T4, T5) time period, the third time period may be a (T6, T10) time period, a may be a first distance change amplitude corresponding to the first time period, a may be 12cm, b may be 3cm, c may be 1mm, and a second distance change amplitude corresponding to the second time period may be b, b may be 3cm, and a third distance change amplitude corresponding to the third time period may be c.
Step 612: and switching the terminal from the current first state to the second state under the condition that the first, second and third distance change amplitudes are decreased progressively according to the time sequence and the difference value between the distance change amplitudes corresponding to two sections adjacent in time meets a second distance condition.
The second distance condition may be that a difference between the first distance variation amplitude and the second distance variation amplitude is not less than a second amplitude threshold, a difference between the second distance variation amplitude and a third distance variation amplitude is not less than a third amplitude threshold, and a duration corresponding to the second time period is not greater than a time threshold; the second amplitude threshold may be 9cm, the third amplitude threshold may be 2cm, and the time threshold may be 1 ms; assuming that the first distance variation amplitude, the second distance variation amplitude and the third distance variation amplitude are respectively 12cm, 3cm and 1mm, and the duration corresponding to the second time period is 1ms, since the first distance variation amplitude, the second distance variation amplitude and the third distance variation amplitude are decreased progressively, and the difference between the first distance variation amplitude and the second distance variation amplitude is 9cm and is not less than the second amplitude threshold value, the difference between the second distance variation amplitude and the third distance variation amplitude is 2.9cm and is not less than the third amplitude threshold value, and the duration corresponding to the second time period is not more than 1ms, the terminal is switched from the first state to the second state.
The first state comprises a foreground running state, a playing state and a current window state of the application program, and correspondingly, the second state comprises a background running state, a pause state and a minimized state of the application program.
In steps 602 to 612 of the embodiment of the present application, when a person is far away from a terminal, not only a change from a relatively large distance variation range to a relatively small distance variation range may occur, but also a relatively large distance variation range may occur briefly between the two, and whether the person is far away from the terminal is determined according to a magnitude relationship between distance variation ranges of the person in three consecutive time periods, so that a problem of inaccurate determination caused by determining whether the person is far away from the terminal only according to a relationship between distance variation ranges of the person in two time periods can be avoided, and whether the person is far away from the terminal can be determined more accurately, and when it is determined that the person is far away from the terminal, a state of the terminal is switched in time, so that safety of user information is ensured, and energy loss is reduced.
Step 614: and keeping the state of the terminal under the conditions that the first, second and third distance change amplitudes are decreased progressively according to the time sequence and the difference value between the distance change amplitudes corresponding to two sections adjacent in time meets a fourth distance condition.
Fig. 4b is a schematic diagram of distance change information of an object according to an embodiment of the present application, and referring to fig. 4b, the fourth distance condition may be that a difference between the first distance change amplitude and the second distance change amplitude is not less than the second amplitude threshold, a difference between the second distance change amplitude and the third distance change amplitude is not less than the third amplitude threshold, and a duration corresponding to the second time period is not less than the time threshold.
In the office working scene, the work stations of two employees (employee A and employee B) in a certain crowded office area are back to back, correspondingly, office computers used by the two employees face to face, office computer used by the employee A is computer 1, office computer used by the employee B is computer 2, the computer 1 can detect the employee A and the articles near the work stations thereof, and can also detect the employee B and the articles near the work stations thereof, and similarly, the computer 2 can also detect the work stations of the employee A, the employee B, the work stations of the employee A and the work stations of the employee B. Assuming that the employee B gets up and leaves the computer 2, the chair of the employee B is pushed to the computer 1 close to the employee a, and the computer 1 only detects a considerable distance change amplitude a of the chair of the employee B at this time, but does not detect a large distance change amplitude B due to the action of the employee a clicking the mouse of the computer 1 or rotating the hinge of the computer 1, so that the computer 1 does not mistakenly assume that the employee a has returned to the workstation to switch the computer 1 from the screen locking state to the unlocking state, and the screen locking state of the computer 1 is maintained.
In steps 602 to 610 and 614 of the present application, it is determined whether a person is far away from the terminal according to the magnitude relationship between the distance variation ranges of the persons in three consecutive time periods, so that the problem that the determination is inaccurate because whether the person is far away from the terminal is determined only according to the relationship between the distance variation ranges of the persons in two time periods can be avoided, and further whether the person is far away from the terminal can be determined more accurately.
An embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 702 to 708:
step 702: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
Step 704: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 706: determining the object as a specific object if the first distance variation amplitude satisfies a first specific condition and the second distance variation amplitude satisfies a second specific condition;
step 708: and under the condition that the first distance change amplitude and the second distance change amplitude are increased in an increasing mode, and the difference value between the first distance change amplitude and the second distance change amplitude meets a third distance condition, the terminal is switched from the current first state to the second state.
Wherein the third distance condition may be that the difference between the first distance change amplitude and the second distance change amplitude is greater than a specific fourth amplitude threshold, the fourth amplitude threshold may be 9cm, 10cm, 12cm, etc., and the fourth amplitude threshold and the first amplitude threshold may be equal; the first state comprises a background running state, a pause state and a minimization state of the application program; correspondingly, the second state comprises a foreground running state, a playing state and a current window state of the application program.
Referring to fig. 3, if the object is a person, since a person approaches and sits on the terminal when approaching the terminal, the distance sensor installed on the terminal detects a very small distance change range from the detected chair and wall surface to a very large distance change range, and thus, whether to switch the state of the terminal can be determined according to whether the distance change range of the person increases or not and the difference between the distance change ranges of the person in two consecutive time periods.
In the embodiment of the application, whether a person approaches the terminal is determined according to the magnitude relation between the distance variation amplitudes of the person in two continuous time periods, and the state of the terminal is automatically switched when the person approaches the terminal, so that the intellectualization of the terminal can be improved, the operation of a user is facilitated, and the information safety of the user is ensured.
The embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 802 to 814:
step 802: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
Step 804: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 806: determining the object as a specific object if the first distance variation amplitude satisfies a first specific condition and the second distance variation amplitude satisfies a second specific condition;
step 808: the first distance change amplitude and the second distance change amplitude are decreased progressively, and the difference value between the first distance change amplitude and the second distance change amplitude meets a first distance condition, so that the target application program is switched from a current foreground running state to a background running state;
the target application program can be an application program which is installed on the terminal and is running in the foreground; the target application may be a video playing application, a music playing application, a document processing application, and the like.
Step 810: switching the target application program from a current playing state to a pause state;
if the target application program is a video playing application program, the terminal can pause the video playing application program to the current playing progress.
Step 812: switching the window of the target application program from a current window state to a minimized state;
and if the target application program is a document processing application program, the terminal can minimize the document processing application program to the task bar.
Step 814: and switching the operating system of the terminal from the current unlocking state to the screen locking state.
If the terminal is a notebook computer, the terminal can switch the notebook computer from the unlocking state to the screen locking state.
In the embodiment of the application, whether a user is far away from a terminal is determined according to the relation between the distance change amplitudes of two time periods, and when the user is determined to be far away from the terminal, the target application program running in the foreground is switched to the background running state, and the operating system of the terminal is switched to the screen locking state, so that the safety of user information can be ensured, the energy consumption of the terminal can be reduced, the current progress of the user can be recorded and reserved, and the user can be provided with related services more efficiently when approaching the terminal again.
The embodiment of the present application further provides a method for distinguishing objects, where the method may include steps 902 to 914:
step 902: acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
step 904: respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
step 906: determining the object as a specific object if the first distance variation amplitude satisfies a first specific condition and the second distance variation amplitude satisfies a second specific condition;
Step 908: under the condition that the first distance change amplitude and the second distance change amplitude are increased in an increasing mode and the difference value between the first distance change amplitude and the second distance change amplitude meets a third distance condition, switching the target application program from a current background running state to a foreground running state;
the target application program can be an application program which is installed on the terminal and runs in a background; the target application may be a video playing application, a music playing application, a document processing application, and the like.
Step 910: switching the target application program from a current pause state to a play state;
if the target application program is a music playing application program, the terminal can restore the music playing application program from the suspended current playing progress to the playing state, and in addition, the terminal can also restore the audio playing of the music playing application program after receiving the click operation of the user on the suspension control of the music playing application program.
Step 912: switching the window of the target application program from the minimized state to the size state of the previous window;
And if the target application program is a document processing application program, the terminal can restore the document processing application program from the taskbar to the size state of the previous window.
Step 914: and switching the operating system of the terminal from the current screen locking state to an unlocking state.
In the embodiment of the application, whether the user approaches the terminal is determined according to the relation between the distance change amplitudes of the two time intervals, and when the user approaches the terminal is determined, the target application program running in the background is switched to the foreground running state, and the operating system of the terminal is switched to the unlocking state, so that the relevant service can be provided for the user more efficiently.
The existing user identification function is mainly used for distinguishing people or objects based on the micro distance motion (distance change amplitude) of the respiratory vibration amplitude of a user detected by a laser sensor, an ultrasonic sensor, a radar sensor and the like; but due to the limitation of hardware, some disturbance of the environment can be introduced to cause a static object to be detected as a person, or a person to be detected as an object; for example, when a user wakes up the computer and turns on the computer to watch a movie before coming to the computer, if the user is very invested, the breathing vibration amplitude is reduced, or the user wears the computer in winter to be thicker, the breathing micro-distance movement is very easy to be similar to the environmental interference, so that the detection deviation occurs to people or objects.
The application provides a method for distinguishing whether a user is close to a computer, a scene that the user is in a static state after using the computer (but is still in front of the computer) and a scene that the user leaves the computer;
the scenes of the user approaching and using the computer are as follows: the user approaches the computer from a distance and wakes up the computer; the sensor detects a considerable distance variation amplitude a of the user; when a user enters a system of a computer, the user can operate the computer, for example, open an app (application), adjust a hinge angle of the computer, and the like, and cannot completely stop, and at this time, the sensor detects that the user has a relatively large distance variation amplitude b for a period of time; when the user uses the computer for a period of time, the computer completely stops, and the sensor detects the distance change amplitude c of the user (the small distance motion is easily interfered by environmental conditions to generate false detection), the distance a, the distance b and the distance c decrease progressively, and the distance can be 12cm, 3cm and 3mm in sequence, namely when the user approaches and uses the computer, the distance change amplitude is not changed from the distance change amplitude a to the distance change amplitude c directly, and because some users are not easy to stop, the state of the user can be a state, or a → b → c → b state, and the like all the time; the situation a → c where a goes directly to c does not occur.
The scenes of the user leaving the computer are: when a user gets up and leaves the computer, the sensor can detect a quite large distance change amplitude a (no matter which stage the user is in a/b/c before leaving, the sensor is not influenced), when the user completely leaves, the sensor can detect that no object can be detected on a chair, a wall surface or a far place, and the distance change amplitude a directly enters the distance change amplitude c; the scenario will necessarily go through the a → c process (or b will occur for a short time, which can be determined by setting the threshold duration of the b-stage.
When the sensor detects that the user approaches and uses the computer scene, the algorithm always judges that the user does not leave the computer (even if the user enters a static state, the environmental disturbance is similar to the user's small distance movement at the moment), because the user leaves the computer, the user also has a large distance change amplitude a, and at the moment, whether the user leaves the computer scene is judged again.
The embodiment of the application provides a method for judging whether a user is in front of a computer or away from the computer, which comprises the following steps A502 to A516:
step A502: the sensor detects the distance change amplitude a;
step A504: the sensor detects whether the distance change amplitude is changed from a to c directly, if so, the step A506 is executed, and if not, the step A508 is executed;
Step A506: judging that the user leaves the computer;
step A508: the sensor detects whether the distance change amplitude is changed from a to b, and then is changed from b to c, if so, the step A510 is executed, and if not, the step A512 is executed;
step A510: the distance variation amplitude is that whether the duration of the distance b is larger than a related threshold, if not, the step A506 is executed, and if so, the step A514 is executed;
step A512: the distance variation amplitude is always a or always a to b, namely, the user is in a relatively non-static state;
step A514: the user is in a relatively static state in front of the computer;
step A516: and judging that the user is in front of the computer, and keeping the screen constantly bright or the video being played is not paused.
Based on the foregoing embodiments, the present application provides an apparatus for distinguishing objects, where the apparatus includes units and modules included in the units, and may be implemented by a processor in a computer device; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 6 is a schematic structural diagram of a device for distinguishing objects according to an embodiment of the present application, and as shown in fig. 6, the device 600 includes an obtaining module 601, a first determining module 602, and a second determining module 603, where:
An obtaining module 601, configured to obtain first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period; a first determining module 602, configured to determine a first range change amplitude and a second range change amplitude, respectively; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information; a second determining module 603, configured to determine the object as a specific object if the first distance variation amplitude satisfies a first specific condition and the second distance variation amplitude satisfies a second specific condition.
In some embodiments, the distance variation amplitude is a moving distance of the object as a whole in a unit time, or an amplitude by which a part of the object swings.
In some embodiments, the second determining module 603 includes a first determining unit, configured to determine the object as a specific object if the first magnitude of the distance change is greater than a first magnitude and the second magnitude of the distance change is less than a second magnitude;
in some embodiments, the second determining module 603 comprises a second determining unit configured to determine the object as the specific object if the first magnitude of the distance change is smaller than the second magnitude and the second magnitude of the distance change is larger than the first magnitude.
In some embodiments, the apparatus further includes a switching module, configured to switch the terminal from a current first state to a second state if a specific relationship is satisfied between the first distance variation amplitude and the second distance variation amplitude.
In some embodiments, the switching module is further configured to switch the terminal from the current first state to the second state by decreasing between the first distance variation amplitude and the second distance variation amplitude, and a difference between the first distance variation amplitude and the second distance variation amplitude satisfies a first distance condition.
In some embodiments, the obtaining module 601 is further configured to obtain third distance variation information of the object; the third distance change information is distance change information between the object and the terminal within a third period of time, the third period of time being continuous with the first period of time or the second period of time; the first determining module 602 is further configured to determine a third distance variation amplitude, where the third distance variation amplitude is the distance variation amplitude of the object in the third time period determined according to the third distance variation information; the switching module is further configured to switch the terminal from the current first state to the second state under the condition that the first, second, and third distance variation amplitudes decrease in time sequence and the difference between the distance variation amplitudes corresponding to two temporally adjacent segments meets a second distance condition.
In some embodiments, the switching module is further configured to switch the terminal from the current first state to the second state if the first distance change amplitude and the second distance change amplitude are increased in increments and a difference between the first distance change amplitude and the second distance change amplitude satisfies a third distance condition.
In some embodiments, the first state includes a foreground running state, a playing state, and a current window state of the application program, and correspondingly, the second state includes a background running state, a pause state, and a minimized state of the application program; the first state further comprises an unlocking state of the operating system, and correspondingly, the second state further comprises a screen locking state of the operating system;
the switching module is further configured to: the system is used for switching the target application program from a current foreground running state to a background running state; the system is used for switching the target application program from a current playing state to a pause state; the window of the target application program is switched from the current window state to the minimized state; and the terminal is used for switching the operating system of the terminal from the current unlocking state to the screen locking state.
In some embodiments, the first state comprises a background running state, a paused state, a minimized state of the application; correspondingly, the second state comprises a foreground running state, a playing state and a current window state of the application program; the first state further comprises a screen locking state of the operating system; correspondingly, the second state also comprises an unlocking state of the operating system,
The switching module is further configured to: the system is used for switching the target application program from a current background running state to a foreground running state; the system is used for switching the target application program from a current pause state to a play state;
the above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the method for distinguishing objects is implemented in the form of a software functional module and is sold or used as a stand-alone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or a part contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including a plurality of instructions for enabling a computer device (which may be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present application provides a computer device, fig. 7 is a schematic diagram of a hardware entity of the computer device in the embodiment of the present application, and as shown in fig. 7, the hardware entity of the computer device 700 includes: comprising a memory 701 and a processor 702, said memory 701 storing a computer program operable on the processor 702, said processor 702 implementing the steps in the method of distinguishing objects provided in the above embodiments when executing said program.
The Memory 701 is configured to store instructions and applications executable by the processor 702, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 702 and modules in the computer device 700, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
Accordingly, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps in the method for distinguishing objects provided in the above embodiments.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or a part contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including a plurality of instructions for enabling a computer device (which may be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to arrive at new method embodiments. Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict. The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method of distinguishing objects, the method comprising:
acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
Respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
determining the object as a specific object and determining that the object is far away from the terminal under the condition that the first distance variation amplitude is larger than a first amplitude and the second distance variation amplitude is smaller than a second amplitude;
alternatively, the first and second electrodes may be,
and under the condition that the first distance variation amplitude is smaller than the second amplitude and the second distance variation amplitude is larger than the first amplitude, determining the object as a specific object and determining that the object is close to the terminal.
2. The method according to claim 1, wherein the distance variation amplitude is a moving distance of the object as a whole in a unit time or an amplitude by which a part of the object swings.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
And under the condition that the first distance change amplitude and the second distance change amplitude meet a specific relation, switching the terminal from a current first state to a second state.
4. The method according to claim 3, wherein switching the terminal from the current first state to the second state in the case that a specific relationship is satisfied between the first distance change amplitude and the second distance change amplitude comprises:
and the terminal is switched from the current first state to the second state by decreasing the first distance change amplitude and the second distance change amplitude, wherein the difference between the first distance change amplitude and the second distance change amplitude meets a first distance condition.
5. The method of claim 4, further comprising:
acquiring third distance change information of the object; the third distance change information is distance change information between the object and the terminal within a third period of time, the third period of time being continuous with the first period of time or the second period of time;
determining a third distance variation amplitude, wherein the third distance variation amplitude is determined according to the third distance variation information, and the third distance variation amplitude is determined in the third time interval by the object;
And switching the terminal from the current first state to the second state under the condition that the first, second and third distance change amplitudes are decreased progressively according to the time sequence and the difference value between the distance change amplitudes corresponding to two sections adjacent in time meets a second distance condition.
6. The method according to claim 3, wherein switching the terminal from the current first state to the second state in the case that a specific relationship is satisfied between the first distance change amplitude and the second distance change amplitude comprises:
and under the condition that the first distance change amplitude and the second distance change amplitude are increased in an increasing mode, and the difference value between the first distance change amplitude and the second distance change amplitude meets a third distance condition, the terminal is switched from the current first state to the second state.
7. The method according to claim 4 or 5, wherein the first state comprises a foreground running state, a playing state and a current window state of the application program, and the second state comprises a background running state, a pause state and a minimum state of the application program correspondingly;
The first state further comprises an unlocking state of the operating system, and correspondingly, the second state further comprises a screen locking state of the operating system;
the switching the terminal from the current first state to the second state comprises one of the following steps:
switching the target application program from a current foreground running state to a background running state;
switching the target application program from a current playing state to a pause state;
switching the window of the target application program from a current window state to a minimized state;
and switching the operating system of the terminal from the current unlocking state to the screen locking state.
8. The method of claim 6, wherein the first state comprises a background running state, a suspended state, a minimized state of the application; correspondingly, the second state comprises a foreground running state, a playing state and a current window state of the application program;
the first state further comprises a screen locking state of the operating system; correspondingly, the second state also comprises an unlocking state of the operating system,
the switching the terminal from the current first state to the second state comprises one of the following steps:
switching the target application program from a current background running state to a foreground running state;
Switching the target application program from a current pause state to a play state;
switching the window of the target application program from a minimized state to a size state of a previous window;
and switching the operating system of the terminal from the current screen locking state to an unlocking state.
9. An apparatus for distinguishing objects, the apparatus comprising:
the acquisition module is used for acquiring first distance change information and second distance change information of an object; wherein the first distance change information is distance change information between the object and a terminal in a first period, the second distance change information is distance change information between the object and a terminal in a second period, and the second period is subsequent to and temporally continuous with the first period;
the first determining module is used for respectively determining a first distance change amplitude and a second distance change amplitude; the first distance variation amplitude is the distance variation amplitude of the object in the first time period determined according to the first distance variation information; the second distance variation amplitude is the distance variation amplitude of the object in the second time period determined according to the second distance variation information;
A second determining module, configured to determine that the object is a specific object and determine that the object is far away from the terminal when the first range variation amplitude is greater than the first amplitude and the second range variation amplitude is smaller than the second amplitude;
alternatively, the first and second electrodes may be,
and under the condition that the first distance variation amplitude is smaller than the second amplitude and the second distance variation amplitude is larger than the first amplitude, determining the object as a specific object and determining that the object is close to the terminal.
CN202010768319.4A 2020-08-03 2020-08-03 Method and device for distinguishing objects Active CN112114661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010768319.4A CN112114661B (en) 2020-08-03 2020-08-03 Method and device for distinguishing objects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010768319.4A CN112114661B (en) 2020-08-03 2020-08-03 Method and device for distinguishing objects

Publications (2)

Publication Number Publication Date
CN112114661A CN112114661A (en) 2020-12-22
CN112114661B true CN112114661B (en) 2022-05-31

Family

ID=73799585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010768319.4A Active CN112114661B (en) 2020-08-03 2020-08-03 Method and device for distinguishing objects

Country Status (1)

Country Link
CN (1) CN112114661B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105445812A (en) * 2015-11-12 2016-03-30 青岛海信电器股份有限公司 Human body sensor detection method and human body sensor detection device
CN107816985A (en) * 2017-10-31 2018-03-20 南京阿凡达机器人科技有限公司 Human body detection device and method
CN108919949A (en) * 2018-06-25 2018-11-30 联想(北京)有限公司 A kind of state switching method and device
CN111124135A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Control method and control device
CN111221415A (en) * 2019-12-31 2020-06-02 联想(北京)有限公司 Control method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6386410B2 (en) * 2015-03-31 2018-09-05 新明和工業株式会社 Motion detection device
DE102018123334A1 (en) * 2018-09-21 2020-03-26 Gottfried Wilhelm Leibniz Universität Hannover Method for determining a change in position of an object

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105445812A (en) * 2015-11-12 2016-03-30 青岛海信电器股份有限公司 Human body sensor detection method and human body sensor detection device
CN107816985A (en) * 2017-10-31 2018-03-20 南京阿凡达机器人科技有限公司 Human body detection device and method
CN108919949A (en) * 2018-06-25 2018-11-30 联想(北京)有限公司 A kind of state switching method and device
CN111124135A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Control method and control device
CN111221415A (en) * 2019-12-31 2020-06-02 联想(北京)有限公司 Control method and device and electronic equipment

Also Published As

Publication number Publication date
CN112114661A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
Zhang et al. Accelword: Energy efficient hotword detection through accelerometer
US9939896B2 (en) Input determination method
WO2017039140A1 (en) User terminal device and method for recognizing user's location using sensor-based behavior recognition
Qifan et al. Dolphin: Ultrasonic-based gesture recognition on smartphone platform
JP6455310B2 (en) Motion estimation device, robot, and motion estimation method
CN105488957B (en) Method for detecting fatigue driving and device
KR101749100B1 (en) System and method for integrating gesture and sound for controlling device
KR102530219B1 (en) Method and apparatus of detecting gesture recognition error
US10802142B2 (en) Using ultrasound to detect an environment of an electronic device
EP3175319A1 (en) Electronic device with static electric field sensor and related method
EP3036742A1 (en) Content-based video segmentation
KR20170091790A (en) Method for controlling alarm clock of electronic device and electronic device
KR20200006002A (en) Systems and methods for providing automatic haptic generation for video content
JP2018510537A (en) surveillance
KR20180015228A (en) Human-computer interaction through scene-space monitoring
CN107992813A (en) A kind of lip condition detection method and device
JP2022531055A (en) Interactive target drive methods, devices, devices, and recording media
CN105278809A (en) Reading reminding method and apparatus
CN112739507B (en) Interactive communication realization method, device and storage medium
CN112114661B (en) Method and device for distinguishing objects
CN105278837B (en) Read based reminding method and device
US11146672B2 (en) Method, device and storage medium for outputting communication message
US20180005024A1 (en) Monitoring
CN113497912A (en) Automatic framing through voice and video positioning
Darbar et al. Surfacesense: Smartphone can recognize where it is kept

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