CN113645503B - Application control method and device, electronic equipment and storage medium - Google Patents
Application control method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113645503B CN113645503B CN202110844131.8A CN202110844131A CN113645503B CN 113645503 B CN113645503 B CN 113645503B CN 202110844131 A CN202110844131 A CN 202110844131A CN 113645503 B CN113645503 B CN 113645503B
- Authority
- CN
- China
- Prior art keywords
- target application
- type
- determining
- video
- user
- 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
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000011217 control strategy Methods 0.000 claims abstract description 28
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44204—Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides an application control method, an application control device, electronic equipment and a storage medium, and belongs to the technical field of application control. According to the method, when a target application enters a preset mode, video content of a video played by the target application in a preset time period is obtained, wherein the video content comprises a plurality of frame images; determining object characteristics corresponding to at least one object from a plurality of frame images; determining type information of the video based on the object features; and determining a control strategy of the target application based on the type information so as to control the target application according to the control strategy. Therefore, the played video content is monitored in time, the situation that the played video content is not consistent with the currently executed mode is avoided, and the user experience is improved.
Description
Technical Field
The present application relates to the field of application control technologies, and in particular, to an application control method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, intelligent terminal devices such as mobile phones and ipads gradually enter thousands of households, the intelligent terminal devices generally load a plurality of application programs for playing videos, and users watch various videos through the application programs.
At present, in order to enable an application program to better meet the requirements of a user, various modes are set for a plurality of video playing applications, for example, a child mode is to classify videos in advance, the playing of video contents which are not suitable for children to watch is limited, and the user limits the contents watched by the children by setting the child mode.
However, since the sources of video resources provided by the internet are complex and the types are various, many applications cannot monitor the played video content in time, so that the played video content is inconsistent with the currently executed mode, for example, in the child mode, because the video types are not identified in time, some video contents which are not suitable for children to watch are played, and the use of the user is affected.
Disclosure of Invention
An object of the embodiments of the present application is to provide an application control method, an application control apparatus, an electronic device, and a storage medium, so as to solve a problem that a played video content cannot be monitored in time by many applications, and therefore the played video content is not in compliance with a currently executed mode. The specific technical scheme is as follows:
in a first aspect, an application control method is provided, where the method includes:
when a target application enters a preset mode, acquiring video content of a video played by the target application within a preset time period, wherein the video content comprises a plurality of frame images;
determining object characteristics corresponding to at least one object from a plurality of frame images;
determining type information of the video based on the object features;
and determining a control strategy of the target application based on the type information so as to control the target application according to the control strategy.
In one possible embodiment, the determining the type information of the video based on the object characteristics includes:
if the object type is a first type, determining that the video is of the first type;
determining a first number of occurrences of adults and a second number of occurrences of minors in at least one of the subjects if the subject category is a second category;
determining that the video is of a second type if the first number of occurrences is greater than or equal to the second number of occurrences;
determining that the video is of a third type if the first number of occurrences is less than the second number of occurrences.
In one possible embodiment, the determining the control policy of the target application based on the type information includes:
under the condition that the video is of the first type or the third type, closing the target application after the target application is determined to be controlled to play for a preset time;
determining to immediately close the target application if the video is of the second type.
In one possible embodiment, the method further comprises:
under the condition that the target application is detected to be started, acquiring first image information of a first user currently using the target application, acquired by an acquisition device;
determining an age range of the first user based on the first image information;
and controlling the target application to enter a preset mode under the condition that the age range is within a preset range.
In one possible embodiment, the method further comprises:
acquiring second image information of a second user currently using the target application, which is acquired by an acquisition device, under the condition that the target application is closed and the restart is detected;
determining whether the second user and the first user are the same user based on the second image information;
under the condition that the second user and the first user are determined to be the same user, determining the interval time between the last period of closing time and the current period of opening time of the target application;
and controlling the target application to be closed under the condition that the interval time is less than a preset first time threshold.
In one possible embodiment, the method further comprises:
under the condition that the second user and the first user are determined to be the same user, determining the play accumulated time of the last period and the current period of the target application;
and controlling the target application to be closed under the condition that the playing accumulated time is smaller than a preset second time threshold.
In a possible embodiment, the obtaining the video content of the video played by the target application within a preset time period includes:
and in a preset time period for playing the video by the target application, capturing a screen of a target device where the target application is located according to a preset time interval to obtain a plurality of frame images, wherein the video content is formed by the plurality of frame images.
In a second aspect, there is provided an application control apparatus, the apparatus comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring video content of a video played by a target application within a preset time period when the target application enters a preset mode, and the video content comprises a plurality of frame images;
the first determining module is used for determining object characteristics corresponding to at least one object from a plurality of frame images;
a second determination module for determining type information of the video based on the object feature;
and the third determining module is used for determining the control strategy of the target application based on the type information so as to control the target application according to the control strategy.
In one possible embodiment, the second determining module is configured to:
if the object type is a first type, determining that the video is of the first type;
determining a first number of occurrences of adults and a second number of occurrences of minors in at least one of the subjects if the subject category is a second category;
determining that the video is of a second type if the first number of occurrences is greater than or equal to the second number of occurrences;
determining that the video is of a third type if the first number of occurrences is less than the second number of occurrences.
In one possible embodiment, the third determining module is configured to:
under the condition that the video is of the first type or the third type, closing the target application after the target application is determined to be controlled to play for a preset time;
determining to immediately close the target application if the video is of the second type.
In one possible embodiment, the apparatus further comprises a control module configured to:
under the condition that the target application is detected to be started, acquiring first image information of a first user currently using the target application, acquired by an acquisition device;
determining an age range of the first user based on the first image information;
and controlling the target application to enter a preset mode under the condition that the age range is within a preset range.
In one possible embodiment, the control module is further configured to:
acquiring second image information of a second user currently using the target application, which is acquired by an acquisition device, under the condition that the target application is closed and the restart is detected;
determining whether the second user and the first user are the same user based on the second image information;
under the condition that the second user and the first user are determined to be the same user, determining the interval time between the last period of closing time and the current period of opening time of the target application;
and controlling the target application to be closed under the condition that the interval time is less than a preset first time threshold.
In one possible embodiment, the control module is further configured to:
under the condition that the second user and the first user are determined to be the same user, determining the play accumulated time of the last period and the current period of the target application;
and controlling the target application to be closed under the condition that the playing accumulated time is smaller than a preset second time threshold.
In one possible implementation, the obtaining module is configured to:
and in a preset time period for playing the video by the target application, capturing a screen of a target device where the target application is located according to a preset time interval to obtain a plurality of frame images, wherein the video content is formed by the plurality of frame images.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the application control methods described above.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides an application control method, an application control device, electronic equipment and a storage medium, wherein when a target application enters a preset mode, a plurality of frame images of video content of a video played by the target application in a preset time period are acquired, and an object feature corresponding to at least one object is determined from the plurality of frame images; then, determining type information of the video based on the object features; and finally, determining a control strategy of the target application based on the type information so as to control the target application according to the control strategy.
Namely, according to the scheme, the video type can be determined according to the video content of the video played by the target application within a period of time, the control strategy for the target application is determined according to the video type, and the target application is controlled according to the control strategy, so that the played video content is monitored in time, the situation that the played video content is inconsistent with the currently executed mode is avoided, and the user experience is improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of an application control method according to an embodiment of the present application;
fig. 2 is a flowchart of an application control method according to another embodiment of the present application;
fig. 3 is a flowchart of an application control method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an application control device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Due to the fact that video resources provided by the internet are complex in source and various in type, many applications cannot monitor played video content in time, and the played video content is not consistent with a currently executed mode, for example, in a child mode, due to the fact that the video type is not identified in time, some video content which is not suitable for children to watch is played, and use of a user is affected. Therefore, the embodiment of the application provides an application control method.
An application control method provided in the embodiments of the present application will be described in detail below with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:
s101, when a target application enters a preset mode, video content of a video played by the target application in a preset time period is obtained, wherein the video content comprises a plurality of frame images.
In the embodiment of the present application, the target application refers to a video playing application, and the preset mode includes, but is not limited to, a child mode.
In an implementation manner of the embodiment of the present application, the video content of the video played by the target application in a preset time period may be obtained through the following steps:
and in a preset time period for playing the video by the target application, capturing a screen of a target device where the target application is located according to a preset time interval to obtain a plurality of frame images, wherein the video content is formed by the plurality of frame images.
In this embodiment, the target device refers to a device running a target application, for example, a mobile phone or a tablet computer. And controlling the target equipment to perform screen capture at intervals of a preset time interval within a preset time period for playing the video by the target application, wherein each screen capture is a frame image, so that a plurality of frame images within the preset time period are obtained, and the video content is composed of the plurality of frame images.
S102, determining object characteristics corresponding to at least one object from the frame images.
In this embodiment, at least one object may be identified from the plurality of frame images, where the object may refer to all actors in the frame images or may refer to starring actors in the frame images, and when the object refers to starring actors in the frame images, it is determined that the starring actors appear more than a preset threshold from all the actors. And then extracting object characteristics corresponding to at least one object, wherein the object characteristics comprise an object category, an object age and the like.
S103, determining the type information of the video based on the object characteristics.
In the embodiment of the application, the type information of the video can be determined based on the object characteristics.
S104, determining a control strategy of the target application based on the type information, so as to control the target application according to the control strategy.
In the embodiment of the present application, the control policy is used for controlling the target application, including but not limited to immediately closing the target application or closing the target application after the target application is played for a period of time. After the type information of the video is determined, a control strategy corresponding to the target application is determined based on the type information, and the target application is controlled according to the control strategy. For example, in the child mode, if it is determined that the type information of the video is an animation, the control policy is to close the control target application after playing for 20 minutes.
In the embodiment of the application, the video type can be determined according to the video content of the video played by the target application within a period of time, and the control strategy for the target application is determined according to the video type so as to control the target application according to the control strategy, thereby monitoring the played video content in time, avoiding that the played video content is not consistent with the currently executed mode, and improving the user experience.
In another embodiment of the present application, the S103 may include the following steps:
step one, if the object type is a first type, determining that the video is of the first type;
and step two, if the object type is a second type, determining the first occurrence frequency of adults and the second occurrence frequency of minors in at least one object.
In the embodiment of the application, under the condition that the cartoon characters are represented in the first category and the real people are represented in the second category, the first category is used for representing the cartoon, and if the object category is the first category, the video is determined to be the cartoon.
If the object type is the second type, which indicates that the object is a real person, in this case, the type information of the video may be determined by the number of occurrences of adults and minors in at least one object. Specifically, all faces are recognized in the video frame, the ID, the age and the number of occurrences corresponding to each face are recorded, the type corresponding to each ID is determined according to the age, for example, if the age is 18 years or more, the type corresponding to the ID is determined to be an adult, and if the age is 18 years or less, the type corresponding to the ID is determined to be a minor. The first number of occurrences was counted for adults and the second number of occurrences was counted for minors.
And step three, determining that the video is of a second type under the condition that the first occurrence number is greater than or equal to the second occurrence number.
In the embodiment of the present application, the second genre is used for characterizing a television play (non-children play). In the case where the first number of occurrences is greater than or equal to the second number of occurrences, indicating that the number of occurrences of adults is greater than or equal to the number of occurrences of minors, the video is determined to be of the second genre, i.e., a television series.
And step four, determining that the video is of a third type under the condition that the first occurrence frequency is smaller than the second occurrence frequency.
In an embodiment of the present application, the third type is used to characterize a children play. And in the case that the first occurrence number is smaller than the second occurrence number, the fact that the number of the juveniles is larger than that of the adults is indicated, and the video is determined to be of a third type, namely a children play.
For example: in a plurality of video frames, recognizing faces with 3 IDs, specifically: 001, age: 10, number of occurrences: 23; ID: 002, age: 7, occurrence number: 15; ID: 003, age: 20, number of occurrences: 10. 001 and 002 are juveniles and 003 are adults; the number of appearance of minor was the total number of 001 and 002, i.e., 23+15 times 38, and the number of appearance of adult was the number of 003, i.e., 10. The number of juveniles is greater than the number of adults, and thus the video is determined to be of the third type, a childhood drama.
In the embodiment of the application, the type of the video is determined by determining the first occurrence frequency of the adult and the second occurrence frequency of the minor in at least one object, and the determination process is simple, efficient and easy to implement.
In another embodiment of the present application, the S104 may include the following steps:
step one, under the condition that the video is of the first type or the third type, after the target application is determined to be controlled to play for a preset time, the target application is closed;
and step two, under the condition that the video is of the second type, determining to immediately close the target application.
In the embodiment of the application, when the video is of the first type or the third type, it is determined that the video is suitable for being watched by children, and at this time, the watching time of the user needs to be controlled, so that the determined control strategy is to control the target application to be closed after the target application is played for a preset time. In the case where the video is of the second type, it is determined that the video is not suitable for viewing by a child, and therefore the determined control strategy immediately closes the target application.
In another implementation manner of this embodiment, when the video is determined to be of the second type, the determined control policy may also be to switch the video.
In the embodiment of the application, the control strategy of the target application can be determined according to the type of the video so as to control the target application according to the control strategy, thereby limiting the playing of some video contents which are not suitable for children to watch in time and improving the user experience.
In another embodiment of the present application, as shown in fig. 2, the method may further include the steps of:
s201, under the condition that the target application is detected to be started, acquiring first image information of a first user currently using the target application, which is acquired by an acquisition device.
In this embodiment of the application, the first user is a user currently using the target application, and the user currently in the acquisition area of the acquisition device can be defaulted to be the user currently using the target application. The acquisition device includes, but is not limited to, a front-facing camera on a target device on which a target application runs. The method comprises the steps of detecting the running condition of a target application in real time, and acquiring first image information of a first user acquired by an acquisition device under the condition that the target application is detected to be started.
S202, determining the age range of the first user based on the first image information.
In the embodiment of the application, the face recognition algorithm is used for recognizing the face in the first image information, and then the age range of the face is predicted by the age prediction algorithm, so that the age range of the first user is determined.
S203, controlling the target application to enter a preset mode under the condition that the age range is within a preset range.
In the embodiment of the present application, in the case where the age range is within a preset range, the control target application enters a preset mode. For example, the preset mode corresponding to the preset range of 0-18 years is the child mode; when it is determined that the first user is in the age range of 10-12 years, it is determined that the first user is in the age range of a preset range, and thus, the control target application enters the child mode.
In the embodiment of the application, under the condition that the target application is detected to be started, the age range of a first user is determined through first image information of the first user, which is acquired by an acquisition device; and controlling the target application to enter a preset mode under the condition that the age range is within a preset range. Manual control is not needed, and user experience is improved.
In another embodiment of the present application, as shown in fig. 3, the method may further include the steps of:
s301, after the target application is closed, under the condition that the target application is detected to be restarted, second image information of a second user currently using the target application, which is acquired by an acquisition device, is acquired.
In the embodiment of the present application, after the target application is closed, whether the target application is restarted or not may be defined according to a time interval, for example, a day is set, and each time the target application is started after the target application is started for the first time is considered to be restarted. The second user is a user currently using the target application. And detecting the running condition of the target application in real time, and acquiring second image information of a second user acquired by the acquisition device under the condition that the target application is detected to be restarted.
S302, determining whether the second user and the first user are the same user based on the second image information.
In the embodiment of the application, a face recognition algorithm is used for recognizing the face in the second image information, so that whether the second user and the first user are the same user is determined.
And S303, under the condition that the second user and the first user are determined to be the same user, determining the interval time between the last period closing time and the current period opening time of the target application.
In this embodiment of the application, the current period refers to a period currently played by a target application, and for a previous playing period of the current period, when it is determined that a second user and a first user are the same user, a previous period pointer first obtains a previous period closing time and a current period opening time of the target application, and determines an interval time based on the previous period closing time and the current period opening time.
S304, controlling the target application to be closed under the condition that the interval time is smaller than a preset first time threshold.
In the embodiment of the application, in order to avoid that the target application is restarted within a short time to continuously watch the video after the user closes the target application, the target application is controlled to be closed under the condition that the interval time is less than the preset first time threshold, so that the user is prevented from watching the video for too long.
In a further embodiment of itself, the method may further comprise the steps of:
step one, under the condition that the second user and the first user are determined to be the same user, determining the play accumulated time of the last period and the current period of the target application;
and step two, controlling the target application to be closed under the condition that the playing accumulated time is smaller than a preset second time threshold.
In this embodiment of the present application, the playing accumulated time refers to an accumulated playing time length, and when it is determined that the second user and the first user are the same user, the playing accumulated time of the last period and the current period of the target application is determined, and when the playing accumulated time is smaller than a preset second time threshold, it indicates that the user has used up the playing time in the right, so that the target application is controlled to be closed. Therefore, the user is prevented from prolonging the video watching time in a mode of restarting the target application.
In the embodiment of the application, the video type can be determined according to the video content of the video played by the target application within a period of time, and the control strategy for the target application is determined according to the video type so as to control the target application according to the control strategy, thereby monitoring the played video content in time, avoiding that the played video content is not consistent with the currently executed mode, and improving the user experience.
Based on the same technical concept, an embodiment of the present application further provides an application control apparatus, as shown in fig. 4, the apparatus includes:
an obtaining module 401, configured to obtain video content of a video played by a target application within a preset time period when the target application enters a preset mode, where the video content includes multiple frame images;
a first determining module 402, configured to determine an object feature corresponding to at least one object from the plurality of frame images;
a second determining module 403, configured to determine type information of the video based on the object feature;
a third determining module 404, configured to determine a control policy of the target application based on the type information, so as to control the target application according to the control policy.
In one possible embodiment, the second determining module is configured to:
if the object type is a first type, determining that the video is of the first type;
determining a first number of occurrences of adults and a second number of occurrences of minors in at least one of the subjects if the subject category is a second category;
determining that the video is of a second type if the target age feature is in a first feature range;
determining that the video is of a third type if the target age feature is in a second feature range.
In one possible embodiment, the third determining module is configured to:
under the condition that the video is of the first type or the third type, closing the target application after the target application is determined to be controlled to play for a preset time;
determining to immediately close the target application if the video is of the second type.
In one possible embodiment, the apparatus further comprises a control module configured to:
under the condition that the target application is detected to be started, acquiring first image information of a first user currently using the target application, acquired by an acquisition device;
determining an age range of the first user based on the first image information;
and controlling the target application to enter a preset mode under the condition that the age range is within a preset range.
In one possible embodiment, the control module is further configured to:
acquiring second image information of a second user currently using the target application, which is acquired by an acquisition device, under the condition that the target application is closed and the restart is detected;
determining whether the second user and the first user are the same user based on the second image information;
under the condition that the second user and the first user are determined to be the same user, determining the interval time between the last period of closing time and the current period of opening time of the target application;
and controlling the target application to be closed under the condition that the interval time is less than a preset first time threshold.
In one possible embodiment, the control module is further configured to:
under the condition that the second user and the first user are determined to be the same user, determining the play accumulated time of the last period and the current period of the target application;
and controlling the target application to be closed under the condition that the playing accumulated time is smaller than a preset second time threshold.
In one possible implementation, the obtaining module is configured to:
and in a preset time period for playing the video by the target application, capturing a screen of a target device where the target application is located according to a preset time interval to obtain a plurality of frame images, wherein the video content is formed by the plurality of frame images.
In the embodiment of the application, the video type can be determined according to the video content of the video played by the target application within a period of time, and the control strategy for the target application is determined according to the video type so as to control the target application according to the control strategy, thereby monitoring the played video content in time, avoiding that the played video content is not consistent with the currently executed mode, and improving the user experience.
Based on the same technical concept, the embodiment of the present application further provides an electronic device, as shown in fig. 5, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,
a memory 113 for storing a computer program;
the processor 111, when executing the program stored in the memory 113, implements the following steps:
when a target application enters a preset mode, acquiring video content of a video played by the target application within a preset time period, wherein the video content comprises a plurality of frame images;
determining object characteristics corresponding to at least one object from a plurality of frame images;
determining type information of the video based on the object features;
and determining a control strategy of the target application based on the type information so as to control the target application according to the control strategy.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the above-mentioned application control methods.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the application control methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. An application control method, characterized in that the method comprises:
when a target application enters a preset mode, acquiring video content of a video played by the target application within a preset time period, wherein the video content comprises a plurality of frame images;
determining object characteristics corresponding to at least one object from a plurality of frame images;
determining type information of the video based on the object features;
determining a control strategy of the target application based on the type information so as to control the target application according to the control strategy;
wherein the object characteristics include an object category and an age characteristic, and the determining the type information of the video based on the object characteristics includes:
if the object type is a first type, determining that the video is of the first type;
determining a first number of occurrences of adults and a second number of occurrences of minors in at least one of the subjects if the subject category is a second category;
determining that the video is of a second type if the first number of occurrences is greater than or equal to the second number of occurrences;
determining that the video is of a third type if the first number of occurrences is less than the second number of occurrences;
the first type is used for representing cartoon characters, the second type is used for representing true people, the first type is used for representing animation, the second type is used for representing television plays which are not children plays, and the third type is used for representing children plays.
2. The method of claim 1, wherein the determining the control policy of the target application based on the type information comprises:
under the condition that the video is of the first type or the third type, closing the target application after the target application is determined to be controlled to play for a preset time;
determining to immediately close the target application if the video is of the second type.
3. The method of claim 1, further comprising:
under the condition that the target application is detected to be started, acquiring first image information of a first user currently using the target application, acquired by an acquisition device;
determining an age range of the first user based on the first image information;
and controlling the target application to enter a preset mode under the condition that the age range is within a preset range.
4. The method of claim 3, further comprising:
acquiring second image information of a second user currently using the target application, which is acquired by an acquisition device, under the condition that the target application is closed and the restart is detected;
determining whether the second user and the first user are the same user based on the second image information;
under the condition that the second user and the first user are determined to be the same user, determining the interval time between the last period of closing time and the current period of opening time of the target application;
and controlling the target application to be closed under the condition that the interval time is less than a preset first time threshold.
5. The method of claim 4, further comprising:
under the condition that the second user and the first user are determined to be the same user, determining the play accumulated time of the last period and the current period of the target application;
and controlling the target application to be closed under the condition that the playing accumulated time is greater than a preset second time threshold.
6. The method of claim 1, wherein the obtaining the video content of the video played by the target application within a preset time period comprises:
and in a preset time period for playing the video by the target application, capturing a screen of a target device where the target application is located according to a preset time interval to obtain a plurality of frame images, wherein the video content is formed by the plurality of frame images.
7. An application control apparatus for implementing the application control method according to any one of claims 1 to 6, characterized in that the apparatus comprises:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring video content of a video played by a target application within a preset time period when the target application enters a preset mode, and the video content comprises a plurality of frame images;
the first determining module is used for determining object characteristics corresponding to at least one object from a plurality of frame images;
a second determination module for determining type information of the video based on the object feature;
a third determining module, configured to determine a control policy of the target application based on the type information, so as to control the target application according to the control policy;
wherein the object characteristics include an object type and an age characteristic, and the second determining module is specifically configured to:
if the object type is a first type, determining that the video is of the first type;
determining a first number of occurrences of adults and a second number of occurrences of minors in at least one of the subjects if the subject category is a second category;
determining that the video is of a second type if the first number of occurrences is greater than or equal to the second number of occurrences;
determining that the video is of a third type if the first number of occurrences is less than the second number of occurrences;
the first type is used for representing cartoon characters, the second type is used for representing true people, the first type is used for representing animation, the second type is used for representing television plays which are not children plays, and the third type is used for representing children plays.
8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
9. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110844131.8A CN113645503B (en) | 2021-07-26 | 2021-07-26 | Application control method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110844131.8A CN113645503B (en) | 2021-07-26 | 2021-07-26 | Application control method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113645503A CN113645503A (en) | 2021-11-12 |
CN113645503B true CN113645503B (en) | 2022-05-17 |
Family
ID=78418345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110844131.8A Active CN113645503B (en) | 2021-07-26 | 2021-07-26 | Application control method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113645503B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5956860B2 (en) * | 2012-07-09 | 2016-07-27 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
CN105812921B (en) * | 2016-04-26 | 2019-12-03 | Tcl海外电子(惠州)有限公司 | Control method and terminal that media information plays |
CN111125663B (en) * | 2019-11-27 | 2022-04-19 | 宇龙计算机通信科技(深圳)有限公司 | Control method and device for child mode, storage medium and terminal |
CN111209440B (en) * | 2020-01-13 | 2023-04-14 | 深圳市雅阅科技有限公司 | Video playing method, device and storage medium |
CN112004152A (en) * | 2020-08-26 | 2020-11-27 | 深圳创维-Rgb电子有限公司 | Program playing control method, device, terminal and medium based on face recognition |
-
2021
- 2021-07-26 CN CN202110844131.8A patent/CN113645503B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113645503A (en) | 2021-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9451305B2 (en) | Method, computer readable storage medium, and introducing and playing device for introducing and playing media | |
CN106941624B (en) | Processing method and device for network video trial viewing | |
WO2018000624A1 (en) | Video playing control method and device | |
US20140208340A1 (en) | Dynamic content rating management across a variety of television input sources | |
CN108882040A (en) | Booting contents management method, smart television and the readable storage medium storing program for executing of television set | |
US9300997B2 (en) | Consumption likelihood of linear content streams | |
CN107454442B (en) | Method and device for recommending video | |
CN104125505B (en) | TV programme processing method and device | |
CN110362458A (en) | Application evaluation reminding method, device, electronic equipment and readable storage medium storing program for executing | |
CN111405363B (en) | Method and device for identifying current user of set top box in home network | |
KR20220156908A (en) | Video stream playback control method, device and storage medium | |
WO2017185604A1 (en) | Interface displaying method and device of smart terminal | |
CN111541927A (en) | Video playing method and device | |
CN110740373A (en) | audio/video file buffering method and related device | |
CN112685599B (en) | Video recommendation method and device | |
CN109168044B (en) | Method and device for determining video characteristics | |
CN113645503B (en) | Application control method and device, electronic equipment and storage medium | |
CN108882024B (en) | Video playing method and device and electronic equipment | |
CN110381359B (en) | Video processing method and device, computer equipment and storage medium | |
CN111669626A (en) | Method and device for determining default play relationship of videos and electronic equipment | |
CN114189719B (en) | Video information extraction method and device, electronic equipment and storage medium | |
US9231845B1 (en) | Identifying a device associated with a person who does not satisfy a threshold age | |
CN114025170A (en) | Video playing method and device, computer equipment and computer readable storage medium | |
CN113873278A (en) | Playing content auditing method and device and electronic equipment | |
CN113727167A (en) | Video resource playing method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |