CN113313036B - Method and system for detecting program playing state - Google Patents

Method and system for detecting program playing state Download PDF

Info

Publication number
CN113313036B
CN113313036B CN202110608776.1A CN202110608776A CN113313036B CN 113313036 B CN113313036 B CN 113313036B CN 202110608776 A CN202110608776 A CN 202110608776A CN 113313036 B CN113313036 B CN 113313036B
Authority
CN
China
Prior art keywords
program
detection picture
picture
detection
result
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
Application number
CN202110608776.1A
Other languages
Chinese (zh)
Other versions
CN113313036A (en
Inventor
张慧
张家斌
赵圣魁
郭忠武
陈佳磊
张家明
纪军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bohui Technology Inc
Original Assignee
Beijing Bohui Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bohui Technology Inc filed Critical Beijing Bohui Technology Inc
Priority to CN202110608776.1A priority Critical patent/CN113313036B/en
Publication of CN113313036A publication Critical patent/CN113313036A/en
Application granted granted Critical
Publication of CN113313036B publication Critical patent/CN113313036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects

Abstract

The application provides a method and a system for detecting a program playing state, which are used for determining a target detection area to be compared based on material configuration information in preset configuration information of a channel to which a program detection picture belongs, and filling areas except the target detection area in the program detection picture; calculating by using a hash algorithm to obtain a comparison hash value of the program detection picture; comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs to determine a comparison result of the program detection picture; determining a warning result of the program detection picture based on warning configuration information in preset configuration information; and determining a state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result. Therefore, the double verification of the playing state of the program belonging to the program detection picture can be carried out based on the comparison result and the warning result, and the accuracy of the state detection result of the program belonging to the program detection picture can be improved.

Description

Method and system for detecting program playing state
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and a system for detecting a program playing state.
Background
In order to ensure normal broadcasting of television programs, a broadcasting mechanism generally monitors broadcasting pictures of videos in the broadcasting process of the videos, and monitors and alarms when broadcasting states of the television programs are in abnormal broadcasting states such as black screens, static pictures, no accompanying sound and the like. Because of the requirements of equipment overhaul, updating and the like, part of television programs stop broadcasting formal programs in a specific period, and the situation that a broadcasting stopping picture and background music are replaced exists, however, the broadcasting stopping picture of part of programs has an active area such as a traveling clock, a small window video and the like, and the broadcasting stopping time is not completely fixed, so that an alarm can not be avoided by presetting a program running chart, and further, when the programs are in the situation, a large number of invalid alarms are often generated, and great trouble is caused to operators on duty.
Disclosure of Invention
Accordingly, an object of the present application is to provide a method and a system for detecting a playing state of a program, which are capable of determining a warning result of a program detection picture while comparing the program detection picture with a pre-stored material picture, and further performing dual verification on the playing state of the program to which the program detection picture belongs based on the comparison result and the warning result, so as to improve the accuracy of the state detection result of the program to which the program detection picture belongs.
The embodiment of the application provides a method for detecting a program playing state, which comprises the following steps:
acquiring a program detection picture from video stream data;
determining a comparison hash value of the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs, and determining a comparison result of the program detection picture;
determining a warning result of the program detection picture based on warning configuration information in the preset configuration information;
and determining a state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result.
Further, the determining the comparison hash value of the program detection picture based on the material configuration information in the preset configuration information of the channel to which the program detection picture belongs includes:
determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture;
And calculating the target detection picture by using a hash algorithm to obtain a comparison hash value of the program detection picture.
Further, the determining, based on the comparison result and the alert result, a status detection result of the program to which the program detection picture belongs includes:
when the comparison result indicates that the program of the program detection picture is in a non-stop state and the warning result indicates that no warning information exists in the program detection picture, determining that the state detection result of the program detection picture is normal play;
when the comparison result indicates that the program of the program detection picture is in a stop state and/or the warning result indicates that warning information exists in the program detection picture, the playing state of the program detection picture is secondarily judged, and the state detection result of the program detection picture is determined.
Further, the performing the secondary determination on the playing state of the program to which the program detection picture belongs, and determining the state detection result of the program to which the program detection picture belongs, includes:
judging whether the acquisition time of the program detection picture is enabled in a fixed period;
If yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining whether the acquisition time is in a fixed off-air period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping the broadcasting.
Further, after determining the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result, the detection method further includes:
and reporting the state detection result so that a monitoring person can adjust the playing content of the channel to which the program detection picture belongs based on the state detection result.
Further, after the program detection picture is obtained from the video stream data, the detection method further includes:
acquiring the task processing quantity of each comparison processing thread;
and distributing the program detection picture to a comparison processing thread with the least task processing quantity so as to calculate a comparison hash value of the program detection picture.
The embodiment of the application also provides a system for detecting the playing state of the program, which comprises:
The multi-picture detection module is used for acquiring a program detection picture from video stream data;
the image processing module is used for determining a comparison hash value of the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
the program detection module is used for comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs to and determining the comparison result of the program detection picture;
the alarm module is used for determining an alarm result of the program detection picture based on alarm configuration information in the preset configuration information;
and the comprehensive judgment module of the off-air state is used for determining the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result.
Further, when the image processing module is configured to determine the comparison hash value of the program detection picture based on the material configuration information in the preset configuration information of the channel to which the program detection picture belongs, the image processing module is configured to:
determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
Filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture;
and calculating the target detection picture by using a hash algorithm to obtain a comparison hash value of the program detection picture.
Further, when the comprehensive determination module for the off-air state is configured to determine a state detection result of a program to which the program detection picture belongs based on the comparison result and the warning result, the comprehensive determination module for the off-air state is configured to:
when the comparison result indicates that the program of the program detection picture is in a non-stop state and the warning result indicates that no warning information exists in the program detection picture, determining that the state detection result of the program detection picture is normal play;
when the comparison result indicates that the program of the program detection picture is in a stop state and/or the warning result indicates that warning information exists in the program detection picture, the playing state of the program detection picture is secondarily judged, and the state detection result of the program detection picture is determined.
Further, the comprehensive determining module of the off-air state is configured to, when determining a state detection result of the program to which the program detection picture belongs, perform a secondary determination on a play state of the program to which the program detection picture belongs:
Judging whether the acquisition time of the program detection picture is enabled in a fixed period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining whether the acquisition time is in a fixed off-air period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping the broadcasting.
Further, the detection system further comprises a reporting module, wherein the reporting module is used for:
and reporting the state detection result so that a monitoring person can adjust the playing content of the channel to which the program detection picture belongs based on the state detection result.
Further, the detection system further includes a thread allocation module, where the thread allocation module is configured to:
acquiring the task processing quantity of each comparison processing thread;
and distributing the program detection picture to a comparison processing thread with the least task processing quantity so as to calculate a comparison hash value of the program detection picture.
The embodiment of the application provides a method and a system for detecting a program playing state, wherein a program detection picture is obtained from video stream data; determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs; filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture; calculating to obtain a comparison hash value of the program detection picture by using a hash algorithm; comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs, and determining a comparison result of the program detection picture; determining a warning result of the program detection picture based on warning configuration information in the preset configuration information; and determining a state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result. Therefore, the program detection picture and the pre-stored material picture are compared to determine the comparison result, and the warning result of the program detection picture can be determined, so that the play state of the program which the program detection picture belongs to is doubly verified based on the comparison result and the warning result, and the accuracy of the state detection result of the program which the program detection picture belongs to can be improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for detecting a playing state of a program according to an embodiment of the present application;
fig. 2 is a schematic diagram of a structure of a stored material library of channel preset configuration information according to an embodiment of the present application;
fig. 3 is a schematic diagram of a state detection result detection flow provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a status detection result reporting flow provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a system for detecting a playing state of a program according to an embodiment of the present application;
fig. 6 is a second schematic structural diagram of a system for detecting a playing state of a program according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, 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 apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment that a person skilled in the art would obtain without making any inventive effort is within the scope of protection of the present application.
According to research, in order to ensure normal broadcasting of television programs, a broadcasting mechanism generally monitors broadcasting pictures of videos in the broadcasting process of the videos, and monitors and alarms when broadcasting states of the television programs are in abnormal broadcasting states such as black screens, static pictures, no accompanying sound and the like. Because of the requirements of equipment overhaul, updating and the like, part of television programs stop broadcasting formal programs in a specific period, and the situation that a broadcasting stopping picture and background music are replaced exists, however, the broadcasting stopping picture of part of programs has an active area such as a traveling clock, a small window video and the like, and the broadcasting stopping time is not completely fixed, so that an alarm can not be avoided by presetting a program running chart, and further, when the programs are in the situation, a large number of invalid alarms are often generated, and great trouble is caused to operators on duty.
Based on this, the embodiment of the application provides a method for detecting the playing state of a program, which is helpful to improve the accuracy of the state detection result of the program to which the program detection picture belongs.
Referring to fig. 1, fig. 1 is a flowchart of a method for detecting a playing state of a program according to an embodiment of the present application. As shown in fig. 1, the method for detecting a playing state of a program provided in the embodiment of the present application includes:
s101, acquiring a program detection picture from video stream data;
s102, determining a comparison hash value of the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
s103, comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs, and determining a comparison result of the program detection picture;
s104, determining a warning result of the program detection picture based on warning configuration information in the preset configuration information;
s105, determining a state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result.
Fig. 2 is a schematic diagram of a structure of a storage material library of channel preset configuration information according to an embodiment of the present application. As shown in fig. 2, the material library includes preset configuration information of each channel (channel 1, …, channel n) and pre-stored material pictures. The preset configuration information comprises channel attribute information, material configuration information, warning configuration information and the like of a channel to which the program detection picture belongs, wherein the channel attribute information can comprise a management standard channel table, a management channel group, a channel name, a mechanism to which the channel belongs, a channel playing time table and the like; the material configuration information may include an image detection area, an image exclusion area, and the like; the alert configuration information may include alert condition information for the channel, indicator threshold information for the channel, and the like. The pre-stored material pictures refer to preset off-air pictures of the channel, namely pictures played in a preset off-air time period of the channel.
In step S101, a program detection picture of a program played at a current time is obtained from video stream data at a preset time interval.
Further, in step S102, a comparison hash value of the program detection picture may be calculated by using an image sensing algorithm (PHASH) according to the material configuration information in the obtained preset configuration information, so as to compare with the pre-stored material picture in a subsequent process.
In order to relax the limitation on the resolution of the image, that is, not to force the image resolution of the program detection picture to be consistent with the image resolution of the pre-stored material picture, the program detection picture is processed based on the material configuration information in the present application, specifically, step S102 includes: determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs; filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture; and calculating the target detection picture by using a hash algorithm to obtain a comparison hash value of the program detection picture.
For the program detection picture, firstly, determining a target detection area which can be compared in the program detection picture according to the material configuration information, wherein characteristic information which can represent the broadcasting state of the program to which the program detection picture belongs is displayed in the target detection area which can be compared under normal conditions; therefore, in order to reduce the data processing amount in the image processing process, the areas except the target detection areas in the program detection picture are filled with black, and the filled program detection picture is determined as the target detection picture; further, calculating a target detection picture by using a hash algorithm to obtain a comparison hash value of the program detection picture; here, as an example, the target detection picture may be calculated by using an image sensing algorithm, and it should be noted that the image sensing algorithm is only a method for calculating the comparison hash value of the program detection picture, and other hash algorithms may be used to calculate the comparison hash value of the program detection picture, which is not particularly limited herein.
In step S103, the comparison hash value of the program detection picture is compared with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs, so as to determine the comparison result of the program detection picture, that is, determine whether the program detection picture is consistent with the pre-stored material picture.
The comparison hash value of the program detection picture obtained by calculation can be a 64-bit value, and the comparison hash value of the program detection picture is compared with the pre-stored hash value of the pre-stored material picture, specifically, the number of the same digits in the comparison hash value and the pre-stored hash value is determined; the more the number of the same digits is, the more similar the program detection picture and the pre-stored material picture are, and when the number of the same digits reaches a preset number threshold, the program detection picture is determined to be consistent with the pre-stored material picture; otherwise, it is determined that the two are inconsistent. When the program detection picture is consistent with the pre-stored material picture, determining that the program detection picture is in a non-playing state; otherwise, determining that the program detection picture is in a non-off-air state.
At least one pre-stored material picture is pre-stored in the channel to which the program detection picture belongs, and when more than two pre-stored material pictures are pre-stored, the comparison hash value of the program detection picture is respectively compared with the pre-stored hash value of each pre-stored material picture, so that the comparison result of the program detection picture is determined; for example, when three pre-stored material pictures exist, comparing hash values of the program detection pictures with the pre-stored hash values of the first pre-stored material picture, the pre-stored hash values of the second pre-stored material picture and the pre-stored hash values of the third pre-stored material picture respectively; when the program detection picture is consistent with two pre-stored material pictures in the three pre-stored material pictures, the program detection picture can be confirmed to be in a non-stop state.
Specifically, the pre-stored hash value of each pre-stored material picture is obtained through the following steps:
step 1: determining a material detection area which can be compared in the pre-stored material pictures according to the material configuration information, wherein the characteristic information which can represent the broadcasting state of the program of the pre-stored material pictures is displayed in the material detection area which can be used for comparison under the normal condition;
step 2: in order to reduce the data processing amount in the image processing process, filling the areas except the material detection areas in the pre-stored material pictures into black to obtain filled pre-stored material pictures;
step 3: calculating the filled pre-stored material pictures by using a hash algorithm to obtain comparison hash values of the pre-stored material pictures; here, as an example, the filled pre-stored material picture may be calculated by using an image sensing algorithm, and it should be noted that the image sensing algorithm is only a method for calculating a comparison hash value of the filled pre-stored material picture, and other hash algorithms may be used to calculate the comparison hash value of the filled pre-stored material picture, which is not limited herein.
In step S104, the program detection picture is detected according to the alert configuration information in the preset configuration information, and whether the alert information satisfying the off-air alert condition exists in the program to which the program detection picture belongs at the current moment is judged according to the picture data and the index data of the program detection picture, so as to obtain the alert result of the program detection picture.
Here, the off-air warning condition includes one or more of the following:
a. program interruption, lasting for a specified threshold time;
b. video is lost for a specified threshold time;
c. video decoding is abnormal, and the time of a specified threshold is continued;
d. the audio decoding is abnormal, and the time of a specified threshold is continued;
e. the program bandwidth is below the threshold rate and continues for a specified threshold time.
Further, when the program detection picture is determined, the off-air warning condition is determined, and when a warning result of the program detection picture is determined; specifically, when the program detection picture meets any one of the above-mentioned off-air warning conditions, it is determined that warning information meeting the off-air warning conditions exists in the program detection picture.
In step S105, the play status of the program belonging to the program detection picture may be doubly determined based on the obtained comparison result and the warning result, so as to more accurately determine the status detection result of the program belonging to the program detection picture.
Here, the state detection result may include: any one of normal play, suspected off-air, and confirm off-air.
In one possible implementation, step S105 includes: when the comparison result indicates that the program of the program detection picture is in a non-stop state and the warning result indicates that no warning information exists in the program detection picture, determining that the program of the program detection picture is in a normal play state; when the comparison result indicates that the program of the program detection picture is in a non-playing state and the warning result indicates that warning information exists in the program detection picture, the playing state of the program detection picture is secondarily judged, and the state detection result of the program detection picture is determined.
Here, when determining the state detection result of the program according to the program detection picture, the state detection result needs to be doubly determined through the comparison result and the warning result; specifically, when the comparison result indicates that the program to which the program detection picture belongs is in a non-stop state, and the warning result indicates that warning information meeting the stop warning condition does not exist in the program detection picture, the state detection result of the program to which the program detection picture belongs is determined to be normally played.
When the comparison result indicates that the program of the program detection picture is in the off-air state and/or the warning result indicates that the warning information meeting the off-air warning condition exists in the program detection picture, the playing state of the program detection picture is secondarily judged, and then the state detection result of the program detection picture is more accurately determined.
In one possible implementation manner, the determining the state detection result of the program to which the program detection picture belongs includes: judging whether the acquisition time of the program detection picture is enabled in a fixed period; if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air; if not, determining whether the acquisition time is in a fixed off-air period; if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air; if not, determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping the broadcasting.
The fixed time period enabling is preset, the fixed time period enabling characterizes the time for detecting the playing state of the channel according to the playing condition of the channel, and because the playing conditions of the programs of all the channels are different, the unified detection mode cannot be adopted, and the program playing states of all the channels can be detected at the same time.
Judging whether the acquisition time of the program detection picture is enabled in a fixed period; if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air; if not, further judging whether the acquisition time is in a fixed off-air period.
The fixed off-stream period characterizes a preset program off-stream period of the channel, and the channel is in equipment maintenance time in the period, at the moment, no program is played, and a preset off-stream picture is used for replacing the program off-stream period. Because the overhaul time of each channel is inconsistent, in order to accurately determine the program playing state of each channel, whether the acquisition time of the program detection picture is in a fixed off-stream period is further determined when the state detection result of the program is determined, and if the acquisition time of the program detection picture is in the fixed off-stream period, the state detection result of the program to which the program detection picture belongs is determined to be suspected off-stream; if not, determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping the broadcasting.
When the comparison result indicates that the program of the program detection picture is in a non-playing state, but the warning result indicates that no warning information exists in the program detection picture, the state detection result of the program detection picture can be determined according to the comparison result, then the state detection result of the program detection picture is determined according to the warning result, and if the determined state detection results are inconsistent, both the state detection results are reported.
When the comparison result indicates that the program of the program detection picture is in a non-stop state, but the warning result indicates that warning information exists in the program detection picture, the state detection result of the program detection picture can be determined according to the comparison result, then the state detection result of the program detection picture is determined according to the warning result, and if the determined state detection results are inconsistent, the two state detection results are reported together.
As shown in fig. 3, fig. 3 is a schematic diagram of a state detection result detection flow provided in an embodiment of the present application. As shown in fig. 3, step 301: acquiring a program detection picture, and executing step 302 and step 303 respectively; step 302: determining a comparison result of the program detection picture, and executing step 304; step 303: determining a warning result of the program detection picture, and executing step 305; step 304: judging whether the program to which the program detection picture belongs is in a broadcasting cut-off state according to the comparison result, and if not, executing a step 306; if yes, go to step 307; step 305: determining whether the program detection picture has alarm information meeting the off-air alarm condition according to the alarm result, if so, executing step 307; if not, go to step 311; step 306: determining that the state detection result of the program to which the program detection picture belongs is normal play; step 307: judging whether the acquisition time of the program detection picture is enabled in a fixed period, if not, executing step 308; if yes, go to step 309; step 308: judging whether the acquisition time of the program detection picture is in a fixed off-air period, if so, executing step 309; if not, go to step 310; step 309: determining that the state detection result of the program to which the program detection picture belongs is suspected off-air; step 310: determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping broadcasting; step 311: and determining the state detection result of the program to which the program detection picture belongs as normal play.
In one possible implementation manner, after step S105, the detection method further includes: and reporting the state detection result so that a monitoring person can adjust the playing content of the channel to which the program detection picture belongs based on the state detection result.
Here, when the status detection result is reported, it may be determined whether the status detection result is changed from the last status detection result of the channel to which the program detection picture belongs, if yes, the status detection result is reported, so that the monitoring personnel adjusts the playing content of the channel to which the program detection picture belongs based on the status detection result.
If the state detection result is consistent with the last state detection result of the channel to which the program detection picture belongs, the state detection result can not be reported, so that the unnecessary workload of monitoring personnel is not increased by repeated reporting.
In one possible implementation manner, in order to further increase the detection rate of the program detection picture, the received program detection picture is allocated to the comparison processing thread with the least processing tasks, and after the program detection picture is obtained from the video stream data, the detection method further includes: acquiring the task processing quantity of each comparison processing thread; and distributing the program detection pictures to the comparison processing threads with the least task processing quantity so as to calculate the comparison hash value of the program detection pictures. Furthermore, tasks to be processed are distributed for each comparison processing thread more reasonably, and the utilization rate of the comparison processing threads is improved to a great extent.
As shown in fig. 4, fig. 4 is a schematic diagram of a status detection result reporting flow provided in the embodiment of the present application. As shown in fig. 4, step 401: acquiring a pre-stored material picture; step 402: cutting a detection area of a pre-stored material picture according to material configuration information in preset configuration information of a channel to which the pre-stored material belongs; step 403: filling a non-detection area in a pre-stored material picture to be black; step 404: generating a pre-stored hash value of a pre-stored material picture; step 405: starting a picture receiving thread to receive a pre-stored hash value, and executing step 407; step 406: acquiring a program detection picture, and executing step 407; step 407: distributing the pre-stored hash value to the comparison processing thread with the least task processing quantity; step 408: determining a state detection result of a program to which the program detection picture belongs; step 409: and reporting the state detection result.
According to the program playing state detection method, program detection pictures are obtained from video stream data; determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs; filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture; calculating to obtain a comparison hash value of the program detection picture by using a hash algorithm; comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs, and determining a comparison result of the program detection picture; determining a warning result of the program detection picture based on warning configuration information in the preset configuration information; and determining a state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result. Therefore, the program detection picture and the pre-stored material picture are compared to determine the comparison result, and the warning result of the program detection picture can be determined, so that the play state of the program which the program detection picture belongs to is doubly verified based on the comparison result and the warning result, and the accuracy of the state detection result of the program which the program detection picture belongs to can be improved.
Referring to fig. 5 and fig. 6, fig. 5 is a schematic structural diagram of a system for detecting a playing state of a program according to an embodiment of the present application, and fig. 6 is a schematic structural diagram of a second system for detecting a playing state of a program according to an embodiment of the present application. As shown in fig. 5, the detection system 500 includes:
a multi-picture detection module 510 for acquiring a program detection picture from video stream data;
an image processing module 520, configured to determine a comparison hash value of the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
the off-air detection module 530 is configured to compare the comparison hash value of the program detection picture with a pre-stored hash value of a pre-stored material picture of a channel to which the program detection picture belongs, and determine a comparison result of the program detection picture;
an alarm module 540, configured to determine an alarm result of the program detection picture based on alarm configuration information in the preset configuration information;
and the off-air state comprehensive judging module 550 is configured to determine a state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result.
Further, as shown in fig. 6, the detection system 500 further includes a reporting module 560, where the reporting module 560 is configured to:
and reporting the state detection result so that a monitoring person can adjust the playing content of the channel to which the program detection picture belongs based on the state detection result.
Further, as shown in fig. 6, the detection system 500 further includes a thread allocation module 570, where the thread allocation module 570 is configured to:
acquiring the task processing quantity of each comparison processing thread;
and distributing the program detection picture to a comparison processing thread with the least task processing quantity so as to calculate a comparison hash value of the program detection picture.
Further, when the image processing module 520 is configured to determine the comparison hash value of the program detection picture based on the material configuration information in the preset configuration information, the image processing module 520 is configured to:
determining a target detection area from the program detection picture based on material configuration information in the preset configuration information;
filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture;
and calculating the target detection picture by using a hash algorithm to obtain a comparison hash value of the program detection picture.
Further, when the comprehensive determination module 550 for determining the status detection result of the program to which the program detection picture belongs based on the comparison result and the alert result, the comprehensive determination module 550 for the status of the program is configured to:
when the comparison result indicates that the program of the program detection picture is in a non-stop state and the warning result indicates that no warning information exists in the program detection picture, determining that the state detection result of the program detection picture is normal play;
when the comparison result indicates that the program of the program detection picture is in a stop state and/or the warning result indicates that warning information exists in the program detection picture, the playing state of the program detection picture is secondarily judged, and the state detection result of the program detection picture is determined.
Further, when the comprehensive determining module 550 is configured to determine the play status of the program to which the program detection picture belongs, and determine the status detection result of the program to which the program detection picture belongs, the comprehensive determining module 550 is configured to:
Judging whether the acquisition time of the program detection picture is enabled in a fixed period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining whether the acquisition time is in a fixed off-air period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping the broadcasting.
The embodiment of the application provides a program play state detection system, which acquires a program detection picture from video stream data; determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs; filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture; calculating to obtain a comparison hash value of the program detection picture by using a hash algorithm; comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs, and determining a comparison result of the program detection picture; determining a warning result of the program detection picture based on warning configuration information in the preset configuration information; and determining a state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result. Therefore, the program detection picture and the pre-stored material picture are compared to determine the comparison result, and the warning result of the program detection picture can be determined, so that the play state of the program which the program detection picture belongs to is doubly verified based on the comparison result and the warning result, and the accuracy of the state detection result of the program which the program detection picture belongs to can be improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device 700 includes a processor 710, a memory 720, and a bus 730.
The memory 720 stores machine-readable instructions executable by the processor 710, when the electronic device 700 is running, the processor 710 communicates with the memory 720 through the bus 730, and when the machine-readable instructions are executed by the processor 710, the steps of the method for detecting a playing state of a program in the method embodiment shown in fig. 1 can be executed, and detailed implementation manners of the method embodiment will not be repeated herein.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and the computer program may execute the steps of the method for detecting a program playing state in the method embodiment shown in fig. 1 when the computer program is executed by a processor, and the specific implementation manner may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A method for detecting a program playing state, the method comprising:
acquiring a program detection picture from video stream data;
determining a comparison hash value of the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs, and determining a comparison result of the program detection picture;
determining a warning result of the program detection picture based on warning configuration information in the preset configuration information;
determining a state detection result of a program to which the program detection picture belongs based on the comparison result and the warning result;
the determining, based on the comparison result and the alert result, a status detection result of a program to which the program detection picture belongs includes:
when the comparison result indicates that the program of the program detection picture is in a non-stop state and the warning result indicates that no warning information exists in the program detection picture, determining that the state detection result of the program detection picture is normal play;
When the comparison result indicates that the program of the program detection picture is in a stop state and/or the warning result indicates that warning information exists in the program detection picture, the playing state of the program detection picture is secondarily judged, and the state detection result of the program detection picture is determined.
2. The method according to claim 1, wherein the determining the comparison hash value of the program detection picture based on the material configuration information in the preset configuration information of the channel to which the program detection picture belongs includes:
determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture;
and calculating the target detection picture by using a hash algorithm to obtain a comparison hash value of the program detection picture.
3. The detecting method according to claim 1, wherein the performing the secondary determination on the play state of the program to which the program detection screen belongs, determining the state detection result of the program to which the program detection screen belongs, includes:
Judging whether the acquisition time of the program detection picture is enabled in a fixed period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining whether the acquisition time is in a fixed off-air period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping the broadcasting.
4. The detection method according to claim 1, wherein after the determination of the status detection result of the program to which the program detection screen belongs based on the comparison result and the warning result, the detection method further comprises:
and reporting the state detection result so that a monitoring person can adjust the playing content of the channel to which the program detection picture belongs based on the state detection result.
5. The detecting method according to claim 1, wherein after the program detection picture is acquired from the video stream data, the detecting method further comprises:
acquiring the task processing quantity of each comparison processing thread;
and distributing the program detection picture to a comparison processing thread with the least task processing quantity so as to calculate a comparison hash value of the program detection picture.
6. A system for detecting a program play status, the system comprising:
the multi-picture detection module is used for acquiring a program detection picture from video stream data;
the image processing module is used for determining a comparison hash value of the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
the program detection module is used for comparing the comparison hash value of the program detection picture with the pre-stored hash value of the pre-stored material picture of the channel to which the program detection picture belongs to and determining the comparison result of the program detection picture;
the alarm module is used for determining an alarm result of the program detection picture based on alarm configuration information in the preset configuration information;
the comprehensive judgment module of the off-air state is used for determining a state detection result of a program to which the program detection picture belongs based on the comparison result and the warning result;
the comprehensive judgment module of the off-air state is used for determining the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result, and is used for:
When the comparison result indicates that the program of the program detection picture is in a non-stop state and the warning result indicates that no warning information exists in the program detection picture, determining that the state detection result of the program detection picture is normal play;
when the comparison result indicates that the program of the program detection picture is in a stop state and/or the warning result indicates that warning information exists in the program detection picture, the playing state of the program detection picture is secondarily judged, and the state detection result of the program detection picture is determined.
7. The detecting system according to claim 6, wherein the image processing module, when determining the aligned hash value of the program detection picture based on the material configuration information in the preset configuration information of the channel to which the program detection picture belongs, is configured to:
determining a target detection area from the program detection picture based on material configuration information in preset configuration information of a channel to which the program detection picture belongs;
filling the areas except the target detection areas in the program detection picture with black to obtain a target detection picture;
And calculating the target detection picture by using a hash algorithm to obtain a comparison hash value of the program detection picture.
8. The detecting system according to claim 6, wherein the off-air status comprehensive judging module is configured to, when determining a status detection result of the program to which the program detection screen belongs, perform a secondary judgment on a play status of the program to which the program detection screen belongs:
judging whether the acquisition time of the program detection picture is enabled in a fixed period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining whether the acquisition time is in a fixed off-air period;
if yes, determining that the state detection result of the program to which the program detection picture belongs is suspected off-air;
if not, determining that the state detection result of the program to which the program detection picture belongs is confirmation of stopping the broadcasting.
CN202110608776.1A 2021-06-01 2021-06-01 Method and system for detecting program playing state Active CN113313036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110608776.1A CN113313036B (en) 2021-06-01 2021-06-01 Method and system for detecting program playing state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110608776.1A CN113313036B (en) 2021-06-01 2021-06-01 Method and system for detecting program playing state

Publications (2)

Publication Number Publication Date
CN113313036A CN113313036A (en) 2021-08-27
CN113313036B true CN113313036B (en) 2024-03-22

Family

ID=77376925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110608776.1A Active CN113313036B (en) 2021-06-01 2021-06-01 Method and system for detecting program playing state

Country Status (1)

Country Link
CN (1) CN113313036B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339416A (en) * 2021-12-29 2022-04-12 神州数码系统集成服务有限公司 Method, system, equipment, medium and application for monitoring far-end large-screen playing content
CN115460438A (en) * 2022-09-22 2022-12-09 西安诺瓦星云科技股份有限公司 Video pushing method and device, nonvolatile storage medium and electronic equipment
CN116866666B (en) * 2023-09-05 2023-12-08 天津市北海通信技术有限公司 Video stream picture processing method and device in rail transit environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990042287A (en) * 1997-11-26 1999-06-15 전주범 Improved Display Method of Channel Information in Satellite Broadcasting Receivers
CN109005457A (en) * 2018-09-19 2018-12-14 腾讯科技(北京)有限公司 Blank screen detection method, device, computer equipment and storage medium
CN110267032A (en) * 2019-06-13 2019-09-20 上海佰贝科技发展股份有限公司 A kind of black picture abnormality real-time quantization assessment system of broadcast items and method
CN111712869A (en) * 2018-09-25 2020-09-25 西安诺瓦星云科技股份有限公司 Display device fault detection method, device, system and computer readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990042287A (en) * 1997-11-26 1999-06-15 전주범 Improved Display Method of Channel Information in Satellite Broadcasting Receivers
CN109005457A (en) * 2018-09-19 2018-12-14 腾讯科技(北京)有限公司 Blank screen detection method, device, computer equipment and storage medium
CN111712869A (en) * 2018-09-25 2020-09-25 西安诺瓦星云科技股份有限公司 Display device fault detection method, device, system and computer readable medium
CN110267032A (en) * 2019-06-13 2019-09-20 上海佰贝科技发展股份有限公司 A kind of black picture abnormality real-time quantization assessment system of broadcast items and method

Also Published As

Publication number Publication date
CN113313036A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN113313036B (en) Method and system for detecting program playing state
US11432037B2 (en) Method and system for detecting and responding to changing of media channel
CN111049705B (en) Method and device for monitoring distributed storage system
CN110601900B (en) Network fault early warning method and device
CN108737132B (en) Alarm information processing method and device
CN106028147A (en) Video signal monitoring method and video signal monitoring system
CN109726062B (en) Off-line method of proxy server and control server
CN109992473A (en) Monitoring method, device, equipment and the storage medium of application system
CN111782462A (en) Alarm method and device and electronic equipment
CN108021490B (en) Hard disk fault domain detection method and device and computer readable storage medium
CN110389715B (en) Data storage method, storage server and cloud storage system
CN115080356A (en) Abnormity warning method and device
CN109510730B (en) Distributed system, monitoring method and device thereof, electronic equipment and storage medium
CN105490835A (en) Information monitoring method and device
US9727404B2 (en) System and method for remote maintenance of user units
US11128643B2 (en) Activity detection based on time difference metrics
CN111159139B (en) Data processing method and device, storage medium and monitoring equipment
CN111106962B (en) Streaming media fault monitoring method and device, electronic equipment and storage medium
CN114610560B (en) System abnormality monitoring method, device and storage medium
CN110267032B (en) Real-time quantitative evaluation system and method for abnormal state of black picture of broadcast program
CN110413472B (en) Cluster management method and device
CN108206936B (en) Monitoring method and device
JP4396509B2 (en) Memory error management system
CN109040826B (en) TS code stream storage method, device and system
CN108377411A (en) The method of transmission media data, the method and device for showing media data

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