CN110138974A - Screen control method, device, equipment and computer readable storage medium - Google Patents

Screen control method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110138974A
CN110138974A CN201910417795.9A CN201910417795A CN110138974A CN 110138974 A CN110138974 A CN 110138974A CN 201910417795 A CN201910417795 A CN 201910417795A CN 110138974 A CN110138974 A CN 110138974A
Authority
CN
China
Prior art keywords
terminal device
scene
given side
range data
screen
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
CN201910417795.9A
Other languages
Chinese (zh)
Other versions
CN110138974B (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.)
Xian Yep Telecommunication Technology Co Ltd
Original Assignee
Xian Yep Telecommunication 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 Xian Yep Telecommunication Technology Co Ltd filed Critical Xian Yep Telecommunication Technology Co Ltd
Priority to CN201910417795.9A priority Critical patent/CN110138974B/en
Publication of CN110138974A publication Critical patent/CN110138974A/en
Application granted granted Critical
Publication of CN110138974B publication Critical patent/CN110138974B/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
    • 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/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

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

Abstract

The embodiment of the present invention provides a kind of screen control method, device, equipment and computer readable storage medium, this method comprises: obtaining the distance between given side and the target object of terminal device data, wherein, given side includes at least one first given side and at least one second given side;According to the corresponding relationship of the range data and scene of the range data of each first given side and preset each first given side, scene locating for terminal device is determined, wherein each scene corresponds to a state switching condition;The scene according to locating for terminal device determines state switching condition corresponding with scene locating for terminal device;When the range data of each second given side meets state switching condition corresponding with scene locating for terminal device, the state of terminal device screen is switched to and puts out screen state.The embodiment of the present invention can switch over the state of terminal device screen for scene locating for terminal device, avoid putting out screen caused by user's false triggering.

Description

Screen control method, device, equipment and computer readable storage medium
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of screen control method, device, equipment and meters Calculation machine readable storage medium storing program for executing.
Background technique
For the ease of user's operation, touch screen is widely used at the terminal, touch screen make user by pair Terminal screen carries out touching the various operations that can be achieved with to terminal, convenient and efficient.But when user is made a phone call by terminal, use Account portion readily accesses terminal screen, causes the mistake touching to touch screen, will lead to phone and hang up or terminal is enabled to execute other Faulty operation.
In the prior art, infrared light proximity sensor is set at the top of terminal screen, if terminal passes through in communication process Infrared light proximity sensor detects that human body is less than designated value at a distance from terminal screen, then extinguishes terminal screen, thus anti- Only the mistake of terminal screen is touched on user head in communication process.
However in the prior art, when user to terminal carry out such as game, web page browsing other operation when, be easy accident Close to the infrared light proximity sensor of the top of screen, false triggering terminal puts out screen, user's operation is caused to be interrupted.
Summary of the invention
The embodiment of the present invention provides a kind of screen control method, device, equipment and computer readable storage medium, to solve The infrared light proximity sensor of terminal device is easy that terminal device is caused to put out screen by false triggering at present, and what user's operation was interrupted asks Topic.
In a first aspect, the embodiment of the present invention provides a kind of screen control method, comprising:
Obtain the distance between given side and the target object of terminal device data, wherein the given side includes At least one first given side and at least one second given side;
According to the range data and scene of the range data of each first given side and preset each first given side Corresponding relationship determines scene locating for the terminal device, wherein each scene corresponds to a state switching condition;
According to scene locating for the terminal device, determine that state corresponding with scene locating for the terminal device is cut Change condition;
It is cut when the range data of each second given side meets state corresponding with scene locating for the terminal device When changing condition, the state of the terminal device screen is switched to and puts out screen state.
In a kind of possible embodiment, between the given side and target object for obtaining the terminal device away from From data, comprising:
The capacitor of the antenna of each given side of the terminal device is obtained by electromagnetic wave absorption rate SAR sensor Value, wherein the SAR sensor is connected with the antenna of each given side of the terminal device respectively;
According to the corresponding relationship and each specified surface antenna of the antenna electric capacitance of preset each given side and range data Capacitance, determine the range data of each given side, wherein the antenna electric capacitance and distance of preset each given side The corresponding relationship of data is the capacitor by detecting the antenna of each given side when tester is placed in preset distance and position Value determination.
In a kind of possible embodiment, the given side of the terminal device includes top surface, bottom surface, left side, right side Face, front and the back side.
In a kind of possible embodiment, first given side includes top and bottom, and the scene includes game Scene, it is described according to the range data of each first given side and the range data of preset each first given side and scene Corresponding relationship determines scene locating for the terminal device, comprising:
If the range data of the top and bottom of the terminal device is respectively less than its corresponding distance threshold, it is determined that Scene locating for the terminal device is the scene of game.
In a kind of possible embodiment, second given side includes left side, right side and front, the game The corresponding state switching condition of scene includes:
It is corresponding apart from threshold that the range data of the left side of the terminal device, right side and front is respectively less than its Value.
In a kind of possible embodiment, first given side includes left side, right side and the back side, the scene It is described according to the range data of each first given side and the range data of preset each first given side including scene of conversing With the corresponding relationship of scene, scene locating for the terminal device is determined, comprising:
If it is corresponding apart from threshold that the range data of the left side of the terminal device, right side and the back side is respectively less than its Value, it is determined that scene locating for the terminal device is the call scene.
In a kind of possible embodiment, second given side includes top surface, bottom surface and front, the call scene Corresponding state switching condition includes:
The range data at least two faces is less than its corresponding distance threshold in second given side.
Second aspect, the embodiment of the present invention provide a kind of screen control device, comprising:
Obtain module, the distance between given side and target object for obtaining terminal device data;
First processing module, for according to the range data of each first given side and preset each first given side The corresponding relationship of range data and scene determines scene locating for the terminal device, wherein each scene corresponds to a shape State switching condition;
Second processing module, for the scene according to locating for the terminal device, it is determining with locating for the terminal device The corresponding state switching condition of scene;
Switching module meets and scene phase locating for the terminal device for the range data when each second given side When corresponding state switching condition, the state of the terminal device screen is switched to and puts out screen state.
The third aspect, the embodiment of the present invention provide a kind of terminal device, comprising: at least one processor and memory;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of memory storage so that it is described at least one Processor executes screen control method described in the various possible embodiments of first aspect and first aspect as above.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer executed instructions are stored in matter, when processor execute the computer executed instructions when, realize first aspect as above with And screen control method described in the various possible embodiments of first aspect.
Screen control method, device, equipment and computer readable storage medium provided in this embodiment, described in obtaining The distance between the given side of terminal device and target object data, wherein given side include at least one first given side and At least one second given side;According to the distance number of the range data of each first given side and preset each first given side According to the corresponding relationship with scene, scene locating for terminal device is determined, wherein each scene corresponds to a state and switches item Part;The scene according to locating for terminal device determines state switching condition corresponding with scene locating for terminal device;When each When the range data of second given side meets state switching condition corresponding with scene locating for terminal device, by terminal device The state of screen, which is switched to, puts out screen state, can be realized and puts out screen control to terminal device screen.The embodiment of the present invention passes through each The corresponding relationship of the range data and scene of the range data of a first given side and preset each first given side, can be true Make scene locating for terminal device;By meeting and scene locating for terminal device in the range data of each second given side When corresponding state switching condition, terminal device screen is put out into screen, it can be corresponding for application scenarios locating for terminal device The state of terminal device screen is switched over, so that terminal device caused by user's false triggering be avoided to put out screen, prevent by accidentally Triggering is put out user's operation caused by screen and is interrupted.
Detailed description of the invention
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, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram for the screen control method that one embodiment of the invention provides;
Fig. 2 is the schematic diagram in each face of terminal device provided in an embodiment of the present invention;
Fig. 3 is the flow diagram for the screen control method that further embodiment of this invention provides;
Fig. 4 be another embodiment of the present invention provides screen control method flow diagram;
Fig. 5 is the flow diagram for the screen control method that yet another embodiment of the invention provides;
Fig. 6 is the structural schematic diagram for the screen control device that one embodiment of the invention provides;
Fig. 7 is the hardware structural diagram for the terminal device that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In the present embodiment, terminal device can be the equipment such as mobile phone, plate, Intelligent bracelet, computer, not limit herein It is fixed.User can be conversed by terminal device in using terminal equipment, be played games, taken pictures, seeing video, browsing webpage Deng.When being in different application scenarios, user holds between the mode and user and terminal device of terminal device terminal device Relative position may be different, as terminal device be in call scene, scene of game and take pictures scene when user hold terminal device Mode it is not identical.If terminal carries out putting out screen using unified screen mode of putting out, it is easy to cause terminal device in application scenes In cause to put out screen due to the false triggering of user, cause user's operation to be interrupted, influence the normal use of user.For example, logical in user When crossing terminal device and playing games, the hand of user is easy the infrared light transducer[sensor that accidentally touching is set to terminal device the top of screen, causes Screen extinguishes, and game is interrupted.
The present embodiment passes through the range data of each given side of terminal device and the range data of preset each given side With the corresponding relationship of scene, it is capable of determining that scene locating for terminal device;By meeting in the range data of each given side When state switching condition corresponding with scene locating for terminal device, terminal device screen is put out into screen, can be set for terminal Standby locating application scenarios accordingly switch over the state of terminal device screen, to avoid caused by user's false triggering eventually End equipment puts out screen, prevents user's operation caused by putting out screen by false triggering from interrupting.
Fig. 1 is the flow diagram for the screen control method that one embodiment of the invention provides.As shown in Figure 1, this method packet It includes:
The distance between S101, the given side for obtaining the terminal device and target object data, wherein the given side Including at least one first given side and at least one second given side.
In the present embodiment, the given side of terminal device is the signified face made from all faces of terminal device, is specified Face can be selected from all faces of terminal device according to actual needs, be not limited thereto.Given side includes the first finger Determine face and the second given side, wherein the range data of the first given side is for judging scene locating for terminal device, the second given side Range data meet corresponding with scene locating for terminal device state switching condition for judging whether.Fig. 2 is this hair The schematic diagram in each face of terminal device that bright embodiment provides, wherein Fig. 2 (a) is the schematic diagram before terminal device, Fig. 2 (b) For the schematic diagram at the terminal device back side.As shown in Fig. 2, the face of terminal device may include top surface 21, bottom surface 22, left side 23, Right side 24, front 25 and the back side 26, it is possible to specify top surface 21, bottom surface 22, left side 23 and right side 24 are used as terminal device Given side perhaps specified top surface 21, bottom surface 22, front 25 and the back side 26 as terminal device given side or it is specified eventually All faces of end equipment are used as given side, are not limited thereto.
Target object can be human body.For each given side, the distance between the given side and target object data can Think target object to the given side distance value.Each given side can be obtained by the sensor being arranged on terminal device The distance between target object data.
S102, according to the range data of each first given side and range data and the field of preset each first given side The corresponding relationship of scape determines scene locating for the terminal device, wherein each scene corresponds to a state switching condition.
In the present embodiment, scene locating for terminal device may include scene of game, scene of conversing, scene of taking pictures etc., It is not limited thereto.For example, scene of game is the scene that user's using terminal equipment is played games, call scene is that user uses eventually The scene that end equipment is made a phone call, scene of taking pictures are the scene that user's using terminal equipment is taken pictures.
Under different application scenarios, the mode that user holds terminal device is different, each face of terminal device and human body Distance is different.Such as terminal device, when being in scene of game, one hand of user holds the top surface of terminal device, another hand is held The bottom surface of terminal device, close to human body, the distance between human body is smaller for the top and bottom of terminal device;At terminal device In converse scene when, user is hold by one hand the left side and right side of terminal device, left side, right side and the bottom of terminal device Close to human body, the distance between human body is smaller in face.The characteristics of user holds when being in different scenes according to terminal device, can To preset the range data of each first given side of terminal device and the corresponding relationship of scene.
By the distance between each first given side of acquisition terminal device and target object data, then according to each The corresponding relationship of the range data and scene of the range data of first given side and preset each first given side, can determine Scene locating for terminal device out.
S103, the scene according to locating for the terminal device, determination are corresponding with scene locating for the terminal device State switching condition.
In the present embodiment, state switching condition is that the screen state of terminal device is switched to the condition for putting out screen state. State switching condition can be terminal device one or more given side condition relevant to the distance between target object, can be with It is preset, is not limited thereto according to the effect that different scenes sub-screen puts out screen.
The corresponding state switching condition of each scene of terminal device.Terminal device is in different scenes, user's Use demand is different, the control that different state switching conditions carries out automatic extinguishing screen to screen can be set, to meet different fields The use demand of user in scape.For example, when terminal device is in scene of game, it can be by the way that corresponding state switching condition be arranged Controlling terminal equipment puts out screen to prevent screen distance eyes of user excessively close, influences user's eyesight;Terminal device is in call scene When, screen can be put out to prevent user's head from missing touch screen curtain by the way that corresponding state switching condition controlling terminal equipment is arranged, cause Dropped calls.The corresponding state switching condition of each scene can be determined according to the actual use demand of user under different scenes.
S104, meet shape corresponding with scene locating for the terminal device when the range data of each second given side When state switching condition, the state of the terminal device screen is switched to and puts out screen state.
In the present embodiment, the state of terminal device screen may include bright screen state and put out screen state.Each second When the range data of given side meets the corresponding state switching condition of scene locating for terminal device, by the shape of terminal device screen State, which is switched to, puts out screen state.It is corresponding scene locating for terminal device can not to be met in the range data of each second given side When state switching condition, the state of terminal device screen is switched back into bright screen state again.
The embodiment of the present invention passes through the distance between the given side of the acquisition terminal device and target object data;According to The corresponding relationship of the range data and scene of the range data of each first given side and preset each first given side determines Scene locating for terminal device, wherein each scene corresponds to a state switching condition;The field according to locating for terminal device Scape determines state switching condition corresponding with scene locating for terminal device;When the range data of each second given side accords with When closing state switching condition corresponding with scene locating for terminal device, the state of terminal device screen is switched to and puts out screen shape State can be realized the control to terminal device.The embodiment of the present invention passes through the range data of each first given side and preset The range data of each first given side and the corresponding relationship of scene, are capable of determining that scene locating for terminal device;By When the range data of each second given side meets state switching condition corresponding with scene locating for terminal device, by terminal Device screen puts out screen, can cut accordingly to the state of terminal device screen for application scenarios locating for terminal device It changes, so that terminal device caused by user's false triggering be avoided to put out screen, prevents user's operation caused by putting out screen by false triggering from interrupting.
Fig. 3 is the flow diagram for the screen control method that further embodiment of this invention provides.The present embodiment is each to obtaining The specific implementation process of the range data of a given side is described in detail.As shown in figure 3, this method comprises:
S301, obtained by electromagnetic wave absorption rate SAR sensor the terminal device each given side antenna Capacitance, wherein the SAR sensor is connected with the antenna of each given side of the terminal device respectively.
In the present embodiment, each given side of terminal device is respectively arranged with antenna.Terminal device is sensed equipped with SAR Device.SAR sensor is connected with the antenna of each given side of terminal device respectively.Antenna can form capacitor with target object The two poles of the earth, when antenna is different from the distance between target object, the capacitance of antenna can change.SAR sensor will be each The antenna of given side is as capacitive sensing device, the degree close for induction targets object.It can be obtained by SAR sensor Take the capacitance of the antenna of each given side of terminal device.
S302, according to the antenna electric capacitance of preset each given side and the corresponding relationship of range data and each given side The capacitance of antenna determines the range data of each given side, wherein the antenna electric capacitance of preset each given side with The corresponding relationship of range data is by detecting the antenna of each given side when tester is placed in preset distance and position What capacitance determined.
In the present embodiment, for each given side, can preset multiple is specific range between the given side Distance and position, such as the distance between preset multiple distance and positions and given side can be respectively 0mm, 5mm, 10mm, 15mm, 20mm, 30mm, 40mm etc..Tester similar with target object can be successively placed in each distance and position, successively Detect the specified corresponding capacitance of surface antenna, the antenna electric for recording the distance between tester and the given side value and detecting The corresponding relationship of capacitance.
The antenna electric capacitance of preset each given side and the corresponding relationship of range data can be stored in terminal device sheet Ground or server.Terminal device is available to arrive the corresponding relationship, according to the capacitance of each specified surface antenna and the correspondence The range data of the available each given side of relationship.
S303, according to the range data of each first given side and range data and the field of preset each first given side The corresponding relationship of scape determines scene locating for the terminal device, wherein each scene corresponds to a state switching condition.
In the present embodiment, S303 is similar with the S102 in Fig. 1 embodiment, and details are not described herein again.
S304, the scene according to locating for the terminal device, determination are corresponding with scene locating for the terminal device State switching condition.
In the present embodiment, S304 is similar with the S103 in Fig. 1 embodiment, and details are not described herein again.
S305, meet shape corresponding with scene locating for the terminal device when the range data of each second given side When state switching condition, the state of the terminal device screen is switched to and puts out screen state.
In the present embodiment, S305 is similar with the S104 in Fig. 1 embodiment, and details are not described herein again.
Sensor corresponding to traditional terminal device automatic extinguishing screen is the infrared light transducer[sensor that the top of screen is arranged in.It is red Outer optical sensor will carry out borehole by the space to the top of screen to arrange, need the space of occupied terminal equipment surface, and And infrared light transducer[sensor can only measure the distance before human body to terminal device.The present embodiment obtains terminal by SAR sensor The capacitance of the antenna of each given side of equipment determines each given side further according to the capacitance of each specified surface antenna Range data carries out distance perception using the antenna and SAR sensor in each face of terminal device and answers, on the one hand do not need on screen top Sensor is arranged in portion's borehole, can save the space on terminal device surface, on the other hand be capable of the multiple faces of inductive terminations equipment Range data, so as to according to the range data in multiple faces judge terminal device locating for scene and whether match state switching item Part.
Fig. 4 be another embodiment of the present invention provides screen control method flow diagram.The scene includes game Scene.The specific implementation process that screen state switches over has been carried out in detail when the present embodiment is in scene of game to terminal device It describes in detail bright.As shown in figure 4, this method comprises:
The distance between S401, the given side for obtaining the terminal device and target object data, wherein the given side Including at least one first given side and at least one second given side, first given side includes top and bottom, described Second given side includes left side, right side and front.
In the present embodiment, S401 is similar with the S101 in Fig. 1 embodiment, and details are not described herein again.
If the range data of the top and bottom of S402, the terminal device is respectively less than its corresponding distance threshold, Then determine that scene locating for the terminal device is the scene of game.
In the present embodiment, the corresponding distance threshold of each given side, the corresponding distance threshold of each given side can be with It is configured, is not limited thereto in advance.The corresponding distance threshold of each given side may be the same or different.For example, top The corresponding distance threshold in face can be 5mm, 6mm, and the corresponding distance threshold in bottom surface can be 5mm, 6mm, 10mm etc..Due to terminal When equipment is in scene of game, usual user's hands grasping terminal device a, hand holds the top surface of terminal device, another hand The bottom surface of terminal device is held, close to human body, the distance between human body is smaller for the top and bottom of terminal device.Therefore, The corresponding distance threshold of the range data of terminal device top and bottom can be compared respectively, in terminal device When the range data of top and bottom is respectively less than its corresponding distance threshold, determine that scene locating for terminal device is game Scene.
S403, the scene according to locating for the terminal device, determination are corresponding with scene locating for the terminal device State switching condition, wherein the corresponding state switching condition of the scene of game includes: the left side of the terminal device, the right side The range data of side and front is respectively less than its corresponding distance threshold threshold value.
In the present embodiment, when being in scene of game due to terminal device, the top surface of terminal device, bottom surface are close to human body Hand, the range data of the left side of terminal device, right side and front can accurately reflect between human body head away from From.Therefore it is corresponding apart from threshold the range data of the left side of terminal device, right side and front can be respectively less than its Value is used as the corresponding state switching condition of scene of game, is switched to the state of terminal device screen when meeting the status condition Put out screen state.
S404, meet shape corresponding with scene locating for the terminal device when the range data of each second given side When state switching condition, the state of the terminal device screen is switched to and puts out screen state.
In the present embodiment, S404 is similar with the S104 in Fig. 1 embodiment, and details are not described herein again.
The present embodiment by by the range data of the top and bottom of terminal device and its corresponding distance threshold into Row comparison, can be recognized accurately terminal device and be in scene of game;By by the left side, right side and front of terminal device Range data be respectively less than its corresponding distance threshold as the corresponding state switching condition of scene of game, can be in terminal Equipment carries out terminal device screen state when being in scene of game to put out screen control, can be when terminal device is in scene of game It prevents screen distance eyes of user excessively close, avoids the influence because of screen too closely to user's eyesight.
Fig. 5 is the flow diagram for the screen control method that yet another embodiment of the invention provides.The scene includes call Scene.The present embodiment has carried out in detail the specific implementation process that screen state switches over when being in call scene to terminal device It describes in detail bright.As shown in figure 5, this method comprises:
The distance between S501, each given side for obtaining the terminal device and target object data, wherein the finger Determining face includes at least one first given side and at least one second given side, and first given side includes left side, right side Face and the back side, second given side include top surface, bottom surface and front.
In the present embodiment, S501 is similar with the S101 in Fig. 1 embodiment, and details are not described herein again.
If it is corresponding that S502, the left side of the terminal device, right side and the range data at the back side are respectively less than its Distance threshold, it is determined that scene locating for the terminal device is the call scene.
In the present embodiment, when being in call scene due to terminal device, user is hold by one hand the left side of terminal device And right side, close to human body, the distance between human body is smaller for left side, right side and the bottom surface of terminal device.Therefore, may be used Respectively to compare the corresponding distance threshold of the range data of terminal device left side, right side and bottom surface, at end When the range data of the left side of end equipment, right side and the back side is respectively less than its corresponding distance threshold, determine that terminal is set Standby locating scene is call scene.
S503, the scene according to locating for the terminal device, determination are corresponding with scene locating for the terminal device State switching condition, wherein the corresponding state switching condition of the call scene includes: at least two in second given side The range data in face is less than its corresponding distance threshold.
In the present embodiment, when being in call scene due to terminal device, left side, right side and the back side of terminal device Close to human hands, the range data of the top surface of terminal device, bottom surface and front can accurately reflect with human body head it Between distance.It therefore can be by the range data at least two faces in the top surface, bottom surface and front of terminal device less than its correspondence Distance threshold as the corresponding state switching condition of call scene, when meeting the status condition by the shape of terminal device screen State, which is switched to, puts out screen state.
Specifically, it includes four kinds of feelings that the range data at least two faces, which is less than its corresponding distance threshold, in the second given side Condition, wherein the first situation is that the range data of the top and bottom of terminal device is respectively less than its corresponding distance threshold; Second situation is that the top surface of terminal device and the range data of front are respectively less than its corresponding distance threshold;The third feelings Condition is that the bottom surface of terminal device and the range data of front are respectively less than its corresponding distance threshold;4th kind of situation is terminal The range data of the top surface of equipment, bottom surface and front is respectively less than its corresponding distance threshold.Meet in these four situations The state of terminal device screen is then switched to and puts out screen state by any case.
S504, meet shape corresponding with scene locating for the terminal device when the range data of each second given side When state switching condition, the state of the terminal device screen is switched to and puts out screen state.
In the present embodiment, S504 is similar with the S104 in Fig. 1 embodiment, and details are not described herein again.
The present embodiment is by by its corresponding distance of the range data at the left side of terminal device, right side and the back side Threshold value compares, and terminal device can be recognized accurately and be in call scene;By by the top surface of terminal device, bottom surface and preceding The range data at least two faces is less than its corresponding distance threshold as the corresponding state switching condition of scene of game, energy in face It is enough that terminal device screen state is carried out to put out screen control when terminal device is in call scene, it can be in logical in terminal device It prevents user's head from missing touch screen curtain when talking about scene, avoids missing dropped calls caused by touch screen curtain as user's head.
The embodiment of the present invention passes through the distance between the given side for obtaining the terminal device and target object data, In, given side includes at least one first given side and at least one second given side;According to the distance of each first given side The corresponding relationship of the range data and scene of data and preset each first given side, determines scene locating for terminal device, Wherein, each scene corresponds to a state switching condition;The scene according to locating for terminal device, it is determining with locating for terminal device The corresponding state switching condition of scene;When the range data of each second given side meets and scene locating for terminal device When corresponding state switching condition, the state of terminal device screen is switched to and puts out screen state, can be realized to terminal device Control.The embodiment of the present invention passes through the range data of each first given side and the distance number of preset each first given side According to the corresponding relationship with scene, it is capable of determining that scene locating for terminal device;Pass through the distance number in each second given side When according to meeting state switching condition corresponding with scene locating for terminal device, terminal device screen being put out into screen, can be directed to Application scenarios locating for terminal device accordingly switch over the state of terminal device screen, so that user's false triggering be avoided to lead The terminal device of cause puts out screen, prevents user's operation caused by putting out screen by false triggering from interrupting.
Fig. 6 is the structural schematic diagram for the screen control device that one embodiment of the invention provides.As shown in fig. 6, the screen control Device 60 processed is applied to terminal device, comprising: obtains module 601, first processing module 602, Second processing module 603 and switching Module 604.
Acquisition module 601, the distance between given side and target object for obtaining terminal device data, In, the given side includes at least one first given side and at least one second given side.
First processing module 602, for specified according to the range data of each first given side and preset each first The range data in face and the corresponding relationship of scene, determine scene locating for the terminal device, wherein each scene corresponds to one A state switching condition.
Second processing module 603, for the scene according to locating for the terminal device, it is determining with locating for the terminal device The corresponding state switching condition of scene.
Switching module 604 meets and field locating for the terminal device for the range data when each second given side When the corresponding state switching condition of scape, the state of the terminal device screen is switched to and puts out screen state.
The embodiment of the present invention passes through the distance between the given side for obtaining the terminal device and target object data, In, given side includes at least one first given side and at least one second given side;According to the distance of each first given side The corresponding relationship of the range data and scene of data and preset each first given side, determines scene locating for terminal device, Wherein, each scene corresponds to a state switching condition;The scene according to locating for terminal device, it is determining with locating for terminal device The corresponding state switching condition of scene;When the range data of each second given side meets and scene locating for terminal device When corresponding state switching condition, the state of terminal device screen is switched to and puts out screen state, can be realized to terminal device Control.The embodiment of the present invention passes through the range data of each first given side and the distance number of preset each first given side According to the corresponding relationship with scene, it is capable of determining that scene locating for terminal device;Pass through the distance number in each second given side When according to meeting state switching condition corresponding with scene locating for terminal device, terminal device screen being put out into screen, can be directed to Application scenarios locating for terminal device accordingly switch over the state of terminal device screen, so that user's false triggering be avoided to lead The terminal device of cause puts out screen, prevents user's operation caused by putting out screen by false triggering from interrupting.
Optionally, the acquisition module 601 is used for:
The capacitor of the antenna of each given side of the terminal device is obtained by electromagnetic wave absorption rate SAR sensor Value, wherein the SAR sensor is connected with the antenna of each given side of the terminal device respectively;
According to the corresponding relationship and each specified surface antenna of the antenna electric capacitance of preset each given side and range data Capacitance, determine the range data of each given side, wherein the antenna electric capacitance and distance of preset each given side The corresponding relationship of data is the capacitor by detecting the antenna of each given side when tester is placed in preset distance and position Value determination.
Optionally, the given side of the terminal device includes top surface, bottom surface, left side, right side, front and the back side.
Optionally, first given side includes top and bottom, and the scene includes scene of game, first processing Module 602 is used for:
If the range data of the top and bottom of the terminal device is respectively less than its corresponding distance threshold, it is determined that Scene locating for the terminal device is the scene of game.
Optionally, second given side includes left side, right side and front, and the corresponding state of the scene of game is cut The condition of changing includes:
It is corresponding apart from threshold that the range data of the left side of the terminal device, right side and front is respectively less than its Value.
Optionally, first given side includes left side, right side and the back side, and the scene includes call scene, institute First processing module 602 is stated to be used for:
If it is corresponding apart from threshold that the range data of the left side of the terminal device, right side and the back side is respectively less than its Value, it is determined that scene locating for the terminal device is the call scene.
Optionally, second given side includes top surface, bottom surface and front, and the corresponding state of the call scene switches item Part includes:
The range data at least two faces is less than its corresponding distance threshold in second given side.
Screen control device provided in an embodiment of the present invention can be used for executing above-mentioned embodiment of the method, realization principle Similar with technical effect, details are not described herein again for the present embodiment.
Fig. 7 is the hardware structural diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the present embodiment The terminal device 70 of offer includes: at least one processor 701 and memory 702.The terminal device 70 further includes communication component 703.Wherein, processor 701, memory 702 and communication component 703 are connected by bus 704.
During specific implementation, at least one processor 701 executes the computer execution that the memory 702 stores and refers to It enables, so that at least one processor 701 executes screen control method as above.
The specific implementation process of processor 701 can be found in above method embodiment, and it is similar that the realization principle and technical effect are similar, Details are not described herein again for the present embodiment.
In above-mentioned embodiment shown in Fig. 7, it should be appreciated that processor can be central processing unit (English: Central Processing Unit, referred to as: CPU), can also be other general processors, digital signal processor (English: Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to Any conventional processor etc..Hardware processor can be embodied directly in conjunction with the step of invention disclosed method to have executed At, or in processor hardware and software module combination execute completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage.
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
The application also provides a kind of computer readable storage medium, and calculating is stored in the computer readable storage medium Machine executes instruction, and when processor executes the computer executed instructions, realizes screen control method as above.
Above-mentioned computer readable storage medium, above-mentioned readable storage medium storing program for executing can be by any kind of volatibility or non- Volatile storage devices or their combination realize that, such as static random access memory (SRAM), electrically erasable is only It reads memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM) is read-only to deposit Reservoir (ROM), magnetic memory, flash memory, disk or CD.Readable storage medium storing program for executing can be general or specialized computer capacity Any usable medium enough accessed.
A kind of illustrative readable storage medium storing program for executing is coupled to processor, to enable a processor to from the readable storage medium storing program for executing Information is read, and information can be written to the readable storage medium storing program for executing.Certainly, readable storage medium storing program for executing is also possible to the composition portion of processor Point.Processor and readable storage medium storing program for executing can be located at specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC) in.Certainly, processor and readable storage medium storing program for executing can also be used as discrete assembly and be present in equipment In.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of screen control method, which is characterized in that be applied to terminal device, comprising:
Obtain the distance between given side and the target object of terminal device data, wherein the given side includes at least One the first given side and at least one second given side;
Range data according to the range data of each first given side and preset each first given side is corresponding with scene Relationship determines scene locating for the terminal device, wherein each scene corresponds to a state switching condition;
According to scene locating for the terminal device, determine that state corresponding with scene locating for the terminal device switches item Part;
When the range data of each second given side meets state switching item corresponding with scene locating for the terminal device When part, the state of the terminal device screen is switched to and puts out screen state.
2. the method according to claim 1, wherein the given side and target pair for obtaining the terminal device As the distance between data, comprising:
The capacitance of the antenna of each given side of the terminal device is obtained by electromagnetic wave absorption rate SAR sensor, In, the SAR sensor is connected with the antenna of each given side of the terminal device respectively;
According to the electricity of the corresponding relationship and each specified surface antenna of the antenna electric capacitance of preset each given side and range data Capacitance determines the range data of each given side, wherein the antenna electric capacitance and range data of preset each given side Corresponding relationship be by detect when tester is placed in preset distance and position the capacitance of the antenna of each given side it is true Fixed.
3. method according to claim 1 or 2, which is characterized in that the given side of the terminal device includes top surface, bottom Face, left side, right side, front and the back side.
4. according to the method described in claim 3, it is characterized in that, first given side includes top and bottom, the field Scape includes scene of game, described according to the range data of each first given side and the distance number of preset each first given side According to the corresponding relationship with scene, scene locating for the terminal device is determined, comprising:
If the range data of the top and bottom of the terminal device is respectively less than its corresponding distance threshold, it is determined that described Scene locating for terminal device is the scene of game.
5. according to the method described in claim 4, it is characterized in that, second given side includes left side, right side and preceding Face, the corresponding state switching condition of the scene of game include:
The range data of the left side of the terminal device, right side and front is respectively less than its corresponding distance threshold.
6. according to the method described in claim 3, it is characterized in that, first given side includes left side, right side and back Face, the scene include call scene, described specified according to the range data of each first given side and preset each first The range data in face and the corresponding relationship of scene, determine scene locating for the terminal device, comprising:
If the range data of the left side of the terminal device, right side and the back side is respectively less than its corresponding distance threshold, Then determine that scene locating for the terminal device is the call scene.
7. according to the method described in claim 6, it is characterized in that, second given side includes top surface, bottom surface and front, institute Stating the corresponding state switching condition of call scene includes:
The range data at least two faces is less than its corresponding distance threshold in second given side.
8. a kind of screen control device, which is characterized in that be applied to terminal device, comprising:
Obtain module, the distance between given side and target object for obtaining terminal device data, wherein the finger Determining face includes at least one first given side and at least one second given side;
First processing module, for according to the range data of each first given side and the distance of preset each first given side The corresponding relationship of data and scene determines scene locating for the terminal device, wherein each scene corresponds to a state and cuts Change condition;
Second processing module, for the scene according to locating for the terminal device, determination and scene locating for the terminal device Corresponding state switching condition;
Switching module meets corresponding with scene locating for the terminal device for the range data when each second given side State switching condition when, the state of the terminal device screen is switched to and puts out screen state.
9. a kind of terminal device characterized by comprising at least one processor and memory;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of the memory storage, so that at least one described processing Device executes screen control method as described in any one of claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium It executes instruction, when processor executes the computer executed instructions, realizes screen as described in any one of claim 1 to 7 Control method.
CN201910417795.9A 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium Active CN110138974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910417795.9A CN110138974B (en) 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910417795.9A CN110138974B (en) 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110138974A true CN110138974A (en) 2019-08-16
CN110138974B CN110138974B (en) 2021-06-01

Family

ID=67571373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910417795.9A Active CN110138974B (en) 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110138974B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140091817A1 (en) * 2012-09-28 2014-04-03 Panasonic Corporation Electronic device equipped with capacitive type touch panel
CN204362145U (en) * 2014-03-31 2015-05-27 广州视源电子科技股份有限公司 The mobile terminal of automatic identification right-hand man
CN106775308A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 Proximity transducer changing method, device and terminal
CN108243277A (en) * 2017-12-12 2018-07-03 惠州Tcl移动通信有限公司 Mobile terminal and its control method, storage device
CN109240541A (en) * 2018-09-26 2019-01-18 Oppo广东移动通信有限公司 The screen false-touch prevention method, apparatus and electronic equipment of electronic equipment
CN109271019A (en) * 2018-08-22 2019-01-25 Oppo广东移动通信有限公司 Close to event detection element method for handover control and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140091817A1 (en) * 2012-09-28 2014-04-03 Panasonic Corporation Electronic device equipped with capacitive type touch panel
CN204362145U (en) * 2014-03-31 2015-05-27 广州视源电子科技股份有限公司 The mobile terminal of automatic identification right-hand man
CN106775308A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 Proximity transducer changing method, device and terminal
CN108243277A (en) * 2017-12-12 2018-07-03 惠州Tcl移动通信有限公司 Mobile terminal and its control method, storage device
CN109271019A (en) * 2018-08-22 2019-01-25 Oppo广东移动通信有限公司 Close to event detection element method for handover control and device
CN109240541A (en) * 2018-09-26 2019-01-18 Oppo广东移动通信有限公司 The screen false-touch prevention method, apparatus and electronic equipment of electronic equipment

Also Published As

Publication number Publication date
CN110138974B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US20180095622A1 (en) Terminal multiselection operation method and terminal
US11693544B2 (en) Mobile terminal display picture control method, apparatus, and device and storage medium
CN106855783A (en) A kind of method of false-touch prevention, device and mobile terminal
CN104035702B (en) A kind of method preventing intelligent terminal's maloperation and intelligent terminal
CN105759959A (en) Method for controlling user terminal and user terminal
EP3923126A1 (en) Split-screen display method, device, electronic apparatus and computer readable storage medium
CN108196722A (en) A kind of electronic equipment and its touch control method, computer readable storage medium
CN105446838A (en) Terminal control method and terminal
CN105160230A (en) Display apparatus
CN104536559A (en) Terminal control method
US9884257B2 (en) Method for preventing misoperations of intelligent terminal, and intelligent terminal
CN109408012B (en) Display control method and related device
CN109558348A (en) Data-moving method, apparatus and system
CN108390961B (en) Touch response method and device, readable storage medium and mobile terminal
CN112817483A (en) Multi-point touch processing method, device, equipment and storage medium
CN112445408B (en) Information processing method, information processing device, electronic equipment and storage medium
CN110231963B (en) Application control method and related device
CN105549857B (en) A kind of control method and electric terminal of electric terminal
CN108801321B (en) Sensor calibration method, electronic device and computer-readable storage medium
CN110138974A (en) Screen control method, device, equipment and computer readable storage medium
CN109375867A (en) A kind of touch operation method and device
CN105022633A (en) Solving method of hotkey conflict and terminal
CN110737882A (en) Electronic equipment and method for starting fingerprint under screen
CN109240541A (en) The screen false-touch prevention method, apparatus and electronic equipment of electronic equipment
CN112083837A (en) Touch information processing method and device of touch screen and electronic equipment

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