Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of elementBe conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mixGround uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plateComputer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portableMedia player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. moveThe fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to specialExcept element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shiftingDynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base stationDownlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetratingFrequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communicationStandard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunicationsSystem), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (CodeDivision Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code DivisionMultiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, TD SDMA), FDD-LTE (Frequency DivisionDuplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time DivisionDuplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 showsGo out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to needIt to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received orThe audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappearsBreath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 capture acquisition in videoThe figure of the static images or video that are obtained in mode or image capture acquisition mode by image capture acquisition device (such as camera)As data are handled.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treatedPicture frame can store in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102 intoRow is sent.Microphone 1042 can be in telephone calling model, logging mode, speech recognition mode etc. operational mode via wheatGram wind 1042 receives sound (audio data), and can be audio data by such acoustic processing.Treated audio (languageSound) data can be converted in the case where telephone calling model to be sent to mobile communication base station via radio frequency unit 101Format output.Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and received with eliminating (or inhibition)With the noise or interference generated during transmission audio signal.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's earDisplay panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrapDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be usedForms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminalFamily setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 withAnd other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detectionTwo parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bandThe signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by itIt is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, canTo realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrapIt includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it orAfter neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thingThe type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it canThe function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specificallyIt limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothingLine data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) endMouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, numberIt is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be withFor transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program areaThe storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one functionSound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such asAudio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easyThe property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connectionA part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storageData in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.PlaceManaging device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediatedManage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainProcessing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, putThe functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below intoRow description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network systemSystem is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connectionFamily equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRANGround wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returningJourney (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy andCharging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 andThe control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registersSuch as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and useThe dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resourcePoint, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimediaSystem) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not onlySuitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA withAnd the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
In order to solve in the prior art, the application in terminal in use will not be monitored the environment of surrounding,The problem of causing terminal to show leakage of content, reducing user experience, the present embodiment provides a kind of changing interface control method, toolsBody may refer to shown in Fig. 3, and Fig. 3 is changing interface control method basic flow chart provided in this embodiment, the changing interfaceControl method includes:
S301, when target application is in front stage operation, pass through at least one camera and acquire picture.
It in the present embodiment, applies a certain in front stage operation, can first judge whether the application is target application, if so,It then executes and picture and subsequent step is acquired by least one camera, if it is not, then terminating.Wherein, target application can be endOne or more of any application installed on end, such as the target application can be and led to according to the download instruction that user issuesCross what wireless communication downloading from the server in network obtained, such as " QQ ", " wechat ", " Taobao ", certainly, which answersWith being also possible in the memory that the terminal is just installed in terminal before factory, such as " photograph album ", " photograph ", " video " etc.Deng.Wherein, target application can be by user's flexible setting according to their needs, can also be by terminal development personnel according to practical needFlexible setting is wanted, certainly, target application can also be arranged in conjunction with both modes.For example, user can will install in terminal" microblogging ", " wechat ", " king's honor " etc. are set as target application.Private data leakage in order to prevent, target application can beThe privacy application of user setting, such as " photograph album ", " Alipay " etc..Target application is also possible to game class application, such as " kingHonor ", " happily disappear pleasure ", " seeking survival danger spot " etc..Target application is also possible to amusement and recreation class application, such as " trill ", " fastHand ", " knowing ", " microblogging " etc..
In the present embodiment, when target application is in front stage operation, by least one camera acquire picture can be it is logicalCross the one or more cameras acquisition picture installed in terminal, for example, by a camera or two cameras orPerson's whole camera acquires picture.Wherein, due to being usually mounted with front camera and rear camera in terminal, in order to anti-When only user checks target application, seen by other people, therefore picture can be acquired by least one front camera;?Picture can be acquired by least one rear camera;It can also be acquired simultaneously by front camera and rear cameraPicture.
In the present embodiment, for target application in front stage operation, user is likely to be at the space of opposite privacy, it is not easy to by himPeople views, and without acquiring picture by least one camera to monitor whether someone, therefore, takes the photograph by least oneBefore head acquisition picture, it can also judge whether monitoring mode is opened, if so, picture is acquired by camera, if it is not, thenTerminate.
S302, sentence in the picture of camera acquisition with the presence or absence of personage.
If so, turning S303;If it is not, turning S301.
In the present embodiment, during acquiring picture by least one camera, it is also necessary to judge that camera acquiresPicture in whether there is personage, if so, turning S303;If it is not, turning S301.Wherein it is possible to the acquisition of real-time judge cameraIt whether there is personage in picture, it is of course also possible to be that timing judges in the picture of camera acquisition with the presence or absence of personage.This implementationIn example, it can be judged based on face recognition technology with the presence or absence of personage in the picture of camera acquisition, it is, of course, also possible to pass through itIts mode judges in the picture of camera acquisition with the presence or absence of personage.
S303, the current display interface of terminal is switched into target display interface.
In the present embodiment, there are when personage in the picture for determining camera acquisition, the current display interface of terminal is cutShift to target display interface.Wherein, target display interface can be one in desktop, specified runnable interface, picture applied etc.Kind, it should be noted that if currently assigned application is just in running background, it is specified that the runnable interface of specified application can be thisUsing the current corresponding display interface of operating status, at this point, the current display interface of terminal is switched to target display interfaceIt can be and specify application switching to front stage operation this, and show that this specified applies corresponding display interface;If currently assigned answerWith being in close state, it is specified using corresponding display circle after start-up course and starting that the runnable interface of specified application can be thisFace, at this point, by the current display interface of terminal switch to target display interface can be foreground initiation this it is specified apply and run,Show that this is specified using corresponding display interface.If target display interface is picture, the current display interface of terminal is switchedIt is to show the picture on a display screen to target display interface.
Target display interface is the runnable interface or picture of desktop or a certain specified application, can be by user according to certainlyBody needs to be arranged, or by terminal development personnel flexible setting according to actual needs, it is of course also possible to set in conjunction with both modesIt sets.When target display interface is arranged by terminal development personnel, terminal development personnel can be shown desktop default setting for targetShow desktop, or amusement and leisure class is applied as specified application, the runnable interface of any specified application is shown as targetInterface, certainly, target display interface are not limited to the above-mentioned example enumerated.When target display interface is by user setting, please joinSee Fig. 4, before the display interface that terminal is current switches to target display interface, can with the following steps are included:
S401, display interface selection instruction is received.
In the present embodiment, multiple options can be shown in the selection interface of interface, are then received with display interface selection interfaceFor one selection instruction in this multiple option.For example, shown in Figure 5, at interface selection interface show " desktop "," memorandum ", " nail nail ", " WPS office " etc., then receive the selection instruction that user issues.
S402, target display interface is determined according to selection instruction.
Target display interface is determined according to the information carried in selection instruction.For example, if user's selection " nail nail ", it will" nail is followed closely " as specified application, the runnable interface that " will follow closely nail " is as target display interface;If user selects " desktop ", by tableFace is as target display interface.
In the present embodiment, before the current display interface of terminal is switched to target display interface, it can also be performed followingOne of mode:
1, judged based on face recognition technology in the picture of camera acquisition with the presence or absence of at least one personage and default theIt fails to match by personage in one character image set;If so, the current display interface of terminal is switched into target display interface, ifIt is no, turn S301.That is, turning S301 if the personage in the picture of camera acquisition is the personage in the first personage set entirely;If there are the personages that at least one personage is not in the first personage set in the personage in the picture of camera acquisition, by terminalCurrent display screen switching to target shows picture.It should be noted that the image in the first character image set is to includeThe image of face, in this way, can be judged by face recognition technology face on each image in the first character image set withWhether the face in the picture of camera acquisition matches.Wherein, the first character image set can be by user setting.For example, withFamily the image of oneself can be arranged in the first character image set, prevent from only existing use in the picture acquired by cameraThe case where family oneself, the current display interface of terminal is switched.
2, judged based on face recognition technology in the picture of camera acquisition with the presence or absence of at least one personage and default thePersonage's matching in two character image set;If so, the current display interface of terminal is switched to target display interface.If camera shootingPersonage present in the picture of head acquisition is not the personage in the second character image set, then can not have to switching, if camera shootingThere are the personage that at least one personage is in the second character image set, the then displays that terminal is current in the picture of head acquisitionChanging interface is to target display interface.It should be noted that the image in the second character image set is the image for including face,In this way, can judge the face and camera acquisition on each image in the second character image set by face recognition technologyWhether the face in picture matches.Wherein, the second character image set can be by user setting.
It, can not if distant at a distance from personage and terminal in the picture of camera acquisition is current in the present embodimentIt is therefore, shown in Figure 6 before the display interface that terminal is current switches to target display interface with switching, it can be withExecute following steps:
S601, judge whether the personage in the picture of camera acquisition is less than default safe distance threshold at a distance from terminalValue;
If so, turning S602, if it is not, terminating.
In the present embodiment, the personage in the picture of camera acquisition may have one or more, can be at least one personageWith when being less than default safe distance threshold value at a distance from terminal, turn S601.Wherein, safety distance threshold by user and/or can be openedHair personnel flexible setting according to actual needs.Personage can be according to the distance of camera lens movement when camera focusing at a distance from terminalPersonage is determined at a distance from terminal, personage can also be determined by infrared sensor at a distance from terminal, it is of course also possible to pass throughOther modes determine the distance between terminal and personage.
Before the display interface that terminal is current switches to target display interface, camera acquisition is judged if performingThe step of it fails to match with the presence or absence of the personage at least one personage and default first character image set in picture, then S601In may determine that in the personage personage that it fails to match in default first character image set with the presence or absence of at least one personageBe less than default safe distance threshold value at a distance from terminal, if so, turn S601, if it is not, terminating.
Before the display interface that terminal is current switches to target display interface, camera acquisition is judged if performingThe step of matching with the presence or absence of at least one personage with the personage in default second character image set in picture, then can in S601With judge in the matched personage of personage in default second character image set with the presence or absence of at least one personage and terminalDistance is less than default safe distance threshold value, if so, turning S601, if it is not, terminating.
S602, the current display interface of terminal is switched into target display interface.
In the present embodiment, after the current display interface of terminal is switched to target display interface, the mesh can also be closedMark application, or, the running background target application, or, the first running background target application, and judge the target application running backgroundTime whether be more than preset time threshold, if so, closing the target application.
In the present embodiment, after the current display interface of terminal is switched to target display interface, terminal can also be worked asPreceding display interface reverts to the display interface of target application.Wherein, the current display interface of terminal is reverted into target applicationDisplay interface process are as follows: if target application is currently at closed state, start the target application, and show that the target is answeredWith corresponding display interface, that is, foreground initiation and running the target application, the corresponding display interface of the target application is shown,If the target application currently just in running background, is switched to front stage operation by target application, show that the target application is correspondingDisplay interface.In the present embodiment, after target application is closed, the current display interface of terminal can not also be reverted into targetThe display interface of application.
In the present embodiment, it can be unsatisfactory for switching to the current display interface of terminal into the condition of target display interfaceWhen, the current display interface of terminal is reverted to the display interface of target application automatically, at this point, then in the display that terminal is currentAfter changing interface to target display interface, need to continue through camera acquisition picture.For example, the picture currently acquired in cameraWhen personage being not present in face, the current display interface of terminal is reverted to the display interface of target application;If terminal is currentDisplay interface switch to before target display interface, perform judge camera acquisition picture in the presence or absence of at least oneIt personage in personage and default first character image set the step of it fails to match, then can be in the picture that camera acquires notThere are the personage in personage and default first character image set it fails to match when, the current display interface of terminal is reverted into meshMark the display interface of application;If performing judgement before the display interface that terminal is current switches to target display interface and taking the photographThe step of being matched with the presence or absence of at least one personage with the personage in default second character image set in the picture acquired as head,It, will be whole when can then be matched there is no personage with the personage in default second character image set in the picture that camera acquiresCurrent display interface is held to revert to the display interface of target application;If being shown the current display interface of terminal is switched to targetBefore showing interface, whether the personage performed in the picture for judging camera acquisition is less than default safe distance at a distance from terminalThe step of threshold value, then can be all larger than to be equal at a distance from terminal and preset in whole personages in the picture when preceding camera acquisitionWhen safety distance threshold, the current display interface of terminal is reverted to the display interface of target application, wherein if working as by terminalPreceding display interface switches to before target display interface, also performs in the picture for judging camera acquisition with the presence or absence of at leastPersonage in one personage and default first character image set the step of it fails to match, the then picture that can be acquired in cameraIn personage all persons that it fails to match in default first character image set and being all larger than at a distance from terminal be equal to it is defaultWhen safety distance threshold, the current display interface of terminal is reverted to the display interface of target application, if that terminal is currentDisplay interface switches to before target display interface, also performs in the picture for judging camera acquisition with the presence or absence of at least oneThe step of personage matches with the personage in default second character image set, then can be in the picture that camera acquires and defaultThe matched all persons of personage in second character image set are all larger than equal to default safe distance threshold value at a distance from terminalWhen, the current display interface of terminal is reverted to the display interface of target application;
In the present embodiment, the current display interface of terminal can also be reverted into target application when receiving switching commandDisplay interface, at this point, then can after the display interface that terminal is current switches to target display interface, close camera.That is, switching command is received, by the current display of terminal after the current display interface of terminal is switched to target display interfaceInterface reverts to the display interface of target application.
Certainly the above-mentioned display interface that the current display interface of terminal is reverted to target application automatically refers to selection is receivedThe mode that terminal current display interface is reverted to the display interface of target application after order can combine, i.e., automatic extensive in satisfactionMultiple condition or when receiving switching command, the mode for the display interface that the current display interface of terminal is reverted to target application canTo combine.
Changing interface control method provided in this embodiment, by passing through at least one when target application is in front stage operationA camera acquires picture, judges with the presence or absence of personage in the picture of camera acquisition, if so, the display interface that terminal is currentSwitch to target display interface, that is to say, that changing interface control method provided in this embodiment, when target application is transported on foregroundWhen row, ambient enviroment is monitored by camera, it is there are when personage in the picture of camera acquisition, then terminal is currentDisplay interface be switched to target display interface, in this way, the content that can prevent other people from checking that target application is shown, protects useThe privacy at family, meanwhile, the current display interface of terminal, which is switched to target display interface, can play reminding effect to user, mentionThe vigilance of high user, satisfaction that the user experience is improved.
Second embodiment
In order to better understand the present invention, the present embodiment is on the basis of first embodiment, in conjunction with more specifical exampleIt is illustrated.Fig. 7 is referred to, Fig. 7 is the changing interface control method refined flow chart that second embodiment of the invention provides, the boundaryFace method for handover control includes:
Whether S701, the application for judging front stage operation are target application.
If so, turning S702;If it is not, terminating, that is, operate normally the application.
In the present embodiment, it is assumed that target application is game class application, and the currently running application in terminal foreground is " to ask danger spotIt is raw ", then turn S702.Certainly, in other embodiments, target application is also possible to video class application or social category application etc..
S702, picture is acquired by least one camera.
In the present embodiment, it is assumed that acquire picture by rear camera.Certainly, in other embodiments, can also pass throughFront camera, or, front camera and rear camera acquire picture.
S703, judge in the picture of camera acquisition with the presence or absence of personage.
If so, turning S704, if it is not, turning S702, at least one camera acquisition picture is continued through.
In the present embodiment, it can be judged based on face recognition technology with the presence or absence of personage in the picture of camera acquisition, ifIn the presence of then turning S704, if it does not exist, turn S702.
S704, judge in the picture of camera acquisition with the presence or absence of at least one personage and default second character image setIn personage matching.
If so, turning S705, if it is not, turning S702, at least one camera acquisition picture is continued through.
In the present embodiment, the second character image set can be by user setting.It should be understood that second figure map's image setImage in conjunction is the image for including face.In the present embodiment, in the picture that is acquired camera by face recognition technologyFace is matched with the face on the image in the second character image set, if existing at least in the picture of camera acquisitionOne face is matched with any one face in default second character image set, then turns S705.
S705, by the current display screen switching of terminal to target display interface.
In the present embodiment, target display interface is desktop.By the current display screen switching of terminal to desktop.
S706, the running background target application.
That is, target application is switched to running background.
S707, judge in the picture of camera acquisition with the presence or absence of at least one personage and default second character image setIn personage matching.
If so, turning S707, until the target application is closed, if it is not, turning S708.
In the present embodiment, during target application running background, it also will continue to acquire picture by camera, and sentenceIt is matched with the presence or absence of at least one personage with the personage in default second character image set in the picture of disconnected camera acquisition, ifIt is then to turn S707, until the target application is closed, if it is not, turning S708.
S708, the display interface that the current display interface of terminal is reverted to target application.
The current display interface of terminal is reverted into the corresponding display interface of target application current operating conditions.NamelyIt says, in the present embodiment, in target application front stage operation, is passing through camera head monitor to the personage in the second character image setWhen, which is switched to running background, during running background, the second personage is not being monitored by cameraWhen personage in image collection, it is switched to front stage operation.
Changing interface control method provided in this embodiment, by passing through at least one when target application is in front stage operationA camera acquires picture, when there are at least one personage and default second character image set in the picture of camera acquisitionPersonage's matching when, the current display interface of terminal is switched to target display interface, in this way, default second personage can be preventedPersonage in image collection views the content that target application is shown, protects the privacy of user, meanwhile, by terminal showing currentlyShow that changing interface can play reminding effect to user to target display interface, improves the vigilance of user, improve user's bodyTest satisfaction.
3rd embodiment
Shown in Figure 8 the present embodiment provides a kind of terminal, terminal provided in this embodiment includes processor 801, depositsReservoir 802 and communication bus 803.
Wherein, the communication bus 803 in the present embodiment is logical for realizing the connection between processor 801 and memory 802Letter;
Processor 801 is then for executing one or more program stored in memory 802, to realize that above-mentioned first is realApply each step of changing interface control method described in example and/or second embodiment
Meanwhile the present embodiment also provides a kind of computer readable storage medium, as floppy disk, CD, hard disk, flash memory, USB flash disk,CF card, SD card, mmc card etc. are stored with one or more journey for realizing above-mentioned each step in the computer storage mediumSequence, this one or more program can be executed by one or more processor, to realize above-mentioned first embodiment and/or secondEach step of changing interface control method described in embodiment.Details are not described herein.
Terminal provided in this embodiment and computer readable storage medium can also realize a kind of changing interface control method,As shown in figure 9, the changing interface control method includes:
S901, display interface selection instruction is received.
Receive the display interface selection instruction that user issues.
S902, target display interface is determined according to selection instruction.
Assuming that user's selection is " WPS office ", then target display interface is the runnable interface of " WPS office ".
S903, when receiving the enabled instruction of a certain application, judge whether the application is target application.
If so, turning S904, if it is not, terminating.
In the present embodiment, it is assumed that video class application when target application receives the enabled instruction of " youku.com's video ", then turnsS904。
S904, judge whether monitoring mode is opened.
If so, turning S905, if it is not, terminating.
In the present embodiment, S903 is first carried out, then execute S904.In other embodiments, S904 can also be first carried out, is being heldRow S903.
S905, this apply front stage operation during, pass through at least one camera acquire picture.
The application be target application and this apply during front stage operation, can be by least one in terminalCamera acquires picture, that is, is monitored.Wherein, user is in operating terminal, the case where may usually view in front of user, andThe case where can not noticing rear, and the people for being located at user rear can be easy to the picture watched in terminal, it therefore, can be withPicture is acquired by front camera.Certainly, in other embodiments, picture can also be acquired by other cameras.
S906, judge in the picture of camera acquisition with the presence or absence of personage.
If so, turning S907, if it is not, turning S905.
S907, judge in the picture of camera acquisition with the presence or absence of at least one personage and default first character image setIn personage it fails to match.
If so, turning S908, if it is not, turning S905.
It should be understood that the image in the first character image set is the image for including face, the first character image collectionConjunction can be by user setting.In the present embodiment, due to usually there is the face of user oneself in the picture of front camera acquisition,Therefore, the self-timer of user oneself can be added in the first character image set, in this way, in the picture of camera acquisition onlyThere are when the face of user oneself, will not switch over.In the present embodiment, it can judge that camera is acquired based on face recognition technologyPicture in the presence or absence of the personage at least one personage and default first character image set, it fails to match, namely pass through peopleFace on the image in the face and the first character image set in picture that face identification technology acquires camera carries outMatching, if there are any one of at least one face and default second character image set people in the picture of camera acquisitionFace all match cognizations, then turn S908.
S908, the current display interface of terminal is switched into target display interface.
Example in undertaking, target display interface are the runnable interface of " WPS office ".If " WPS office " is currentRunning background then switches to front stage operation, the corresponding runnable interface of display " WPS office ";" if WPS office " whenBefore be in close state, foreground initiation simultaneously runs " WPS office ", and shows " WPS office " corresponding runnable interface.ThisWhen, camera can be closed.
The application of S909, running background.
By the application switching to running background.
S910, switching command is received.
Receive the switching command that user issues.
S911, the display interface that the current display interface of terminal is reverted to the application.
That is, the application is switched to front stage operation by running background, the display interface of the application is shown.
Terminal provided in this embodiment and computer readable storage medium, by leading to when target application is in front stage operationAt least one camera acquisition picture is crossed, is judged with the presence or absence of personage in the picture of camera acquisition, if so, terminal is currentDisplay interface switches to target display interface, that is to say, that changing interface control method provided in this embodiment works as target applicationIn front stage operation, ambient enviroment is monitored by camera, there are when personage in the picture of camera acquisition, then willThe current display interface of terminal is switched to target display interface, in this way, the content that can prevent other people from checking that target application is shown,The privacy of user is protected, meanwhile, the current display interface of terminal is switched to target display interface user can be played and mentionsIt wakes up and acts on, improve the vigilance of user, satisfaction that the user experience is improved.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the device that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in a storage mediumIn (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, serviceDevice, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specificEmbodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the artUnder the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very muchForm, all of these belong to the protection of the present invention.