Application program control method and device, computer equipment and readable storage medium
By setting intelligent recognition mode and face recognition technology for the application, the duration of children's videos can be automatically monitored, which solves the problems in the existing technology that the children's mode cannot monitor the duration of videos and the input of passwords is cumbersome, and achieves the protection of children's eyesight and the convenience of parent operations. simplify.
Patent Information
- Application Number
- CN202310175455.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-08-27
AI Technical Summary
The children's mode of existing electronic products can only supervise the categories of applications that children watch, but cannot supervise the duration of videos. The exit method requires entering a password, which is cumbersome and increases the memory cost of parents.
By setting an intelligent recognition mode for the application, facial recognition technology is used to regularly collect user images, control the working status of the application based on the user's age and running time, automatically monitor the length of time children watch videos, and unlock through facial recognition to avoid password input.
It realizes intelligent supervision of children's video duration, protects children's eyesight, reduces parents' operation and memory costs, and improves the cross-platform and safety of supervision.
Smart Images

Figure CN118552991A
Abstract
Description
Technical Field
[0001] The present application relates to the field of application technology, and in particular to a method, device, computer equipment and readable storage medium for controlling an application. Background Art
[0002] With the development trend of electronic products such as intelligent terminals, TV programs are diverse and colorful, especially providing a variety of entertainment and leisure programs for children. Therefore, children have become loyal users of children's applications. In the prior art, in order to achieve supervision of children watching TV, children's mode is usually set for electronic products to protect children.
[0003] In the process of implementing this application, the applicant found that the related technology has at least the following problems:
[0004] The child mode of electronic products can only regulate the categories of applications that children watch, but cannot regulate the length of time that children watch application videos, so the supervision is relatively weak. Furthermore, the child mode of electronic products usually requires entering a password to exit, requiring parents to set a password for each electronic product, which is cumbersome and increases the memory cost of parents. Summary of the invention
[0005] In view of this, the present application provides an application control method, device, computer equipment and readable storage medium, the main purpose of which is to solve the problem that the child mode of electronic products can only supervise the categories of applications watched by children, but cannot supervise the length of time children watch application videos, resulting in low supervision.
[0006] According to a first aspect of the present application, a method for controlling an application is provided, the method comprising:
[0007] In response to a start-up request of an application, the application is started and the application is controlled to enter an intelligent recognition mode;
[0008] Acquire at least one user image of at least one first user in the target area and the running time of the application program according to a preset period;
[0009] determining at least one user age of at least one first user according to at least one user image and a preset image recognition model;
[0010] The application is controlled to work according to at least one of a user's age, a running time, a first preset age threshold, and a first preset time threshold.
[0011] Optionally, the step of controlling the operation of the application program according to at least one of the user age, the operation duration, the first preset age threshold and the first preset duration threshold specifically includes:
[0012] In the case where at least one first user is a single user, judging whether the first user is a first type user according to the user age of the first user and a first preset age threshold, wherein the first type user is a child user;
[0013] If the first user is a first type of user, the application is controlled to operate according to the operating time and a first preset time threshold.
[0014] Optionally, if the first user is a first type of user, the step of controlling the operation of the application program according to the operation duration and the first preset duration threshold specifically includes:
[0015] Comparing the running time with a first preset time threshold;
[0016] If the running time is greater than or equal to the first preset time threshold, the application is controlled to enter a locked state and the running of the application is stopped;
[0017] If the running time is less than the first preset time threshold, the application is controlled to continue running.
[0018] Optionally, if the running time is greater than or equal to a first preset time threshold, the application is controlled to enter a locked state, and after the running of the application is stopped, the method further includes:
[0019] receiving an unlock request of the application, obtaining a lock duration of the application, and at least one user image of at least one second user in the target area;
[0020] The application is controlled to work according to the lock time, the second preset time threshold and at least one user image.
[0021] Optionally, the step of controlling the operation of the application program according to the lock duration, the second preset duration threshold, and at least one user image specifically includes:
[0022] If the lock duration is greater than or equal to a second preset duration threshold, controlling the application to exit the lock state;
[0023] If the lock duration is less than a second preset duration threshold, determining at least one user age of at least one second user based on at least one user image and a preset image recognition model;
[0024] According to at least one user age and a second preset age threshold, determining whether the at least one second user includes a second type of user, wherein the second type of user is an adult user;
[0025] generating unlock prompt information according to the unlock request when the at least one second user includes a second type of user;
[0026] Sending the unlock prompt information to the second type of user, so that the second type of user can unlock the application according to the unlock prompt information, so that the application exits the locked state;
[0027] In a case where all of the at least one second user are users of the first type, the control application remains in a locked state.
[0028] Optionally, the step of controlling the operation of the application program according to at least one of the user age, the operation duration, the first preset age threshold and the first preset duration threshold further includes:
[0029] In the case where there are multiple at least one first user, determining a user type of each first user according to multiple user ages of the multiple first users and a first preset age threshold;
[0030] The application is controlled to work according to the user type, the running time and the first preset time threshold of each first user.
[0031] Optionally, the step of controlling the operation of the application program according to the user type, the operation duration and the first preset duration threshold of each first user specifically includes:
[0032] According to the user type of each first user, determining whether the plurality of first users are all first type users;
[0033] If the plurality of first users are all first type users and the running time is greater than or equal to the first preset time threshold, control the application to enter a locked state and stop running the application;
[0034] If the plurality of first users are all first type users and the running time is less than a first preset time threshold, controlling the application to continue running;
[0035] If the plurality of first users include a second type of user, the application is controlled to continue running.
[0036] According to a second aspect of the present application, a device for controlling an application is provided, the device comprising:
[0037] A control module, used to respond to a start-up request of an application, start the application, and control the application to enter an intelligent recognition mode;
[0038] An acquisition module, configured to acquire at least one user image of at least one first user in a target area and a running time of an application program according to a preset period;
[0039] a determination module, configured to determine at least one user age of at least one first user based on at least one user image and a preset image recognition model;
[0040] The control module is further used to control the operation of the application program according to at least one user age, running time, a first preset age threshold and a first preset time threshold.
[0041] Optionally, the control module is specifically configured to:
[0042] In the case where at least one first user is a single user, judging whether the first user is a first type user according to the user age of the first user and a first preset age threshold, wherein the first type user is a child user;
[0043] If the first user is a first type of user, the application is controlled to operate according to the operating time and a first preset time threshold.
[0044] Optionally, the device further comprises:
[0045] The comparison module is used to compare the running time with a first preset time threshold.
[0046] Optionally, the control module is further configured to:
[0047] If the running time is greater than or equal to the first preset time threshold, the application is controlled to enter a locked state and the running of the application is stopped;
[0048] If the running time is less than the first preset time threshold, the application is controlled to continue running.
[0049] Optionally, obtain a module, specifically for:
[0050] An unlock request of an application is received, and a lock duration of the application and at least one user image of at least one second user in a target area are acquired.
[0051] Optionally, the control module is further configured to:
[0052] The application is controlled to work according to the lock time, the second preset time threshold and at least one user image.
[0053] Optionally, the control module is further configured to:
[0054] If the locking time is greater than or equal to the second preset time threshold, the application is controlled to exit the locking state.
[0055] Optionally, a module is determined, specifically for:
[0056] If the locking duration is less than a second preset duration threshold, at least one user age of at least one second user is determined based on at least one user image and a preset image recognition model.
[0057] Optionally, the device further comprises:
[0058] a judgment module, configured to judge whether the at least one second user includes a second type of user according to the at least one user age and a second preset age threshold, wherein the second type of user is an adult user;
[0059] A generating module, configured to generate unlock prompt information according to an unlock request when the at least one second user includes a second type of user;
[0060] The sending module is used to send the unlock prompt information to the second type of users, so that the second type of users can unlock the application according to the unlock prompt information to make the application exit the locked state.
[0061] Optionally, the control module is further configured to:
[0062] In a case where all of the at least one second user are users of the first type, the control application remains in a locked state.
[0063] Optionally, the control module is further configured to:
[0064] In the case where there are multiple at least one first user, determining a user type of each first user according to multiple user ages of the multiple first users and a first preset age threshold;
[0065] The application is controlled to work according to the user type, the running time and the first preset time threshold of each first user.
[0066] Optionally, the judgment module is specifically used to:
[0067] According to the user type of each first user, it is determined whether the plurality of first users are all first type users.
[0068] Optionally, the control module is further configured to:
[0069] If the plurality of first users are all first type users and the running time is greater than or equal to the first preset time threshold, control the application to enter a locked state and stop running the application;
[0070] If the plurality of first users are all first type users and the running time is less than a first preset time threshold, controlling the application to continue running;
[0071] If the plurality of first users include a second type of user, the application is controlled to continue running.
[0072] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0073] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0074] By means of the above technical scheme, the present application provides a control method, device, computer equipment and readable storage medium for an application. Specifically, by setting an intelligent recognition mode for supervising the viewing time of children for the application, the user controls the application to enter the intelligent recognition mode while starting the application, regularly collects user images of all users using the application, and uses a preset image recognition model to perform face recognition on the user images to calculate the user age of all users to determine whether the application is used alone by a child user. Then, according to the user age and the running time of the application, the application is controlled to continue working or stop working. Compared with the method of setting a child mode for electronic products in the prior art to control the type of video watched by children, the problem that the time children watch TV cannot be supervised and the eyesight of children cannot be protected, the present application automatically supervises the time children watch TV based on the user age and the running time of the application to protect children's eyesight. Furthermore, the present application directly supervises the application so that the application can be monitored in any electronic setting, realizes cross-platform supervision, and parents do not need to set passwords for each electronic product, reduces the user's manual operation, and saves manpower. In addition, since there is no need to set passwords for electronic products, parents do not need to change passwords frequently to prevent children from unlocking them by themselves, reducing parents' memory costs.
[0075] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0077] Figure 1 A schematic diagram of a control method flow of an application program provided in an embodiment of the present application is shown;
[0078] Figure 2 A schematic diagram of a control method flow of another application program provided in an embodiment of the present application is shown;
[0079] Figure 3A schematic diagram of the structure of a control device for an application provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0080] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0081] The present application embodiment provides a method for controlling an application program, such as Figure 1 As shown, the method includes:
[0082] 101. In response to a start request of an application, start the application and control the application to enter a smart recognition mode.
[0083] The present application provides a method for controlling an application. The application can be a video APP containing children's programs such as cartoons, picture books, and stories, or a TV program APP, such as Yue TV, etc. The application is installed in an electronic product such as a TV or a mobile phone. When the user turns on the electronic product, he can click the application icon to start the application. The application has an intelligent recognition mode for automatically supervising children's video viewing.
[0084] Specifically, a user's request to start an application is received, and the application is started, at which point the application automatically enters the intelligent recognition mode. The intelligent recognition mode automatically controls the length of time children watch TV, eliminating the need for parents to constantly monitor the length of time children watch TV. This protects children's eyesight and the healthy development of their body and mind, while also eliminating the need for parents to set passwords on electronic products that play videos, saving manpower.
[0085] Optionally, during the installation and setup process of the application, the user can choose between normal mode or smart recognition mode for supervising children. At the same time, the user needs to enter a facial image that can exit the smart recognition mode. After the user selects the smart recognition mode, the subsequent application will enter the smart recognition mode by default during use. When the user wants to exit the smart recognition mode, they can only exit by performing facial recognition. Compared to the password setting method in the prior art, the facial recognition method defined in the present application eliminates the need for users to remember passwords, reducing the user's memory cost. In addition, children cannot unlock the application with a password, thereby improving the security of the application's smart recognition mode.
[0086] 102. Acquire at least one user image of at least one first user in the target area and a running time of an application program according to a preset period.
[0087] In this step, while the user is watching TV, the user images of all first users in the target area are collected periodically, and the running time of the application is counted. It should be noted that the three-dimensional facial image of the user is collected by using the camera of the electronic product. For example, if the electronic product is a TV, the image is collected by the camera of the TV; if the electronic product is a mobile phone, the image is collected by the front camera of the mobile phone. If the electronic product does not have a camera, the user can configure the camera by himself, connect the application, and collect the user image through the external camera.
[0088] Furthermore, the target area refers to the maximum area that can be captured by the camera of the electronic product. For example, if the electronic product is a mobile phone, then the target area that can be captured by the mobile phone camera is usually the person currently using the mobile phone. The first user refers to the user who is currently using the application, such as the user who is currently watching TV or using the mobile phone. The collected user's facial image and the running time of the application are then used as the basic data for subsequent user supervision to control the operation of the application.
[0089] Optionally, the preset period may range from 1 minute to 3 minutes, or may be set by the parent user, which is not specifically limited in this application.
[0090] Furthermore, the facial expressions of users watching TV will have different degrees of movement, so the facial images of users collected according to the preset period will also be different. In order to prevent children from evading supervision by holding photos of adults and ensure that the collected user images are images of users who actually watch TV, multiple user images collected before and after the preset period can be compared, and the human body contours of the collected user images can be identified. If multiple user facial images are identified to be exactly the same, it is determined that the user image may be a non-living image, that is, a photo. At this time, an early warning message is generated based on the user image, and the early warning message is sent to the terminal of the parent user connected to the application, realizing the combination of face recognition technology and liveness detection technology, and strengthening supervision.
[0091] In a specific embodiment, when a child turns on the TV and enters the application to watch a cartoon, the application has entered the intelligent recognition mode and can collect at least one face image of the person currently watching TV through the camera in front of the TV, and record the playing time of the cartoon. The face image and playing time are then used as the basis for supervision to determine whether the child has watched the cartoon for too long, and then determine whether to continue playing the cartoon.
[0092] 103. Determine at least one user age of at least one first user based on at least one user image and a preset image recognition model.
[0093] In this step, when parents and children watch TV together, parents will control the children's viewing time to prevent children from watching TV for a long time and affecting their vision development. However, due to work, housework and other reasons, most parents often let their children watch TV as a means to gain their own free time. The long-term lack of supervision on the length of time children watch TV makes it easy for children to become dependent on TV, which not only harms their eyesight, but also has an adverse impact on their learning and life during their growth. Based on the above problems, after collecting the user facial images of all current users, the application inputs the user facial images into a preset image recognition model to calculate the user age of each first user. Then, based on the user age, it is determined whether the user currently watching TV is only a child user, so as to supervise the length of time the child user watches TV.
[0094] It should be noted that a large number of facial images of different age groups are used as training data in advance to train the machine learning model and generate a preset image recognition model. In actual applications, the preset image recognition model is optimized regularly based on the collected user images and user ages to improve the accuracy of the preset image recognition model calculation.
[0095] Through the above method, compared with the prior art that only sets the child mode for electronic products to limit the types of TV that children watch, it is impossible to supervise the length of time children watch TV, and the child mode can be released by unlocking. Parents need to change passwords frequently to prevent the passwords from being seen by children, which increases the memory cost of parents and is a cumbersome problem. The present application directly sets the intelligent recognition mode for the application and combines face recognition technology to supervise the viewing time of children. At the same time, it eliminates the possibility of children unlocking and exiting the child mode by themselves, and parents do not need to change passwords regularly, which reduces the memory cost of parents and saves manpower.
[0096] 104. Control the operation of the application program according to at least one of a user age, a running time, a first preset age threshold, and a first preset time threshold.
[0097] In this step, based on the calculated user age of each first user and the first preset age threshold, it is determined whether the first user currently using the application is a child user. If it is determined that the application is currently only used by a child user, then based on the running time of the application and the first preset time threshold, it is monitored in real time whether the child user uses the application for too long, and based on the monitoring results, the application is controlled to continue working or stop working.
[0098] Through the above method, the operation of the application is controlled based on the user's age and the application running time as the supervision basis, preventing children from watching TV for a long time without parental supervision, so as to protect the eyesight of child users.
[0099] The control method of the application provided in the embodiment of the present application sets an intelligent recognition mode for supervising the viewing time of children for the application. When the user starts the application, the application is controlled to enter the intelligent recognition mode, and the user images of all users using the application are regularly collected. The user images are recognized by the preset image recognition model to calculate the user age of all users to determine whether the application is used alone by a child user. Then, the application is controlled to work continuously or stop working according to the user age and the running time of the application. Compared with the method of setting a child mode for electronic products in the prior art to control the type of video watched by children, the problem that the time for children to watch TV cannot be supervised and the eyesight of children cannot be protected, the present application automatically supervises the time for children to watch TV based on the user age and the running time of the application to protect children's eyesight. Further, the present application directly supervises the application so that the application can be monitored in any electronic setting, realizes cross-platform supervision, and makes it unnecessary for parents to set passwords for each electronic product, reduces the user's manual operation, and saves manpower. In addition, since there is no need to set passwords for electronic products, parents do not need to change passwords frequently to prevent children from unlocking by themselves, which reduces the memory cost of parents.
[0100] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another control method of the application program, such as Figure 2 As shown, the method includes:
[0101] 201. In response to a start request of an application, start the application and control the application to enter a smart recognition mode.
[0102] In this step, the user's request to start the application is received, and the application is started. At this time, the application automatically enters the intelligent recognition mode. The intelligent recognition mode automatically controls the length of time children watch TV, and parents do not need to monitor the length of time children watch TV all the time. While protecting children's eyesight and healthy physical and mental development, parents do not need to set passwords on electronic products that play videos, saving manpower.
[0103] 202. Acquire at least one user image of at least one first user in the target area and a running time of an application program according to a preset period.
[0104] In this step, while the user is watching TV, the user images of all first users in the target area are collected periodically, and the running time of the application is counted. It should be noted that the three-dimensional facial image of the user is collected by using the camera of the electronic product. For example, if the electronic product is a TV, the image is collected by the camera of the TV; if the electronic product is a mobile phone, the image is collected by the front camera of the mobile phone. If the electronic product does not have a camera, the user can configure the camera by himself, connect the application, and collect the user image through the external camera.
[0105] 203. Determine whether the number of at least one first user is single. If so, proceed to step 204; if not, proceed to step 207.
[0106] In this step, the collected first user images are analyzed to determine the number of first users currently watching TV, and then to determine whether the first user is currently watching TV without parental supervision or with the company of an adult, so as to control the application program according to different situations, thereby achieving targeted and flexible control of the application program.
[0107] 204. Determine whether the first user is a first type user based on the user age of the first user and a first preset age threshold, wherein the first type user is a child user. If so, proceed to step 205; if not, proceed to step 206.
[0108] In this step, if at least one first user is single, it means that only one user is watching TV at present. At this time, it is necessary to compare the calculated user age of the user with the first preset age threshold to determine whether the first user is a child user. If the user age is less than the first preset age threshold, it is determined whether the child is currently watching TV by himself without parental supervision. It can be understood that if the user age is greater than or equal to the first preset age threshold, it means that the first user is not a first type user, that is, the first user may be a parent, and there is no need to limit the running time of the application, and the application can be controlled to work continuously.
[0109] Optionally, the range of the first preset age threshold can be set by the parents according to the age of the child, and this application does not make any specific limitation here.
[0110] 205. Control the application program to work according to the running time and a first preset time threshold.
[0111] 206. Control applications to continue working.
[0112] In step 205 and step 206, when it is analyzed that the first user currently watching TV is a first type of user, i.e., a child user, in order to prevent the child from watching TV for too long, the running time of the application is compared with the first preset time threshold to analyze whether the time the child watches TV is too long, and then the application is controlled to continue working or stop working according to the analysis results.
[0113] Furthermore, when it is analyzed that the first user currently watching TV is not a first type of user, that is, it is determined that the current user watching TV is a parent or other non-child user, TV can be played continuously without restricting the user from watching TV.
[0114] Through the above method, it is possible to determine whether the user currently watching TV is a child without parental supervision, and then control the application to play or stop according to the length of time the child watches TV, so as to realize intelligent supervision of children watching TV, effectively control the length of time children watch TV, and protect children's eyesight.
[0115] In an embodiment of the present application, optionally, in step 205, that is, if the first user is a first type of user, the application is controlled to work according to the running time and the first preset time threshold, specifically including: comparing the running time with the first preset time threshold; if the running time is greater than or equal to the first preset time threshold, controlling the application to enter a locked state and stopping the running of the application; if the running time is less than the first preset time threshold, controlling the application to continue running.
[0116] In this embodiment, the first preset duration threshold is the maximum duration that a child user can watch TV each time, which is set in advance. After starting the application and determining that the user currently watching TV is a child user without parental supervision, the running time of the application is compared with the first preset duration threshold. If the running time is greater than or equal to the first preset duration threshold, it means that the current child has watched TV for too long. At this time, the application is controlled to enter a locked state, that is, the application is controlled to stop playing the video. Furthermore, if the running time is less than the first preset duration threshold, it means that the current child has watched TV for a short time, and the video can continue to be played.
[0117] Through the above method, automated and intelligent supervision of the TV watching time of children without parental supervision is achieved. On the one hand, it strictly controls the TV watching time of children and protects children's eyesight. On the other hand, it allows parents to concentrate on work, housework and other matters without being distracted by the issue of children's TV watching time, which relieves parents' worries.
[0118] In another embodiment of the present application, in order to be able to control the application more intelligently, if the running time is greater than or equal to a first preset time threshold, the application is controlled to enter a locked state and the application is stopped, and it also includes: receiving an unlock request from the application, obtaining the lock time of the application, and at least one user image of at least one second user in the target area; controlling the application to work according to the lock time, the second preset time threshold and at least one user image.
[0119] In this embodiment, when it is analyzed that a child user without parental supervision has watched TV for too long, the control application enters a locked state and stops playing TV programs. When the user wants to unlock the application, the user's unlock request for the application is received, the lock duration of the application is obtained, and at least one user avatar of at least one second user in the target area is collected. It should be noted that the at least one second user refers to the user who unlocks the application in front of the current electronic product. In actual applications, when a child user watches TV for too long, making the application locked and no longer playable, the child will ask the parents to unlock it, or try to unlock it themselves. In order to strictly control the length of time children watch TV, when the user unlocks the application, it is necessary to determine whether the application can be unlocked based on the lock duration and user type, so as to increase supervision.
[0120] In another embodiment of the present application, in order to enable more accurate unlocking of the application and prevent children from unlocking the locked application by themselves, a specific implementation method of controlling the operation of the application based on the locking duration, the second preset duration threshold and at least one user image may include: if the locking duration is greater than or equal to the second preset duration threshold, controlling the application to exit the locked state; if the locking duration is less than the second preset duration threshold, determining at least one user age of at least one second user based on at least one user image and a preset image recognition model; judging whether at least one second user includes a second type of user based on the at least one user age and the second preset age threshold, wherein the second type of user is an adult user; if at least one second user includes a second type of user, generating an unlock prompt message based on an unlock request; sending the unlock prompt message to the second type of user so that the second type of user can unlock the application based on the unlock prompt message, so that the application exits the locked state; if all of the at least one second users are first type users, controlling the application to remain in the locked state.
[0121] In this embodiment, the second preset time threshold refers to the shortest time for the application to be locked. In actual applications, in order to strictly control the time children spend watching TV, an indirect playback method is used. For example, when it is identified that a child user has watched TV for half an hour, in order to prevent the child from secretly watching TV without parental supervision, the application needs to be locked for one hour. After one hour, it can be unlocked to continue playing. After receiving the unlock request of the application, the lock time of the application is compared with the second preset time threshold. If the lock time is greater than or equal to the second preset time threshold, it means that the application has been locked for enough time and the child can continue to watch TV. Then the application is controlled to exit the lock state so that the user can continue to watch or watch other programs.
[0122] Furthermore, in actual applications, when the application is locked, if the parent wants to use the application during the locked period, the application can also be unlocked in advance. Therefore, if the lock duration of the application is less than the second preset duration threshold, at least one user image of at least one second user collected is input into the preset image recognition model to calculate the user age of each second user. The calculated user age is compared with the second preset age threshold. If the user age of any second user is greater than or equal to the second preset age threshold, it means that the second user is a second type of user, that is, an adult user. At this time, it can be determined that the child is unlocked in the company of the parent user, or the parent user unlocks the application by himself.
[0123] Optionally, the range of the second preset age threshold can be specifically set by the parents according to their age, and this application does not make any specific limitation here.
[0124] Furthermore, in order to prevent children from unlocking the application with their parents' pictures, after it is identified that the parent user is unlocking the application, the unlock prompt information generated according to the unlock request is sent to the parent user's terminal, so that the parent can unlock the application according to the prompt information to make the application exit the locked state, ensuring that the parent is aware of the unlocking and that it is the parent who unlocks the application, effectively strengthening the control over the application.
[0125] Optionally, facial recognition can be set to unlock the application. On the one hand, there is no need for parents to set a password, which reduces the memory cost of parents; on the other hand, it avoids the need to enter a password to unlock the application. If children see the password entered by their parents, they can unlock the application privately.
[0126] Furthermore, if the user ages of all second users are less than the second preset age threshold, the user ages of the second users are compared with the first preset age threshold. If it is determined that all second users are first type users, that is, it is determined that a child user secretly unlocks the application during the lock period, the unlock request is ignored and the application remains locked. At the same time, an early warning message can be generated according to the unlock request and sent to the mobile terminal of the bound parent user, so that the parent can know the child's operation of unlocking the application according to the early warning message.
[0127] Through the above method, the unlocking conditions of the application are restricted to prevent child users from secretly unlocking the application, effectively enhancing the control over children watching TV.
[0128] 207. Determine a user type of each first user according to multiple user ages of the multiple first users and a first preset age threshold.
[0129] 208. Control the application program to operate according to the user type, the operation duration, and the first preset duration threshold of each first user.
[0130] In step 207 and step 208, if there are multiple first users, it means that there are many users watching TV, such as parents watching TV with their children, or multiple children watching TV together. At this time, the user age of each first user is compared with the first preset age threshold to determine the user type of each first user, that is, to determine whether each first user is a child user or an adult user. Then, based on the user type of each first user and the running time of the current application as basic parameters, the application is controlled to continue running or stop running.
[0131] In another embodiment of the present application, in order to be able to control the operation of the application more accurately, optionally, in step 208, that is, according to the user type, running time and first preset time threshold of each first user, the operation of the application is controlled, specifically including: according to the user type of each first user, determining whether multiple first users are all first type users; if multiple first users are all first type users and the running time is greater than or equal to the first preset time threshold, controlling the application to enter a locked state and stop running the application; if multiple first users are all first type users and the running time is less than the first preset time threshold, controlling the application to continue running; if the multiple first users include second type users, controlling the application to continue running.
[0132] In this embodiment, when multiple users use an application together, for example, when multiple users watch TV together, the application can be flexibly controlled to work according to different user types. Specifically, after obtaining the user type of each first user, it is determined whether all first users are first-type users, that is, child users. If all first users are first-type users, that is, the users currently watching TV are all child users, the running time of the application is compared with the first preset time threshold. If the running time is greater than or equal to the first preset time threshold, it means that multiple child users without parental supervision have been watching TV for a long time. At this time, the application is controlled to enter a locked state and stop playing TV programs.
[0133] Furthermore, if all first users are child users and the running time of the application is less than the first preset time threshold, it means that the multiple child users have watched TV for a short time and the lock time has not yet arrived, so the application continues to play.
[0134] Furthermore, if the second type of user is included in the multiple first users, that is, the child is currently watching TV with the parent, which means that the child is watching TV under the supervision of the parent. At this time, the application can be controlled to continue running, and the parent can control the length of time the child watches TV. Optionally, if the second type of user is included in the multiple first users, and the running time is greater than or equal to the first preset time threshold, since the child is accompanied by the parent at this time, the playback is not stopped directly. At this time, a prompt message is generated according to the running time and sent to the mobile terminal of the second type of user to remind the parent that the child is currently watching TV for too long, and the parent can choose whether the child can continue watching, which effectively improves the flexibility of application control.
[0135] Optionally, a specific embodiment of the present application provides a method for controlling an application program, the method comprising:
[0136] 301. In response to a start-up request of an application, start the application and control the application to enter an intelligent recognition mode;
[0137] 302. According to a preset period, determine whether the user's age is greater than or equal to a second preset age threshold. If so, proceed to step 305; if not, proceed to step 303;
[0138] 303. Determine whether the running time of the application is greater than or equal to the first preset time threshold. If so, proceed to step 304; if not, proceed to step 305.
[0139] 304. Control the application to enter a locked state to stop running the application;
[0140] 305. Control the application to continue working;
[0141] 306. Receive an unlock request from the application and obtain a lock duration of the application;
[0142] 307, determine whether the lock duration is greater than or equal to the second preset duration threshold, if so, proceed to step 308, if not, proceed to step 309;
[0143] 308. Control the application to exit the locked state;
[0144] 309. Determine whether the user's age is less than a first preset age threshold. If so, proceed to step 310. If not, proceed to step 308.
[0145] 310. Control application remains locked.
[0146] In this embodiment, when the user uses an application, such as turning on a TV set-top box or Guangdong TV, the application is controlled to enter the intelligent recognition mode. The age of the user who is watching TV is judged by face recognition technology. If the user is determined to be a child user based on the age of the user, and the running time is within the preset viewing time, the user will continue to watch; otherwise, the playback will be stopped and will not continue until the lock time is reached. The intelligent recognition mode is combined with face recognition technology, which is more reliable than the traditional password-type child mode in the prior art. In the traditional password-type child mode, the child can exit the child mode if he knows the password. The face recognition not limited to this application eliminates this problem and can truly protect its children. Furthermore, since there is no password, parents do not need to worry about being seen by their children when entering the password, and avoid worrying about forgetting the password due to frequent password changes, which greatly reduces the memory cost of parents.
[0147] Furthermore, the control method of the application defined in the present application is applicable to the control system of the application. Among them, the control system of the application includes: a playback unit, an application programming interface (API) unit, an artificial intelligence (AI) face recognition unit and an AI machine learning unit. Specifically, the playback unit is mainly used to play media content. When playing, the control system will poll to determine whether the intelligent recognition mode is turned on. If the intelligent recognition mode is turned on, the face image will be obtained through the camera of the electronic product and sent to the face recognition unit to obtain the user's age. If the user is determined to be a child user and exceeds the viewing time, the playback will be forced to pause until the break time is up or the parent turns off the intelligent recognition mode and continues to play.
[0148] Furthermore, the API unit is an interface unit to the outside, responsible for sending facial features to the face recognition unit to obtain its age. The face recognition unit has a GPU (graphics processing unit) chip. It is mainly responsible for receiving the face image sent by the API unit and calculating the user's age through a preset image recognition model and returning it. The AI machine learning unit has a GPU chip, which is responsible for AI machine learning and model iteration, and then sends the trained model to the AI face recognition unit for use. Through the control system of the application, the intelligent recognition mode of the application is provided by the API service, so it can be cross-platform. As long as the strategy of the intelligent recognition mode is set once, it can be applied to all applications, and then to all electronic products, such as mobile phones, set-top boxes, etc., to achieve true cross-platform and improve the practicality and flexibility of application use.
[0149] Further, as Figure 1 In a specific implementation of the method, the present application embodiment provides a control device 400 for an application program, such as Figure 3 As shown, the device comprises:
[0150] The control module 401 is used to start the application in response to the start request of the application, and control the application to enter the intelligent recognition mode;
[0151] The acquisition module 402 is used to acquire at least one user image of at least one first user in the target area and the running time of the application program according to a preset period;
[0152] A determination module 403, configured to determine at least one user age of at least one first user according to at least one user image and a preset image recognition model;
[0153] The control module 401 is further used to control the operation of the application program according to at least one user age, running time, a first preset age threshold and a first preset time threshold.
[0154] Optionally, the control module 401 is specifically configured to:
[0155] In the case where at least one first user is a single user, judging whether the first user is a first type user according to the user age of the first user and a first preset age threshold, wherein the first type user is a child user;
[0156] If the first user is a first type of user, the application is controlled to operate according to the operating time and a first preset time threshold.
[0157] Optionally, the device further comprises:
[0158] The comparison module 404 is configured to compare the running time with a first preset time threshold.
[0159] Optionally, the control module 401 is further configured to:
[0160] If the running time is greater than or equal to the first preset time threshold, the application is controlled to enter a locked state and the running of the application is stopped;
[0161] If the running time is less than the first preset time threshold, the application is controlled to continue running.
[0162] Optionally, the acquisition module 402 is specifically configured to:
[0163] An unlock request of an application is received, and a lock duration of the application and at least one user image of at least one second user in a target area are acquired.
[0164] Optionally, the control module 401 is further configured to:
[0165] The application is controlled to work according to the lock time, the second preset time threshold and at least one user image.
[0166] Optionally, the control module 401 is further configured to:
[0167] If the locking time is greater than or equal to the second preset time threshold, the application is controlled to exit the locking state.
[0168] Optionally, the determination module 403 is specifically configured to:
[0169] If the locking duration is less than a second preset duration threshold, at least one user age of at least one second user is determined based on at least one user image and a preset image recognition model.
[0170] Optionally, the device further comprises:
[0171] A determination module 405, configured to determine whether the at least one second user includes a second type of user according to the at least one user age and a second preset age threshold, wherein the second type of user is an adult user;
[0172] A generating module 406, configured to generate unlock prompt information according to an unlock request when the at least one second user includes a second type of user;
[0173] The sending module 407 is used to send the unlock prompt information to the second type of user, so that the second type of user can unlock the application according to the unlock prompt information to make the application exit the locked state.
[0174] Optionally, the control module 401 is further configured to:
[0175] In a case where all of the at least one second user are users of the first type, the control application remains in a locked state.
[0176] Optionally, the control module 401 is further configured to:
[0177] In the case where there are multiple at least one first user, determining a user type of each first user according to multiple user ages of the multiple first users and a first preset age threshold;
[0178] The application is controlled to work according to the user type, the running time and the first preset time threshold of each first user.
[0179] Optionally, the determination module 405 is specifically configured to:
[0180] According to the user type of each first user, it is determined whether the plurality of first users are all first type users.
[0181] Optionally, the control module 401 is further configured to:
[0182] If the plurality of first users are all first type users and the running time is greater than or equal to the first preset time threshold, control the application to enter a locked state and stop running the application;
[0183] If the plurality of first users are all first type users and the running time is less than a first preset time threshold, controlling the application to continue running;
[0184] If the plurality of first users include a second type of user, the application is controlled to continue running.
[0185] The control device 400 of the application provided in the embodiment of the present application sets an intelligent recognition mode for supervising the viewing time of children for the application. When the user starts the application, the application is controlled to enter the intelligent recognition mode, and the user images of all users using the application are regularly collected. The user images are recognized by the preset image recognition model to calculate the user age of all users to determine whether the application is used alone by a child user. Then, the application is controlled to continue working or stop working according to the user age and the running time of the application. Compared with the method of setting a child mode for electronic products in the prior art to control the type of video watched by children, it is impossible to supervise the time children watch TV and protect the eyesight of children. This application automatically supervises the time children watch TV based on the user age and the running time of the application to protect the eyesight of children. Further, this application directly supervises the application so that the application can be monitored in any electronic setting, realizes cross-platform supervision, and makes it unnecessary for parents to set passwords for each electronic product, reduces the user's manual operation, and saves manpower. In addition, since there is no need to set passwords for electronic products, parents do not need to change passwords frequently to prevent children from unlocking by themselves, which reduces the memory cost of parents.
[0186] In an exemplary embodiment, the present application further provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the control method of the application program in the above embodiment.
[0187] In an exemplary embodiment, the present application further provides a readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the control method of the application program when executed by a processor.
[0188] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0189] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0190] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0191] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0192] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.
Claims
1. A method for controlling an application program, It is characterized in that include: In response to a start-up request of an application, start the application and control the application to enter a smart recognition mode; Acquire, according to a preset period, at least one user image of at least one first user in the target area and the running time of the application; Determining at least one user age of the at least one first user according to the at least one user image and a preset image recognition model; The application is controlled to operate according to the at least one user age, the operating time, a first preset age threshold and a first preset time threshold.
2. The method according to claim 1, It is characterized in that The step of controlling the operation of the application according to the at least one user age, the operation duration, the first preset age threshold and the first preset duration threshold specifically includes: In the case where the at least one first user is a single user, judging whether the first user is a first type user according to the user age of the first user and the first preset age threshold, wherein the first type user is a child user; If the first user is the first type of user, the application is controlled to operate according to the operating time and the first preset time threshold.
3. The method according to claim 2, It is characterized in that If the first user is the first type of user, the step of controlling the application to work according to the running time and the first preset time threshold specifically includes: Comparing the running time with the first preset time threshold; If the running time is greater than or equal to the first preset time threshold, control the application to enter a locked state and stop running the application; If the running time is less than the first preset time threshold, the application is controlled to continue running.
4. The method according to claim 3, It is characterized in that If the running time is greater than or equal to the first preset time threshold, the application is controlled to enter a locked state, and the running of the application is stopped, the method further includes: receiving an unlock request of an application, obtaining a lock duration of the application, and at least one user image of at least one second user in a target area; The application is controlled to operate according to the lock time, a second preset time threshold and the at least one user image.
5. The method according to claim 4, It is characterized in that The step of controlling the application to work according to the locking time, the second preset time threshold and the at least one user image specifically includes: If the locking time is greater than or equal to the second preset time threshold, controlling the application to exit the locking state; If the locking duration is less than the second preset duration threshold, determining at least one user age of the at least one second user according to the at least one user image and a preset image recognition model; According to the at least one user age and a second preset age threshold, determining whether the at least one second user includes a second type of user, wherein the second type of user is an adult user; In a case where the at least one second user includes the second type of user, generating unlock prompt information according to the unlock request; sending the unlock prompt information to the second type of user, so that the second type of user can unlock the application according to the unlock prompt information, so that the application exits the locked state; In a case where all of the at least one second user are users of the first type, the application is controlled to maintain the locked state.
6. The method according to claim 2, It is characterized in that The step of controlling the operation of the application according to the at least one user age, the operation duration, the first preset age threshold and the first preset duration threshold specifically includes: In the case that there are multiple at least one first user, determining a user type of each first user according to multiple user ages of the multiple first users and the first preset age threshold; The application is controlled to operate according to the user type of each first user, the operating time and the first preset time threshold.
7. The method according to claim 6, It is characterized in that The step of controlling the operation of the application according to the user type of each first user, the operation duration and the first preset duration threshold specifically includes: According to the user type of each first user, determining whether the plurality of first users are all first type users; If the multiple first users are all the first type of users, and the running time is greater than or equal to the first preset time threshold, controlling the application to enter a locked state and stopping the running of the application; If the multiple first users are all the first type of users, and the running time is less than the first preset time threshold, controlling the application to continue running; If the plurality of first users include a second type of user, the application is controlled to continue running.
8. A control device for an application program, It is characterized in that include: A control module, configured to start the application in response to a start-up request of the application, and control the application to enter the intelligent recognition mode; an acquisition module, configured to acquire at least one user image of at least one first user in a target area and a running time of the application program according to a preset period; a determination module, configured to determine at least one user age of the at least one first user according to the at least one user image and a preset image recognition model; The control module is further used to control the operation of the application according to the at least one user age, the running time, a first preset age threshold and a first preset time threshold.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
