CN109101099A - Prevent method, storage medium and the electronic equipment of proximity state exception - Google Patents

Prevent method, storage medium and the electronic equipment of proximity state exception Download PDF

Info

Publication number
CN109101099A
CN109101099A CN201810784910.1A CN201810784910A CN109101099A CN 109101099 A CN109101099 A CN 109101099A CN 201810784910 A CN201810784910 A CN 201810784910A CN 109101099 A CN109101099 A CN 109101099A
Authority
CN
China
Prior art keywords
blank screen
screen gesture
touch input
preset condition
gesture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810784910.1A
Other languages
Chinese (zh)
Inventor
靳勇
赖小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810784910.1A priority Critical patent/CN109101099A/en
Publication of CN109101099A publication Critical patent/CN109101099A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present application discloses a kind of method for preventing proximity state exception, storage medium and electronic equipment, wherein the embodiment of the present application is in the lock state and has been switched on blank screen gestures detection mode when the display screen, receives the unlocking information of user;Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;If the number for being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.In the case where with this contact by mistake, response processing is repeatedly also carried out to blank screen gesture, causes the power consumption penalty of electronic equipment, and then improves the cruising ability of electronic equipment.

Description

Prevent method, storage medium and the electronic equipment of proximity state exception
Technical field
This application involves electronic technology field more particularly to a kind of method for preventing proximity state exception, storage medium and Electronic equipment.
Background technique
With the high speed development of electronic technology, function is more and more diversified, brings great side to people's lives Just, user is also increasingly longer using the time of electronic equipment, and therefore, the continuation of the journey problem of electronic equipment is also more and more important.
Currently, electronic equipment is when being blocked, for example, mobile phone opens blank screen hand when electronic equipment is placed in user's pocket After gesture, when the finger of user accidentally touches electronic device touchscreen, the capacitance of touch screen meeting timing scan current touch, electronics Equipment can light display screen, cause the power consumption penalty of electronic equipment, influence the cruising ability of electronic equipment.
Summary of the invention
The embodiment of the present application provides a kind of method for preventing proximity state exception, storage medium and electronic equipment, can Promote the cruising ability of electronic equipment.
The embodiment of the present application provides a kind of method for preventing proximity state exception, is applied in electronic equipment, described Electronic equipment includes display screen, and the display screen includes display area, be the treating method comprises:
When the display screen is in the lock state and has been switched on blank screen gestures detection mode, the unlock for receiving user is believed Breath;
Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;
If the number for being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.
The embodiment of the present application also provides a kind of processing unit for preventing proximity state exception, be applied to electronic equipment In, the electronic equipment includes display screen and range sensor, and the display screen includes display area, and the range sensor is set It sets below the display area of the display screen, the processing unit includes:
Receiving unit is received for being in the lock state and having been switched on blank screen gestures detection mode when the display screen The unlocking information of user;
Judging unit, for judging whether the unlocking information meets preset condition, record is unsatisfactory for time of preset condition Number;
If execution unit, the number for being unsatisfactory for preset condition are more than threshold value, the blank screen gestures detection mode is closed.
The storage medium that the embodiment of the present application also provides, is stored thereon with computer program, when the computer program exists When being run on computer, so that the computer executes the side for preventing proximity state exception provided such as the application any embodiment Method.
The embodiment of the present application also provides electronic equipment, including display screen processor and memory, the display screen with And memory is coupled with the processor respectively;
Computer program is stored in the memory, the processor is described by storing in the calling memory Computer program, for executing following steps:
When the display screen is in the lock state and has been switched on blank screen gestures detection mode, the unlock for receiving user is believed Breath;
Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;
If the number for being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.
The embodiment of the present application is in the lock state and has been switched on blank screen gestures detection mode when the display screen, receives and uses The unlocking information at family;Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;If discontented The number of sufficient preset condition is more than threshold value, then closes the blank screen gestures detection mode.It is also right in the case where with this contact by mistake Blank screen gesture repeatedly carries out response processing, causes the power consumption penalty of electronic equipment, and then improves the cruising ability of electronic equipment.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 2 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 3 is a flow diagram of the method provided by the embodiments of the present application for preventing proximity state exception.
Fig. 4 is another flow diagram of the method provided by the embodiments of the present application for preventing proximity state exception.
Fig. 5 is the schematic diagram of a scenario of the method provided by the embodiments of the present application for preventing proximity state exception.
Fig. 6 is a structural schematic diagram of the processing unit provided by the embodiments of the present application for preventing proximity state exception.
Fig. 7 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 8 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, should not be by It is considered as limitation the application other specific embodiments not detailed herein.
In the following description, the specific embodiment of the application will refer to the step as performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data For the provider location of the memory, there is the specific feature as defined in the data format.But the application principle is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below Also it may be implemented in hardware.
Term as used herein " module " can regard the software object to execute in the arithmetic system as.It is as described herein Different components, module, engine and service can be regarded as the objective for implementation in the arithmetic system.And device as described herein and side Method can be implemented in the form of software, can also be implemented on hardware certainly, within the application protection scope.
Term " first ", " second " and " third " in the application etc. are for distinguishing different objects, rather than for retouching State particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include. Such as contain series of steps or module process, method, system, product or equipment be not limited to listed step or Module, but some embodiments further include the steps that not listing or module or some embodiments further include for these processes, Method, product or equipment intrinsic other steps or module.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
With reference to Fig. 1, Fig. 1 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.The electronic equipment can be The equipment such as smart phone, tablet computer.Electronic equipment 100 includes display screen 10, center 20, circuit board 30, battery 40, rear cover 50 And range sensor 60.
Wherein, display screen 10 is mounted on rear cover 50, to form the display surface of electronic equipment 100.Display screen 10 is as electricity The front housing of sub- equipment 100 forms an accommodating space with rear cover 50, for accommodating other electronic components or function of electronic equipment 100 It can component.Meanwhile display screen 10 forms the display surface of electronic equipment 100, for showing the information such as image, text.Display screen 10 It can be liquid crystal display (Liquid Crystal Display, LCD) or organic light-emitting diode (OLED) display screen (Organic Light-Emitting Diode, OLED) etc. types display screen.
In some embodiments, glass cover-plate can be set on display screen 10.Wherein, glass cover-plate can cover display Screen 10, to protect to display screen 10, prevents display screen 10 to be scraped off or by Water Damage.
In some embodiments, as shown in Figure 1, display screen 10 may include display area 11 and non-display area 12. Wherein, display area 11 executes the display function of display screen 10, for showing the information such as image, text.Non-display area 12 is not Show information.Non-display area 12 can be used for being arranged the functional units such as camera, receiver, display screen touch control electrode.One In a little embodiments, non-display area 12 may include positioned at least one region of 11 upper and lower part of display area.
In some embodiments, as shown in Fig. 2, display screen 10 can be screen comprehensively.At this point, display screen 10 can be with full frame aobvious Show information, so that electronic equipment 100 has biggish screen accounting.Display screen 10 only includes display area 11, without including non-aobvious Show region.At this point, the functional units such as camera, ambient light sensor in electronic equipment 100 can be hidden under display screen 10 Side, and the fingerprint recognition mould group of electronic equipment 100 can be set at the back side of electronic equipment 100.
Center 20 can be lamellar or laminar structure, or hollow frame structure.Wherein, center 20 can To be housed in the accommodating space that above-mentioned display screen 10 is formed with rear cover 50.Center 20 is used for as the electronics in electronic equipment 100 Element or functional unit provide a supporting role, and electronic component, the functional unit in electronic equipment are mounted together.For example, The functional units such as camera, receiver, circuit board, battery in electronic equipment can be installed on center 20 to be consolidated It is fixed.In some embodiments, the material of center 20 may include metal or plastic cement.
Circuit board 30 is mounted on inside above-mentioned accommodating space.For example, circuit board 30 may be mounted on the center 20, and with Center 20 is housed in together in above-mentioned accommodating space.Circuit board 30 can be the mainboard of electronic equipment 100.It is arranged on circuit board 30 There is grounding point, to realize the ground connection of circuit board 30.Can integrate on circuit board 30 motor, microphone, loudspeaker, receiver, Earphone interface, Universal Serial Bus Interface (USB interface), camera, range sensor, ambient light sensor, gyroscope and One in the functional units such as processor, it is two or more.Meanwhile display screen 10 can be electrically connected to circuit board 30.
In some embodiments, display control circuit is provided on circuit board 30.The display control circuit is to display screen 10 Electric signal is exported, shows information to control display screen 10.
Battery 40 is mounted on inside above-mentioned accommodating space.For example, battery 40 may be mounted on the center 20, and with center 20 are housed in together in above-mentioned accommodating space.Battery 40 can be electrically connected to the circuit board 30, to realize that battery 40 sets for electronics Standby 100 power supply.Wherein, electric power management circuit can be set on circuit board 30.The electric power management circuit is for mentioning battery 40 The voltage of confession is assigned to each electronic component in electronic equipment 100.
Rear cover 50 is used to form the exterior contour of electronic equipment 100.Rear cover 50 can be integrally formed.In the molding of rear cover 50 In the process, the structures such as rear camera hole, fingerprint recognition mould group mounting hole can be formed on rear cover 50.
The embodiment of the present application provides a kind of method for preventing proximity state exception, this prevents the method for proximity state exception can To be applied in above-mentioned electronic equipment 100.As shown in figure 3, the method for preventing proximity state exception, may include following step It is rapid:
201, in the case where putting out screen display state, judge whether blank screen gesture meets preset condition.
Wherein, when the display screen is in the lock state and has been switched on blank screen gestures detection mode, the solution of user is received Lock information.
In the embodiment of the present application, display screen, which is in the lock state, refers to and is provided with coded lock by display screen (such as character is close Code, biological characteristic password, gesture password etc.), it need to be by can just unlock display screen after good authentication authentication information, into main boundary Face.It should be noted that unlocking information includes character information, biological information and gesture information etc., implement in the application Example in, coded lock can be blank screen gesture password, need to be by good authentication user's blank screen gesture information after, can just unlock display Screen.
Blank screen gestures detection mode refers to, under screen locking and black state, draws special pattern in screen by finger, i.e., Corresponding function can be used immediately, such as plays music, open flashlight and unlock display screen etc..
Wherein, blank screen gesture may include: the length of the area of touch input and the shape of touch input and touch input The speed of the gradient and touch input of degree and touch input and the time of touch input.
It should be noted that the relevant information for obtaining blank screen gesture is to detect key point by existing touch screen itself The absolute and relative position of coordinate is set to realize.Such as 1. touch input area: touch screen itself can detect multiple spot touch It touches, the area of the polygon of several point compositions is calculated by the multiple point touching detected;2. touch input shape: in touch input In the process, touch screen can be by certain time interval acquiring touch input point, and calculates the distance that each sampled point is shown in, and set in advance The distance set carries out the matching of equal proportion, and pre-set shape (usually some English words are identified as if successful match It is female);Touch input length: starting point and ending point when touch screen can obtain touch horizontally and vertically passes through water Square to and vertical direction between starting point and ending point distance calculating, using relatively large distance as touch input length;Touching Touch input gradient: using the angle between horizontally and vertically upper starting point and ending point as touch input gradient;It touches Input speed: during calculating touch input, the number of the point of unit time input is touch input speed;When touch input Between: the time that a complete touch input of touch screen record is completed.
202, judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition.
Wherein judge whether the unlocking information meets preset condition, the number that record is unsatisfactory for preset condition includes step It is rapid:
(1) the blank screen gesture information is compared by the preset condition with the sample blank screen gesture in presetting database, Judge whether the blank screen gesture matches with the sample blank screen gesture.
(2) if so, determining that the blank screen gesture meets preset condition.
(3) if it is not, then determining that the blank screen gesture is unsatisfactory for preset condition.
It should be noted that the experience according to those skilled in the art is set, in general, pre-set database In shape can be with are as follows: alphabetical L, E, O etc.;It is certainly not limited to this, it can also be using other complicated shapes, for example, using the Chinese Word is as pre-set image, for example, the words such as Europe, amber.Pre-set length requirement are as follows: between starting point and ending point away from 3/4 from screen to be more than just is considered effective distance;Pre-set rate request are as follows: a complete touch input needs It is completed in 150 milliseconds;Pre-set gradient requirement are as follows: the angle of starting point and ending point horizontally and vertically is small In 10 degree.Touch input not under the conditions of defined above is regarded as primary invalid input.
When the blank screen gesture of user's input cannot then determine described black with the blank screen gesture successful match in presetting database Screen gesture is unsatisfactory for preset condition.The blank screen gesture for thus recording user input is unsatisfactory for preset condition, thus accumulative The blank screen gesture is unsatisfactory for the number of preset condition.
If the number for 203, being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.
Wherein, pre-determined distance threshold value is suitable critical value, the threshold value can be it is primary, two, three or more times, than Such as, when user inputs unlocking information, to be unsatisfactory for preset condition primary, then closes the blank screen gestures detection mode, certainly, generally Can set a threshold to three times, when user input unlocking information be unsatisfactory for preset condition three times, then can be with primitive decision, The user is placed on pocket, and user itself is intended to without unlock and what is generated contact by mistake.After opening blank screen gesture mode, display screen The capacitance of meeting timing scan current touch, when the no unlock intention of user itself, and because user contacts by mistake always with display screen, Display screen can make a decision always in this way, and power consumption will increase.
Upper right is it is found that the embodiment of the present application is in the lock state when the display screen and has been switched on blank screen gestures detection mould Formula receives the unlocking information of user;Judge whether the unlocking information meets preset condition, record is unsatisfactory for time of preset condition Number;If the number for being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.With this feelings contactd by mistake Under condition, response processing is repeatedly also carried out to blank screen gesture, causes the power consumption penalty of electronic equipment, and then improves electronic equipment Cruising ability.
Below by the basis of the method that above-described embodiment describes, the display methods of the application is described further.Ginseng Fig. 4 is examined, which may include: wherein, when the display screen is in the lock state and has been opened Blank screen gestures detection mode is opened, the unlocking information of user is received.
In the embodiment of the present application, display screen, which is in the lock state, refers to and is provided with coded lock by display screen (such as character is close Code, biological characteristic password, gesture password etc.), it need to be by can just unlock display screen after good authentication authentication information, into main boundary Face.It should be noted that unlocking information includes character information, biological information and gesture information etc., implement in the application Example in, coded lock can be blank screen gesture password, need to be by good authentication user's blank screen gesture information after, can just unlock display Screen.
Blank screen gestures detection mode refers to, under screen locking and black state, draws special pattern in screen by finger, i.e., Corresponding function can be used immediately, such as plays music, open flashlight and unlock display screen etc..
Wherein, blank screen gesture may include: the length of the area of touch input and the shape of touch input and touch input The speed of the gradient and touch input of degree and touch input and the time of touch input.
It should be noted that the relevant information for obtaining blank screen gesture is to detect key point by existing touch screen itself The absolute and relative position of coordinate is set to realize.Such as 1. touch input area: touch screen itself can detect multiple spot touch It touches, the area of the polygon of several point compositions is calculated by the multiple point touching detected;2. touch input shape: in touch input In the process, touch screen can be by certain time interval acquiring touch input point, and calculates the distance that each sampled point is shown in, and set in advance The distance set carries out the matching of equal proportion, and pre-set shape (usually some English words are identified as if successful match It is female);Touch input length: starting point and ending point when touch screen can obtain touch horizontally and vertically passes through water Square to and vertical direction between starting point and ending point distance calculating, using relatively large distance as touch input length;Touching Touch input gradient: using the angle between horizontally and vertically upper starting point and ending point as touch input gradient;It touches Input speed: during calculating touch input, the number of the point of unit time input is touch input speed;When touch input Between: the time that a complete touch input of touch screen record is completed.
301, when the display screen is in the lock state and has been switched on blank screen gestures detection mode, the unlock of user is received Information.
Wherein, the blank screen gestures detection mode refers to, under screen locking and black state, draws spy in screen by finger Determine figure, corresponding function can be used immediately, such as play music, opens flashlight and unlock display screen etc..
Wherein, blank screen gesture may include: the length of the area of touch input and the shape of touch input and touch input The speed of the gradient and touch input of degree and touch input and the time of touch input.
It should be noted that the relevant information for obtaining blank screen gesture is to detect key point by existing touch screen itself The absolute and relative position of coordinate is set to realize.Such as 1. touch input area: touch screen itself can detect multiple spot touch It touches, the area of the polygon of several point compositions is calculated by the multiple point touching detected;2. touch input shape: in touch input In the process, touch screen can be by certain time interval acquiring touch input point, and calculates the distance that each sampled point is shown in, and set in advance The distance set carries out the matching of equal proportion, and pre-set shape (usually some English words are identified as if successful match It is female);Touch input length: starting point and ending point when touch screen can obtain touch horizontally and vertically passes through water Square to and vertical direction between starting point and ending point distance calculating, using relatively large distance as touch input length;Touching Touch input gradient: using the angle between horizontally and vertically upper starting point and ending point as touch input gradient;It touches Input speed: during calculating touch input, the number of the point of unit time input is touch input speed;When touch input Between: the time that a complete touch input of touch screen record is completed.
302, the blank screen gesture information is compared with the sample blank screen gesture in presetting database, is judged described black Whether screen gesture matches with the sample blank screen gesture, if the blank screen gesture is matched with the sample blank screen gesture, meets Preset condition is unsatisfactory for preset condition if the blank screen gesture and the sample blank screen gesture mismatch.
It should be noted that the experience according to those skilled in the art is set, in general, pre-set database In shape can be with are as follows: alphabetical L, E, O etc.;It is certainly not limited to this, it can also be using other complicated shapes, for example, using the Chinese Word is as pre-set image, for example, the words such as Europe, amber.Pre-set length requirement are as follows: between starting point and ending point away from 3/4 from screen to be more than just is considered effective distance;Pre-set rate request are as follows: a complete touch input needs It is completed in 150 milliseconds;Pre-set gradient requirement are as follows: the angle of starting point and ending point horizontally and vertically is small In 10 degree.Touch input not under the conditions of defined above is regarded as primary invalid input.
Wherein, described to be compared the blank screen gesture information with the sample blank screen gesture in presetting database, judgement Whether the blank screen gesture matches with the sample blank screen gesture, if the blank screen gesture is matched with the sample blank screen gesture, Then meet preset condition, if the blank screen gesture and the sample blank screen gesture mismatch, is unsatisfactory in preset condition step Include:
3021, whether the similarity for judging the area of the blank screen gesture information and touch input is more than preset threshold, when The similarity for judging the area of the blank screen gesture information and touch input is more than preset threshold, then determines the blank screen gesture Meet preset condition.
Wherein, the blank screen that will acquire receives gesture information and the area of default blank screen gesture input carries out similarity mode, should Default blank screen gesture is the pre-stored blank screen gesture sample information of electronic equipment, and electronic equipment is in acquisition blank screen gesture every time When, due to user pressing area have no idea it is just the same, cause acquisition blank screen gesture can generate certain error.So A preset threshold is set, which is a critical value, when the phase for judging the blank screen gesture information with default input area When being more than preset threshold like degree, it is judged to meeting preset condition.
3022, whether the similarity for judging the shape of the blank screen gesture information and touch input is more than preset threshold, when The similarity for judging the shape of the blank screen gesture information and touch input is more than preset threshold, then determines the blank screen gesture Meet preset condition.
Wherein, the blank screen that will acquire receives gesture information and the shape of default blank screen gesture input carries out similarity mode, should Default blank screen gesture is the pre-stored blank screen gesture sample information of electronic equipment, and electronic equipment is in acquisition blank screen gesture every time When, since the angle and direction of user's pressing is inconsistent, cause the blank screen gesture of acquisition that can generate certain error.So setting One preset threshold, the preset threshold are a critical value, when the similarity for judging the blank screen gesture information and default input shape When more than preset threshold, it is judged to meeting preset condition.
If the number for 303, being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.
Wherein, pre-determined distance threshold value is suitable critical value, the threshold value can be it is primary, two, three or more times, than Such as, when user inputs unlocking information, to be unsatisfactory for preset condition primary, then closes the blank screen gestures detection mode, certainly, generally Can set a threshold to three times, when user input unlocking information be unsatisfactory for preset condition three times, then can be with primitive decision, The user is placed on pocket, and user itself is intended to without unlock and what is generated contact by mistake.After opening blank screen gesture mode, display screen The capacitance of meeting timing scan current touch, when the no unlock intention of user itself, and because user contacts by mistake always with display screen, Display screen can make a decision always in this way, and power consumption will increase.
304, after opening display screen, the blank screen gestures detection mode is opened.
As shown in Figure 5, it should be noted that open display screen, that is, after display screen is lighted, then opened after blank screen again Open blank screen gestures detection mode.For example, user's active startup power supply key, after opening display screen, at this time blank screen gestures detection mould Formula is opened, after entering blank screen mode in next time can be carried out blank screen gestures detection, while display screen is opened, to unlocking information The number for being unsatisfactory for preset condition is zeroed out processing.
A kind of processing unit for preventing proximity state exception is additionally provided in one embodiment.Referring to Fig. 6, Fig. 6 is this Apply for the structural schematic diagram for the processing unit for preventing proximity state exception that embodiment provides.Wherein this prevents proximity state abnormal Processing unit be applied to electronic equipment, it includes receiving unit 401, judging unit that this, which prevents the processing unit of proximity state exception, 402 and execution unit 403, as follows:
The receiving unit 401, for being in the lock state and having been switched on blank screen gestures detection mode when the display screen, Receive the unlocking information of user.
Wherein, when the display screen is in the lock state and has been switched on blank screen gestures detection mode, the solution of user is received Lock information.
In the embodiment of the present application, display screen, which is in the lock state, refers to and is provided with coded lock by display screen (such as character is close Code, biological characteristic password, gesture password etc.), it need to be by can just unlock display screen after good authentication authentication information, into main boundary Face.It should be noted that unlocking information includes character information, biological information and gesture information etc., implement in the application Example in, coded lock can be blank screen gesture password, need to be by good authentication user's blank screen gesture information after, can just unlock display Screen.
Blank screen gestures detection mode refers to, under screen locking and black state, draws special pattern in screen by finger, i.e., Corresponding function can be used immediately, such as plays music, open flashlight and unlock display screen etc..
Wherein, blank screen gesture may include: the length of the area of touch input and the shape of touch input and touch input The speed of the gradient and touch input of degree and touch input and the time of touch input.
It should be noted that the relevant information for obtaining blank screen gesture is to detect key point by existing touch screen itself The absolute and relative position of coordinate is set to realize.Such as 1. touch input area: touch screen itself can detect multiple spot touch It touches, the area of the polygon of several point compositions is calculated by the multiple point touching detected;2. touch input shape: in touch input In the process, touch screen can be by certain time interval acquiring touch input point, and calculates the distance that each sampled point is shown in, and set in advance The distance set carries out the matching of equal proportion, and pre-set shape (usually some English words are identified as if successful match It is female);Touch input length: starting point and ending point when touch screen can obtain touch horizontally and vertically passes through water Square to and vertical direction between starting point and ending point distance calculating, using relatively large distance as touch input length;Touching Touch input gradient: using the angle between horizontally and vertically upper starting point and ending point as touch input gradient;It touches Input speed: during calculating touch input, the number of the point of unit time input is touch input speed;When touch input Between: the time that a complete touch input of touch screen record is completed.
The judging unit, for judging whether the unlocking information meets preset condition, record is unsatisfactory for preset condition Number.
It should be noted that the experience according to those skilled in the art is set, in general, pre-set database In shape can be with are as follows: alphabetical L, E, O etc.;It is certainly not limited to this, it can also be using other complicated shapes, for example, using the Chinese Word is as pre-set image, for example, the words such as Europe, amber.Pre-set length requirement are as follows: between starting point and ending point away from 3/4 from screen to be more than just is considered effective distance;Pre-set rate request are as follows: a complete touch input needs It is completed in 150 milliseconds;Pre-set gradient requirement are as follows: the angle of starting point and ending point horizontally and vertically is small In 10 degree.Touch input not under the conditions of defined above is regarded as primary invalid input.
When the blank screen gesture of user's input cannot then determine described black with the blank screen gesture successful match in presetting database Screen gesture is unsatisfactory for preset condition.The blank screen gesture for thus recording user input is unsatisfactory for preset condition, thus accumulative The blank screen gesture is unsatisfactory for the number of preset condition.
Execution unit 402 closes the blank screen gestures detection if the number for being unsatisfactory for preset condition is more than threshold value Mode.
Wherein, pre-determined distance threshold value is suitable critical value, the threshold value can be it is primary, two, three or more times, than Such as, when user inputs unlocking information, to be unsatisfactory for preset condition primary, then closes the blank screen gestures detection mode, certainly, generally Can set a threshold to three times, when user input unlocking information be unsatisfactory for preset condition three times, then can be with primitive decision, The user is placed on pocket, and user itself is intended to without unlock and what is generated contact by mistake.After opening blank screen gesture mode, display screen The capacitance of meeting timing scan current touch, when the no unlock intention of user itself, and because user contacts by mistake always with display screen, Display screen can make a decision always in this way, and power consumption will increase.
In one embodiment, the receiving unit 403 may include:
Comparing unit, for the blank screen gesture information to be compared with the sample blank screen gesture in presetting database, Judge whether the blank screen gesture matches with the sample blank screen gesture, if the blank screen gesture and the sample blank screen gesture Match, then determines that the blank screen gesture meets preset condition;If the blank screen gesture and the sample blank screen gesture mismatch, sentence The fixed blank screen gesture is unsatisfactory for preset condition.
Wherein, prevent the step of each unit executes in the processing unit of proximity state exception from can implement with reference to the above method The method and step of example description.This prevents the processing unit of proximity state exception from can integrate in the electronic device, such as mobile phone, plate Computer etc..
It is realized when it is implemented, above each unit can be used as independent entity, any combination can also be carried out, as Same or several entities realize that the specific implementation of above each unit can be found in the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that the embodiment of the present application receiving unit 401 is in the lock state and has been switched on black when the display screen Shield gestures detection mode, receives the unlocking information of user;Judging unit 402 judges whether the unlocking information meets default item Part, record are unsatisfactory for the number of preset condition;If the number that execution unit 403 is unsatisfactory for preset condition is more than threshold value, close The blank screen gestures detection mode.In the case where with this contact by mistake, response processing is repeatedly also carried out to blank screen gesture, causes electricity The power consumption penalty of sub- equipment, and then improve the cruising ability of electronic equipment.
The embodiment of the present application also provides a kind of electronic equipment.Referring to Fig. 7, electronic equipment 500 include processor 501 and Memory 502.Wherein, processor 501 and memory 502 are electrically connected.
The processor 500 is the control centre of electronic equipment 500, utilizes various interfaces and the entire electronic equipment of connection Various pieces, the computer program in memory 502 by operation or load store, and call and be stored in memory Data in 502 execute the various functions of electronic equipment 500 and handle data, to carry out whole prison to electronic equipment 500 Control.
The memory 502 can be used for storing software program and module, and processor 501 is stored in memory by operation 502 computer program and module, thereby executing various function application and data processing.Memory 502 can mainly include Storing program area and storage data area, wherein storing program area can computer needed for storage program area, at least one function Program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to electronic equipment The data etc. of creation.In addition, memory 502 may include high-speed random access memory, it can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide access of the processor 501 to memory 502.
In the embodiment of the present application, the processor 501 in electronic equipment 500 can be according to following step, by one or one The corresponding instruction of the process of a above computer program is loaded into memory 502, and is stored in by the operation of processor 501 Computer program in reservoir 502, thus realize various functions, it is as follows:
When the display screen is in the lock state and has been switched on blank screen gestures detection mode, the unlock for receiving user is believed Breath;
Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;
If the number for being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.
In some embodiments, the processor 501 can also specifically execute following steps:
The blank screen gesture information is compared with the sample blank screen gesture in presetting database, judges the blank screen hand Whether gesture matches with the sample blank screen gesture;
If so, determining that the blank screen gesture meets preset condition;
If it is not, then determining that the blank screen gesture is unsatisfactory for preset condition.
In some embodiments, when passing through the range sensor detecting distance value, processor 501 can be executed specifically Following steps:
Whether the similarity for judging the area of the blank screen gesture information and touch input is more than preset threshold, when judging The similarity of the blank screen gesture information and the area of touch input is more than preset threshold, then it is pre- to determine that the blank screen gesture meets If condition;
Whether the similarity for judging the shape of the blank screen gesture information and touch input is more than preset threshold, when judging The similarity of the shape of the blank screen gesture information and touch input is more than preset threshold, then it is pre- to determine that the blank screen gesture meets If condition.
In some embodiments, processor 501 can also specifically execute following steps:
After opening display screen, the blank screen gestures detection mode is opened.
The embodiment of the present application is in the lock state and has been switched on blank screen gestures detection mode when the display screen, receives and uses The unlocking information at family;Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;If discontented The number of sufficient preset condition is more than threshold value, then closes the blank screen gestures detection mode.It is also right in the case where with this contact by mistake Blank screen gesture repeatedly carries out response processing, causes the power consumption penalty of electronic equipment, and then improves the cruising ability of electronic equipment.
Also referring to Fig. 8, in some embodiments, electronic equipment 500 can also include: display 503, radio frequency electrical Road 504, voicefrequency circuit 505 and power supply 506.Wherein, wherein display 503, radio circuit 504, voicefrequency circuit 505 and Power supply 506 is electrically connected with processor 501 respectively.
The display 503 be displayed for information input by user or be supplied to user information and various figures User interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display 503 may include display panel, in some embodiments, can use liquid crystal display (Liquid Crystal Display, LCD) or the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) match Set display panel.
The radio circuit 504 can be used for transceiving radio frequency signal, with by wireless communication with the network equipment or other electronics Equipment establishes wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
The voicefrequency circuit 505 can be used for providing the audio between user and electronic equipment by loudspeaker, microphone and connecing Mouthful.
The power supply 506 is used to all parts power supply of electronic equipment 500.In some embodiments, power supply 506 can With logically contiguous by power-supply management system and processor 501, thus charged, discharged by power-supply management system realization management, And the functions such as power managed.
Although being not shown in Fig. 7, electronic equipment 500 can also include camera, bluetooth module etc., and details are not described herein.
The embodiment of the present application also provides a kind of storage medium, which is stored with computer program, when the computer When program is run on computers, so that the computer executes the side for preventing proximity state exception in any of the above-described embodiment Method, such as: when the display screen is in the lock state and has been switched on blank screen gestures detection mode, the unlock for receiving user is believed Breath;Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;If being unsatisfactory for preset condition Number be more than threshold value, then close the blank screen gestures detection mode.
In the embodiment of the present application, storage medium can be magnetic disk, CD, read-only memory (Read Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It should be noted that this field is commonly surveyed for the method for preventing proximity state exception of the embodiment of the present application Examination personnel are understood that realize all or part of the process of the method for preventing proximity state exception of the embodiment of the present application, and being can be with Relevant hardware is controlled by computer program to complete, the computer program can be stored in a computer-readable storage It in medium, is such as stored in the memory of electronic equipment, and is executed by least one processor in the electronic equipment, executed It in the process may include the process such as the embodiment for preventing the method for proximity state exception.Wherein, the storage medium can be magnetic Dish, CD, read-only memory, random access memory etc..
For the processing unit for preventing proximity state exception of the embodiment of the present application, each functional module be can integrate In one processing chip, it is also possible to modules and physically exists alone, one can also be integrated in two or more modules In a module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module It realizes.If the integrated module is realized and when sold or used as an independent product in the form of software function module, Also it can store in a computer readable storage medium, the storage medium is for example read-only memory, disk or light Disk etc..
Above to a kind of method, apparatus for preventing proximity state exception, storage medium provided by the embodiment of the present application and Electronic equipment is described in detail, and specific case used herein explains the principle and embodiment of the application It states, the description of the example is only used to help understand the method for the present application and its core ideas;Meanwhile for this field Technical staff, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion The contents of this specification should not be construed as limiting the present application.

Claims (13)

1. a kind of method for preventing proximity state exception, it is applied in electronic equipment, which is characterized in that the electronic equipment includes Display screen, the display screen include display area, be the treating method comprises:
When the display screen is in the lock state and has been switched on blank screen gestures detection mode, the unlocking information of user is received;
Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;
If the number for being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.
2. the method according to claim 1 for preventing proximity state exception, which is characterized in that the unlocking information includes black Shield gesture unlocking information, unlocked by fingerprint information.
3. the method according to claim 2 for preventing proximity state exception, which is characterized in that the judgement unlock letter Whether breath, which meets in preset condition step, includes:
The blank screen gesture information is compared with the sample blank screen gesture in presetting database, judge the blank screen gesture with Whether the sample blank screen gesture matches;
If so, determining that the blank screen gesture meets preset condition;
If it is not, then determining that the blank screen gesture is unsatisfactory for preset condition.
4. the method according to claim 3 for preventing proximity state exception, which is characterized in that the sample blank screen gesture packet Include the area of touch input and the shape of touch input.
5. the method according to claim 4 for preventing proximity state exception, which is characterized in that described by the blank screen gesture Be compared with the sample blank screen gesture in presetting database, judge the blank screen gesture and the sample blank screen gesture whether With including: in step
Whether the similarity for judging the area of the blank screen gesture information and touch input is more than preset threshold, described when judging The similarity of blank screen gesture information and the area of touch input is more than preset threshold, then determines that the blank screen gesture meets default item Part;
Whether the similarity for judging the shape of the blank screen gesture information and touch input is more than preset threshold, described when judging The similarity of the shape of blank screen gesture information and touch input is more than preset threshold, then determines that the blank screen gesture meets default item Part.
6. the method according to claim 4 for preventing proximity state exception, which is characterized in that if being unsatisfactory for preset condition Number be more than threshold value, then close after the blank screen gestures detection mode step and include:
After opening display screen, the blank screen gestures detection mode is opened.
7. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is by processor It realizes when execution such as the step of the method as claimed in any one of claims 1 to 6 for preventing proximity state exception.
8. a kind of electronic equipment, which is characterized in that including display screen processor and memory, the display screen and memory It is coupled respectively with the processor;
Computer program is stored in the memory, the processor is by calling the calculating stored in the memory Machine program, for executing following steps:
When the display screen is in the lock state and has been switched on blank screen gestures detection mode, the unlocking information of user is received;
Judge whether the unlocking information meets preset condition, record is unsatisfactory for the number of preset condition;
If the number for being unsatisfactory for preset condition is more than threshold value, the blank screen gestures detection mode is closed.
9. electronic equipment according to claim 8, which is characterized in that the unlocking information includes blank screen gesture unlock letter Breath, unlocked by fingerprint information.
10. electronic equipment according to claim 9, which is characterized in that the processor also executes following steps:
The blank screen gesture information is compared with the sample blank screen gesture in presetting database, judge the blank screen gesture with Whether the sample blank screen gesture matches;
If so, determining that the blank screen gesture meets preset condition;
If it is not, then determining that the blank screen gesture is unsatisfactory for preset condition.
11. electronic equipment according to claim 10, which is characterized in that the sample blank screen gesture includes touch input The shape of area and touch input.
12. electronic equipment according to claim 11, which is characterized in that the processor also executes following steps:
Whether the similarity for judging the area of the blank screen gesture information and touch input is more than preset threshold, described when judging The similarity of blank screen gesture information and the area of touch input is more than preset threshold, then determines that the blank screen gesture meets default item Part;
Whether the similarity for judging the shape of the blank screen gesture information and touch input is more than preset threshold, described when judging The similarity of the shape of blank screen gesture information and touch input is more than preset threshold, then determines that the blank screen gesture meets default item Part.
13. the method according to claim 11 for preventing proximity state exception, which is characterized in that the processor also executes Following steps:
After opening display screen, the blank screen gestures detection mode is opened.
CN201810784910.1A 2018-07-17 2018-07-17 Prevent method, storage medium and the electronic equipment of proximity state exception Pending CN109101099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810784910.1A CN109101099A (en) 2018-07-17 2018-07-17 Prevent method, storage medium and the electronic equipment of proximity state exception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810784910.1A CN109101099A (en) 2018-07-17 2018-07-17 Prevent method, storage medium and the electronic equipment of proximity state exception

Publications (1)

Publication Number Publication Date
CN109101099A true CN109101099A (en) 2018-12-28

Family

ID=64846601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810784910.1A Pending CN109101099A (en) 2018-07-17 2018-07-17 Prevent method, storage medium and the electronic equipment of proximity state exception

Country Status (1)

Country Link
CN (1) CN109101099A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109738004A (en) * 2019-01-24 2019-05-10 Oppo广东移动通信有限公司 The calibration method and device, electronic equipment and storage medium of proximity sensor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007097548A1 (en) * 2006-02-20 2007-08-30 Cheol Woo Kim Method and apparatus for user-interface using the hand trace
CN105373209A (en) * 2015-11-30 2016-03-02 广东欧珀移动通信有限公司 Control method and apparatus for mobile terminal and mobile terminal
CN105426091A (en) * 2014-09-19 2016-03-23 中兴通讯股份有限公司 Method and terminal for controlling black screen gesture processing
CN106020419A (en) * 2016-05-16 2016-10-12 广东欧珀移动通信有限公司 Method and apparatus for reducing power consumption of mobile terminal, and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007097548A1 (en) * 2006-02-20 2007-08-30 Cheol Woo Kim Method and apparatus for user-interface using the hand trace
CN105426091A (en) * 2014-09-19 2016-03-23 中兴通讯股份有限公司 Method and terminal for controlling black screen gesture processing
CN105373209A (en) * 2015-11-30 2016-03-02 广东欧珀移动通信有限公司 Control method and apparatus for mobile terminal and mobile terminal
CN106020419A (en) * 2016-05-16 2016-10-12 广东欧珀移动通信有限公司 Method and apparatus for reducing power consumption of mobile terminal, and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109738004A (en) * 2019-01-24 2019-05-10 Oppo广东移动通信有限公司 The calibration method and device, electronic equipment and storage medium of proximity sensor
CN109738004B (en) * 2019-01-24 2021-02-26 Oppo广东移动通信有限公司 Method and device for calibrating proximity sensor, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102508591B (en) Prevention of accidental device activation
CN107181559B (en) Processing method, device, storage medium and the terminal of radio frequency interference
US8884885B2 (en) Touch pad, method of operating the same, and notebook computer with the same
CN109032488A (en) Processing method, storage medium and the electronic equipment of blank screen gesture
US20130135247A1 (en) Touch sensing apparatus
CN108701043A (en) A kind of processing method and processing device of display
CN107908313B (en) Control method of electronic device and electronic device
CN106527949B (en) A kind of unlocked by fingerprint method, apparatus and terminal
CN108984095A (en) gesture interaction method, device, storage medium and electronic equipment
CN107316033A (en) Fingerprint identification method, device and the storage medium and mobile terminal of mobile terminal
CN108984083A (en) Processing method, device, storage medium and the electronic equipment of split screen display available
CN107491677A (en) Fingerprint recognition processing method, device, equipment and storage medium
CN109067983A (en) Information cuing method, storage medium and electronic equipment
CN109283996A (en) Display control method and Related product
CN106708409B (en) A kind of response method of popup menu, device and mobile terminal
CN108762835A (en) Application operation method, apparatus, storage medium and electronic device
CN108846271A (en) Apparatus control method, device, storage medium and electronic equipment
CN109067978A (en) Button operation processing method, device, storage medium and electronic equipment
CN109144227A (en) Processing method, storage medium and the electronic equipment of finger print information
CN106682476B (en) Electronic device and fingerprint living body start method
CN107862189A (en) Unlocking method and related product
CN110245483A (en) Biometric discrimination method and Related product
CN109101099A (en) Prevent method, storage medium and the electronic equipment of proximity state exception
CN105718775A (en) Application control method and mobile terminal
CN108628535A (en) task management method, device, storage medium and electronic device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181228

RJ01 Rejection of invention patent application after publication