CN110138956A - A kind of terminal device detection method, terminal device and computer readable storage medium - Google Patents

A kind of terminal device detection method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN110138956A
CN110138956A CN201910239878.3A CN201910239878A CN110138956A CN 110138956 A CN110138956 A CN 110138956A CN 201910239878 A CN201910239878 A CN 201910239878A CN 110138956 A CN110138956 A CN 110138956A
Authority
CN
China
Prior art keywords
contact area
terminal device
preset
change rate
early
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.)
Granted
Application number
CN201910239878.3A
Other languages
Chinese (zh)
Other versions
CN110138956B (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

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

Abstract

This application involves a kind of terminal device detection method, terminal device and computer readable storage medium, which includes: the contact area for detecting the side of the screen of terminal device and being in contact with operating body;Judge whether contact area meets preset equipment and fall off early-warning conditions;If contact area meets equipment and falls off early-warning conditions, preset warning information is prompted.So the contact area that this method can detecte the side of the screen of terminal device and operating body is in contact;Judge whether contact area meets preset equipment and fall off early-warning conditions;If contact area meets equipment and falls off early-warning conditions, preset warning information is prompted, prevents terminal device from falling off from operating body.

Description

A kind of terminal device detection method, terminal device and computer readable storage medium
Technical field
This application involves field of terminal equipment more particularly to a kind of terminal device detection methods, terminal device and computer Readable storage medium storing program for executing.
Background technique
In daily life, user is when taking public transport or rest, in mobile phone being held in the hand.When tired meaning When attacking, user may doze off, and in turn result in the case where mobile phone falls off in hand.
Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, this application provides a kind of ends End equipment detection method, terminal device and computer readable storage medium.
In a first aspect, this application provides a kind of terminal device detection methods, comprising:
Detect the side of the screen of the terminal device and contact area that operating body is in contact;
Judge whether the contact area meets preset equipment and fall off early-warning conditions;
If the contact area meets the equipment and falls off early-warning conditions, preset warning information is prompted.
Second aspect, this application provides a kind of terminal device, the terminal device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The step of the method as described in any one of first aspect is realized when the computer program is executed by the processor Suddenly.
The third aspect, this application provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with terminal device detection program, the terminal device detection program is realized when being executed by processor as any in first aspect The step of terminal device detection method described in item.
Above-mentioned technical proposal provided by the embodiments of the present application has the advantages that compared with prior art
Terminal device detection method provided by the embodiments of the present application includes: to detect side and the operation of the screen of terminal device The contact area that body is in contact;Judge whether contact area meets preset equipment and fall off early-warning conditions;If contact area meets Equipment falls off early-warning conditions, then prompts preset warning information.This method can detecte side and the behaviour of the screen of terminal device The contact area being in contact as body;Judge whether contact area meets preset equipment and fall off early-warning conditions;If contact area is full Sufficient equipment falls off early-warning conditions, then prompts preset warning information, prevent terminal device from falling off from operating body.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram for the terminal device that each embodiment of the application provides;
Fig. 2 is the flow chart of terminal device detection method provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of the side of the screen of terminal device provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of contact area provided by the embodiments of the present application;
At the time of Fig. 5 is contact area provided by the embodiments of the present application and obtains the contact area for determining contact area Between corresponding relationship;
Fig. 6 is the structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, 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, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
The each embodiment of the method for the present invention is proposed based on above-mentioned mobile terminal hardware configuration.
The embodiment of the present application provides a kind of terminal device detection method, device and computer readable storage medium, can be to prevent Only terminal device falls off from operating body.
Firstly, describing in detail to one of the embodiment of the present application terminal device detection method, as shown in Fig. 2, eventually End equipment detection method may include step S101 to step S103:
S101 detects the side of the screen of the terminal device and contact area that operating body is in contact.
Illustratively, as shown in figure 3, the side 31 of the screen of the terminal device can be the region in dotted line frame.
Illustratively, when the side of the screen of terminal device 31 is in contact with operating body, it will form contact area.Such as figure Shown in 4, when the side of the screen of terminal device 31 is in contact with operating body, contact area 41 can be formed.
Illustratively, the screen of terminal device can be curve screens, or be folding screen.
S102, judges whether the contact area meets preset equipment and fall off early-warning conditions.
S103 prompts preset warning information if the contact area meets the equipment and falls off early-warning conditions.
Terminal device detection method provided by the embodiments of the present application includes: to detect side and the operation of the screen of terminal device The contact area that body is in contact;Judge whether contact area meets preset equipment and fall off early-warning conditions;If contact area meets Equipment falls off early-warning conditions, then prompts preset warning information.This method can detecte side and the behaviour of the screen of terminal device The contact area being in contact as body;Judge whether contact area meets preset equipment and fall off early-warning conditions;If contact area is full Sufficient equipment falls off early-warning conditions, then prompts preset warning information, prevent terminal device from falling off from operating body.
In the another embodiment of the application, on the basis of the embodiment of abovementioned steps S101 to step S103, step S102 may include step S1021 to step S1023:
S1021 calculates the contact area of the contact area.
S1022, judges whether the contact area is less than preset area threshold.
Wherein, area threshold can be set in advance in terminal device.Alternatively, in the first using terminal equipment of operating body When, gripping action when terminal device prompt operating body simulation terminal device will fall off, then, terminal device detects screen The contact area that side is in contact with operating body calculates the area of the contact area detected, this area value is determined as face Product threshold value.Alternatively, adding a predetermined adjustment on the basis of this area value, area threshold is obtained.
S1023, if the contact area is less than the area threshold, it is determined that it is de- that the contact area meets the equipment Fall early-warning conditions.
In the embodiment of the present application, the available area threshold corresponding with each operating body of terminal device, in turn, root According to the area threshold obtained in advance, judge whether the contact area is less than area threshold, if the contact area is less than described Area threshold, it is determined that the contact area meets the equipment and falls off early-warning conditions.Therefore, for each operating body, The area threshold obtained in advance is all to have targetedly.Using having targetedly area threshold, deterministic process can be improved Accuracy.
In the another embodiment of the application, on the basis of the embodiment of abovementioned steps S1021 to step S1023, step Rapid S1021 may include step S201 to step S202:
S201, judges whether the contact area is located in preset exposure region.
Wherein, preset exposure region can be a region being fixedly installed on the screen of terminal device in advance.Alternatively, Preset exposure region can be, and in the first using terminal equipment of operating body, terminal device prompts operating body, normally hold terminal Equipment, then, terminal device detect the contact area that the side of screen is in contact with operating body, and the contact area that will test is true It is set to preset exposure region, records the contact area detected.
S202 calculates the described of the contact area and connects if the contact area is located in the preset exposure region Contacting surface product.
In the embodiment of the present application, first determine whether contact area is located in preset exposure region, if the contact area In the preset exposure region, then the contact area of the contact area is calculated.Contact area can be improved in this way Validity.
It is described on the basis of the embodiment of abovementioned steps S201 to step S202 in the another embodiment of the application Judge whether the contact area meets preset equipment and fall off early-warning conditions, can also include step S301 to step S304:
S301, if the contact area is less than the area threshold, within preset first time, every default The first time interval screen that detects the terminal device the contact area that is in contact with the operating body of side.
Illustratively, it may range from the first time 3 minutes.First time interval can be set to 20 seconds.
Illustratively, in 3 minutes, obtain contact area at the time of and contact area between corresponding relationship can be such as table Shown in 1.
Table 1
For example, the 1st point in 3 minutes 40 seconds, detect the screen of the terminal device side and the operation The contact area S5 that body is in contact.
S302 determines the first reduction change rate according to the multiple contact areas detected within the first time.
Specifically, step S302 may include step S3021 to step S3022:
S3021 calculates separately the contact area of each contact area in multiple contact areas.
Illustratively, it is illustrated with the data instance in table 1.The multiple contacts being calculated according to multiple contact areas Area can be as shown in table 2.
Table 2
At the time of obtaining contact area Contact area Contact area
20th second S1 s1
40th second S2 s2
1st point S3 s3
1st point 20 seconds S4 s4
1st point 40 seconds S5 s5
2nd point S6 s6
2nd point 20 seconds S7 s7
2nd point 40 seconds S8 s8
3rd point S9 s9
For example, contact area s5 is calculated according to contact area S5.
S3022 determines the first reduction change rate according to the first time range and the multiple contacts area calculated.
Specifically, using corresponding contact area as ordinate, determining contact as abscissa at the time of to obtain contact area Area and at the time of obtain contact area between corresponding relationship, obtain fitting function, the slope of fitting function be determined as the One reduces change rate.
Illustratively, as shown in figure 5, according to being abscissa at the time of acquisition contact area in table 2, with corresponding contact Area is ordinate, determine contact area and obtain contact area at the time of between corresponding relationship, obtain fitting function L1.It is quasi- The slope for closing function L1 is first reduction change rate corresponding with data in table 2.
For example, if fitting function is y=kx+b, wherein at the time of x indicates to obtain contact area, y indicates contact surface Product, then the k in fitting function is the first reduction change rate.
S303, judges whether the first reduction change rate is located in preset reduction change rate value range.
Wherein, reducing change rate value range can be (K1, K2).In the process of operating body routine use terminal device In, terminal device can recorde the contact area during terminal device falls off and reduce change rate.Reduce change rate value range Change rate can be reduced according to multiple contacts area of terminal device records to determine.Terminal device can also record new contact surface Product reduces change rate, then reduces change rate using new contact area and updates obtained reduction change rate value range.
Specifically, step S303 can be with are as follows: judge whether the first reduction change rate is greater than K1, if described first reduces Change rate is greater than K1, then judges whether the first reduction change rate is less than K2, if the first reduction change rate is less than K2, Determine that the first reduction change rate is located in the reduction change rate value range.
S304, if the first reduction change rate is located in the reduction change rate value range, it is determined that the contact Region meets the equipment and falls off early-warning conditions.
It is described on the basis of the embodiment of abovementioned steps S201 to step S202 in the another embodiment of the application Judge whether the contact area meets preset equipment and fall off early-warning conditions, can also include step S401 to step S405:
S401, if the contact area is less than the area threshold, according to the area threshold and the contact area Between difference determine the second time range.
Specifically, step S401 may include step S4011 to step S4012:
S4011 calculates the difference between the area threshold and the contact area, obtains target area difference.
For example, if area threshold is s0, contact area s1, then target area difference DELTA s is s0-s1
S4012, it is determining with target area difference pair in the corresponding relationship between preset area difference and time range The second time range answered.
Wherein, the corresponding relationship between preset area difference and time range can be as shown in table 3.
Table 3
Area difference Time range
Δs1 (0,t1)
Δs2 (0,t2)
Δs3 (0,t3)
Δs4 (0,t4)
For example, if target area difference is equal to Δ s2, the second time model corresponding with target area difference DELTA s2 Enclose is (0, t2)。
Wherein, if Δ s1 is less than Δ s2, t1Less than t2.This is because between the area threshold and the contact area Difference it is smaller, illustrate terminal device current state closer to falling off state, so, to be completed in shorter time range pair The detection of contact area.Opposite, the difference between the area threshold and the contact area is bigger, illustrates that terminal device is worked as Preceding state differs larger with the state of falling off, so, the detection to contact area is completed within the scope of longer time.Therefore, The flexibility and accuracy of deterministic process can be improved.
S402 detects the screen of the terminal device every preset second time interval in second time range The contact area that the side of curtain is in contact with the operating body.
Illustratively, the second time interval can be determined according to the second time range.If the second time range is smaller, can To determine lesser second time interval.For example, if the second time range is 1 minute, when can be set second Between between be divided into 10 seconds.If the second time range is 2 minutes, it is 15 seconds that the second time interval, which can be set,.If when second Between range be 3 minutes, then can be set the second time interval be 20 seconds.
Illustratively, in 1 minute, obtain contact area at the time of and contact area between corresponding relationship can be such as table Shown in 4.
Table 4
At the time of obtaining contact area Contact area
10th second M1
20th second M2
30th second M3
40th second M4
50th second M5
1st point M6
For example, the 40th second in 1 minute, detect the screen of the terminal device side and the operating body phase The contact area M4 of contact.
S403 determines the second reduction change rate according to the multiple contact areas detected in second time range.
Specifically, step S403 may include step S4031 to step S4032:
S4031 calculates separately each contact zone in the multiple contact areas detected in second time range The contact area in domain.
Illustratively, it is illustrated with the data instance in table 4.The multiple contacts being calculated according to multiple contact areas Area can be as shown in table 5.
Table 5
For example, contact area m5 is calculated according to contact area M5.
S4032 determines the second reduction change rate according to second time range and the multiple contacts area calculated.
Specifically, using corresponding contact area as ordinate, determining contact as abscissa at the time of to obtain contact area Area and at the time of obtain contact area between corresponding relationship, obtain fitting function, the slope of fitting function be determined as the Two reduce change rate.
It illustratively, is vertical sit with corresponding contact area according to being abscissa at the time of the acquisition contact area in table 5 Mark, determine contact area and obtain contact area at the time of between corresponding relationship, obtain fitting function L2.Fitting function L2's Slope is second reduction change rate corresponding with data in table 5.
For example, if fitting function is y=kx+b, wherein at the time of x indicates to obtain contact area, y indicates contact surface Product, then the k in fitting function is the second reduction change rate.
S404, judges whether the second reduction change rate is located in preset reduction change rate value range.
Wherein, reducing change rate value range can be (K1, K2).In the process of operating body routine use terminal device In, terminal device can recorde the contact area during terminal device falls off and reduce change rate.Reduce change rate value range Change rate can be reduced according to multiple contacts area of terminal device records to determine.Terminal device can also record new contact surface Product reduces change rate, then reduces change rate using new contact area and updates obtained reduction change rate value range.
Specifically, step S404 can be with are as follows: judge whether the second reduction change rate is greater than K1, if described second reduces Change rate is greater than K1, then judges whether the second reduction change rate is less than K2, if the second reduction change rate is less than K2, Determine that the second reduction change rate is located in the reduction change rate value range.
S405, if the second reduction change rate is located in the reduction change rate value range, it is determined that the contact Region meets the equipment and falls off early-warning conditions.
In the another embodiment of the application, on the basis of the embodiment of abovementioned steps S1021 to step S1023, step Rapid S102 can also include step S501 to step S503:
S501 after preset third time interval, detects institute if the contact area is not less than the area threshold State the contact area that the side of the screen of terminal device is in contact with the operating body.
Wherein, if the contact area is not less than the area threshold, illustrate that terminal device does not fall off temporarily risk. Illustratively, third time interval can be set to 5 minutes.
S502, judges whether the contact area detected after the third time interval meets the equipment and fall off early warning Condition.
S503, if the contact area detected after the third time interval meets the equipment and falls off early-warning conditions, Then prompt the warning information.
In the embodiment of the present application, if the contact area is not less than the area threshold, between the preset third time Every rear, the contact area that the side of the screen of the terminal device is in contact with the operating body is detected.Therefore, however, it is determined that terminal Equipment does not fall off temporarily risk, then after third time interval, terminal device detects the side of the screen of the terminal device again The contact area that side is in contact with the operating body.
In the another embodiment of the application, on the basis of the embodiment of abovementioned steps S101 to step S103, step S102 may include step S601 to step S603:
S601, statistics are located at the quantity of the pixel in the contact area, obtain pixel sum in contact area.
Wherein, step S601 may include step S6011 to step S6012:
S6011, judges whether the contact area is located in preset exposure region.
Wherein, preset exposure region can be a region being fixedly installed on the screen of terminal device in advance.Alternatively, Preset exposure region can be, and in the first using terminal equipment of operating body, terminal device prompts operating body, normally hold terminal Equipment, then, terminal device detect the contact area that the side of screen is in contact with operating body, and the contact area that will test is true It is set to preset exposure region, records the contact area detected.
S6012, if the contact area is located in the preset exposure region, statistics is located in the contact area The quantity of pixel obtains pixel sum in contact area.
S602 judges whether pixel sum is less than preset pixel number threshold value in the contact area.
Wherein, pixel number threshold value can be set in advance in terminal device.Alternatively, being set in the first using terminal of operating body When standby, the gripping action that terminal device prompt operating body simulates terminal device when will fall off, then, terminal device detects screen The contact area that is in contact with operating body of side, statistics is located at the quantity of the pixel in the contact area, obtains pixel Points threshold value.Alternatively, obtaining pixel number threshold plus a predetermined adjustment on the basis of pixel number that statistics obtains Value.
S603, if pixel sum is less than the pixel number threshold value in the contact area, it is determined that the contact zone Domain meets the equipment and falls off early-warning conditions.
In the embodiment of the present application, the available pixel number threshold value corresponding with each operating body of terminal device, into And according to the pixel number threshold value obtained in advance, judge whether pixel sum is less than preset pixel in the contact area Points threshold value, if pixel sum is less than the pixel number threshold value in the contact area, it is determined that the contact area is full The foot equipment falls off early-warning conditions.Therefore, for each operating body, the pixel number threshold value obtained in advance all has Targetedly.Using having targetedly pixel number threshold value, the accuracy of deterministic process can be improved.
In the embodiment of the present application, first determine whether contact area is located in preset exposure region, if the contact area In the preset exposure region, then statistics is located at the quantity of the pixel in the contact area, obtains in contact area Pixel sum.The validity of pixel sum in contact area can be improved in this way.
It is described on the basis of the embodiment of abovementioned steps S601 to step S603 in the another embodiment of the application Judge whether the contact area meets preset equipment and fall off early-warning conditions, can also include step S701 to step S704:
S701, if pixel sum is less than the pixel number threshold value in the contact area, in preset third Between in range, be in contact every the side for the screen that preset 4th time interval detects the terminal device with the operating body Contact area.
Illustratively, third time range can be 3 minutes.4th time interval can be set to 20 seconds.
S702 determines that third reduces change rate according to the multiple contact areas detected in the third time range.
Specifically, step S702 may include step S7021 to step S7022:
S7021 counts each contact zone in the multiple contact areas detected in the third time range respectively The quantity of pixel in domain obtains pixel sum in multiple contact areas.
S7022 determines third according to pixel sum in the third time range and the multiple contact areas counted on Reduce change rate.
Specifically, being vertical with pixel sum in corresponding contact area as abscissa at the time of to obtain contact area Coordinate determines the corresponding relationship between at the time of pixel is total in contact area and obtains contact area, obtains fitting function, The slope of fitting function is determined as third and reduces change rate.
S703 judges that the third reduces whether change rate is located in preset reduction change rate value range.
Wherein, reducing change rate value range can be (K1, K2).In the process of operating body routine use terminal device In, terminal device can recorde the contact area during terminal device falls off and reduce change rate.Reduce change rate value range Change rate can be reduced according to multiple contacts area of terminal device records to determine.Terminal device can also record new contact surface Product reduces change rate, then reduces change rate using new contact area and updates obtained reduction change rate value range.
Specifically, step S703 can be with are as follows: judge that the third reduces whether change rate is greater than K1, if the third reduces Change rate is greater than K1, then judges that the third reduces whether change rate is less than K2, if the third reduces change rate and is less than K2, Determine that the third reduces change rate and is located in the reduction change rate value range.
S704, if the third reduces change rate and is located in the reduction change rate value range, it is determined that the contact Region meets the equipment and falls off early-warning conditions.
It is described on the basis of the embodiment of abovementioned steps S601 to step S603 in the another embodiment of the application Judge whether the contact area meets preset equipment and fall off early-warning conditions, can also include step S801 to step S805:
S801, if pixel sum is less than the pixel number threshold value in the contact area, according to the pixel Difference in number threshold value and the contact area between pixel sum determines the 4th time range.
Specifically, step S801 may include step S8011 to step S8012:
S8011 calculates the difference in the pixel number threshold value and the contact area between pixel sum, obtains mesh Mark pixel number difference.
For example, if pixel number threshold value is s0, pixel sum is s in contact area1, then object pixel points are poor Value Δ s is s0-s1
S8012, in the corresponding relationship between preset pixel number difference and time range, determining and target pixel points Corresponding 4th time range of number difference.
Wherein, the difference in the pixel number threshold value and the contact area between pixel sum is smaller, illustrates end The closer state that falls off of end equipment current state, so, the detection to contact area is completed in shorter time range.Phase Anti-, the difference in the pixel number threshold value and the contact area between pixel sum is bigger, illustrates that terminal device is worked as Preceding state differs larger with the state of falling off, so, the detection to contact area is completed within the scope of longer time.Therefore, The flexibility and accuracy of deterministic process can be improved.
S802 detects the screen of the terminal device every preset 5th time interval in the 4th time range The contact area that the side of curtain is in contact with the operating body.
Illustratively, the 5th time interval can be determined according to the 4th time range.If the 4th time range is smaller, can To determine lesser 5th time interval.For example, if the 4th time range is 1 minute, when can be set the 5th Between between be divided into 10 seconds.If the 4th time range is 2 minutes, it is 15 seconds that the 5th time interval, which can be set,.If when the 4th Between range be 3 minutes, then can be set the 5th time interval be 20 seconds.
S803 determines the 4th reduction change rate according to the multiple contact areas detected in the 4th time range.
Specifically, step S803 may include step S8031 to step S8032:
S8031 counts each contact zone in the multiple contact areas detected in the 4th time range respectively The quantity of pixel in domain obtains pixel sum in multiple contact areas.
S8032 determines the 4th according to pixel sum in the 4th time range and the multiple contact areas counted on Reduce change rate.
Specifically, being vertical with pixel sum in corresponding contact area as abscissa at the time of to obtain contact area Coordinate determines the corresponding relationship between at the time of pixel is total in contact area and obtains contact area, obtains fitting function, The slope of fitting function is determined as the 4th reduction change rate.
S804, judges whether the 4th reduction change rate is located in preset reduction change rate value range.
Specifically, step S804 can be with are as follows: judge whether the 4th reduction change rate is greater than K1, if the described 4th reduces Change rate is greater than K1, then judges whether the 4th reduction change rate is less than K2, if the 4th reduction change rate is less than K2, Determine that the 4th reduction change rate is located in the reduction change rate value range.
S805, if the 4th reduction change rate is located in the reduction change rate value range, it is determined that the contact Region meets the equipment and falls off early-warning conditions.
It is described on the basis of the embodiment of abovementioned steps S601 to step S603 in the another embodiment of the application Judge whether the contact area meets preset equipment and fall off early-warning conditions, can also include step S901 to step S903:
S901, if pixel sum is not less than the pixel number threshold value in the contact area, the preset 6th After time interval, the contact area that the side of the screen of the terminal device is in contact with the operating body is detected.
S902, judges whether the contact area detected after the 6th time interval meets the equipment and fall off early warning Condition.
S903, if the contact area detected after the 6th time interval meets the equipment and falls off early-warning conditions, Then prompt the warning information.
In the another embodiment of the application, on the basis of the embodiment of abovementioned steps S101 to step S103, step S102 may include step S1101 to step S1106:
S1101 calculates region accounting of the contact area on preset exposure region.
S1102, judges whether the region accounting is less than preset region accounting threshold value.
S1103, if the region accounting is less than the region accounting threshold value, in preset 5th time range, often Every the contact area that the side for the screen that preset 7th time interval detects the terminal device is in contact with the operating body.
S1104 determines the 5th reduction variation according to the multiple contact areas detected in the 5th time range Rate.
S1105, judges whether the 5th reduction change rate is located in preset reduction change rate value range.
S1106, if the 5th reduction change rate is located in the reduction change rate value range, it is determined that the contact Region meets the equipment and falls off early-warning conditions.
It is described on the basis of the embodiment of abovementioned steps S101 to step S103 in the another embodiment of the application Preset warning information is prompted, may include step:
It is vibrated in such a way that oscillation intensity is changed from small to big.
Wherein, if terminal device prompts preset warning information, illustrate the contact area meet the equipment fall off it is pre- Alert condition, user may be going into sleep state, so, it is vibrated in such a way that oscillation intensity is changed from small to big, wakes up user, It prevents oscillation intensity is excessive from waking up with a start user, avoids the situation that the user under flurried state makes terminal device fall off.
And/or the jingle bell in such a way that volume is changed from small to big.
Wherein, if terminal device prompts preset warning information, illustrate the contact area meet the equipment fall off it is pre- Alert condition, user may be going into sleep state, so, the jingle bell in such a way that volume is changed from small to big wakes up user, prevents Volume is excessive to wake up with a start user, avoids the situation that the user under flurried state makes terminal device fall off.
In the another embodiment of the application, describe in detail to one of the embodiment of the present application terminal device, such as Shown in Fig. 6, the terminal device may include:
It memory 602, processor 601 and is stored on the memory 602 and can be run on the processor 601 Computer program.
Wherein, the terminal device can also include: communication interface 603 and bus 604, and the processor 601 described is deposited Reservoir 602 completes mutual communication by the bus 604 with the communication interface 603, and the communication interface 603 is for outer Information transmission between portion's equipment.
Realizing the method as described in any of the above-described embodiment when the computer program is executed by the processor 601 Step.
Specifically, the processor 601 detects institute for executing terminal device detection program to perform the steps of State the side of the screen of terminal device and contact area that operating body is in contact;It is preset to judge whether the contact area meets Equipment falls off early-warning conditions;If the contact area meets the equipment and falls off early-warning conditions, preset warning information is prompted.
In the another embodiment of the application, one of the embodiment of the present application computer readable storage medium is carried out detailed It is thin to introduce, terminal device detection program is stored on the computer readable storage medium, the terminal device detects program quilt The step of terminal device detection method as described in any of the above-described embodiment is realized when processor executes.
Wherein, the computer readable storage medium can store one or more computer instruction.The calculating Machine readable storage medium storing program for executing may include volatile memory, such as random access memory;The computer readable storage medium It also may include nonvolatile memory, such as read-only memory, flash memory, hard disk or solid state hard disk;The computer Readable storage medium storing program for executing can also include the combination of the memory of mentioned kind.
Specifically, the terminal device detection program performs the steps of the detection terminal when being executed by processor The contact area that the side of the screen of equipment is in contact with operating body;It is de- to judge whether the contact area meets preset equipment Fall early-warning conditions;If the contact area meets the equipment and falls off early-warning conditions, preset warning information is prompted.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of terminal device detection method characterized by comprising
Detect the side of the screen of the terminal device and contact area that operating body is in contact;
Judge whether the contact area meets preset equipment and fall off early-warning conditions;
If the contact area meets the equipment and falls off early-warning conditions, preset warning information is prompted.
2. judging whether the contact area meets preset set the method according to claim 1, wherein described The standby early-warning conditions that fall off, comprising:
Calculate the contact area of the contact area;
Judge whether the contact area is less than preset area threshold;
If the contact area is less than the area threshold, it is determined that the contact area meets the equipment and falls off early warning item Part.
3. according to the method described in claim 2, it is characterized in that, the contact area for calculating the contact area, comprising:
Judge whether the contact area is located in preset exposure region;
If the contact area is located in the preset exposure region, the contact area of the contact area is calculated.
4. according to the method described in claim 3, it is characterized in that, described judge whether the contact area meets preset set The standby early-warning conditions that fall off, further includes:
If the contact area is less than the area threshold, within preset first time, when preset first Between the interval screen that detects the terminal device the contact area that is in contact with the operating body of side;
According to the multiple contact areas detected within the first time, the first reduction change rate is determined;
Judge whether the first reduction change rate is located in preset reduction change rate value range;
If the first reduction change rate is located in the reduction change rate value range, it is determined that the contact area meets institute Equipment is stated to fall off early-warning conditions.
5. according to the method described in claim 3, it is characterized in that, described judge whether the contact area meets preset set The standby early-warning conditions that fall off, further includes:
If the contact area is less than the area threshold, according to the difference between the area threshold and the contact area Determine the second time range;
In second time range, every preset second time interval detect the side of the screen of the terminal device with The contact area that the operating body is in contact;
According to the multiple contact areas detected in second time range, the second reduction change rate is determined;
Judge whether the second reduction change rate is located in preset reduction change rate value range;
If the second reduction change rate is located in the reduction change rate value range, it is determined that the contact area meets institute Equipment is stated to fall off early-warning conditions.
6. according to the method described in claim 2, it is characterized in that, described judge whether the contact area meets preset set The standby early-warning conditions that fall off, further includes:
If the contact area detects the terminal and sets not less than the area threshold after preset third time interval The contact area that the side of standby screen is in contact with the operating body;
Judge whether the contact area detected after the third time interval meets the equipment and fall off early-warning conditions;
If the contact area detected after the third time interval meets the equipment and falls off early-warning conditions, prompt described in Warning information.
7. judging whether the contact area meets preset set the method according to claim 1, wherein described The standby early-warning conditions that fall off, comprising:
Statistics is located at the quantity of the pixel in the contact area, obtains pixel sum in contact area;
Judge whether pixel sum is less than preset pixel number threshold value in the contact area;
If pixel sum is less than the pixel number threshold value in the contact area, it is determined that described in the contact area meets Equipment falls off early-warning conditions.
8. method according to any one of claim 1 to 7, which is characterized in that the preset warning information of prompt, packet It includes:
It is vibrated in such a way that oscillation intensity is changed from small to big;
And/or the jingle bell in such a way that volume is changed from small to big.
9. a kind of terminal device, which is characterized in that the terminal device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The step such as method described in any item of the claim 1 to 8 is realized when the computer program is executed by the processor Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored with terminal on the computer readable storage medium and set Standby detection program, the terminal device detection program are realized when being executed by processor as described in any item of the claim 1 to 8 The step of terminal device detection method.
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 true CN110138956A (en) 2019-08-16
CN110138956B 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 (9)

* 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
CN104571919A (en) * 2015-01-26 2015-04-29 深圳市中兴移动通信有限公司 Terminal screen display method and device
US20150253892A1 (en) * 2009-11-12 2015-09-10 Kyocera Corporation Portable terminal, input control program and input control method
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
US20170102803A1 (en) * 2015-03-30 2017-04-13 Shenzhen Huiding Technology Co., Ltd. Touch screen terminal and near field communication method, apparatus and system thereof
CN107743169A (en) * 2017-09-14 2018-02-27 维沃移动通信有限公司 The control method and mobile terminal of a kind of mobile terminal
CN107908311A (en) * 2017-11-15 2018-04-13 深圳天珑无线科技有限公司 Mobile terminal anti-slip method, mobile terminal and computer-readable recording medium
CN108174016A (en) * 2017-11-29 2018-06-15 努比亚技术有限公司 A kind of terminal shatter-resistant control method, terminal and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150253892A1 (en) * 2009-11-12 2015-09-10 Kyocera Corporation Portable terminal, input control program and input control method
CN104503888A (en) * 2014-12-16 2015-04-08 小米科技有限责任公司 Warning method and device
CN104571919A (en) * 2015-01-26 2015-04-29 深圳市中兴移动通信有限公司 Terminal screen display method and device
US20170102803A1 (en) * 2015-03-30 2017-04-13 Shenzhen Huiding Technology Co., Ltd. Touch screen terminal and near field communication method, apparatus and system thereof
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 维沃移动通信有限公司 The control method and mobile terminal of a kind of mobile terminal
CN107908311A (en) * 2017-11-15 2018-04-13 深圳天珑无线科技有限公司 Mobile terminal anti-slip method, mobile terminal and computer-readable recording medium
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
CN110138956B (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN109509473B (en) Voice control method and terminal equipment
CN109343759B (en) Screen-turning display control method and terminal
US20230214175A1 (en) Prompting method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN107613131A (en) A kind of application program disturbance-free method and mobile terminal
CN108521658A (en) Reduce interference method, mobile terminal and computer readable storage medium
EP4213473A1 (en) Electronic device, and control method and control apparatus therefor
CN107229389A (en) A kind of method of shared file, equipment and computer-readable recording medium
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
CN108536490A (en) A kind of application program launching method, mobile terminal and computer storage media
CN107196384A (en) A kind of charging method, wireless charging device and computer-readable recording medium
CN109451144A (en) A kind of message treatment method and terminal device
CN107749306A (en) A kind of method and mobile terminal for vibrating optimization
CN108184011A (en) A kind of reminder announced method, terminal and computer readable storage medium
CN109949809A (en) A kind of sound control method and terminal device
CN108259658A (en) Flexible screen terminal and its electricity based reminding method, computer readable storage medium
CN108833666A (en) Runing time based reminding method, flexible screen terminal and computer readable storage medium
CN107424393A (en) Mobile terminal seeking method, mobile terminal and storage medium
CN107592665A (en) A kind of control method of application program, device and mobile terminal
CN107704334A (en) A kind of SDK processing method and mobile terminal
CN109947617A (en) A kind of method, terminal and readable storage medium storing program for executing monitored application interface and show content
CN109614827A (en) The control method and mobile terminal of mobile terminal
CN109151201A (en) A kind of Anti-addiction method, mobile terminal and computer storage medium
CN108418961A (en) A kind of audio frequency playing method and mobile terminal

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