[go: up one dir, main page]

CN110138956B - Terminal device detection method, terminal device and computer readable storage medium - Google Patents

Terminal device detection method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN110138956B
CN110138956B CN201910239878.3A CN201910239878A CN110138956B CN 110138956 B CN110138956 B CN 110138956B CN 201910239878 A CN201910239878 A CN 201910239878A CN 110138956 B CN110138956 B CN 110138956B
Authority
CN
China
Prior art keywords
contact area
preset
terminal device
early warning
change rate
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
CN201910239878.3A
Other languages
Chinese (zh)
Other versions
CN110138956A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910239878.3A priority Critical patent/CN110138956B/en
Publication of CN110138956A publication Critical patent/CN110138956A/en
Application granted granted Critical
Publication of CN110138956B publication Critical patent/CN110138956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a terminal device detection method, a terminal device and a computer readable storage medium, wherein the terminal device detection method comprises the following steps: detecting a contact area where a side edge of a screen of the terminal device contacts the operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; and if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information. Therefore, the method can detect the contact area of the side edge of the screen of the terminal equipment and the operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; if the contact area meets the equipment falling early warning condition, prompting preset early warning information to prevent the terminal equipment from falling off from the operation body.

Description

Terminal device detection method, terminal device and computer readable storage medium
Technical Field
The present application relates to the field of terminal devices, and in particular, to a terminal device detection method, a terminal device, and a computer-readable storage medium.
Background
In daily life, a user can hold the mobile phone in the hand when riding public transportation or having a rest. When the user is sleepy, the user may doze off, and the mobile phone may fall off from the hand.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the present application provides a terminal device detection method, a terminal device and a computer-readable storage medium.
In a first aspect, the present application provides a method for detecting a terminal device, including:
detecting a contact area where the side edge of the screen of the terminal equipment is in contact with an operator;
judging whether the contact area meets a preset equipment falling-off early warning condition or not;
and if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information.
In a second aspect, the present application provides a terminal device, including:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implements the steps of the method according to any one of the first aspect.
In a third aspect, the present application provides a computer-readable storage medium having stored thereon a terminal device detection program, which when executed by a processor, implements the steps of the terminal device detection method according to any one of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the terminal device detection method provided by the embodiment of the application comprises the following steps: detecting a contact area where a side edge of a screen of the terminal device contacts the operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; and if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information. The method can detect a contact area where the side edge of the screen of the terminal device is in contact with the operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; if the contact area meets the equipment falling early warning condition, prompting preset early warning information to prevent the terminal equipment from falling off from the operation body.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a terminal device according to various embodiments of the present application;
fig. 2 is a flowchart of a terminal device detection method according to an embodiment of the present application;
fig. 3 is a schematic side view of a screen of a terminal device according to an embodiment of the present application;
FIG. 4 is a schematic view of a contact area provided by an embodiment of the present application;
fig. 5 is a diagram of correspondence between a contact area and a time when a contact area for determining the contact area is obtained according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Various embodiments of the method of the present invention are proposed based on the above-mentioned mobile terminal hardware structure.
The embodiment of the application provides a terminal device detection method, a terminal device detection device and a computer readable storage medium, which can prevent the terminal device from falling off from an operation body.
First, a method for detecting a terminal device in the embodiment of the present application is described in detail, as shown in fig. 2, the method for detecting a terminal device may include steps S101 to S103:
s101, detecting a contact area of the side edge of the screen of the terminal device and the operator.
Illustratively, as shown in fig. 3, the side 31 of the screen of the terminal device may be an area within a dashed box.
Illustratively, when the side 31 of the screen of the terminal device comes into contact with the operator, a contact area is formed. As shown in fig. 4, when the side 31 of the screen of the terminal device is in contact with the operator, a contact area 41 may be formed.
Illustratively, the screen of the terminal device may be a curved screen or a folded screen.
And S102, judging whether the contact area meets a preset equipment falling-off early warning condition.
S103, if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information.
The terminal device detection method provided by the embodiment of the application comprises the following steps: detecting a contact area where a side edge of a screen of the terminal device contacts the operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; and if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information. The method can detect a contact area where the side edge of the screen of the terminal device is in contact with the operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; if the contact area meets the equipment falling early warning condition, prompting preset early warning information to prevent the terminal equipment from falling off from the operation body.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S101 to step S103, step S102 may include step S1021 to step S1023:
and S1021, calculating the contact area of the contact area.
And S1022, judging whether the contact area is smaller than a preset area threshold value.
Wherein, the area threshold value can be preset in the terminal device. Or when the terminal device is used by the operating body for the first time, the terminal device prompts the operating body to simulate the holding action when the terminal device is about to fall off, then the terminal device detects the contact area of the side edge of the screen and the operating body, calculates the area of the detected contact area, and determines the area value as the area threshold value. Or adding a preset regulating value on the basis of the area value to obtain the area threshold value.
S1023, if the contact area is smaller than the area threshold value, determining that the contact area meets the equipment falling-off early warning condition.
In the embodiment of the application, the terminal device can acquire the area threshold corresponding to each operation body, and further judge whether the contact area is smaller than the area threshold according to the area threshold acquired in advance, and if the contact area is smaller than the area threshold, it is determined that the contact area meets the device falling-off early warning condition. Therefore, the area threshold value acquired in advance is targeted for each operation body. The accuracy of the judgment process can be improved by using the area threshold with pertinence.
In another embodiment of the present application, based on the embodiments of the foregoing step S1021 to step S1023, step S1021 may include step S201 to step S202:
s201, judging whether the contact area is located in a preset contact area.
The preset contact area may be an area fixedly set on the screen of the terminal device in advance. Or, the preset contact area may be a contact area in which the terminal device prompts the operator to normally hold the terminal device when the operator uses the terminal device for the first time, and then the terminal device detects a contact area in which the side of the screen contacts the operator, determines the detected contact area as the preset contact area, and records the detected contact area.
S202, if the contact area is located in the preset contact area, calculating the contact area of the contact area.
In the embodiment of the application, whether a contact area is located in a preset contact area is judged firstly, and if the contact area is located in the preset contact area, the contact area of the contact area is calculated. This may improve the effectiveness of the contact area.
In another embodiment of the application, on the basis of the foregoing embodiments from step S201 to step S202, the determining whether the contact area meets a preset device drop-off warning condition may further include step S301 to step S304:
and S301, if the contact area is smaller than the area threshold, detecting a contact area where the side edge of the screen of the terminal device contacts the operating body at preset first time intervals within a preset first time range.
Illustratively, the first time range may be 3 minutes. The first time interval may be set to 20 seconds.
For example, the correspondence between the time when the contact area is acquired and the contact area within 3 minutes may be as shown in table 1.
TABLE 1
Figure BDA0002009335860000091
Figure BDA0002009335860000101
For example, the contact area S5 where the side edge of the screen of the terminal device is in contact with the operator is detected at 1 st minute and 40 seconds within 3 minutes.
S302, determining a first reduced rate of change based on the plurality of contact areas detected within the first time range.
Specifically, step S302 may include steps S3021 to S3022:
s3021, a contact area of each of the plurality of contact regions is calculated, respectively.
The data in table 1 are exemplified as an example. The plurality of contact areas calculated from the plurality of contact areas may be as shown in table 2.
TABLE 2
Timing of acquisition of contact area Contact area Area of contact
Second 20 S1 s1
40 th second S2 s2
1 st point of S3 s3
1 minute and 20 seconds S4 s4
1 minute and 40 seconds S5 s5
2 nd point of S6 s6
2 minute and 20 seconds S7 s7
2 minute and 40 seconds S8 s8
Score
3 S9 s9
For example, the contact area S5 is calculated from the contact area S5.
S3022, determining a first rate of change of reduction from the first time range and the calculated plurality of contact areas.
Specifically, the time when the contact region is acquired is used as an abscissa, the corresponding contact area is used as an ordinate, the correspondence between the contact area and the time when the contact region is acquired is determined, a fitting function is obtained, and the slope of the fitting function is determined as a first reduction rate of change.
For example, as shown in fig. 5, the correspondence between the contact area and the time of acquiring the contact area is determined according to the abscissa as the time of acquiring the contact area and the ordinate as the corresponding contact area in table 2, and a fitting function L1 is obtained. The slope of the fitting function L1 is the first decreasing rate of change corresponding to the data in table 2.
For example, if the fitting function is y ═ kx + b, where x denotes the time at which the contact region is obtained and y denotes the contact area, k in the fitting function is the first decreasing rate of change.
And S303, judging whether the first reduction change rate is within a preset reduction change rate value range.
The range of the reduction change rate may be (K1, K2). In the process of daily use of the terminal device by the operation body, the terminal device can record the contact area reduction change rate in the falling process of the terminal device. The reduction change rate value range can be determined according to a plurality of contact area reduction change rates recorded by the terminal device. The terminal device may also record a new contact area reduction change rate, and then update the obtained reduction change rate value range with the new contact area reduction change rate.
Specifically, step S303 may be: and judging whether the first reduction change rate is greater than K1, if so, judging whether the first reduction change rate is less than K2, and if so, determining that the first reduction change rate is within the value range of the reduction change rate.
S304, if the first reduction change rate is within the reduction change rate value range, determining that the contact area meets the equipment falling-off early warning condition.
In another embodiment of the present application, on the basis of the foregoing embodiments from step S201 to step S202, the determining whether the contact area meets a preset device drop-off warning condition may further include step S401 to step S405:
s401, if the contact area is smaller than the area threshold, determining a second time range according to the difference between the area threshold and the contact area.
Specifically, step S401 may include steps S4011 to S4012:
s4011, calculating a difference value between the area threshold value and the contact area to obtain a target area difference value.
For example, if the area threshold is s0Contact area of s1Then the difference Δ s of the target area is s0-s1
S4012, determining a second time range corresponding to the target area difference in the correspondence between the preset area difference and the time range.
The corresponding relationship between the preset area difference and the time range can be shown in table 3.
TABLE 3
Difference in area Time horizon
Δs1 (0,t1)
Δs2 (0,t2)
Δs3 (0,t3)
Δs4 (0,t4)
For example, if the target area difference is equal to Δ s2, the second time range corresponding to the target area difference Δ s2 is (0, t)2)。
Wherein if Δ s1 is smaller than Δ s2, t is1Less than t2. This is because the smaller the difference between the area threshold and the contact area is, the closer the current state of the terminal device is to the drop-off state is, and therefore, the detection of the contact area is completed in a shorter time frame. Conversely, the larger the difference between the area threshold and the contact area is, the larger the difference between the current state and the falling-off state of the terminal device is, and therefore, the detection of the contact area needs to be completed in a longer time range. Therefore, the flexibility and accuracy of the determination process can be improved.
S402, detecting a contact area of the side edge of the screen of the terminal equipment and the operating body at preset second time intervals in the second time range.
Illustratively, the second time interval may be determined from the second time range. If the second time range is smaller, a smaller second time interval may be determined. For example, if the second time range is 1 minute, the second time interval may be set to 10 seconds. If the second time range is 2 minutes, the second time interval may be set to 15 seconds. If the second time range is 3 minutes, the second time interval may be set to 20 seconds.
For example, the correspondence between the time when the contact region is acquired and the contact region within 1 minute may be as shown in table 4.
TABLE 4
Timing of acquisition of contact area Contact area
Second 10 M1
Second 20 M2
30 th second M3
40 th second M4
50 th second M5
1 st point of M6
For example, at 40 th second within 1 minute, the contact area M4 where the side edge of the screen of the terminal device is in contact with the operator is detected.
And S403, determining a second reduction change rate according to the plurality of contact areas detected in the second time range.
Specifically, step S403 may include step S4031 to step S4032:
s4031, a contact area of each of the plurality of contact areas detected in the second time range is calculated, respectively.
For example, the data in table 4 is used as an example for explanation. The plurality of contact areas calculated from the plurality of contact areas may be as shown in table 5.
TABLE 5
Figure BDA0002009335860000131
Figure BDA0002009335860000141
For example, the contact area M5 is calculated from the contact area M5.
S4032, determining a second rate of change of reduction according to the second time range and the calculated plurality of contact areas.
Specifically, the time when the contact region is acquired is used as an abscissa, the corresponding contact area is used as an ordinate, the correspondence between the contact area and the time when the contact region is acquired is determined, a fitting function is obtained, and the slope of the fitting function is determined as a second reduction rate of change.
Illustratively, the fitting function L2 is obtained by determining the correspondence between the contact area and the time of acquiring the contact area with the time of acquiring the contact area as the abscissa and the corresponding contact area as the ordinate in table 5. The slope of the fitting function L2 is a second decreasing rate of change corresponding to the data in table 5.
For example, if the fitting function is y ═ kx + b, where x denotes the time at which the contact region is obtained and y denotes the contact area, k in the fitting function is the second decreasing rate of change.
S404, judging whether the second reduction change rate is in a preset reduction change rate value range.
The range of the reduction change rate may be (K1, K2). In the process of daily use of the terminal device by the operation body, the terminal device can record the contact area reduction change rate in the falling process of the terminal device. The reduction change rate value range can be determined according to a plurality of contact area reduction change rates recorded by the terminal device. The terminal device may also record a new contact area reduction change rate, and then update the obtained reduction change rate value range with the new contact area reduction change rate.
Specifically, step S404 may be: and judging whether the second reduction change rate is greater than K1, if so, judging whether the second reduction change rate is smaller than K2, and if so, determining that the second reduction change rate is within the value range of the reduction change rate.
S405, if the second reduction change rate is within the reduction change rate value range, determining that the contact area meets the equipment falling-off early warning condition.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S1021 to step S1023, step S102 may further include step S501 to step S503:
and S501, if the contact area is not smaller than the area threshold, detecting a contact area where the side edge of the screen of the terminal device contacts the operator after a preset third time interval.
If the contact area is not smaller than the area threshold, it indicates that the terminal device is not in risk of falling off temporarily. Illustratively, the third time interval may be set to 5 minutes.
And S502, judging whether the contact area detected after the third time interval meets the equipment falling-off early warning condition.
And S503, if the contact area detected after the third time interval meets the equipment falling-off early warning condition, prompting the early warning information.
In this embodiment of the application, if the contact area is not smaller than the area threshold, after a preset third time interval, a contact area where the side of the screen of the terminal device contacts the operating body is detected. Therefore, if it is determined that the terminal device is not in risk of falling off temporarily, after the third time interval, the terminal device detects a contact area where the side edge of the screen of the terminal device contacts the operating body.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S101 to step S103, step S102 may include step S601 to step S603:
s601, counting the number of the pixel points in the contact area to obtain the total number of the pixel points in the contact area.
Wherein, step S601 may include step S6011 to step S6012:
s6011, judging whether the contact area is located in a preset contact area.
The preset contact area may be an area fixedly set on the screen of the terminal device in advance. Or, the preset contact area may be a contact area in which the terminal device prompts the operator to normally hold the terminal device when the operator uses the terminal device for the first time, and then the terminal device detects a contact area in which the side of the screen contacts the operator, determines the detected contact area as the preset contact area, and records the detected contact area.
S6012, if the contact area is located in the preset contact area, counting the number of the pixel points located in the contact area to obtain the total number of the pixel points in the contact area.
S602, judging whether the total number of the pixel points in the contact area is less than a preset pixel point threshold value.
Wherein, the pixel point threshold value can be preset in the terminal device. Or when the operation body uses the terminal equipment for the first time, the terminal equipment prompts the operation body to simulate the holding action when the terminal equipment is about to fall off, then the terminal equipment detects the contact area where the side edge of the screen is in contact with the operation body, counts the number of pixel points in the contact area, and obtains the pixel point number threshold. Or adding a preset adjusting value on the basis of the counted pixel point number to obtain a pixel point number threshold value.
S603, if the total number of the pixel points in the contact area is smaller than the threshold value of the number of the pixel points, determining that the contact area meets the early warning condition of equipment falling.
In the embodiment of the application, the terminal device can acquire the pixel point threshold corresponding to each operation body, and then judge whether the total number of the pixels in the contact area is less than the preset pixel point threshold according to the pixel point threshold acquired in advance, and if the total number of the pixels in the contact area is less than the pixel point threshold, the contact area is determined to meet the early warning condition of equipment falling. Therefore, the pixel point threshold value acquired in advance is targeted for each operator. The accuracy of the judgment process can be improved by using the targeted pixel point threshold value.
In the embodiment of the application, whether the contact area is located in a preset contact area is judged, and if the contact area is located in the preset contact area, the number of the pixel points located in the contact area is counted to obtain the total number of the pixel points in the contact area. Therefore, the effectiveness of the total number of the pixel points in the contact area can be improved.
In another embodiment of the present application, on the basis of the foregoing step S601 to step S603, the determining whether the contact area meets a preset device drop-off warning condition may further include step S701 to step S704:
and S701, if the total number of the pixel points in the contact area is smaller than the pixel point threshold, detecting the contact area where the side edge of the screen of the terminal equipment contacts with the operating body at intervals of a preset fourth time within a preset third time range.
Illustratively, the third time range may be 3 minutes. The fourth time interval may be set to 20 seconds.
S702, determining a third reduced rate of change based on the plurality of contact areas detected within the third time frame.
Specifically, step S702 may include steps S7021 to S7022:
s7021, respectively counting the number of pixels in each of the plurality of contact areas detected in the third time range, to obtain the total number of pixels in the plurality of contact areas.
S7022, determining a third reduction rate according to the third time range and the counted total number of the pixels in the plurality of contact areas.
Specifically, the time of acquiring the contact area is used as an abscissa, the total number of the pixels in the corresponding contact area is used as an ordinate, the corresponding relation between the total number of the pixels in the contact area and the time of acquiring the contact area is determined, a fitting function is obtained, and the slope of the fitting function is determined as a third reduction change rate.
And S703, judging whether the third reduction change rate is within a preset reduction change rate value range.
The range of the reduction change rate may be (K1, K2). In the process of daily use of the terminal device by the operation body, the terminal device can record the contact area reduction change rate in the falling process of the terminal device. The reduction change rate value range can be determined according to a plurality of contact area reduction change rates recorded by the terminal device. The terminal device may also record a new contact area reduction change rate, and then update the obtained reduction change rate value range with the new contact area reduction change rate.
Specifically, step S703 may be: and judging whether the third reduction change rate is greater than K1, if so, judging whether the third reduction change rate is less than K2, and if so, determining that the third reduction change rate is within the value range of the reduction change rate.
S704, if the third reduction change rate is within the reduction change rate value range, determining that the contact area meets the equipment falling-off early warning condition.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S601 to step S603, the determining whether the contact area meets a preset device drop-off warning condition may further include step S801 to step S805:
s801, if the total number of the pixel points in the contact area is smaller than the pixel point threshold, determining a fourth time range according to a difference value between the pixel point threshold and the total number of the pixel points in the contact area.
Specifically, step S801 may include step S8011 to step S8012:
s8011, a difference value between the pixel point number threshold and the total number of the pixels in the contact area is calculated, and a target pixel point number difference value is obtained.
For example, if the pixel point number threshold is s0The total number of pixels in the contact area is s1Then the difference value of the target pixel point number is s0-s1
S8012, in a correspondence between the preset pixel point difference value and the time range, a fourth time range corresponding to the target pixel point difference value is determined.
The smaller the difference between the pixel point number threshold and the total number of the pixel points in the contact area is, the closer the current state of the terminal device is to the falling state, so that the detection of the contact area needs to be completed in a shorter time range. On the contrary, the larger the difference between the pixel point number threshold and the total number of the pixel points in the contact area is, the larger the difference between the current state and the falling state of the terminal device is, so that the detection of the contact area needs to be completed in a longer time range. Therefore, the flexibility and accuracy of the determination process can be improved.
And S802, detecting a contact area of the side edge of the screen of the terminal equipment in contact with the operating body at preset fifth time intervals in the fourth time range.
Illustratively, the fifth time interval may be determined from the fourth time range. If the fourth time range is smaller, a smaller fifth time interval may be determined. For example, if the fourth time range is 1 minute, the fifth time interval may be set to 10 seconds. If the fourth time range is 2 minutes, the fifth time interval may be set to 15 seconds. If the fourth time range is 3 minutes, the fifth time interval may be set to 20 seconds.
S803, a fourth decreasing rate of change is determined from the plurality of contact areas detected within the fourth time range.
Specifically, step S803 may include steps S8031 to S8032:
and S8031, respectively counting the number of the pixel points in each of the plurality of contact areas detected in the fourth time range to obtain the total number of the pixel points in the plurality of contact areas.
And S8032, determining a fourth reduction change rate according to the fourth time range and the counted total number of the pixel points in the plurality of contact areas.
Specifically, the time when the contact area is obtained is used as the abscissa, the total number of the pixels in the corresponding contact area is used as the ordinate, the corresponding relation between the total number of the pixels in the contact area and the time when the contact area is obtained is determined, a fitting function is obtained, and the slope of the fitting function is determined as the fourth reduction change rate.
And S804, judging whether the fourth reduction change rate is within a preset reduction change rate value range.
Specifically, step S804 may be: and judging whether the fourth reduction change rate is greater than K1, if so, judging whether the fourth reduction change rate is smaller than K2, and if so, determining that the fourth reduction change rate is within the value range of the reduction change rate.
And S805, if the fourth reduction change rate is within the reduction change rate value range, determining that the contact area meets the equipment falling-off early warning condition.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S601 to step S603, the determining whether the contact area meets a preset device drop-off warning condition may further include step S901 to step S903:
and S901, if the total number of the pixel points in the contact area is not less than the pixel point threshold, detecting the contact area where the side edge of the screen of the terminal equipment contacts the operator after a preset sixth time interval.
And S902, judging whether the contact area detected after the sixth time interval meets the equipment falling-off early warning condition.
And S903, if the contact area detected after the sixth time interval meets the equipment falling-off early warning condition, prompting the early warning information.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S101 to step S103, step S102 may include step S1101 to step S1106:
s1101, calculating the area occupation ratio of the contact area on a preset contact area.
And S1102, judging whether the area ratio is smaller than a preset area ratio threshold value.
And S1103, if the area occupation ratio is smaller than the area occupation ratio threshold, detecting a contact area where the side edge of the screen of the terminal device contacts the operator at every seventh preset time interval within a preset fifth time range.
S1104, determining a fifth decreasing rate of change based on the plurality of contact areas detected within the fifth time frame.
And S1105, judging whether the fifth reduction change rate is within a preset reduction change rate value range.
And S1106, if the fifth reduction change rate is within the reduction change rate value range, determining that the contact area meets the equipment falling-off early warning condition.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S101 to step S103, the prompting the preset warning information may include the steps of:
vibrating in a mode that the vibration intensity is changed from small to large.
If the terminal device prompts preset early warning information, the fact that the contact area meets the device falling early warning condition is shown, and a user may be in a sleep state, so that the user is awakened by vibrating in a mode that the vibration intensity is changed from small to large, the user is prevented from being awakened by too high vibration intensity, and the situation that the user makes the terminal device fall off in a confused state is avoided.
And/or ringing in a mode that the sound volume is changed from small to large.
If the terminal device prompts preset early warning information, the contact area meets the device falling early warning condition, and a user may be in a sleep state, so that the user is awakened by ringing in a mode that the sound volume is changed from small to large, the user is prevented from being awakened by too large sound volume, and the situation that the user in a confused state causes the terminal device to fall off is avoided.
In another embodiment of the present application, a terminal device in the embodiments of the present application is described in detail, and as shown in fig. 6, the terminal device may include:
a memory 602, a processor 601 and a computer program stored on the memory 602 and executable on the processor 601.
Wherein, the terminal device may further include: a communication interface 603 and a bus 604, wherein the processor 601, the memory 602 and the communication interface 603 complete mutual communication through the bus 604, and the communication interface 603 is used for information transmission between external devices.
The computer program, when executed by the processor 601, implements the steps of the method according to any of the embodiments described above.
Specifically, the processor 601 is configured to execute a terminal device detection program to implement the following steps: detecting a contact area where the side edge of the screen of the terminal equipment is in contact with an operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; and if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information.
In yet another embodiment of the present application, a computer-readable storage medium in an embodiment of the present application is described in detail, where the computer-readable storage medium has a terminal device detection program stored thereon, and the terminal device detection program, when executed by a processor, implements the steps of the terminal device detection method according to any one of the embodiments described above.
The computer-readable storage medium may store one or more computer instructions. The computer-readable storage medium may include volatile memory, such as random access memory; the computer-readable storage medium may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the computer readable storage medium may also include a combination of memories of the above kinds.
Specifically, the terminal device detection program realizes the following steps when executed by a processor: detecting a contact area where the side edge of the screen of the terminal equipment is in contact with an operator; judging whether the contact area meets a preset equipment falling-off early warning condition or not; and if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A terminal device detection method is characterized by comprising the following steps:
detecting a contact area where the side edge of the screen of the terminal equipment is in contact with an operator;
judging whether the contact area meets a preset equipment falling-off early warning condition or not;
if the contact area meets the equipment falling-off early warning condition, prompting preset early warning information;
judging whether the contact area meets the preset equipment falling early warning condition or not, further comprising:
if the contact area of the contact area is smaller than an area threshold, detecting the contact area of the side edge of the screen of the terminal equipment in contact with the operating body at intervals of a preset first time interval within a preset first time range;
determining a first reduced rate of change based on the plurality of contact areas detected within the first time range;
judging whether the first reduction change rate is within a preset reduction change rate value range or not;
and if the first reduction change rate is within the value range of the reduction change rate, determining that the contact area meets the equipment falling-off early warning condition.
2. The method according to claim 1, wherein the determining whether the contact area meets a preset device drop-off warning condition further comprises:
if the contact area is smaller than the area threshold, determining a second time range according to a difference value between the area threshold and the contact area;
detecting a contact area of the side edge of the screen of the terminal equipment in contact with the operating body at preset second time intervals within the second time range;
determining a second decreasing rate of change based on the plurality of contact areas detected within the second time frame;
judging whether the second reduction change rate is within a preset reduction change rate value range or not;
and if the second reduction change rate is within the reduction change rate value range, determining that the contact area meets the equipment falling-off early warning condition.
3. The method according to claim 1, wherein the determining whether the contact area meets a preset device drop-off warning condition further comprises:
if the contact area is not smaller than the area threshold, detecting a contact area where the side edge of the screen of the terminal device is in contact with the operating body after a preset third time interval;
judging whether the contact area detected after the third time interval meets the equipment falling-off early warning condition or not;
and if the contact area detected after the third time interval meets the equipment falling-off early warning condition, prompting the early warning information.
4. The method according to claim 1, wherein the determining whether the contact area meets a preset device drop-off warning condition comprises:
counting the number of the pixel points in the contact area to obtain the total number of the pixel points in the contact area;
judging whether the total number of the pixel points in the contact area is less than a preset pixel point threshold value or not;
and if the total number of the pixel points in the contact area is less than the threshold value of the number of the pixel points, determining that the contact area meets the early warning condition of equipment falling.
5. The method according to any one of claims 1 to 4, wherein the prompting for the preset warning information comprises:
vibrating according to the mode that the vibration intensity is changed from small to big;
and/or ringing in a mode that the sound volume is changed from small to large.
6. A terminal device, characterized in that the terminal device comprises:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implementing the steps of the method of any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a terminal device detection program which, when executed by a processor, implements the steps of the terminal device detection method according to any one of claims 1 to 5.
CN201910239878.3A 2019-03-27 2019-03-27 Terminal device detection method, terminal device and computer readable storage medium Active CN110138956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910239878.3A CN110138956B (en) 2019-03-27 2019-03-27 Terminal device detection method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910239878.3A CN110138956B (en) 2019-03-27 2019-03-27 Terminal device detection method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110138956A CN110138956A (en) 2019-08-16
CN110138956B true CN110138956B (en) 2022-01-14

Family

ID=67568743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910239878.3A Active CN110138956B (en) 2019-03-27 2019-03-27 Terminal device detection method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110138956B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503888A (en) * 2014-12-16 2015-04-08 小米科技有限责任公司 Warning method and device
CN106331253A (en) * 2016-09-06 2017-01-11 广东欧珀移动通信有限公司 Terminal processing method, device and processing terminal
CN106325514A (en) * 2016-08-26 2017-01-11 珠海格力电器股份有限公司 Anti-falling method and device of handheld intelligent terminal and electronic equipment thereof
CN107743169A (en) * 2017-09-14 2018-02-27 维沃移动通信有限公司 Method for controlling mobile terminal and mobile terminal
CN108174016A (en) * 2017-11-29 2018-06-15 努比亚技术有限公司 A kind of terminal shatter-resistant control method, terminal and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9081546B2 (en) * 2009-11-12 2015-07-14 KYCOERA Corporation Portable terminal, input control program and input control method
CN104571919A (en) * 2015-01-26 2015-04-29 深圳市中兴移动通信有限公司 Terminal screen display method and device
CN106155378B (en) * 2015-03-30 2017-12-05 深圳市汇顶科技股份有限公司 A kind of touch screen terminal and its near field communication method, device and system
CN107908311A (en) * 2017-11-15 2018-04-13 深圳天珑无线科技有限公司 Mobile terminal anti-slip method, mobile terminal and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503888A (en) * 2014-12-16 2015-04-08 小米科技有限责任公司 Warning method and device
CN106325514A (en) * 2016-08-26 2017-01-11 珠海格力电器股份有限公司 Anti-falling method and device of handheld intelligent terminal and electronic equipment thereof
CN106331253A (en) * 2016-09-06 2017-01-11 广东欧珀移动通信有限公司 Terminal processing method, device and processing terminal
CN107743169A (en) * 2017-09-14 2018-02-27 维沃移动通信有限公司 Method for controlling mobile terminal and mobile terminal
CN108174016A (en) * 2017-11-29 2018-06-15 努比亚技术有限公司 A kind of terminal shatter-resistant control method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110138956A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
US11848773B2 (en) Transmit antenna switching method and terminal device
US12197816B2 (en) Prompting method and mobile terminal
US11528118B2 (en) Transmission method, mobile terminal and network device
CN107734614B (en) Wi-Fi antenna control method, mobile terminal and computer readable storage medium
US11604567B2 (en) Information processing method and terminal
CN108073458B (en) Memory recovery method, mobile terminal and computer-readable storage medium
CN108089767B (en) Fingerprint identification area dividing method and mobile terminal
CN109905812B (en) Input power control method and device and terminal equipment
CN108563551B (en) Alarm method, flexible screen terminal and computer readable storage medium
CN109343693B (en) Brightness adjustment method and terminal device
CN111093137B (en) A volume control method, device and computer-readable storage medium
CN110399000B (en) A kind of mobile terminal and its temperature control method
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN109995391B (en) Picture display method, intelligent wearable terminal and computer readable storage medium
CN108418950A (en) Message reminder method and mobile terminal
CN108170310B (en) A touch screen control method and mobile terminal
CN114064179A (en) Display mode adaptation method, terminal and storage medium
CN110012386B (en) Volume adjusting method of terminal and terminal
CN110210197B (en) Screen sensitivity adjusting method and mobile terminal
CN109144860B (en) Operation method for control object and terminal equipment
CN109450508B (en) Antenna determination method and device and mobile terminal
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
CN107562305B (en) Method for setting dynamic icon, terminal and computer readable storage medium
CN108234745B (en) A signal receiving method, mobile terminal and computer-readable storage medium

Legal Events

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