CN109190418A - A kind of changing interface control method, terminal and computer readable storage medium - Google Patents

A kind of changing interface control method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109190418A
CN109190418A CN201810847206.6A CN201810847206A CN109190418A CN 109190418 A CN109190418 A CN 109190418A CN 201810847206 A CN201810847206 A CN 201810847206A CN 109190418 A CN109190418 A CN 109190418A
Authority
CN
China
Prior art keywords
display interface
terminal
picture
personage
target
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
CN201810847206.6A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810847206.6A priority Critical patent/CN109190418A/en
Publication of CN109190418A publication Critical patent/CN109190418A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/83Protecting input, output or interconnection devices input devices, e.g. keyboards, mice or controllers thereof

Abstract

The invention discloses a kind of changing interface control methods, terminal and computer readable storage medium, this method passes through when target application is in front stage operation, picture is acquired by least one camera, judge in the picture of camera acquisition with the presence or absence of personage, if, the current display interface of terminal is switched into target display interface, solve in existing terminal application in use, the environment of surrounding will not be monitored, terminal is caused to show leakage of content, the problem of reducing user experience, the invention also discloses a kind of terminal and computer readable storage mediums, by implementing above scheme, there are when personage in the picture of camera acquisition, the current display interface of terminal is then switched to target display interface, in this way, it can prevent other people from checking the content of target application, protect the privacy of user, simultaneously, it can be right User plays reminding effect, improves the vigilance of user, satisfaction that the user experience is improved.

Description

A kind of changing interface control method, terminal and computer readable storage medium
Technical field
The present invention relates to field of terminal technology, more specifically to a kind of changing interface control method, terminal and calculating Machine readable storage medium storing program for executing.
Background technique
With the fast development of terminal technology, the popularity rate of the terminals such as mobile phone, tablet computer is higher and higher, the function of terminal Increasing, the content in terminal also becomes increasingly abundant, and terminal is also increasingly heavier with role in work in people's lives It wants.But the application in terminal in use, will not be monitored reality scene, this results in other people to be easy at present The content shown on terminal screen is viewed, and the content shown in terminal may be related to the privacy of user, if by other people See, then can reveal the privacy of user.For example, may remember on the picture that user when picture is checked in use " photograph album ", checks Employ the privacy at family, for example, may relate to the ID card information of user on the picture, and ID card information usually with the wealth of user Correlation is produced, if being viewed by other people, the property safety of user can be seriously affected.
Summary of the invention
The technical problem to be solved in the present invention is that: the application in terminal in use, will not be to surrounding at present The problem of environment is monitored, and is caused terminal to show leakage of content, is reduced user experience, for the technical problem, provides one Kind changing interface control method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of changing interface control method, the changing interface controlling party Method includes:
When target application is in front stage operation, passes through at least one camera and acquire picture;
Judge in the picture of camera acquisition with the presence or absence of personage;
If so, the current display interface of terminal is switched to target display interface.
Optionally, the current display interface of terminal is switched to before target display interface, further includes:
Receive display interface selection instruction;
Target display interface is confirmed according to selection instruction.
Optionally, the current display interface of terminal is switched to before target display interface, further includes:
Judged in the picture of camera acquisition based on face recognition technology with the presence or absence of at least one personage and default first It fails to match by personage in character image set;If so, the current display interface of terminal is switched to target display interface;
Or,
Judged in the picture of camera acquisition based on face recognition technology with the presence or absence of at least one personage and default second Personage's matching in character image set;If so, the current display interface of terminal is switched to target display interface.
Optionally, the current display interface of terminal is switched to before target display interface, further includes:
Judge whether the personage in the picture of camera acquisition is less than default safe distance threshold value at a distance from terminal;
If so, the current display interface of terminal is switched to target display interface.
Optionally, the current display interface of terminal is switched to after target display interface, further includes:
It, will be whole when personage in the picture of camera acquisition is more than or equal to default safe distance threshold value at a distance from terminal Current display interface is held to revert to the display interface of target application.
Optionally, the current display interface of terminal is switched to after target display interface, further includes:
When personage being not present in the picture of camera acquisition, the current display interface of terminal is reverted into target application Display interface;
And/or
Switching command is received, the current display interface of terminal is reverted to the display interface of target application.
Optionally, the current display interface of terminal is switched to after target display interface, further includes:
Close target application;
Or,
Running background target application;
Or,
Running background target application judges whether the time of target application running background is more than preset threshold, if so, closing Target application.
Optionally, target display interface is one of the runnable interface of desktop and specified application.
Further, the present invention also provides a kind of terminal, which includes processor, memory and communication bus;
Communication bus is for realizing the connection communication between processor and memory;
Processor is for executing one or more program stored in memory, to realize any of the above-described changing interface The step of control method.
Further, the present invention also provides a kind of computer readable storage medium, which is deposited One or more program is contained, one or more program can be executed by one or more processor, to realize above-mentioned The step of one changing interface control method.
Beneficial effect
The present invention provides a kind of changing interface control method, terminal and computer readable storage medium, for existing terminal Interior application in use, will not be monitored the environment of surrounding, and terminal is caused to show leakage of content, reduce user's body The defect tested judges that camera acquires by acquiring picture by least one camera when target application is in front stage operation Picture in whether there is personage, if so, the current display interface of terminal is switched to target display interface, that is to say, that this The changing interface control method provided is provided, when target application is in front stage operation, ambient enviroment is supervised by camera It surveys, there are when personage in the picture of camera acquisition, then the current display interface of terminal is switched to target display interface, this Sample can prevent other people from checking the content of target application, protect the privacy of user, meanwhile, by the current display interface of terminal Reminding effect can be played to user by being switched to target display interface, improve the vigilance of user, and it is satisfied that the user experience is improved Degree.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the changing interface control method basic flow chart that first embodiment of the invention provides;
Fig. 4 is that the target display interface that first embodiment of the invention provides selects flow chart;
Fig. 5 is the interface selection interface schematic diagram that first embodiment of the invention provides;
Fig. 6 is the flow chart for determining whether switching at a distance from terminal according to personage that first embodiment of the invention provides;
Fig. 7 is the changing interface control method refined flow chart that second embodiment of the invention provides;
Fig. 8 is the structural schematic diagram for the terminal that third embodiment of the invention provides;
Fig. 9 is the changing interface control method refined flow chart that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 capture acquisition in video The 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, treated Picture frame can store in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102 into Row is sent.Microphone 1042 can be in telephone calling model, logging mode, speech recognition mode etc. operational mode via wheat Gram wind 1042 receives sound (audio data), and can be audio data by such acoustic processing.Treated audio (language Sound) data can be converted in the case where telephone calling model to be sent to mobile communication base station via radio frequency unit 101 Format 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 biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row 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 system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
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 returning Journey (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 and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, 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 multimedia System) 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 only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And 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, tools Body may refer to shown in Fig. 3, and Fig. 3 is changing interface control method basic flow chart provided in this embodiment, the changing interface Control 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 end One 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 issues Cross what wireless communication downloading from the server in network obtained, such as " QQ ", " wechat ", " Taobao ", certainly, which answers With 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 need Flexible 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 be The privacy application of user setting, such as " photograph album ", " Alipay " etc..Target application is also possible to game class application, such as " king Honor ", " happily disappear pleasure ", " seeking survival danger spot " etc..Target application is also possible to amusement and recreation class application, such as " trill ", " fast Hand ", " 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 logical Cross the one or more cameras acquisition picture installed in terminal, for example, by a camera or two cameras or Person'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 camera Picture.
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 him People views, and without acquiring picture by least one camera to monitor whether someone, therefore, takes the photograph by least one Before head acquisition picture, it can also judge whether monitoring mode is opened, if so, picture is acquired by camera, if it is not, then Terminate.
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 acquires Picture 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 camera It 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 implementation In 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 it Its 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 cut Shift 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 this Using the current corresponding display interface of operating status, at this point, the current display interface of terminal is switched to target display interface It can be and specify application switching to front stage operation this, and show that this specified applies corresponding display interface;If currently assigned answer With 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 this Face, 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 switched It 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 certainly Body 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 modes It sets.When target display interface is arranged by terminal development personnel, terminal development personnel can be shown desktop default setting for target Show desktop, or amusement and leisure class is applied as specified application, the runnable interface of any specified application is shown as target Interface, certainly, target display interface are not limited to the above-mentioned example enumerated.When target display interface is by user setting, please join See 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 interface For 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 table Face 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 following One 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 the It fails to match by personage in one character image set;If so, the current display interface of terminal is switched into target display interface, if It 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 terminal Current display screen switching to target shows picture.It should be noted that the image in the first character image set is to include The image of face, in this way, can be judged by face recognition technology face on each image in the first character image set with Whether the face in the picture of camera acquisition matches.Wherein, the first character image set can be by user setting.For example, with Family the image of oneself can be arranged in the first character image set, prevent from only existing use in the picture acquired by camera The 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 the Personage's matching in two character image set;If so, the current display interface of terminal is switched to target display interface.If camera shooting Personage 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 shooting There 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 acquisition Changing 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 technology Whether 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 embodiment It is therefore, shown in Figure 6 before the display interface that terminal is current switches to target display interface with switching, it can be with Execute following steps:
S601, judge whether the personage in the picture of camera acquisition is less than default safe distance threshold at a distance from terminal Value;
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 personage With 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 opened Hair 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 terminal Personage 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 through Other 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 performing The 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 S601 In 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 personage Be 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 performing The 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 S601 With judge in the matched personage of personage in default second character image set with the presence or absence of at least one personage and terminal Distance 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 closed Mark application, or, the running background target application, or, the first running background target application, and judge the target application running background Time 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 as Preceding display interface reverts to the display interface of target application.Wherein, the current display interface of terminal is reverted into target application Display interface process are as follows: if target application is currently at closed state, start the target application, and show that the target is answered With 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 corresponding Display interface.In the present embodiment, after target application is closed, the current display interface of terminal can not also be reverted into target The 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 interface When, 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 current After changing interface to target display interface, need to continue through camera acquisition picture.For example, the picture currently acquired in camera When personage being not present in face, the current display interface of terminal is reverted to the display interface of target application;If terminal is current Display interface switch to before target display interface, perform judge camera acquisition picture in the presence or absence of at least one It 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 not There 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 mesh Mark the display interface of application;If performing judgement before the display interface that terminal is current switches to target display interface and taking the photograph The 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 acquires Current 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 target Before showing interface, whether the personage performed in the picture for judging camera acquisition is less than default safe distance at a distance from terminal The 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 acquisition When safety distance threshold, the current display interface of terminal is reverted to the display interface of target application, wherein if working as by terminal Preceding display interface switches to before target display interface, also performs in the picture for judging camera acquisition with the presence or absence of at least Personage in one personage and default first character image set the step of it fails to match, the then picture that can be acquired in camera In 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 default When safety distance threshold, the current display interface of terminal is reverted to the display interface of target application, if that terminal is current Display interface switches to before target display interface, also performs in the picture for judging camera acquisition with the presence or absence of at least one The step of personage matches with the personage in default second character image set, then can be in the picture that camera acquires and default The 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 terminal When, 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 command Display 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 interface Interface 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 received The mode that terminal current display interface is reverted to the display interface of target application after order can combine, i.e., automatic extensive in satisfaction Multiple condition or when receiving switching command, the mode for the display interface that the current display interface of terminal is reverted to target application can To combine.
Changing interface control method provided in this embodiment, by passing through at least one when target application is in front stage operation A 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 current Switch to target display interface, that is to say, that changing interface control method provided in this embodiment, when target application is transported on foreground When row, ambient enviroment is monitored by camera, it is there are when personage in the picture of camera acquisition, then terminal is current Display 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 use The privacy at family, meanwhile, the current display interface of terminal, which is switched to target display interface, can play reminding effect to user, mention The 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 example It 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 boundary Face 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 spot It 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 through Front 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, if In 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 set In 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 set Image in conjunction is the image for including face.In the present embodiment, in the picture that is acquired camera by face recognition technology Face is matched with the face on the image in the second character image set, if existing at least in the picture of camera acquisition One 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 set In 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 sentence It 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, if It 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.Namely It 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 set When, which is switched to running background, during running background, the second personage is not being monitored by camera When 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 operation A camera acquires picture, when there are at least one personage and default second character image set in the picture of camera acquisition Personage's matching when, the current display interface of terminal is switched to target display interface, in this way, default second personage can be prevented Personage in image collection views the content that target application is shown, protects the privacy of user, meanwhile, by terminal showing currently Show that changing interface can play reminding effect to user to target display interface, improves the vigilance of user, improve user's body Test satisfaction.
3rd embodiment
Shown in Figure 8 the present embodiment provides a kind of terminal, terminal provided in this embodiment includes processor 801, deposits Reservoir 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 802 Letter;
Processor 801 is then for executing one or more program stored in memory 802, to realize that above-mentioned first is real Apply 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 medium Sequence, this one or more program can be executed by one or more processor, to realize above-mentioned first embodiment and/or second Each 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 turns S904。
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 held Row 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 terminal Camera acquires picture, that is, is monitored.Wherein, user is in operating terminal, the case where may usually view in front of user, and The 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 with Picture 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 set In 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 collection Conjunction 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 only There 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 technology Picture 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 people Face on the image in the face and the first character image set in picture that face identification technology acquires camera carries out Matching, if there are any one of at least one face and default second character image set people in the picture of camera acquisition Face 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 current Running background then switches to front stage operation, the corresponding runnable interface of display " WPS office ";" if WPS office " when Before be in close state, foreground initiation simultaneously runs " WPS office ", and shows " WPS office " corresponding runnable interface.This When, 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 operation At 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 current Display interface switches to target display interface, that is to say, that changing interface control method provided in this embodiment works as target application In front stage operation, ambient enviroment is monitored by camera, there are when personage in the picture of camera acquisition, then will The 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 mentions It 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-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of changing interface control method, which is characterized in that the changing interface control method includes:
When target application is in front stage operation, passes through at least one camera and acquire picture;
Judge in the picture of the camera acquisition with the presence or absence of personage;
If so, the current display interface of terminal is switched to target display interface.
2. changing interface control method as described in claim 1, which is characterized in that the display interface that terminal is current is cut It shifts to before target display interface, further includes:
Receive display interface selection instruction;
Target display interface is confirmed according to the selection instruction.
3. such as the described in any item changing interface control methods of claim 1, which is characterized in that the display that terminal is current Before changing interface to target display interface, further includes:
Judged in the picture of the camera acquisition based on face recognition technology with the presence or absence of at least one personage and default first It fails to match by personage in character image set;If so, the current display interface of terminal is switched to target display interface;
Or,
Judged in the picture of the camera acquisition based on face recognition technology with the presence or absence of at least one personage and default second Personage's matching in character image set;If so, the current display interface of terminal is switched to target display interface.
4. changing interface control method as described in claim 1, which is characterized in that the display interface that terminal is current is cut It shifts to before target display interface, further includes:
Judge whether the personage in the picture of the camera acquisition is less than default safe distance threshold value at a distance from the terminal;
If so, the current display interface of terminal is switched to target display interface.
5. changing interface control method as claimed in claim 4, which is characterized in that the display interface that terminal is current is cut It shifts to after target display interface, further includes:
When personage in the picture of camera acquisition is more than or equal to default safe distance threshold value at a distance from the terminal, The current display interface of the terminal is reverted to the display interface of the target application.
6. changing interface control method as described in claim 1, which is characterized in that the display interface that terminal is current is cut It shifts to after target display interface, further includes:
When personage being not present in the picture of camera acquisition, the current display interface of the terminal is reverted into the mesh Mark the display interface of application;
And/or
Switching command is received, the current display interface of the terminal is reverted to the display interface of the target application.
7. changing interface control method as described in claim 1, which is characterized in that the display interface that terminal is current is cut It shifts to after target display interface, further includes:
Close the target application;
Or,
Target application described in running background;
Or,
Target application described in running background judges whether the time of the target application running background is more than preset time threshold, If so, closing the target application.
8. such as the described in any item changing interface control methods of claim 1-7, which is characterized in that the target display interface is One of the runnable interface of desktop and specified application.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of changing interface control method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in changing interface control method the step of.
CN201810847206.6A 2018-07-27 2018-07-27 A kind of changing interface control method, terminal and computer readable storage medium Pending CN109190418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810847206.6A CN109190418A (en) 2018-07-27 2018-07-27 A kind of changing interface control method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810847206.6A CN109190418A (en) 2018-07-27 2018-07-27 A kind of changing interface control method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109190418A true CN109190418A (en) 2019-01-11

Family

ID=64937720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810847206.6A Pending CN109190418A (en) 2018-07-27 2018-07-27 A kind of changing interface control method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109190418A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473494A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Application running method, device and terminal device
CN103902042A (en) * 2014-03-27 2014-07-02 宇龙计算机通信科技(深圳)有限公司 Terminal and anti-peeping method and device
CN104318145A (en) * 2014-09-26 2015-01-28 来安县新元机电设备设计有限公司 Method and system for privacy protection
CN105260682A (en) * 2015-10-14 2016-01-20 广东小天才科技有限公司 Method and apparatus for protecting user privacy
CN106156663A (en) * 2015-04-14 2016-11-23 小米科技有限责任公司 A kind of terminal environments detection method and device
CN107729779A (en) * 2017-09-30 2018-02-23 努比亚技术有限公司 A kind of display changeover method, terminal and computer-readable recording medium
CN107835118A (en) * 2017-10-26 2018-03-23 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer-readable recording medium
CN207283618U (en) * 2017-10-31 2018-04-27 信利光电股份有限公司 A kind of mobile phone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473494A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Application running method, device and terminal device
CN103902042A (en) * 2014-03-27 2014-07-02 宇龙计算机通信科技(深圳)有限公司 Terminal and anti-peeping method and device
CN104318145A (en) * 2014-09-26 2015-01-28 来安县新元机电设备设计有限公司 Method and system for privacy protection
CN106156663A (en) * 2015-04-14 2016-11-23 小米科技有限责任公司 A kind of terminal environments detection method and device
CN105260682A (en) * 2015-10-14 2016-01-20 广东小天才科技有限公司 Method and apparatus for protecting user privacy
CN107729779A (en) * 2017-09-30 2018-02-23 努比亚技术有限公司 A kind of display changeover method, terminal and computer-readable recording medium
CN107835118A (en) * 2017-10-26 2018-03-23 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer-readable recording medium
CN207283618U (en) * 2017-10-31 2018-04-27 信利光电股份有限公司 A kind of mobile phone

Similar Documents

Publication Publication Date Title
CN108495056A (en) Photographic method, mobile terminal and computer readable storage medium
CN108390988A (en) Fast operating method, mobile terminal and computer readable storage medium
CN109743504A (en) A kind of auxiliary photo-taking method, mobile terminal and storage medium
CN109947248A (en) Vibration control method, mobile terminal and computer readable storage medium
CN110022401A (en) A kind of control parameter setting method, terminal and computer readable storage medium
CN109634542A (en) A kind of switching display control method, terminal and computer readable storage medium
CN110300435A (en) A kind of communication pattern switching method, terminal and computer readable storage medium
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN107463243A (en) A kind of screen control method, mobile terminal and computer-readable recording medium
CN109889695A (en) A kind of image-region determines method, terminal and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN108459814A (en) Using startup method, mobile terminal and computer readable storage medium
CN110531919A (en) A kind of fingerprint touch-control mapping control method, terminal and computer readable storage medium
CN109739630A (en) Game switching method, mobile terminal and computer readable storage medium
CN110032887A (en) A kind of picture method for secret protection, terminal and computer readable storage medium
CN109729267A (en) Filter selection method, mobile terminal and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN109144383A (en) A kind of application control method, terminal and computer readable storage medium
CN110052024A (en) Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration
CN109639834A (en) A kind of synchronizing information processing method, system and mobile terminal
CN108881542A (en) Mobile terminal call method, mobile terminal and computer readable storage medium
CN109669512A (en) A kind of display control method, Folding screen terminal and computer readable storage medium
CN108228301A (en) The method, apparatus and computer readable storage medium of the long sectional drawing of screen interface
CN108566456A (en) Image pickup method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190111