CN111125663B - Control method and device for child mode, storage medium and terminal - Google Patents
Control method and device for child mode, storage medium and terminal Download PDFInfo
- Publication number
- CN111125663B CN111125663B CN201911184005.3A CN201911184005A CN111125663B CN 111125663 B CN111125663 B CN 111125663B CN 201911184005 A CN201911184005 A CN 201911184005A CN 111125663 B CN111125663 B CN 111125663B
- Authority
- CN
- China
- Prior art keywords
- face
- terminal
- image
- user
- enter
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses a control method and device of a child mode, a storage medium and a terminal, and belongs to the field of computers. The method comprises the following steps: displaying a screen locking interface through a display screen; receiving a password input by a user on the screen locking interface; after the password is verified to be correct, acquiring an image through a front camera; and if a face is detected in the image and the face is matched with a pre-stored face template, controlling the terminal to enter a child mode. According to the method and the device, the access authority of the child can be controlled, and unsafe operation executed after the child logs in the terminal by using the password is avoided.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for controlling a child mode, a storage medium, and a terminal.
Background
With the development of mobile internet, more and more applications are developed for children, and children generally use mobile phones provided by parents to study or entertain. In the related art, after a parent tells a child a screen locking password of a mobile phone, the child enters a desktop of the mobile phone by using the screen locking password, and the child may autonomously select an application program for use, and in the case of leaving the supervision of the parent, the child may perform unsafe operations on the mobile phone, for example: a child may use a payment application or a video application, resulting in a loss of money or consumption of traffic.
Disclosure of Invention
The control method, the control device, the storage medium and the terminal for the child mode can solve the problem that in the related art, a child enters the terminal through a password to execute unsafe operation. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for controlling a child mode, where the method includes:
displaying a screen locking interface through a display screen;
receiving a password input by a user on the screen locking interface;
after the password is verified to be correct, acquiring an image through a front camera;
and when the image is not matched with a pre-stored face template, controlling the terminal to enter a child mode.
In a second aspect, an embodiment of the present application provides a control device for a child mode, where the control device includes:
the display unit is used for displaying a screen locking interface through a display screen;
the receiving unit is used for receiving a password input by a user on the screen locking interface;
the acquisition unit is used for acquiring an image through a front camera after the password is verified to be correct;
and the control unit is used for controlling the terminal to enter a child mode if a face is detected in the image and the face is matched with a pre-stored face template.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
the method includes the steps that a password input by a user under a screen locking interface is received, after the password is verified to be correct, an image is collected through a front-facing camera, when the fact that a face existing in the image is matched with a pre-stored face template is judged, the terminal is controlled to enter a child mode, the problem that in the related technology, a child obtains the password of the terminal, enters the terminal and has a large access right to cause the child to execute unsafe access operation is solved, in the embodiment of the method, the child still verifies the face image of the child even after the password of the terminal is successfully verified, therefore, the access right of the specific child to the terminal is limited, and the safety of the child operating the terminal is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an operating system and a user space provided in an embodiment of the present application;
FIG. 3 is an architectural diagram of the android operating system of FIG. 1;
FIG. 4 is an architecture diagram of the IOS operating system of FIG. 1;
fig. 5 is a flowchart illustrating a control method for a child mode according to an embodiment of the present application;
fig. 6 is another schematic flow chart of a control method of a child mode according to an embodiment of the present application;
fig. 7 to fig. 11 are schematic user interfaces of a terminal provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a block diagram of a terminal according to an exemplary embodiment of the present application is shown. A terminal in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like, and the operating system may be an Android (Android) system (including a system based on Android system depth development), an IOS system developed by apple inc (including a system based on IOS system depth development), or other systems. The storage data area may also store data created by the terminal in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 2, the memory 120 may be divided into an operating system space, in which an operating system runs, and a user space, in which native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system cannot sense the current application scene of the third-party application program in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
Taking an operating system as an Android system as an example, programs and data stored in the memory 120 are as shown in fig. 3, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory 120, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, a power management, and the like. The system runtime library layer 340 provides a main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game-like application, an instant messaging program, a photo beautification program, a shopping program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 4, and the IOS system includes: a Core operating system Layer 420(Core OS Layer), a Core Services Layer 440(Core Services Layer), a Media Layer 460(Media Layer), and a touchable Layer 480(Cocoa Touch Layer). The kernel operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the core services layer 440. The core services layer 440 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, as required by the application. The media layer 460 provides audiovisual related interfaces for applications, such as graphics image related interfaces, audio technology related interfaces, video technology related interfaces, audio video transmission technology wireless playback (AirPlay) interfaces, and the like. Touchable layer 480 provides various common interface-related frameworks for application development, and touchable layer 480 is responsible for user touch interaction operations on the terminal. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework shown in FIG. 4, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 440 and a UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The Android system can be referred to as a mode and a principle for realizing data communication between the third-party application program and the operating system in the IOS system, and details are not repeated herein.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens for receiving touch operations of a user on or near the touch display screens by using any suitable object such as a finger, a touch pen, and the like, and displaying user interfaces of various applications. The touch display screen is generally provided at a front panel of the terminal. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configurations of the terminals illustrated in the above-described figures do not constitute limitations on the terminals, as the terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components may be used. For example, the terminal further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the embodiment of the present application, the main body of execution of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.
The terminal of the embodiment of the application can also be provided with a display device, and the display device can be various devices capable of realizing a display function, for example: a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like. The user can view information such as displayed text, images, video, etc. using the display device on the terminal 101. The terminal may be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playing device, a video playing device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like.
In the terminal shown in fig. 1, the processor 110 may be configured to call an application program stored in the memory 120 and specifically execute the control method of the child mode according to the embodiment of the present application.
According to the technical scheme, the password input by the user under the screen locking interface is received, the image is collected through the front camera after the password is verified to be correct, and when the face existing in the image is judged to be matched with the pre-stored face template, the terminal is controlled to enter the child mode, so that the problem that the child executes unsafe access operation due to the fact that the child has a large access right when the child obtains the password of the terminal and enters the terminal in the related technology is solved.
In the following method embodiments, for convenience of description, only the main execution body of each step is described as a terminal.
The control method of the child mode provided by the embodiment of the present application will be described in detail with reference to fig. 5 to 6. The control device of the child mode in the embodiment of the present application may be a terminal shown in fig. 5 to 6.
Referring to fig. 5, a flow chart of a control method of a child mode is provided in an embodiment of the present application. As shown in fig. 5, the method of the embodiment of the present application may include the steps of:
s501, displaying a screen locking interface through a display screen.
The screen locking interface is displayed in a screen locking state of the terminal, and when the terminal detects a screen locking instruction sent by a user, the screen locking interface is displayed. For example: the method comprises the steps that a user triggers a pressing action on a power on/off key on a terminal, the terminal detects the pressing action to generate a screen locking instruction, and the screen is locked and a screen locking interface is displayed on the terminal based on the screen locking instruction; or the terminal detects that the time length of the user not operated exceeds the preset time length, generates a screen locking instruction, and locks the screen and displays a screen locking interface on the terminal based on the screen locking instruction. Under the screen locking interface, the terminal needs to verify the password input by the user, and the terminal can enter the terminal after the verification is passed.
And S502, receiving a password input by a user under a screen locking interface.
The password input by the user on the lock screen interface includes but is not limited to: the password in S502 is not generally a biometric password.
For example: displaying a pattern password input area on the screen locking interface, enabling a user to slide in the pattern password input area, monitoring a sliding track of the user in the pattern password input area by the terminal, and comparing whether the sliding track of the user is matched with a pre-stored or pre-configured sliding track.
Another example is: and displaying a character password input area on the screen locking interface, and inputting a character password in the character password input area by a user, wherein the character password can be pure numbers, pure letters or a combination of numbers and characters, and is distinguished from case to case. The terminal receives the character password input by the user, and the terminal compares whether the character password input by the user is the same as a pre-stored character password.
And S503, after the password is verified to be correct, acquiring an image through a front camera.
The terminal compares whether the received password is matched with a pre-stored password in step S502, if so, the image is acquired by the front-facing camera, the number of the images acquired by the camera may be one or more, and when the number of the acquired images is more, the terminal selects the image with the highest definition in the multiple images as the final image.
For example: when the password is a character password, comparing whether the input character password is the same as a pre-stored character password or not; or when the password is the pattern password, comparing whether the input pattern password is the same as the pre-stored pattern password.
S504, if the face is detected in the image and the face is matched with a pre-stored face template, the terminal is controlled to enter a child mode.
When a user uses the terminal, the terminal generally acquires a face image of the user by opening the front camera. The terminal detects whether a face exists in the image collected by the front camera based on a face detection algorithm, if the face exists, whether the face is matched with a pre-stored face template is judged, when the face is matched with the pre-stored face template, the terminal is controlled to enter a child mode, and compared with a normal mode, the access authority of the child mode is smaller than that of the normal mode. The access rights for the child mode may be preconfigured, for example: configure application types, data types, directory locations, etc. accessible in child mode.
When the scheme of the embodiment of the application is executed, the password input by a user under a screen locking interface is received, the image is collected through the front camera after the password is verified to be correct, and when the face existing in the image is judged to be matched with the pre-stored face template, the terminal is controlled to enter a child mode, so that the problem that in the related technology, a child obtains the password of the terminal, enters the terminal and has a large access authority so as to cause the child to execute unsafe access operation is solved.
Referring to fig. 6, a flowchart of a control method of a child mode according to an embodiment of the present application is schematically shown.
The embodiment is exemplified by applying the control method of the child mode to the terminal, and the control method of the child mode may include the following steps:
s601, displaying a face information registration interface through a display screen.
The face information registration interface is an interface for a user to execute a registration process of a face template, when the terminal detects an instruction for registering the face template, the face information registration interface is displayed through a display screen and comprises a plurality of face image acquisition inlets, the face image acquisition inlets can be a control on the face information registration interface, the size and the shape of the control are not limited, and the terminal starts a front camera to acquire the face template in a corresponding posture after the user clicks the control. The plurality of face image acquisition entries are used for acquiring face templates of different poses or types, and each face image acquisition entry comprises: the system comprises a front face image acquisition inlet, a left side face image acquisition inlet, a right side face image acquisition inlet, a left oblique side face image acquisition inlet, a right oblique side face image acquisition inlet and a dynamic human face video acquisition inlet. The front face image capture portal is used to capture front face images of a user (a designated child). The left side face image acquisition inlet is used for acquiring a left side face image of a user. The right side face image acquisition inlet is used for acquiring a right side face image of the user. The left oblique side face image acquisition inlet is used for acquiring a left oblique side face image of a user. The right oblique side face image acquisition inlet is used for acquiring a right oblique side face image of the user. The dynamic face video acquisition inlet is used for acquiring a dynamic face video with preset time length, the preset time length can be determined according to actual requirements, and the embodiment of the application is not limited. When a user triggers the face image acquisition inlet, the terminal can display the posture prompt information of the face image acquisition inlet so as to prompt the user to use the correct posture to face the front camera, and the posture prompt information can be voice prompt information or text prompt information.
For example: referring to fig. 7, the user interface shown in fig. 7 is a face information registration interface, where the face information registration interface includes a front face image acquisition entry, a left side face image acquisition entry, a right side face image acquisition entry, a left oblique side face image acquisition entry, a right oblique side face image acquisition entry, and a face video acquisition entry, and the face image acquisition entry is a rectangular area on the face information registration interface.
And S602, when the triggering operation on the face image acquisition inlet is detected through the touch screen, acquiring a face template through the front camera.
The face image acquisition entry may be a control on the face information registration interface, and the shape, position, and control of the control may be determined according to actual requirements, which is not limited in the embodiment of the present application. The terminal detects a trigger operation on the face image acquisition inlet through the touch screen, the trigger operation can be single click operation, double click operation or other types of operation, and the face template is acquired through the front-facing camera.
For example: referring to fig. 7, the face information registration interface includes a front face image acquisition entry, the front face image acquisition entry is an area on the face information registration interface, when the terminal detects a click operation on the area, a front face gesture face template is acquired through the front-facing camera, and simultaneously gesture prompt information is displayed, and the gesture prompt information is used for prompting the user to use the front face gesture to face the front-facing camera, and when the face gesture of the user is not the front face gesture, the terminal prompts the user to correct the current face gesture and use the front gesture.
And S603, storing the face template in a database.
And the terminal stores the acquired face templates of all the postures in a database.
And S604, displaying a screen locking interface through the display screen.
And when the screen locking condition is met, the terminal displays a screen locking interface through the display screen. For example: and the terminal detects the pressing action on the startup and shutdown key, executes the screen locking operation and displays a screen locking interface. Another example is: when the terminal detects that the time length of the user's non-operation exceeds the preset time length, the preset time length can be preset by the user or can be default by the terminal, and the terminal executes the screen locking operation and displays a screen locking interface.
Further, the screen locking interface comprises a pattern password input area, a user can input a pattern password in the pattern password input area, the terminal compares the pattern password input by the user with a pre-stored pattern password, and if the pattern password input by the user is matched with the pre-stored pattern password, the password authentication is determined to be passed. When the number of times of authentication failure of the pattern password input by the user within the preset time length exceeds the preset number of times, a character password input area is displayed on the screen locking interface, the user can input the character password in the character password input area, the terminal compares whether the character password input by the user is the same as the pre-stored character password, and if the character password input by the user is the same as the pre-stored character password, the password authentication is passed.
For example, referring to fig. 8 and 9, fig. 8 is a face information registration interface, the face information registration interface includes a pattern password input area, the pattern password input area includes 3 rows and 3 columns of drawing points, the pattern password is a graph composed of one or more drawing points, and a user may pass through the drawing points one or more times when drawing the pattern password in the pattern password input area. When the number of times that the terminal detects that the pattern password input by the user fails to be verified is more than 3, displaying a character password input area as shown in fig. 9, wherein the character password input area comprises ten keys of 0-9, the user can input a digital password through the keys, and when the terminal detects that the digital password input by the user is the same as a pre-stored digital password, determining that the password verification is passed.
And S605, receiving the password input by the user on the screen locking interface.
The password type that the user can input in the lock screen interface includes, but is not limited to, any one of a character password and a pattern password, and the password herein does not generally include a biometric password (e.g., a face password, an iris password, a fingerprint password, etc.).
And S605, receiving the password input by the user under the screen locking interface.
S606, verifying whether the password is correct.
For example: the screen locking interface comprises a pattern password input area, a user slides in the pattern password input area by using a finger, when the sliding is finished, the terminal detects the sliding track of the user, and compares whether the sliding track of the user is matched with a pre-stored sliding track, wherein the comparison of whether the sliding track of the user is matched with the pre-stored sliding track can be performed by calculating whether the similarity between the sliding track of the user and the pre-stored sliding track is greater than a similarity threshold value, if so, the sliding track of the user and the pre-stored sliding track are matched, otherwise, the sliding track of the user and the pre-stored sliding track are not matched.
And S607, acquiring an image through a front camera.
And after the password is verified to be correct, acquiring an image through a front-facing camera.
And S608, keeping the screen locking state.
And after the verification password is incorrect, the screen locking state is kept.
And S609, detecting whether the face exists in the image.
The terminal detects whether a face exists in the image based on a face detection algorithm, if so, S610, and if not, S611 is executed. When the human face is detected to exist in the image, the human face is marked, and the position of the human face in the graph is determined, for example: and the terminal intercepts a rectangular area comprising the face in the graph.
S610, judging whether the face is matched with a pre-stored face template.
When the image acquired by the front camera comprises a face, marking the face, determining the position of the face in the image, pre-storing a face template in the terminal, wherein the face template is obtained by registering in S601-S603, comparing the similarity between the face and the face template by the terminal, and when the similarity is greater than a preset threshold, determining that the face is matched with the pre-stored face template, and executing S611; when the similarity is less than or equal to the preset threshold, it is determined that the face and the pre-stored face template are not matched, and S612 is performed.
In a possible implementation manner, when a face is detected in the image and the face does not match a pre-stored face module, controlling the terminal to enter a normal mode includes:
detecting a face in the image, and displaying a test question through a display screen when the face is not matched with a pre-stored face template;
and controlling the terminal to enter a normal mode when detecting that the answer input by the user for the test question is the same as the pre-stored answer.
For example: when the face is not matched with the pre-stored face template, displaying the test questions through a display screen: 56 × 65+ 78? An answer input frame is arranged behind the test question, the terminal receives an answer input by a user in the answer input frame, the answer of the test question is prestored in the terminal and is 3718, the terminal compares whether the answer input by the user is the same as the prestored answer, and if the answer input by the user is the same as the prestored answer, the terminal is controlled to enter a normal mode; and if not, controlling the terminal to enter a child mode.
And S611, controlling the terminal to enter a child mode.
The child mode is an access mode with limited access relative to the normal mode, and the terminal can hide or encrypt the application program which the child does not have access right. Different children can set up different access rights, and the terminal acquires the authority control information that face template is associated, and the authority control information includes: an accessible application, an accessible directory, an accessible data type.
For example: referring to fig. 10 for the normal mode desktop and fig. 11 for the child mode desktop, it can be seen that there are fewer application icons on the child mode desktop than on the normal mode desktop.
And S612, detecting the age of the human face.
The terminal can identify and detect the age of the face based on a pre-trained age identification model, and the age identification model is a machine learning model and is obtained by utilizing a machine learning algorithm according to a plurality of training samples.
And S613, judging whether the age is larger than an age threshold value.
Wherein, the terminal pre-stores or pre-configures an age threshold, the terminal compares the detected age with the size between the age thresholds, and executes S614 when the detected age is greater than the age threshold; when the detected age is less than or equal to the age threshold, S613 is performed.
And S614, controlling the terminal to enter a normal mode.
Wherein the access right of the normal mode is higher than that of the child mode.
When the scheme of the embodiment of the application is executed, the password input by a user under a screen locking interface is received, the image is collected through the front camera after the password is verified to be correct, and when the face existing in the image is judged to be matched with the pre-stored face template, the terminal is controlled to enter a child mode, so that the problem that in the related technology, a child obtains the password of the terminal, enters the terminal and has a large access authority so as to cause the child to execute unsafe access operation is solved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 12, a schematic structural diagram of a control device for a child mode according to an exemplary embodiment of the present application is shown. Hereinafter referred to as device 12, device 12 may be implemented as all or part of a terminal, in software, hardware, or a combination of both. The apparatus 12 includes a display unit 1201, a receiving unit 1202, an acquisition unit 1203, and a control unit 1204.
The display unit 1201 is used for displaying a screen locking interface through a display screen;
a receiving unit 1202, configured to receive a password input by a user on the screen locking interface;
the acquisition unit 1203 is used for acquiring an image through a front camera after the password is verified to be correct;
a control unit 1204, configured to control the terminal to enter a child mode if a face is detected in the image and the face matches a pre-stored face template.
In one or more embodiments, the apparatus 12 further comprises:
the storage unit is used for collecting the face template through the front camera; the face template comprises a front face image, a left side face image, a right side face image, a left oblique side face image, a right oblique side face image and a dynamic face video with preset duration;
and storing the face template in a database.
In one or more possible embodiments, the acquiring, by a front camera, a face template includes:
displaying a face information registration interface through a display screen; the face information registration interface comprises a face image acquisition inlet, and the face image acquisition inlet comprises: the system comprises a front face image acquisition inlet, a left side face image acquisition inlet, a right side face image acquisition inlet, a left oblique side face image acquisition inlet, a right oblique side face image acquisition inlet and a dynamic human face video acquisition inlet;
when the triggering operation on the face image acquisition inlet is detected through the touch screen, acquiring a face template through the front camera; the human face template comprises a front face image, a left side face image, a right side face image, a left oblique side face image, a right oblique side face image and a dynamic human face video with preset duration.
In one or more possible embodiments, the apparatus 12 further comprises:
the control unit 1204 is further configured to control the terminal to enter a child mode when a face is not detected in the image; or
And when a face is detected in the image and the face is not matched with a pre-stored face template, controlling the terminal to enter a normal mode.
In one or more possible embodiments, when a face is detected in the image and the face does not match a pre-stored face template, controlling the terminal to enter a normal mode includes:
detecting a face in the image, and detecting the age of the face when the face is not matched with a pre-stored face template;
and when the age is larger than an age threshold value, controlling the terminal to enter a normal mode.
In one or more possible embodiments, the controlling the terminal to enter a normal mode when a face is detected in the image and the face does not match a pre-stored face module includes:
detecting a face in the image, and displaying a test question through a display screen when the face is not matched with a pre-stored face template;
and controlling the terminal to enter a normal mode when detecting that the answer input by the user for the test question is the same as the pre-stored answer.
In one or more possible embodiments, the controlling the terminal to enter a normal mode includes:
determining authority control information associated with the face template;
and performing authority control on the access operation in the child mode according to the authority control information.
It should be noted that, when the device 12 provided in the foregoing embodiment executes the control method of the child mode, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed to different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the control method for the child mode provided by the above embodiments belong to the same concept, and details of the implementation process are shown in the embodiments of the method, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The method includes the steps that a password input by a user under a screen locking interface is received, after the password is verified to be correct, an image is collected through a front-facing camera, when the fact that a face existing in the image is matched with a pre-stored face template is judged, the terminal is controlled to enter a child mode, the problem that in the related technology, a child obtains the password of the terminal, enters the terminal and has a large access right to cause the child to execute unsafe access operation is solved, in the embodiment of the method, the child still verifies the face image of the child even after the password of the terminal is successfully verified, therefore, the access right of the specific child to the terminal is limited, and the safety of the child operating the terminal is improved.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 5 to 6, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 5 to 6, which are not described herein again.
The present application further provides a computer program product storing at least one instruction, which is loaded and executed by the processor to implement the control method of the child mode according to the above embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Claims (8)
1. A method for controlling a child mode, the method comprising:
displaying a screen locking interface through a display screen;
receiving a password input by a user on the screen locking interface;
after the password is verified to be correct, acquiring an image through a front camera;
when the face is not detected in the image, controlling the terminal to enter a child mode;
if a face is detected in the image and the face is matched with a pre-stored face template, controlling the terminal to enter a child mode;
detecting a face in the image, and displaying a test question through a display screen when the face is not matched with a pre-stored face template;
and controlling the terminal to enter a normal mode when detecting that the answer input by the user for the test question is the same as the pre-stored answer, and controlling the terminal to enter a child mode if the answer input by the user for the test question is not the same as the pre-stored answer.
2. The control method according to claim 1, wherein before displaying the lock screen interface through the display screen, the method further comprises:
collecting the face template through the front camera; the face template comprises a front face image, a left side face image, a right side face image, a left oblique side face image, a right oblique side face image and a dynamic face video with preset duration;
and storing the face template in a database.
3. The control method according to claim 2, wherein the acquiring of the face template by the front camera comprises:
displaying a face information registration interface through a display screen; the face information registration interface comprises a face image acquisition inlet, and the face image acquisition inlet comprises: the system comprises a front face image acquisition inlet, a left side face image acquisition inlet, a right side face image acquisition inlet, a left oblique side face image acquisition inlet, a right oblique side face image acquisition inlet and a dynamic human face video acquisition inlet;
when the triggering operation on the face image acquisition inlet is detected through the touch screen, acquiring a face template through the front camera; the human face template comprises a front face image, a left side face image, a right side face image, a left oblique side face image, a right oblique side face image and a dynamic human face video with preset duration.
4. The control method according to claim 1, wherein when a face is detected in the image and the face does not match a pre-stored face template, controlling the terminal to enter a normal mode comprises:
detecting a face in the image, and detecting the age of the face when the face is not matched with a pre-stored face template;
and when the age is larger than an age threshold value, controlling the terminal to enter a normal mode.
5. The control method according to claim 1, wherein the controlling the terminal to enter a normal mode comprises:
determining authority control information associated with the face template;
and performing authority control on the access operation in the child mode according to the authority control information.
6. A child mode control device, the device comprising:
the display unit is used for displaying a screen locking interface through a display screen;
the receiving unit is used for receiving a password input by a user on the screen locking interface;
the acquisition unit is used for acquiring an image through a front camera after the password is verified to be correct;
the control unit is used for controlling the terminal to enter a child mode when the face is not detected in the image;
the control unit is further used for controlling the terminal to enter a child mode if a human face is detected in the image and the human face is matched with a pre-stored human face template;
the test question display unit is used for displaying the test questions through a display screen when the human face is detected in the image and is not matched with a pre-stored human face template;
the control unit is further configured to control the terminal to enter a normal mode when detecting that the answer input by the user for the test question is the same as the pre-stored answer, and control the terminal to enter a child mode when the answer input by the user for the test question is not the same as the pre-stored answer.
7. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1 to 5.
8. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911184005.3A CN111125663B (en) | 2019-11-27 | 2019-11-27 | Control method and device for child mode, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911184005.3A CN111125663B (en) | 2019-11-27 | 2019-11-27 | Control method and device for child mode, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111125663A CN111125663A (en) | 2020-05-08 |
CN111125663B true CN111125663B (en) | 2022-04-19 |
Family
ID=70496864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911184005.3A Active CN111125663B (en) | 2019-11-27 | 2019-11-27 | Control method and device for child mode, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111125663B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114531510A (en) * | 2020-10-30 | 2022-05-24 | 华为技术有限公司 | Method and device for judging user operation authority |
CN115080942A (en) * | 2021-03-10 | 2022-09-20 | 深圳市万普拉斯科技有限公司 | Terminal control method and device and mobile terminal |
CN112966247A (en) * | 2021-03-17 | 2021-06-15 | 福建捷联电子有限公司 | Display with AI recognition function and control method |
CN113645503B (en) * | 2021-07-26 | 2022-05-17 | 珠海格力电器股份有限公司 | Application control method and device, electronic equipment and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104008320A (en) * | 2014-05-19 | 2014-08-27 | 惠州Tcl移动通信有限公司 | Using permission and user mode control method and system based on face recognition |
CN105488370A (en) * | 2014-09-15 | 2016-04-13 | 酷派软件技术(深圳)有限公司 | Children mode unlock method and device |
CN105574386A (en) * | 2015-06-16 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Terminal mode management method and apparatus |
CN105592212A (en) * | 2014-10-24 | 2016-05-18 | 东莞宇龙通信科技有限公司 | Mobile terminal contextual model switching method and device and mobile terminal |
CN106709364A (en) * | 2016-11-22 | 2017-05-24 | 扬州芯云智能系统有限公司 | Human face identification-based terminal user interface switching method |
CN106991309A (en) * | 2017-03-23 | 2017-07-28 | 北京小米移动软件有限公司 | The operating method and device of terminal pattern |
CN107133576A (en) * | 2017-04-17 | 2017-09-05 | 北京小米移动软件有限公司 | Age of user recognition methods and device |
CN107392056A (en) * | 2017-07-31 | 2017-11-24 | 广东欧珀移动通信有限公司 | Terminal and child mode implementation method, computer-readable recording medium |
CN107480497A (en) * | 2017-07-31 | 2017-12-15 | 广东欧珀移动通信有限公司 | Mobile terminal and child mode implementation method, computer-readable recording medium |
CN107526958A (en) * | 2017-08-30 | 2017-12-29 | 努比亚技术有限公司 | A kind of operating mode control method, terminal and computer-readable recording medium |
CN108319837A (en) * | 2018-02-13 | 2018-07-24 | 广东欧珀移动通信有限公司 | Electronic equipment, face template input method and Related product |
CN108734084A (en) * | 2018-03-21 | 2018-11-02 | 百度在线网络技术(北京)有限公司 | Face registration method and apparatus |
CN110099167A (en) * | 2019-04-11 | 2019-08-06 | 深圳传音通讯有限公司 | Unlocking method and device |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246455A (en) * | 2012-02-01 | 2013-08-14 | 深圳市天方信安电子科技有限公司 | Screen double-unlocking system |
KR20140013548A (en) * | 2012-07-25 | 2014-02-05 | 삼성전자주식회사 | User terminal apparatus and control method thereof |
CN103139353B (en) * | 2013-01-28 | 2016-01-20 | 广东欧珀移动通信有限公司 | A kind of locking unlock method of mobile terminal and locking-unlocking device |
US9069458B2 (en) * | 2013-05-16 | 2015-06-30 | Barnes & Noble College Booksellers, Llc | Kid mode user interface with application-specific configurability |
CN103488924B (en) * | 2013-09-26 | 2017-03-08 | 小米科技有限责任公司 | A kind of unlocking processing method of terminal, device and equipment |
CN105446782A (en) * | 2015-12-24 | 2016-03-30 | 深圳市金立通信设备有限公司 | Management method of terminal application and terminal |
CN107305503A (en) * | 2016-04-25 | 2017-10-31 | 奇酷软件(深圳)有限公司 | The control method of terminal, the control device of terminal and terminal |
JP6379165B2 (en) * | 2016-10-14 | 2018-08-22 | 株式会社ベネッセコーポレーション | Information processing terminal and program |
CN106953975B (en) * | 2017-03-21 | 2020-03-31 | 广东小天才科技有限公司 | Intelligent terminal operation management method and device and intelligent terminal |
CN108540856A (en) * | 2018-04-28 | 2018-09-14 | 上海与德科技有限公司 | Smart television child lock unlocking method, device, storage medium and smart television |
CN110456966A (en) * | 2019-08-15 | 2019-11-15 | 上海闻泰信息技术有限公司 | Method, apparatus, terminal and the medium of interface display |
-
2019
- 2019-11-27 CN CN201911184005.3A patent/CN111125663B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104008320A (en) * | 2014-05-19 | 2014-08-27 | 惠州Tcl移动通信有限公司 | Using permission and user mode control method and system based on face recognition |
CN105488370A (en) * | 2014-09-15 | 2016-04-13 | 酷派软件技术(深圳)有限公司 | Children mode unlock method and device |
CN105592212A (en) * | 2014-10-24 | 2016-05-18 | 东莞宇龙通信科技有限公司 | Mobile terminal contextual model switching method and device and mobile terminal |
CN105574386A (en) * | 2015-06-16 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Terminal mode management method and apparatus |
CN106709364A (en) * | 2016-11-22 | 2017-05-24 | 扬州芯云智能系统有限公司 | Human face identification-based terminal user interface switching method |
CN106991309A (en) * | 2017-03-23 | 2017-07-28 | 北京小米移动软件有限公司 | The operating method and device of terminal pattern |
CN107133576A (en) * | 2017-04-17 | 2017-09-05 | 北京小米移动软件有限公司 | Age of user recognition methods and device |
CN107392056A (en) * | 2017-07-31 | 2017-11-24 | 广东欧珀移动通信有限公司 | Terminal and child mode implementation method, computer-readable recording medium |
CN107480497A (en) * | 2017-07-31 | 2017-12-15 | 广东欧珀移动通信有限公司 | Mobile terminal and child mode implementation method, computer-readable recording medium |
CN107526958A (en) * | 2017-08-30 | 2017-12-29 | 努比亚技术有限公司 | A kind of operating mode control method, terminal and computer-readable recording medium |
CN108319837A (en) * | 2018-02-13 | 2018-07-24 | 广东欧珀移动通信有限公司 | Electronic equipment, face template input method and Related product |
CN108734084A (en) * | 2018-03-21 | 2018-11-02 | 百度在线网络技术(北京)有限公司 | Face registration method and apparatus |
CN110099167A (en) * | 2019-04-11 | 2019-08-06 | 深圳传音通讯有限公司 | Unlocking method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111125663A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111125663B (en) | Control method and device for child mode, storage medium and terminal | |
CN107491683B (en) | Application decryption method and device, terminal and computer readable storage medium | |
CN107889070B (en) | Picture processing method, device, terminal and computer readable storage medium | |
CN107704744B (en) | Identity verification method and device and mobile terminal | |
WO2019047908A1 (en) | Fingerprint recognition method and device, mobile terminal, and storage medium | |
CN111767554B (en) | Screen sharing method and device, storage medium and electronic equipment | |
CN106462713B (en) | The interface display method and terminal of terminal | |
WO2020156199A1 (en) | Application login method and device, terminal and storage medium | |
CN111198724A (en) | Application program starting method and device, storage medium and terminal | |
WO2019047907A1 (en) | Fingerprint recognition method and device, mobile terminal, and storage medium | |
CN110413347B (en) | Advertisement processing method and device in application program, storage medium and terminal | |
CN112380510B (en) | Information verification method, device, electronic equipment and storage medium | |
CN111225138A (en) | Camera control method and device, storage medium and terminal | |
CN110702346B (en) | Vibration testing method and device, storage medium and terminal | |
CN111176533A (en) | Wallpaper switching method, device, storage medium and terminal | |
CN113268212A (en) | Screen projection method and device, storage medium and electronic equipment | |
CN107851140B (en) | Method and device for generating password by pressure touch | |
CN108845733B (en) | Screen capture method, device, terminal and storage medium | |
CN113126859A (en) | Contextual model control method, contextual model control device, storage medium and terminal | |
CN116798129A (en) | Living body detection method and device, storage medium and electronic equipment | |
CN116343350A (en) | Living body detection method and device, storage medium and electronic equipment | |
CN111538997A (en) | Image processing method, image processing device, storage medium and terminal | |
CN112187879A (en) | Notification message control method and device, storage medium and terminal | |
CN107644072B (en) | Data deleting method and device | |
CN113438361A (en) | Unlocking method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |