CN113032219B - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN113032219B
CN113032219B CN202110333500.7A CN202110333500A CN113032219B CN 113032219 B CN113032219 B CN 113032219B CN 202110333500 A CN202110333500 A CN 202110333500A CN 113032219 B CN113032219 B CN 113032219B
Authority
CN
China
Prior art keywords
mode
sensor
included angle
electronic equipment
specific object
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
CN202110333500.7A
Other languages
Chinese (zh)
Other versions
CN113032219A (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
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110333500.7A priority Critical patent/CN113032219B/en
Publication of CN113032219A publication Critical patent/CN113032219A/en
Application granted granted Critical
Publication of CN113032219B publication Critical patent/CN113032219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a data processing method and a device, which are applied to electronic equipment at least comprising a first body and a second body, wherein the first body and the second body can move mutually, and the method comprises the following steps: determining the use form of the electronic equipment, wherein a first sensor with a specific object detection function is arranged on the first body, and the detection area of the first sensor is related to the use form of the electronic equipment; the specific object detection function of the first sensor is controlled to be turned on or off based on the usage pattern of the electronic device. According to the implementation scheme, the specific object detection function is controlled to be started or stopped by combining the use form of the equipment, so that the situation that the display screen is closed because the specific object cannot be detected under some special conditions, such as the situation that the opening angle of the first body and the second body of the equipment is overlarge, is avoided, the occurrence probability of a false screen locking event of the display screen is reduced, and the use experience of a user is improved.

Description

Data processing method and device and electronic equipment
Technical Field
The present application relates to data processing technologies, and in particular, to a data processing method, apparatus, and electronic device.
Background
The notebook computer is now an indispensable terminal device in the daily life and work of the vast users, and along with the continuous development and innovation of related technologies, the use forms of the notebook computer are also more and more abundant, such as a conventional notebook mode, a tablet mode, a standing mode, a tent mode and the like.
Some current notebook computers are configured with a zero touch detection function, i.e., the notebook computer can automatically detect whether a user is present in front of the device without any user input. With this function, when it is detected that there is a user in front of the device, the screen is kept continuously on; and when no user exists, the screen is automatically locked so as to protect the privacy of the user and save the electric quantity.
However, due to the limited detection range of the detection sensor, when the notebook computer is in some special forms, as shown in fig. 1, the detection sensor cannot detect the user in the detection area thereof so as to trigger the screen locking operation, which brings inconvenience to the user.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
A data processing method applied to an electronic device, the electronic device at least comprising a first body and a second body, the first body and the second body being movable relative to each other, the method comprising:
Determining the use form of the electronic equipment, wherein a first sensor with a specific object detection function is arranged on the first body, and the detection area of the first sensor is related to the use form of the electronic equipment;
controlling a specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device.
Optionally, the first body and the second body implement change of an included angle through a first rotation shaft, and the determining the usage form of the electronic device includes:
Determining a morphological mode of the electronic equipment and a first included angle between the first body and the second body, wherein when the first included angle between the first body and the second body is 0 degree, a first functional surface of the first body is opposite to a second functional surface of the second body.
Optionally, determining the morphology mode of the electronic device includes:
And determining that the morphological mode of the electronic equipment is a first mode under the condition that the first included angle between the first body and the second body is in a first angle range.
Optionally, the controlling the specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device includes:
the specific object detection function is controlled to be turned off based on the determined first mode.
Optionally, determining the morphology mode of the electronic device includes:
Determining whether an included angle between the first functional surface and a vertical line is the same as an included angle between the second functional surface and a vertical line under the condition that the first included angle between the first body and the second body is in a second angle range;
If the mode is the same, determining that the form mode of the electronic equipment is a second mode;
And if the mode modes are different, determining that the form mode of the electronic equipment is a third mode.
Optionally, the controlling the specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device includes:
Determining a first rule corresponding to the morphological mode, wherein the first rule is used for representing the corresponding relation between a first included angle and a processing decision;
Controlling the specific object detection function to be started under the condition that the first included angle is located in a first included angle interval in a first rule;
controlling the specific object detection function to be closed under the condition that the first included angle is located in a second included angle interval in the first rule;
Wherein, there is no intersection between the first angle section and the second angle section.
Optionally, after controlling the specific object detection function of the first sensor to be turned off, the method further includes:
And controlling the display screen of the electronic equipment to lock the screen after the preset time.
Optionally, the first sensor is a TOF sensor, a radar sensor or an ultrasonic sensor.
A data processing apparatus for use with an electronic device, the electronic device comprising at least a first body and a second body, the first body and the second body being movable relative to each other, the apparatus comprising:
The form determining module is used for determining the use form of the electronic equipment, the first body is provided with a first sensor with a specific object detection function, and the detection area of the first sensor is related to the use form of the electronic equipment;
and the function control module is used for controlling the specific object detection function of the first sensor to be started or stopped based on the use form of the electronic equipment.
An electronic device comprising at least a first body and a second body, the first body and the second body being movable relative to each other, the electronic device comprising:
A processor;
A memory for storing executable instructions of the processor;
Wherein the executable instructions comprise: determining the use form of the electronic equipment, wherein a first sensor with a specific object detection function is arranged on the first body, and the detection area of the first sensor is related to the use form of the electronic equipment; controlling a specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device.
As can be seen from the above technical solution, the embodiments of the present application disclose a data processing method and apparatus, which are applied to an electronic device at least including a first body and a second body, wherein the first body and the second body can move relative to each other, and the method includes: determining the use form of the electronic equipment, wherein a first sensor with a specific object detection function is arranged on the first body, and the detection area of the first sensor is related to the use form of the electronic equipment; controlling a specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device. According to the implementation scheme, the specific object detection function is controlled to be started or stopped by combining the use form of the equipment, so that the situation that the display screen is closed because the specific object cannot be detected under some special conditions, such as the situation that the opening angle of the first body and the second body of the equipment is overlarge, is avoided, the occurrence probability of a false screen locking event of the display screen is reduced, and the use experience of a user is improved.
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 schematic view of a use scenario of a notebook computer;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a tablet mode of a notebook computer;
FIG. 4 is a schematic diagram of a tent mode of a notebook computer;
FIG. 5 is a schematic diagram illustrating a standing mode of a notebook computer;
FIG. 6 is a schematic diagram of a notebook mode of a notebook computer;
FIG. 7 is a flow chart of determining a morphology mode of an electronic device according to an embodiment of the present application;
FIG. 8 is a diagram illustrating an exemplary correspondence between morphology mode-angle-control strategy according to one embodiment of the present application;
Fig. 9 is a schematic structural diagram of a data processing apparatus 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.
The embodiment of the application can be applied to electronic equipment, the product form of the electronic equipment is not limited, and the electronic equipment can comprise but is not limited to smart phones, tablet computers, notebook computers and the like, and can be selected according to application requirements.
Fig. 2 is a flowchart of a data processing method according to an embodiment of the present application, where the data processing method shown in fig. 2 is applied to an electronic device, and the electronic device includes at least a first body and a second body, where the first body and the second body are movable relative to each other. As shown in connection with fig. 2, the data processing method may include:
Step 201: and determining the use form of the electronic equipment, wherein a first sensor with a specific object detection function is arranged on the first body, and the detection area of the first sensor is related to the use form of the electronic equipment.
The electronic device may include, but is not limited to, a mobile phone with a screen folding function, a tablet computer with a screen folding function, a notebook computer, and the like. For ease of understanding, in the following description, a laptop computer familiar to a large number of users will be mainly described correspondingly, but this does not constitute a limitation on the specific implementation of the data processing method disclosed in the embodiment of the present application.
The specific object detection function may be a person detection function, and more specifically, may be a person detection function within a specific range. Because the data processing method disclosed by the application is applied to the electronic equipment, the person detection function only needs to detect whether a person exists in a certain distance range in front of the electronic equipment, namely, whether a user exists in a certain distance range in front of the electronic equipment. It is understood that the tangential plane of the detection range of the specific object detection function of the first sensor is a three-dimensional range similar to a sector, as shown by a dotted line in fig. 1, the inner areas of the two dotted lines are the detection areas of the first sensor, and the intersection point of the two dotted lines is the installation position of the first sensor.
In connection with fig. 1, the detection area of the first sensor is related to the use form of the electronic device, just because the first sensor has a certain detection area and the first sensor is fixedly arranged on the electronic device. When the electronic device is in some specific forms as shown in fig. 1, the user cannot be in the detection area of the first sensor, and the device can misjudge that the electronic device is not currently used by the user, so that automatic screen locking is triggered, and bad use experience is caused to the user. Based on the above, the application provides the data processing method to reduce the occurrence probability of the state event used by the user in the misjudgment of the system.
The first sensor may be a TOF sensor, a radar sensor or an ultrasonic sensor, and of course, the specific type of the first sensor is not limited in the present application, and may be other sensors capable of detecting people, such as an infrared sensor.
After step 201, step 202 is entered.
Step 202: controlling a specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device.
In the embodiment of the application, the use form can represent single information, and can represent two or more information. For example, the usage modality may only characterize information of a modality mode of the electronic device, which means a modality of the electronic device when in use, including a tablet mode, a tent mode, a notebook mode, a standing mode, and the like; the usage form can also represent two information of a form mode and an opening angle of the electronic equipment, wherein the opening angle can be an included angle between the first body and the second body.
Because the relative position relationship and the included angle of the first body and the second body corresponding to different use forms are different, under different use forms, the detection area of the first sensor installed on the electronic equipment may be higher or lower in some angle ranges, a specific object cannot be detected normally, according to habits and routine experiences of users using the electronic equipment, the situation that the specific object cannot be detected in which angle ranges of the electronic equipment in which form modes can be determined, and corresponding control rules are configured, on the premise that the use form of the electronic equipment is determined, the opening or closing of the specific object detection function of the first sensor can be controlled according to the determined control rules, so that the condition of missing detection or misdetection is avoided, and normal use of the users is ensured.
According to the processing method, the specific object detection function is controlled to be turned on or off by combining the use form of the device, so that the situation that the display screen is turned off due to the fact that the specific object cannot be detected under some special conditions, such as when the opening angle of the first body and the second body of the device is overlarge, the occurrence probability of a false screen locking event of the display screen is reduced, and the use experience of a user is improved.
In the foregoing embodiment, the changing of the included angle between the first body and the second body through the first rotation axis, and determining the usage form of the electronic device may include: and determining a morphological mode of the electronic equipment and a first included angle between the first body and the second body, wherein when the first included angle between the first body and the second body is 0 degree, a first functional surface of the first body is opposite to a second functional surface of the second body, such as a closed notebook computer.
For better understanding of the implementation of the present application, a notebook computer will be described in terms of several modes. Plate mode: in this mode, the reference range of the included angle between the first body and the second body of the notebook computer may be 350 ° to 360 °, which can be understood in conjunction with fig. 3. Tent mode: in this mode, the reference range of the included angle between the first body and the second body of the notebook computer is 180 ° to 350 °, which can be understood with reference to fig. 4. Standing mode: in this mode, the reference range of the included angle between the first body and the second body of the notebook computer is 180 ° to 350 °, which can be understood with reference to fig. 5. Notebook mode: in this mode, the reference range of the included angle between the first body and the second body of the notebook computer is 0 ° to 180 °, which can be understood with reference to fig. 6.
Wherein, the determining of the first included angle may include: and determining a morphological mode of the electronic equipment and a first included angle between the first body and the second body by adopting at least two sensors, wherein the at least two sensors are the same type of sensor or different types of sensors.
For example, the morphological mode of the electronic device and the first included angle between the first body and the second body are determined by two gravity acceleration sensors, wherein one gravity acceleration sensor is arranged on the first body, and the other gravity acceleration sensor is arranged on the second body. The form mode of the electronic device and the first included angle between the first body and the second body can be determined through an angle sensor and a gravity acceleration sensor, the angle sensor is arranged at a rotating shaft position for connecting the first body and the second body and used for determining the first included angle, and the gravity acceleration sensor is arranged on the second body of the electronic device and used for determining the form mode of the electronic device singly or in combination with the determined first included angle. Of course, there may be many ways to determine the angle between the first body and the second body, and the present application is not limited thereto.
In combination with the foregoing, in one implementation, the determining a morphology mode of the electronic device may include: and determining that the morphological mode of the electronic equipment is a first mode under the condition that the first included angle between the first body and the second body is in a first angle range. For example, when it is determined that the first angle between the first body and the second body is 355 °, the notebook computer can only be in a tablet mode, in which case, the detection area of the first sensor disposed on the first body of the notebook computer extends upward, and a user located beside the notebook computer cannot be detected, and at this time, the person detection function of the first sensor has no meaning, so in order to avoid that the first sensor cannot detect the user and starts the system to lock the screen or pauses the application in the running state, the person detection function of the first sensor can be directly controlled to be turned off. Based on this, the controlling of the specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device may include: the specific object detection function is controlled to be turned off based on the determined first mode.
In another implementation, the implementation of determining the morphology mode of the electronic device may refer to fig. 7, and as shown in fig. 7, determining the morphology mode of the electronic device may include:
step 701: and if the first included angle between the first body and the second body is in the second angle range, determining whether the included angle between the first functional surface and the vertical line is the same as the included angle between the second functional surface and the vertical line, and entering step 702 or step 703.
Step 702: and if the mode is the same, determining that the form mode of the electronic equipment is a second mode.
Step 703: and if the mode modes are different, determining that the form mode of the electronic equipment is a third mode.
In combination with the foregoing description of various morphological modes of the notebook computer, the reference ranges of the first included angles corresponding to the tent mode and the standing mode are the same, so that when the detected included angle between the first body and the second body is within the reference range interval of the tent mode and the standing mode, the morphological mode of the electronic device needs to be further determined.
Referring to the notebook computer in the tent mode shown in fig. 4, it can be known that in the tent mode, the first body and the second body are symmetrical with respect to the vertical line, so in this embodiment, whether the included angle between the first functional surface and the vertical line is the same as the included angle between the second functional surface and the vertical line can be determined to determine that the form mode of the notebook computer is the tent mode or the standing mode.
In yet another implementation, determining the morphology mode of the electronic device may include: and determining that the morphological mode of the electronic equipment is a fourth mode under the condition that the first included angle between the first body and the second body is in a third angle range. The third angular range is different from the first and second angular ranges described above, and the fourth mode is different from the first, second, or third modes.
For example, when it is determined that the first angle between the first body and the second body is within the reference range of the angle corresponding to the notebook mode, the notebook mode of the morphological mode of the notebook computer is determined.
Of course, in the foregoing description, a notebook computer is taken as an example, and the electronic device may be other types of devices in practical application, for example, an electronic device including a folding screen. Two bodies which can be folded in the folding screen are a first body and a second body respectively, and can be turned inwards or outwards in the using process. It should be noted that, the morphological modes of different types of electronic devices are classified differently, and the corresponding processing strategies in different morphological modes are also different, for example, when the folding screen is turned inward, the default user may not start the person detection function of the first sensor before the screen, and only when the folding screen is turned outward, the person detection function of the first sensor may be started.
Based on the foregoing, the controlling the specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device may include: determining a first rule corresponding to the morphological mode, wherein the first rule is used for representing the corresponding relation between a first included angle and a processing decision; controlling the specific object detection function to be started under the condition that the first included angle is located in a first included angle interval in a first rule; controlling the specific object detection function to be closed under the condition that the first included angle is located in a second included angle interval in the first rule; wherein, there is no intersection between the first angle section and the second angle section.
The control rules corresponding to different morphological modes may be different, for example, when it is determined that the notebook computer is in the tablet mode, the person detection function of the first sensor is directly controlled to be turned off, and when it is determined that the notebook computer is in other morphological modes, the specific value of the first included angle needs to be further combined to further determine the control of the person detection function of the first sensor. FIG. 8 is a diagram illustrating an example of a correspondence between a morphology mode and an angle-control strategy according to an embodiment of the present application, and in combination with FIG. 8, if the first angle is detected to be 120 °, it is determined that the notebook computer is currently in the notebook mode, and the control strategy is to control the function of the person detection block to be turned on; if the first included angle is detected to be 330 degrees, the function of the person detection block is controlled to be closed under the condition that the notebook computer is determined to be in a standing mode, and the function of the person detection block is determined to be opened under the condition that the notebook computer is determined to be in a tent mode; if the first included angle is detected to be 355 degrees, the notebook computer is determined to be in a flat mode, and the function of the person detection block is controlled to be closed.
In other implementations, after controlling the specific object detection function of the first sensor to be turned off, the method may further include: and controlling the display screen of the electronic equipment to lock the screen after the preset time.
For example, in some scenarios, when it is determined that the detection area of the first sensor deviates from the normal position of the user, the person detection function is controlled to be turned off, but the system cannot confirm whether the user is located before the electronic device, where one is that the user is using the electronic device but cannot be detected by the first sensor, and one is that the user is not located before the electronic device, at this time, after the specific object detection function of the first sensor is controlled to be turned off, the display screen of the electronic device may be controlled to be locked after a preset time, so as to cope with a situation that the user is not located before the electronic device. If the user is not detected by the first sensor before the electronic device, the user feels uncomfortable in watching the current form in a preset time, and the included angle between the first body and the second body is adjusted, then the system actively starts the character detection function of the first sensor after detecting that the first included angle changes, and the user is detected, so that the user detected by the first sensor does not continue to perform logic of screen locking after the preset time before the screen is locked by the display screen, and normal use of the user is not affected.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders or concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
The method is described in detail in the embodiments disclosed in the present application, and the method can be implemented by using various types of devices, so that the present application also discloses a device, and specific embodiments are given below for details.
Fig. 9 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, where the apparatus shown in fig. 9 is applicable to an electronic device, and the electronic device includes at least a first body and a second body, and the first body and the second body are movable relative to each other. Referring to fig. 9, the data processing apparatus 90 may include:
the form determining module 901 is configured to determine a use form of the electronic device, where the first body is provided with a first sensor having a specific object detection function, and a detection area of the first sensor is related to the use form of the electronic device.
A function control module 902, configured to control a specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device.
According to the processing device, the specific object detection function is controlled to be turned on or turned off by combining the use form of the equipment, so that the situation that the display screen is turned off due to the fact that the specific object cannot be detected under some special conditions, such as when the opening angle of the first body and the second body of the equipment is overlarge, the occurrence probability of a false screen locking event of the display screen is reduced, and the use experience of a user is improved.
In one implementation, the first body and the second body implement the change of the included angle through a first rotation axis, and then the form determining module is specifically configured to: determining a morphological mode of the electronic equipment and a first included angle between the first body and the second body, wherein when the first included angle between the first body and the second body is 0 degree, a first functional surface of the first body is opposite to a second functional surface of the second body.
In one implementation, the morphology determination module is specifically operable to: and determining that the morphological mode of the electronic equipment is a first mode under the condition that the first included angle between the first body and the second body is in a first angle range. The function control module is specifically operable to: the specific object detection function is controlled to be turned off based on the determined first mode.
In one implementation, the morphology determination module is specifically operable to: determining whether an included angle between the first functional surface and a vertical line is the same as an included angle between the second functional surface and a vertical line under the condition that the first included angle between the first body and the second body is in a second angle range; if the mode is the same, determining that the form mode of the electronic equipment is a second mode; and if the mode modes are different, determining that the form mode of the electronic equipment is a third mode.
In one implementation, the morphology determination module is specifically operable to: and determining that the morphological mode of the electronic equipment is a fourth mode under the condition that the first included angle between the first body and the second body is in a third angle range. Wherein the third angular range is different from the first angular range or the second angular range and the fourth mode is different from the first mode, the second mode or the third mode.
In one implementation, the function control module may be specifically configured to: determining a first rule corresponding to the morphological mode, wherein the first rule is used for representing the corresponding relation between a first included angle and a processing decision; controlling the specific object detection function to be started under the condition that the first included angle is located in a first included angle interval in a first rule; controlling the specific object detection function to be closed under the condition that the first included angle is located in a second included angle interval in the first rule; wherein, there is no intersection between the first angle section and the second angle section.
In one implementation, the data processing apparatus may further include: and the screen locking control module is used for controlling the display screen of the electronic equipment to lock the screen after the preset time after the function control module controls the specific object detection function of the first sensor to be closed.
Further, the application also discloses an electronic device, which at least comprises a first body and a second body, wherein the first body and the second body can move mutually, and the electronic device comprises:
A processor;
A memory for storing executable instructions of the processor;
Wherein the executable instructions comprise: determining the use form of the electronic equipment, wherein a first sensor with a specific object detection function is arranged on the first body, and the detection area of the first sensor is related to the use form of the electronic equipment; controlling a specific object detection function of the first sensor to be turned on or off based on the usage pattern of the electronic device.
Any one of the data processing apparatuses in the above embodiments includes a processor and a memory, and the form determining module, the function control module, the screen locking control module, and the like in the above embodiments are stored as program modules in the memory, and the processor executes the program modules stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel fetches the corresponding program module from the memory. The kernel can be provided with one or more kernels, and the processing of the return visit data is realized by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present application provides a storage medium having stored thereon a program which, when executed by a processor, implements the data processing method described in the above embodiment.
The embodiment of the application provides a processor for running a program, wherein the program runs to execute the data processing method in the embodiment.
Further, the embodiment provides an electronic device, which comprises a processor and a memory. Wherein the memory is for storing executable instructions of the processor configured to perform the data processing method described in the above embodiments via execution of the executable instructions.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
It is further noted that 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
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 (9)

1. The data processing method is applied to electronic equipment, the electronic equipment at least comprises a first body and a second body, the first body and the second body can move relative to each other, the first body and the second body realize the change of an included angle through a first rotating shaft, and the method comprises the following steps:
Determining a current morphological mode of the electronic equipment and a first included angle between the first body and the second body in the current morphological mode, wherein a first sensor with a specific object detection function is arranged on the first body;
Determining a control mode corresponding to the form mode according to the current form mode of the electronic equipment, wherein the control mode is used for representing the corresponding relation between the first included angle and the specific object detection function of the first sensor;
according to the current form mode of the electronic equipment and the corresponding control mode, if the first included angle is in the range of a first included angle interval, controlling the specific object detection function of the first sensor to be started, and when the specific object detection function of the first sensor is started, automatically locking a screen if no user exists in front of the electronic equipment;
And if the first included angle is in the range of the second included angle interval, controlling the specific object detection function of the first sensor to be closed.
2. The data processing method according to claim 1, wherein when the first angle between the first body and the second body is 0 degrees, the first functional surface of the first body and the second functional surface of the second body are opposite.
3. The data processing method of claim 2, determining a current morphology mode of the electronic device, comprising:
And determining that the morphological mode of the electronic equipment is a first mode under the condition that the first included angle between the first body and the second body is in a first angle range.
4.A data processing method according to claim 3, controlling the specific object detection function of the first sensor to be turned off, comprising:
the specific object detection function is controlled to be turned off based on the determined first mode.
5. The data processing method of claim 2, determining a current morphology mode of the electronic device, comprising:
Determining whether an included angle between the first functional surface and a vertical line is the same as an included angle between the second functional surface and a vertical line under the condition that the first included angle between the first body and the second body is in a second angle range;
If the mode is the same, determining that the form mode of the electronic equipment is a second mode;
And if the mode modes are different, determining that the form mode of the electronic equipment is a third mode.
6. The data processing method according to claim 1, further comprising, after controlling a specific object detection function of the first sensor to be turned off:
And controlling the display screen of the electronic equipment to lock the screen after the preset time.
7. The data processing method of claim 1, the first sensor being a TOF sensor, a radar sensor, or an ultrasonic sensor.
8. A data processing apparatus for an electronic device, the electronic device comprising at least a first body and a second body, the first body and the second body being movable with respect to each other, the first body and the second body being adapted to effect a change of an included angle through a first rotation axis, the apparatus comprising:
The form determining module is used for determining a current form mode of the electronic equipment and a first included angle between the first body and the second body in the current form mode, wherein a first sensor with a specific object detecting function is arranged on the first body;
The function control module is used for determining a control mode corresponding to the form mode according to the current form mode of the electronic equipment, and the control mode is used for representing the corresponding relation between the first included angle and the specific object detection function of the first sensor; according to the current form mode of the electronic equipment and the corresponding control mode, if the first included angle is in the range of a first included angle interval, controlling the specific object detection function of the first sensor to be started, and when the specific object detection function of the first sensor is started, automatically locking a screen if no user exists in front of the electronic equipment; and if the first included angle is in the range of the second included angle interval, controlling the specific object detection function of the first sensor to be closed.
9. An electronic device including at least a first body and a second body, the first body and the second body being movable with respect to each other, the first body and the second body realizing a change of an included angle through a first rotation axis, the electronic device including:
A processor;
A memory for storing executable instructions of the processor;
Wherein the executable instructions comprise:
Determining a current morphological mode of the electronic equipment and a first included angle between a first body and a second body in the current morphological mode, wherein a first sensor with a specific object detection function is arranged on the first body;
Determining a control mode corresponding to the form mode according to the current form mode of the electronic equipment, wherein the control mode is used for representing the corresponding relation between the first included angle and the specific object detection function of the first sensor;
according to the current form mode of the electronic equipment and the corresponding control mode, if the first included angle is in the range of a first included angle interval, controlling the specific object detection function of the first sensor to be started, and when the specific object detection function of the first sensor is started, automatically locking a screen if no user exists in front of the electronic equipment;
And if the first included angle is in the range of the second included angle interval, controlling the specific object detection function of the first sensor to be closed.
CN202110333500.7A 2021-03-29 Data processing method and device and electronic equipment Active CN113032219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110333500.7A CN113032219B (en) 2021-03-29 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110333500.7A CN113032219B (en) 2021-03-29 Data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113032219A CN113032219A (en) 2021-06-25
CN113032219B true CN113032219B (en) 2024-04-19

Family

ID=

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106094980A (en) * 2016-05-30 2016-11-09 联想(北京)有限公司 Information processing method and information processor
CN107967794A (en) * 2017-11-22 2018-04-27 李海波 A kind of method by electronic equipment monitoring user's posture
CN110209275A (en) * 2019-05-27 2019-09-06 维沃移动通信有限公司 Terminal control method and terminal
CN110297536A (en) * 2019-06-30 2019-10-01 联想(北京)有限公司 A kind of control method and electronic equipment
CN110308767A (en) * 2018-03-20 2019-10-08 仁宝电脑工业股份有限公司 Electronic device and its operating method
CN110398197A (en) * 2019-07-31 2019-11-01 联想(北京)有限公司 A kind of electronic equipment and information processing method
CN110602313A (en) * 2019-08-28 2019-12-20 维沃移动通信有限公司 Control method of touch screen, terminal and storage medium
WO2020050877A1 (en) * 2018-09-06 2020-03-12 Apple Inc. Electronic device with an integrated pressure sensor
CN111651030A (en) * 2020-06-01 2020-09-11 惠州Tcl移动通信有限公司 Sensor detection method and device, storage medium and mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106094980A (en) * 2016-05-30 2016-11-09 联想(北京)有限公司 Information processing method and information processor
CN107967794A (en) * 2017-11-22 2018-04-27 李海波 A kind of method by electronic equipment monitoring user's posture
CN110308767A (en) * 2018-03-20 2019-10-08 仁宝电脑工业股份有限公司 Electronic device and its operating method
WO2020050877A1 (en) * 2018-09-06 2020-03-12 Apple Inc. Electronic device with an integrated pressure sensor
CN110209275A (en) * 2019-05-27 2019-09-06 维沃移动通信有限公司 Terminal control method and terminal
CN110297536A (en) * 2019-06-30 2019-10-01 联想(北京)有限公司 A kind of control method and electronic equipment
CN110398197A (en) * 2019-07-31 2019-11-01 联想(北京)有限公司 A kind of electronic equipment and information processing method
CN110602313A (en) * 2019-08-28 2019-12-20 维沃移动通信有限公司 Control method of touch screen, terminal and storage medium
CN111651030A (en) * 2020-06-01 2020-09-11 惠州Tcl移动通信有限公司 Sensor detection method and device, storage medium and mobile terminal

Similar Documents

Publication Publication Date Title
US20180239977A1 (en) Face detection with temperature and distance validation
US9785295B2 (en) Touch screen control method and device
CN110287694B (en) Application program management method, mobile terminal and storage medium
JP6292673B2 (en) Portable terminal device, erroneous operation prevention method, and program
US20100194705A1 (en) Mobile terminal having dual touch screen and method for displaying user interface thereof
US20180203568A1 (en) Method for Enabling Function Module of Terminal, and Terminal Device
US20110234617A1 (en) Mobile electronic device
CN107831987B (en) False touch control method and device for preventing gesture operation
US20150003691A1 (en) Method of operating an iris recognition portable device and iris recognition portable device
US11941910B2 (en) User interface display method of terminal, and terminal
US20200311382A1 (en) Information processing method and electronic device
CN114341784A (en) Touch event processing method and device, mobile terminal and storage medium
CN113032219B (en) Data processing method and device and electronic equipment
WO2021102969A1 (en) Method and apparatus for triggering fingerprint detection, electronic device, and storage medium
CN113032219A (en) Data processing method and device and electronic equipment
CN111221415B (en) Control method and device and electronic equipment
US11663343B2 (en) Information handling system adaptive user presence detection
US11003752B2 (en) Contextual device unlocking
US11875660B2 (en) Multiple proximity sensors based electronic device
CN113488002B (en) Abnormal screen brightness adjusting method and device, electronic equipment and medium
US11900631B2 (en) Operating mode change by image compare
US20120127134A1 (en) Portable computer
US10810848B2 (en) Electronic device equipped with anti-theft function and method for performing anti-theft management
CN111459380A (en) Picture rotation control method and device, storage medium and display equipment
CN106469001A (en) Information cuing method and device

Legal Events

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