CN117148313A - Data processing method, detection device and electronic equipment - Google Patents

Data processing method, detection device and electronic equipment Download PDF

Info

Publication number
CN117148313A
CN117148313A CN202311117788.XA CN202311117788A CN117148313A CN 117148313 A CN117148313 A CN 117148313A CN 202311117788 A CN202311117788 A CN 202311117788A CN 117148313 A CN117148313 A CN 117148313A
Authority
CN
China
Prior art keywords
signal
target
mode
sensing
optical signal
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.)
Pending
Application number
CN202311117788.XA
Other languages
Chinese (zh)
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 CN202311117788.XA priority Critical patent/CN117148313A/en
Publication of CN117148313A publication Critical patent/CN117148313A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/4802Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00 using analysis of echo signal for target characterisation; Target signature; Target cross-section
    • 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
    • G01S17/10Systems determining position data of a target for measuring distance only using transmission of interrupted, pulse-modulated waves
    • 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/88Lidar systems specially adapted for specific applications
    • G01S17/89Lidar systems specially adapted for specific applications for mapping or imaging
    • G01S17/8943D imaging with simultaneous measurement of time-of-flight at a 2D array of receiver pixels, e.g. time-of-flight cameras or flash lidar

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The application provides a data processing method, a detection device and electronic equipment, wherein the data processing method comprises the following steps: obtaining an induction signal; responding, if in the first mode, based on the sense signal and a first processing mechanism; responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.

Description

Data processing method, detection device and electronic equipment
Technical Field
The present application relates to the field of signal processing technologies, and in particular, to a data processing method, a detection device, and an electronic device.
Background
With the continuous development of depth sensing technology, time of flight (ToF) sensors have more and more functions, such as object detection, depth estimation, object classification, and the like. TOF is interpreted as time of flight, by continuously pulsing the target, then receiving the signal back from the object with a sensor, and by detecting the time of flight of these emitted and received pulses, the target distance is obtained. Currently, a TOF sensor or a device with the TOF sensor generally only has a fixed processing mechanism during operation, and the mechanism cannot meet the user requirement in some situations, so that the user experience is poor.
Disclosure of Invention
In view of this, a first aspect of the present application provides a data processing method, including:
obtaining an induction signal;
responding, if in the first mode, based on the sense signal and a first processing mechanism;
responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
Optionally, at least two different sensing signals for the same detection signal characterize the target optical signal as having a second medium on a propagation path formed in the first medium by the target object.
Optionally, the obtaining the sensing signal includes:
emitting a target optical signal;
obtaining a first induction signal, wherein the first induction signal is the target optical signal returned for the first time of the target optical signal;
obtaining a second sensing signal, wherein the second sensing signal is the target optical signal returned for the second time of the target optical signal, and the energy of the target optical signal characterized by the first sensing signal is different from the energy of the target optical signal characterized by the second sensing signal; wherein the obtaining a first sensing signal and the obtaining a second sensing signal belong to two different moments of the same acquisition period for the target optical signal;
Determining an induced signal based on the first induced signal and the target optical signal, the induced signal being used to characterize a first distance;
and determining a sensing signal based on the second sensing signal and the target optical signal, wherein the sensing signal is used for representing a second distance, and the sensing signal comprises a first distance and a second distance.
Optionally, if in the first mode, responding based on the sensing signal and the first processing mechanism, including:
determining a target instruction based on the sensing signal and a first threshold range if the sensing signal includes a single set of distance values;
if in the second mode, responding based on the sense signal and a second processing mechanism, comprising:
if the sense signal includes two sets of distance values, a target instruction is determined based on the sense signal and a second threshold range, the second threshold range being the same as the first threshold range.
Optionally, the obtaining the sensing signal includes:
emitting a target optical signal;
obtaining a first induction signal, wherein the first induction signal is the target optical signal returned for the first time of the target optical signal;
obtaining a second sensing signal, wherein the second sensing signal is the target optical signal returned for the second time of the target optical signal, and the energy of the target optical signal characterized by the first sensing signal is different from the energy of the target optical signal characterized by the second sensing signal; wherein the obtaining a first sensing signal and the obtaining a second sensing signal belong to two different moments of the same acquisition period for the target optical signal;
Determining a target induction signal by using the induction signal to represent that the energy of the target optical signal is larger than an energy threshold value;
and determining a sensing signal based on the target sensing signal and the target optical signal, wherein the sensing signal is used for representing the distance.
Optionally, based on the sensing signal and the first processing mechanism response, the method includes:
determining a target instruction based on the sensing signal and a first threshold range;
if in the second mode, responding based on the sense signal and a second processing mechanism, comprising:
a target instruction is determined based on the sense signal and a second threshold range, the second threshold range including the first threshold range.
Optionally, the method further comprises:
obtaining target parameters;
if the target parameter meets a first condition, representing that the electronic equipment is in a first equipment posture, and controlling the electronic equipment to be in the first mode;
and if the target parameter meets a second condition, representing that the electronic equipment is in a second equipment posture, and controlling the electronic equipment to be in the second mode.
Optionally, the method further comprises:
adjusting the light emitting angle of the light emitting unit of the detection device to enable the electronic equipment to be in a second equipment posture;
And the target optical signal emitted by the detection device when the electronic equipment is in the second equipment posture is positioned in the target body of the electronic equipment.
Optionally, the method further comprises:
if the target parameter characterizes that the electronic equipment is in a second equipment posture, acquiring a target distance based on a light emitting angle of a detection device and an unfolding angle of the electronic equipment when the electronic equipment is in the second equipment posture;
and the target distance represents the distance from the target optical signal emitted by the detection device to the target body of the electronic equipment when the electronic equipment is in the second equipment posture.
Optionally, if the target parameter meets a second condition, the sensing signal indicates that the electronic device is in a second device posture, and the sensing signal indicates that the target object is located at the target detection edge, the electronic device is controlled to switch from the first mode to the second mode.
A second aspect of the present application provides a detection apparatus comprising:
a light emitting module;
the receiving module is used for obtaining the induction signal;
a control module for responding based on the sense signal and a first processing mechanism if in a first mode; responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
A third aspect of the present application provides an electronic apparatus, comprising:
the detection device is used for obtaining the induction signal;
a processor for responding, if in the first mode, based on the sense signal and a first processing mechanism; responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
Optionally, the apparatus further comprises:
a first body including a first screen positioned on a first surface of the first body, the detection device being positioned in the first body, a target light signal emitted from a light emitting unit of the detection device passing through the first surface; the returned detection signal received by the receiving unit of the detection device passes through the first indication;
the first body is connected with the second body in a turnover way and comprises a second screen positioned on the second surface of the second body;
the processor is used for representing that the electronic equipment is in a second equipment posture if the target parameter meets a second condition, controlling the electronic equipment to be in the second mode, wherein the second equipment posture is that the first body and the second body are in a target angle, and a target light signal emitted by the detection device is located in the second screen.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for data processing according to an embodiment of the present application;
FIG. 2 is a flowchart of a data processing method according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for processing data according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for processing data according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a second device gesture according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an auxiliary line for calculating a distance from a target optical signal to a target body of an electronic device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a target object not located at a target detection edge in a second device posture according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a target object located at a target detection edge in a second device posture according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a target object moving leftwards in a second device posture according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a detection device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the present disclosure, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprise," "include," 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor devices, distributed computing environments that include any of the above devices or devices, and the like.
The embodiment of the application provides a data processing method which can be independently applied to a TOF sensor or can be applied to various electronic devices provided with the TOF sensor, namely, an execution main body of the data processing can be the TOF sensor or the electronic device provided with the TOF sensor. The flow chart of the data processing method is shown in fig. 1, and specifically includes:
s101: and obtaining an induction signal.
In this embodiment, the sensing signal is obtained first.
In one embodiment, if the execution body is a separate TOF sensor, the sensing signal is a return signal received by the separate TOF sensor after sending out a detection signal, it will be understood that if the detection signal sent by the separate TOF sensor is a laser signal, the obtained sensing signal is also a laser signal, and if the detection signal sent by the separate TOF sensor is an ultrasonic signal, the obtained sensing signal is also an ultrasonic signal, and the type of the TOF sensor is not limited in this embodiment. When the detection signal is an ultrasonic signal, a plurality of continuous periods of sensing signals can be combined to determine the gesture of the user, for example, in a first-aid scene, the equipment is far away from the user, but the ultrasonic signal can be sent to judge whether the user sends a distress gesture or not so as to alarm.
In another embodiment, if the execution body is an electronic device provided with a TOF sensor, the sensing signal is corresponding depth information calculated by the TOF sensor in the electronic device after sending a detection signal and receiving a return signal, and the TOF sensor outputs the depth information to a processor of the electronic device, and the processor obtains the sensing signal to obtain the corresponding depth information output by the TOF sensor.
It should be noted that, the sensing signal obtained in this step is a return signal corresponding to the same detection signal, and a longer detection period may be set before transmission, so as to ensure that the return signal corresponding to one detection signal must be corresponding in one detection period.
S102: and if in the first mode, responding based on the sensing signal and a first processing mechanism.
In this embodiment, after the sensing signal is obtained, different processing mechanisms are further adopted according to different modes, and at least two modes exist: a first mode and a second mode, the first mode and the second mode belonging to different modes. It will be appreciated that the first mode may be a mode of a separate TOF sensor or a mode of an electronic device provided with a TOF sensor.
Specifically, if in the first mode, a response is based on the sense signal and a first processing mechanism.
In one embodiment, if the executing body is a separate TOF sensor, the first mode is a mode of the separate TOF sensor. In the first mode, if the separate TOF sensor obtains one sensing signal, the separate TOF sensor outputs one depth information or does not output the depth information, and if the separate TOF sensor obtains at least two sensing signals, the separate TOF sensor still outputs one depth information or does not output the depth information. In the second case, the TOF sensor screens out one of the at least two sensing signals as a return signal corresponding to the detection signal, so as to be used as a basis for calculating depth information, and the other sensing signals are discarded as noise. That is, in the first mode, the individual TOF sensor outputs at most only one depth information, regardless of the acquisition of several sensing signals. This is the response of the separate TOF sensor based on the sensing signal and the first processing mechanism in the first mode. In summary, there are two forms of response based on the sensing signal and the first processing mechanism, one is that the TOF sensor outputs one depth information or does not output when one sensing signal is obtained, and the other is that the TOF sensor still outputs one depth information or does not output when at least two sensing signals are obtained.
In another embodiment, if the execution body is an electronic device provided with a TOF sensor, the mode is a mode of the electronic device, if the mode is a mode of the electronic device, the processor of the electronic device selects a corresponding processing mechanism according to the mode in which the electronic device is located, and specifically if the electronic device is in the first mode, the processor of the electronic device responds based on the sensing signal and the first processing mechanism. It should be noted that if the execution body is an electronic device provided with a TOF sensor, the modes of the electronic device may be two cases, one considers only the physical mode of the electronic device, and one considers both the physical mode of the electronic device and the mode of the TOF sensor on the electronic device, and the different cases correspond to different modes.
S103: responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
In this embodiment, the first processing mechanism corresponds to a first mode, and the second processing mechanism corresponds to a second mode, and similarly, the second mode may be a mode of a separate TOF sensor or a mode of an electronic device provided with a TOF sensor.
Specifically, if in the second mode, a response is based on the sense signal and a second processing mechanism.
In one embodiment, if the executing body is a separate TOF sensor, the second mode is a mode of a separate TOF sensor. In the second mode, if the separate TOF sensor obtains at least two sensing signals, the separate TOF sensor outputs at least two depth information at which time the sensing signals corresponding to the second mode are determined based on at least two different sensing signals for the same detection signal. That is, in the second mode, the separate TOF sensor obtains several sensing signals, which output several depth information. This is the response of the separate TOF sensor based on the sensing signal and a second processing mechanism in the second mode.
In another embodiment, if the execution body is an electronic device provided with a TOF sensor, the second mode is a mode of the electronic device. If the electronic device is in the second mode, the processor of the electronic device will respond based on the sensed signal and the second processing mechanism.
It can be seen that, in the embodiment of the present application, the sensing signal is obtained first, if in the first mode, based on the sensing signal and the first processing mechanism response, and if in the second mode, based on the sensing signal and the second processing mechanism response; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode. Aiming at the TOF sensor or the device carrying the TOF sensor, through the steps, the TOF sensor and the device carrying the TOF sensor can have various optional processing mechanisms, different processing mechanisms are triggered under different modes to realize functional response, and the defects of limited functions, reduced user experience and the like caused by adopting a single processing mechanism under any condition are avoided.
In this embodiment, at least two different sensing signals for the same detection signal characterize the target optical signal as having a second medium on a propagation path formed in the first medium by the target object. That is, the detection signal passes through the second medium before reaching the target object, the second medium is located between the target object and the emission source for emitting the detection signal, the second medium may be an object mainly reflecting or an object mainly transmitting, if the object mainly reflecting, the second medium may be a mirror or the like, and the reflection of the mirror is utilized to make the same detection signal have at least two different sensing signals; if the transmission is the main, the second medium may be glass or the like, and the transmission of the glass is used to make the same detection signal have at least two different sensing signals.
The embodiment of the application provides a specific data processing method, an execution main body is an electronic device provided with a TOF sensor, a flow chart of the method of the data processing method is shown in fig. 2, and the method specifically comprises the following steps:
s201: the target optical signal is emitted.
S202: a first induced signal is obtained, the first induced signal being the target optical signal for a first return of the target optical signal.
S203: a second induced signal is obtained, the second induced signal being the target optical signal for a second return of the target optical signal.
S204: and determining a sensing signal based on the first sensing signal and the target optical signal, wherein the sensing signal is used for representing a first distance.
S205: and determining a sensing signal based on the second sensing signal and the target optical signal, wherein the sensing signal is used for representing a second distance, and the sensing signal comprises a first distance and a second distance.
In this embodiment, the detection signal is a laser detection signal, and the TOF sensor in the electronic device first emits a target optical signal, and for the target optical signal, the TOF sensor obtains two sensing signals, where the two sensing signals belong to two different moments of the same acquisition period for the target optical signal. Specifically, a first sensing signal is obtained first, wherein the first sensing signal is the target optical signal returned for the first time of the target optical signal, and then a second sensing signal is obtained, and the second sensing signal is the target optical signal returned for the second time of the target optical signal. The energy of the target optical signal represented by the first sensing signal is different from the energy of the target optical signal represented by the second sensing signal, and the obtaining of the first sensing signal and the obtaining of the second sensing signal belong to two different moments of the same acquisition period for the target optical signal. It will be appreciated that the energy of the target optical signal characterized by the first sensing signal must be different from the energy of the target optical signal characterized by the second sensing signal, as the energy of the same detection signal must be different before and after reflection or before and after transmission.
The sensing signal is used to determine a distance (i.e. depth information) and thus, when the first sensing signal is obtained, a sensing signal is determined based on the first sensing signal and the target light signal, where the sensing signal is used to characterize the first distance. And determining a sensing signal based on the second sensing signal and the target optical signal when the second sensing signal is obtained, wherein the sensing signal is used for representing a second distance. At this time, the TOF sensor generates two distance information (the first distance and the second distance), that is, the sensing signal finally generated by the TOF sensor includes the first distance and the second distance, but the TOF sensor may not necessarily output all the signals, and the processor of the subsequent electronic device may select different processing mechanisms according to the output situation of the TOF sensor.
It is understood that the first distance reflects the distance between the second medium and the TOF sensor and the second distance reflects the distance between the target object and the TOF sensor.
S206: if the sense signal includes a single set of distance values, a target instruction is determined based on the sense signal and a first threshold range.
S207: if the sense signal includes two sets of distance values, a target instruction is determined based on the sense signal and a second threshold range, the second threshold range being the same as the first threshold range.
In this embodiment, if the sense signal includes a single set of distance values, a target instruction is determined based on the sense signal and a first threshold range. Specifically, if the sensing signal output by the TOF sensor has only one set of distance values, which indicates that the TOF sensor is in the first mode, the TOF sensor selects one set of the first distance and the second distance to output in the first mode, and the processor obtains one set of the first distance and the second distance, at this time, the processor determines the target instruction based on the sensing signal and the first threshold range, that is, determines the target instruction based on the set of distance values and the first threshold range. When determining a target instruction based on the sensing signal and the first threshold range, a single set of distance values is compared with the first threshold range.
In this embodiment, if the sensing signal includes two sets of distance values, the target instruction is determined based on the sensing signal and the second threshold range. Specifically, if the sensing signal output by the TOF sensor has two sets of distance values, which indicates that the TOF sensor is in the second mode, and indicates that the TOF sensor outputs the first distance and the second distance in the second mode, the processor obtains the first distance and the second distance, and at this time, the processor determines the target instruction based on the sensing signal and the second threshold range, that is, determines the target instruction based on the two sets of distance values and the second threshold range at the same time. When the target instruction is determined based on the sensing signal and the second threshold range, the difference value of the two sets of distance values is mainly compared with the second threshold range, and the difference value of the two sets of distance values reflects the distance between the target object and the screen. On this basis, the second threshold range is identical to the first threshold range.
That is, in this embodiment, the threshold range for determining the target instruction is unchanged regardless of the mode in which the TOF sensor is in. The following describes a specific scenario as an example, where the scenario is an automatic screen locking scenario, the target instruction is used for screen locking control, the first threshold range and the second threshold range are distance ranges between the target object (user) and the screen, and when the target object is located in the distance range, screen locking is not performed, and when the target object is located outside the distance range, screen locking is performed. At this time, if the sensing signal includes a single set of distance values, a target instruction for performing screen locking control is determined based on the sensing signal and a first threshold range, and if the sensing signal includes two sets of distance values, a target instruction for performing screen locking control is determined based on the two sets of distance values and a second threshold range, the second threshold range being the same as the first threshold range. When the TOF sensor is in the first mode and outputs a single set of distance values, if the single set of distance values is within 50cm, the user is not locked in front of the screen. When the TOF sensor is in the second mode outputting two sets of distance values, if the difference between the two sets of distance values is within 50cm, it is indicated that the user is not performing screen locking in front of the screen.
It can be understood that for the automatic screen locking function, the screen locking distance can be set to different gear positions, such as a Near gear, a Middle gear and a Far gear Far, where the different gear positions indicate that the distance of the user in front of the screen is different, and the threshold ranges corresponding to the different gear positions are different, which is not limited in this embodiment.
In this embodiment, on the basis of steps S201 to S205, there are two schemes in parallel with step S206, scheme 1: and if the attribute of the sensing signal characterizes the sensing signal to be determined based on the primary sensing signal of the optical signal, determining a target instruction based on the sensing signal and a first threshold range. Scheme 2: determining a target induction signal by using the induction signal to represent that the energy of the target optical signal is larger than an energy threshold value; and determining a sensing signal based on the target sensing signal and the target optical signal, wherein the sensing signal is used for representing the distance.
In this embodiment, on the basis of steps S201 to S205, there are two schemes in parallel with step S207, scheme 1: and if the attribute of the sensing signal characterizes the sensing signal is determined based on the twice sensing signals of the optical signal, determining a target instruction based on the sensing signal and a second threshold range, wherein the second threshold range comprises the first threshold range. Scheme 2: determining an induced signal based on the first induced signal and the target optical signal, the induced signal being used to characterize a first distance; and determining a sensing signal based on the second sensing signal and the target optical signal, wherein the sensing signal is used for representing a second distance, and the sensing signal comprises a first distance and a second distance.
The embodiment of the application provides a specific data processing method, an execution main body is an electronic device provided with a TOF sensor, a flow chart of the method of the data processing method is shown in fig. 3, and the method specifically comprises the following steps:
s301: the target optical signal is emitted.
S302: a first induced signal is obtained, the first induced signal being the target optical signal for a first return of the target optical signal.
S303: a second induced signal is obtained, the second induced signal being the target optical signal for a second return of the target optical signal.
S304: and determining the target induction signal by using the energy of the target optical signal, which is characterized by the induction signal, to be larger than an energy threshold value.
S305: and determining a sensing signal based on the target sensing signal and the target optical signal, wherein the sensing signal is used for representing the distance.
In this embodiment, the detection signal is a laser detection signal, and the TOF sensor in the electronic device first emits a target optical signal, and for the target optical signal, the TOF sensor obtains two sensing signals, where the two sensing signals belong to two different moments of the same acquisition period for the target optical signal. Specifically, a first sensing signal is obtained first, wherein the first sensing signal is the target optical signal returned for the first time of the target optical signal, and then a second sensing signal is obtained, and the second sensing signal is the target optical signal returned for the second time of the target optical signal. The obtaining the first sensing signal and the obtaining the second sensing signal belong to two different moments of the same acquisition period for the target optical signal. It will be appreciated that the energy of the target optical signal characterized by the first sensing signal must be different from the energy of the target optical signal characterized by the second sensing signal, as the energy of the same detection signal before and after reflection or transmission must be different.
Likewise, the first distance reflects a distance between the second medium and the TOF sensor, and the second distance reflects a distance between the target object and the TOF sensor. Unlike the previous embodiment, in this embodiment, the TOF sensor does not output all or randomly select a set of distance values after obtaining the first sensing signal and the second sensing signal, but determines the target sensing signal by using the sensing signal that the energy of the target optical signal is greater than the energy threshold, that is, the TOF sensor outputs a distance value with large energy in the two sets of distance values, where the distance value with large energy reflects the distance between the target object and the TOF sensor.
S306: a target instruction is determined based on the sense signal and a first threshold range.
S307: a target instruction is determined based on the sense signal and a second threshold range, the second threshold range including the first threshold range.
In this embodiment, the TOF sensor is in a first mode and only outputs a distance value related to the position of the target object, if the electronic device is in the first mode at this time, the processor of the electronic device determines the target instruction based on the sensing signal and a first threshold range, and if the electronic device is in a second mode at this time, the processor of the electronic device determines the target instruction based on the sensing signal and a second threshold range, which in this embodiment includes the first threshold range, that is, the second threshold range must be larger than the first threshold range, unlike the previous embodiment.
It should be noted that the first mode and the second mode of the TOF sensor are virtual modes, the first mode of the TOF sensor means that the TOF sensor does not output or only outputs one distance value characterized by one sensing signal, and the second mode of the TOF sensor means that the TOF sensor outputs two distance values characterized by two sensing signals. The first mode and the second mode of the electronic device are physical modes of the device, the first mode of the electronic device meaning that the electronic device is in a first device pose and the second mode of the electronic device meaning that the electronic device is in a second device pose.
Still taking an automatic screen locking scene as an example, when the electronic device is in the first mode, the screen locking distance is assumed to be set to be 50cm, and if the distance output by the TOF sensor is within 50cm, the user is not locked in front of the screen. When the electronic device is in the second mode, the screen locking distance is set to be larger than that of the first mode, for example, 70cm, and if the distance output by the TOF sensor is within 70cm, the user is not locked in front of the screen.
In this embodiment, on the basis of steps S301-305, there is a scheme in parallel with step S306: determining a target induction signal by using the induction signal to represent that the energy of the target optical signal is larger than an energy threshold value; and determining a sensing signal based on the target sensing signal and the target optical signal, wherein the sensing signal is used for representing the distance. There is also a scheme in parallel with step S307: determining an induced signal based on the first induced signal and the target optical signal, the induced signal being used to characterize a first distance; and determining a sensing signal based on the second sensing signal and the target optical signal, wherein the sensing signal is used for representing a second distance, and the sensing signal comprises a first distance and a second distance.
The embodiment of the application provides a specific data processing method, an execution main body is an electronic device provided with a TOF sensor, a flow chart of the method for processing the data is shown in fig. 4, and the method specifically comprises the following steps:
s401: the sensing signal and the target parameter are obtained.
In this embodiment, a TOF sensor in the electronic device collects sensing signals, and a TOF sensor or other components in the electronic device collect target parameters, where the target parameters are parameters that can reflect a device posture of the electronic device, for example, a gravity sensor in the electronic device may collect relevant gravity parameters to determine the device posture of the electronic device.
S402: and if the target parameter meets a first condition, representing that the electronic equipment is in a first equipment posture, controlling the electronic equipment to be in the first mode, and responding based on the sensing signal and a first processing mechanism.
S403: and if the target parameter meets a second condition, representing that the electronic equipment is in a second equipment gesture, controlling the electronic equipment to be in the second mode, and responding based on the sensing signal and a second processing mechanism.
In this embodiment, if the target parameter satisfies a first condition, the electronic device is represented as being in a first device posture, and the electronic device is controlled to be in the first mode, based on the sensing signal and a first processing mechanism response. And if the target parameter meets a second condition, representing that the electronic equipment is in a second equipment gesture, controlling the electronic equipment to be in the second mode, and responding based on the sensing signal and a second processing mechanism. As described above, the first mode and the second mode of the electronic device are physical modes of the device, the first mode of the electronic device meaning that the electronic device is in a first device pose and the second mode of the electronic device meaning that the electronic device is in a second device pose.
In this embodiment, if the electronic device is in the second device posture, the light emitting angle of the light emitting unit of the detecting device may be adjusted so that the electronic device is in the second device posture, and it is easy to understand that the target light signal emitted by the detecting device is located in the target body of the electronic device when the electronic device is in the second device posture. The detection device is a TOF sensor, and the target light signal emitted by the light emitting unit of the TOF sensor can reach the body of the electronic equipment under the gesture of the second equipment. It should be noted that, in the second device posture, since there is reflection on the target body, if the energy of the target optical signal emitted by the light emitting unit of the TOF sensor is the same as the energy of the target optical signal emitted by the light emitting unit of the TOF sensor when there is no reflection at this time, the second sensing signal may not be returned due to the reflection energy loss, and in order to avoid this problem, the energy of the target optical signal emitted by the light emitting unit of the TOF sensor in the second device posture may be enhanced appropriately.
Fig. 5 is a schematic diagram of the dual-screen notebook in the second device posture, where the target body is another screen. In this case, the data processing method of the present embodiment has a strong correlation with the structural design of the electronic device, and the electronic device further includes a first body and a second body. The first body comprises a first screen positioned on the first surface of the first body, the detection device is positioned in the first body, and a target light signal emitted by a light emitting unit of the detection device passes through the first surface; the returned detection signal received by the receiving unit of the detection device passes through the first indication. The first body is connected with the two bodies in a turnover way and comprises a second screen positioned on the second surface of the second body. On the basis, the processor is used for controlling the electronic equipment to be in the second mode if the target parameter meets a second condition to represent the electronic equipment to be in a second equipment posture, wherein the second equipment posture is that the first body and the second body are at a target angle, and the target light signal emitted by the detection device is located in the second screen.
Of course, besides the dual-screen notebook, the single-screen notebook, the mobile phone, the PAD and other devices can also have the second device gesture, for example, if the electronic device is the single-screen notebook, the target body is an output operation interface, and a device capable of reflecting light needs to be arranged on the output operation interface, so that the target light signal emitted by the detection device is located in the target body of the electronic device.
In this embodiment, if the target parameter characterizes that the electronic device is in the second device posture, a target distance is further required to be obtained based on a light emitting angle of the detection device and a deployment angle of the electronic device when the electronic device is in the second device posture, where the target distance characterizes a distance from a target light signal emitted by the detection device to a target body of the electronic device when the electronic device is in the second device posture. The target distance, that is, the first distance in the foregoing embodiment, may be calculated by a light emission angle of the TOF sensor and an unfolding angle (machine opening/closing angle) of the electronic device when the TOF sensor cannot output the distance value.
As shown in fig. 6, the unfolding angle of the electronic device is θ, a is a point (first emission point) indicated by the target sensor, la is a target optical signal of the TOF sensor, b is a point corresponding to the point a and emitted to the C-plane screen, and the actual calculation manner of the target distance La is as follows: the point a is a vertical auxiliary line L1 relative to the rotating shaft and generates an intersection point, and the intersection point is a vertical auxiliary line L2 on the C plane, so that the point of the L2 on the C plane is respectively connected with the auxiliary lines L3 and L4 obtained after the point a and the point b are mutually vertical. From this, it can be known that the triangle formed by L1, L2, L3, the included angle between L1 and L2 is θ, for this triangle, two sides and the included angle thereof are known, L3 can be obtained:
Triangles composed of L3, L4, la are right triangles, so La is:
on this basis, if in the first mode, the response based on the sense signal and the first processing mechanism comprises: a target instruction is determined based on the sense signal and a first threshold range. If in the second mode, responding based on the sense signal and a second processing mechanism includes: a target instruction is determined based on the sensed signal, the target distance, and a second threshold range, the second threshold range being the same as the first threshold range.
Further, in the case shown in fig. 5, the mode of the electronic device is not switched to the second mode at any time, and the mode of the electronic device is switched to the second mode only when the electronic device is in the second device posture and the target object to be detected is located at the target detection edge. The electronic device shown in fig. 7 is in the second device posture but the target object is not located at the target detection edge, and the second mode is not switched at this time, and the electronic device shown in fig. 8 is in the second device posture and the target object is located at the target detection edge, and the second mode is switched at this time, and the target detection edge or a place located beyond the edge needs to be detected by using the reflected target light signal.
In this embodiment, assuming that the target object is not located at the detection edge at first and moves to the detection edge during use, it is determined whether the target object is switched to the detection edge or not by the moving direction of the target object. Specifically, the moving direction of the target object can be judged by the bitmap information output by the TOF sensor, and the moving direction of the target object is determined according to the change of the bitmap information:
D b ={D L1 ,…,D L2 }∈D
wherein D is the bitmap information corresponding to the target area, and Db is the bitmap information corresponding to the covered part of the target object in the target area.
According to the depth change rate of the lattice information, a new region D 'can be obtained, and according to the position relation between D' and Db, the parameters for determining the movement of the target object are as follows:
as shown in fig. 9, the moving direction corresponding to fig. 9 is moving leftwards, and since the TOF sensor is disposed on the left screen, if the depth information of the parameter indicating the target object gradually becomes smaller until the depth information of the target object cannot be detected in the target area, the indicating target object moves leftwards from the target area until the target detection edge.
An embodiment of the present application provides a detection device, and fig. 10 is a schematic structural diagram of the detection device, where the detection device specifically includes:
A light emitting module;
the receiving module is used for obtaining the induction signal;
a control module for responding based on the sense signal and a first processing mechanism if in a first mode; responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
In this embodiment, the detection device may be a TOF sensor, where the TOF sensor includes a light emitting module, a receiving module, and a control module. The light emitting module emits a detection signal, and the detection signal can be a laser signal or an ultrasonic signal. The receiving module is used for obtaining an induction signal, if the detection signal sent by the light emitting module is a laser signal, the induction signal obtained by the receiving module is also the laser signal, and if the detection signal sent by the light emitting module is an ultrasonic signal, the induction signal obtained by the receiving module is also the ultrasonic signal.
In this embodiment, if the TOF sensor is in the first mode, the control module is configured to respond based on the sensing signal and a first processing mechanism; if the TOF sensor is in the second mode, the control module is configured to respond based on the sensing signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode. Reference is made specifically to the disclosure of the foregoing embodiments, and no further description is given here.
An embodiment of the present application provides an electronic device, and fig. 11 is a schematic structural diagram of the electronic device, where the electronic device specifically includes:
the detection device is used for obtaining the induction signal;
a processor for responding, if in the first mode, based on the sense signal and a first processing mechanism; responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
In this embodiment, the electronic device includes the detection device and the processor, where the detection device may be a TOF sensor, the TOF sensor has two modes, and the electronic device also has two modes, and under different modes or mode combinations, the processing mechanisms corresponding to the processor are different, which is specifically referred to the disclosure of the foregoing embodiment, and will not be described herein again.
In this embodiment, the electronic device further includes a first body and a second body. The first body comprises a first screen positioned on the first surface of the first body, the detection device is positioned in the first body, and a target light signal emitted by a light emitting unit of the detection device passes through the first surface; the returned detection signal received by the receiving unit of the detection device passes through the first indication. The first body is connected with the two bodies in a turnover way and comprises a second screen positioned on the second surface of the second body. On the basis, the processor is used for controlling the electronic equipment to be in the second mode if the target parameter meets a second condition to represent the electronic equipment to be in a second equipment posture, wherein the second equipment posture is that the first body and the second body are at a target angle, and the target light signal emitted by the detection device is located in the second screen.
Further, for the above electronic device, when the screen lock control is performed, only one screen of the two screens may be locked or both screens may be locked. That is, the target instruction executed by the processor is an instruction to lock a screen for only one screen or an instruction to lock a screen for both screens, and the screen locked is a screen that the user does not pay attention to.
The specific implementation process and derivative manner of the above embodiments are all within the protection scope of the present application.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
Those of skill would further appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A data processing method, comprising:
obtaining an induction signal;
responding, if in the first mode, based on the sense signal and a first processing mechanism;
responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
2. The method of claim 1, wherein the at least two different sensed signals for the same detected signal characterize the target optical signal as having a second medium on a propagation path formed in the first medium by the target object.
3. The method of claim 2, the obtaining the sense signal comprising:
emitting a target optical signal;
obtaining a first induction signal, wherein the first induction signal is the target optical signal returned for the first time of the target optical signal;
obtaining a second sensing signal, wherein the second sensing signal is the target optical signal returned for the second time of the target optical signal, and the energy of the target optical signal characterized by the first sensing signal is different from the energy of the target optical signal characterized by the second sensing signal; wherein the obtaining a first sensing signal and the obtaining a second sensing signal belong to two different moments of the same acquisition period for the target optical signal;
Determining an induced signal based on the first induced signal and the target optical signal, the induced signal being used to characterize a first distance;
and determining a sensing signal based on the second sensing signal and the target optical signal, wherein the sensing signal is used for representing a second distance, and the sensing signal comprises a first distance and a second distance.
4. A method according to claim 3, if in the first mode, based on the sense signal and a first processing mechanism response, comprising:
determining a target instruction based on the sensing signal and a first threshold range if the sensing signal includes a single set of distance values;
if in the second mode, responding based on the sense signal and a second processing mechanism, comprising:
if the sense signal includes two sets of distance values, a target instruction is determined based on the sense signal and a second threshold range, the second threshold range being the same as the first threshold range.
5. The method of claim 2, the obtaining the sense signal comprising:
emitting a target optical signal;
obtaining a first induction signal, wherein the first induction signal is the target optical signal returned for the first time of the target optical signal;
Obtaining a second sensing signal, wherein the second sensing signal is the target optical signal returned for the second time of the target optical signal, and the energy of the target optical signal characterized by the first sensing signal is different from the energy of the target optical signal characterized by the second sensing signal; wherein the obtaining a first sensing signal and the obtaining a second sensing signal belong to two different moments of the same acquisition period for the target optical signal;
determining a target induction signal by using the induction signal to represent that the energy of the target optical signal is larger than an energy threshold value;
and determining a sensing signal based on the target sensing signal and the target optical signal, wherein the sensing signal is used for representing the distance.
6. The method of claim 5, if in the first mode, based on the sense signal and a first processing mechanism response, comprising:
determining a target instruction based on the sensing signal and a first threshold range;
if in the second mode, responding based on the sense signal and a second processing mechanism, comprising:
a target instruction is determined based on the sense signal and a second threshold range, the second threshold range including the first threshold range.
7. The method of claim 1, further comprising:
obtaining target parameters;
if the target parameter meets a first condition, representing that the electronic equipment is in a first equipment posture, and controlling the electronic equipment to be in the first mode;
and if the target parameter meets a second condition, representing that the electronic equipment is in a second equipment posture, and controlling the electronic equipment to be in the second mode.
8. The method of claim 7, further comprising:
adjusting the light emitting angle of the light emitting unit of the detection device to enable the electronic equipment to be in a second equipment posture;
and the target optical signal emitted by the detection device when the electronic equipment is in the second equipment posture is positioned in the target body of the electronic equipment.
9. The method of claim 7, further comprising:
if the target parameter characterizes that the electronic equipment is in a second equipment posture, acquiring a target distance based on a light emitting angle of a detection device and an unfolding angle of the electronic equipment when the electronic equipment is in the second equipment posture;
and the target distance represents the distance from the target optical signal emitted by the detection device to the target body of the electronic equipment when the electronic equipment is in the second equipment posture.
10. The method of claim 7, controlling the electronic device in the second mode if the target parameter satisfies a second condition that characterizes the electronic device as being in a second device pose and the sensed signal characterizes the target object as being at a target detection edge.
11. A detection apparatus, comprising:
a light emitting module;
the receiving module is used for obtaining the induction signal;
a control module for responding based on the sense signal and a first processing mechanism if in a first mode; responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
12. An electronic device, comprising:
the detection device is used for obtaining the induction signal;
a processor for responding, if in the first mode, based on the sense signal and a first processing mechanism; responding, if in a second mode, based on the sense signal and a second processing mechanism; the sensing signals corresponding to the second mode are determined based on at least two different sensing signals aiming at the same detection signal; wherein the first mode is different from the second mode.
13. The apparatus of claim 12, further comprising:
a first body including a first screen positioned on a first surface of the first body, the detection device being positioned in the first body, a target light signal emitted from a light emitting unit of the detection device passing through the first surface; the returned detection signal received by the receiving unit of the detection device passes through the first indication;
the first body is connected with the second body in a turnover way and comprises a second screen positioned on the second surface of the second body;
the processor is used for representing that the electronic equipment is in a second equipment posture if the target parameter meets a second condition, controlling the electronic equipment to be in the second mode, wherein the second equipment posture is that the first body and the second body are in a target angle, and a target light signal emitted by the detection device is located in the second screen.
CN202311117788.XA 2023-08-31 2023-08-31 Data processing method, detection device and electronic equipment Pending CN117148313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311117788.XA CN117148313A (en) 2023-08-31 2023-08-31 Data processing method, detection device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311117788.XA CN117148313A (en) 2023-08-31 2023-08-31 Data processing method, detection device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117148313A true CN117148313A (en) 2023-12-01

Family

ID=88911381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311117788.XA Pending CN117148313A (en) 2023-08-31 2023-08-31 Data processing method, detection device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117148313A (en)

Similar Documents

Publication Publication Date Title
US11281370B2 (en) Electronic device and touch gesture control method thereof
CN108958490B (en) Electronic device, gesture recognition method thereof and computer-readable storage medium
US20050248540A1 (en) Touch panel display system with illumination and detection provided from a single edge
CN110570687B (en) AGV control method and device and storage medium
WO2021147122A1 (en) Human detection method and apparatus, terminal device, storage medium, and electronic device
TW201250519A (en) Presence sensing
WO2012103693A1 (en) Multiple-input touch panel and method for gesture recognition
WO2022179207A1 (en) Window occlusion detection method and apparatus
CN107076847B (en) Electronic device, control method for electronic device, and recording medium
CA2979271A1 (en) Wayfinding and obstacle avoidance system
US9285928B2 (en) Touch detection method and related optical touch system
EP3893019A1 (en) Radar antenna array, mobile user equipment, method and device for identifying gesture, and storage medium
US8952934B2 (en) Optical touch systems and methods for determining positions of objects using the same
US20160291804A1 (en) Display control method and display control device
CN117148313A (en) Data processing method, detection device and electronic equipment
JP2019128725A (en) Information processing device, information processing system, and program
CN109032354B (en) Electronic device, gesture recognition method thereof and computer-readable storage medium
CN114125148B (en) Control method of electronic equipment operation mode, electronic equipment and readable storage medium
CN113432620B (en) Error estimation method and device, vehicle-mounted terminal and storage medium
KR102372669B1 (en) Electronic device, external server and controlling method thereof
US20220221573A1 (en) Systems and methods for managing sensors of an electronic device, and associated electronic devices
CN107111354B (en) Unintended touch rejection
CN108815840B (en) Method and device for controlling application program, mobile terminal and storage medium
CN113280477A (en) Display control method and device of air conditioner display screen
CN108107422B (en) A kind of method for determining speed and mobile terminal of Moving Objects

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