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

Method and system for detecting program playing state Download PDF

Info

Publication number
CN113313036A
CN113313036A CN202110608776.1A CN202110608776A CN113313036A CN 113313036 A CN113313036 A CN 113313036A CN 202110608776 A CN202110608776 A CN 202110608776A CN 113313036 A CN113313036 A CN 113313036A
Authority
CN
China
Prior art keywords
program
detection picture
detection
result
picture
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.)
Granted
Application number
CN202110608776.1A
Other languages
Chinese (zh)
Other versions
CN113313036B (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

Images

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 detection method and a detection system for a program playing state, which are characterized in that a target detection area to be compared is determined based on material configuration information in preset configuration information of a channel to which a program detection picture belongs, and areas except the target detection area in the program detection picture are filled; calculating 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 prestored hash value of the prestored material picture of the channel to which the program detection picture belongs, and determining the comparison result of the program detection picture; determining an alarm result of the program detection picture based on alarm configuration information in preset configuration information; and determining the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result. Therefore, the playing state of the program to which the program detection picture belongs can be verified doubly based on the comparison result and the warning result, and the accuracy of the state detection result of the program to which the program detection picture belongs is improved.

Description

Method and system for detecting program playing state
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and a system for detecting a program playing status.
Background
In order to ensure the normal broadcasting of the television programs, the broadcasting mechanism generally monitors the video playing picture in the video playing process, and monitors and alarms when the playing state of the television programs is in the abnormal broadcasting states of black screen, static picture, no accompanying sound and the like. Due to the requirements of equipment maintenance, updating and the like, a part of television programs stop broadcasting formal programs in a specific time period, and a situation that a stop-broadcasting picture and background music are replaced exists, however, the stop-broadcasting picture of the part of programs has moving areas such as a walking clock, a small-window video and the like, and the start-stop moment of the stop-broadcasting is not completely fixed, so that alarm evasion cannot be performed in a mode of presetting a program running diagram, and further, when the situation occurs in the programs, a large amount of invalid alarms are often generated, and great troubles are caused to operators on duty.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and a system for detecting a playing status of a program, which compare a program detection picture with a pre-stored material picture, and determine a warning result of the program detection picture, so as to perform double verification on the playing status of the program to which the program detection picture belongs based on the comparison result and the warning result, thereby improving accuracy of a status 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 a prestored hash value of a prestored material picture of a channel to which the program detection picture belongs to determine a comparison result of the program detection picture;
determining an alarm result of the program detection picture based on alarm configuration information in the preset configuration information;
and 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, 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture;
and calculating the target detection picture by utilizing a hash algorithm to obtain a comparison hash value of the program detection picture.
Further, the determining, based on the comparison result and the warning result, a state detection result of the program to which the program detection picture belongs includes:
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 no warning information exists in the program detection picture, determining that the state detection result of the program to which the program detection picture belongs is normally played;
and when the comparison result indicates that the program to which the program detection picture belongs is in a stop-broadcasting state and/or the warning result indicates that warning information exists in the program detection picture, performing secondary judgment 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.
Further, the performing the secondary determination on the playing status of the program to which the program detection picture belongs to determine the status 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 at a fixed time interval;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining whether the acquisition time is in a fixed off-air time period;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing.
Further, after determining a status detection result of the program to which the program detection screen belongs based on the comparison result and the alert 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 acquiring the program detection picture 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.
An embodiment of the present application further provides a system for detecting a playing status of a program, where the system includes:
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 off-air detection module is used for comparing the comparison hash value of the program detection picture with the prestored hash value of the prestored material picture of the channel to which the program detection picture belongs to determine the comparison result of the program detection picture;
the warning module is used for determining a warning result of the program detection picture based on warning configuration information in the preset configuration information;
and the off-air state comprehensive judgment module 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 hash value for comparison 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture;
and calculating the target detection picture by utilizing a hash algorithm to obtain a comparison hash value of the program detection picture.
Further, when the off-air state comprehensive judgment module is configured to determine the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result, the off-air state comprehensive judgment module is configured to:
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 no warning information exists in the program detection picture, determining that the state detection result of the program to which the program detection picture belongs is normally played;
and when the comparison result indicates that the program to which the program detection picture belongs is in a stop-broadcasting state and/or the warning result indicates that warning information exists in the program detection picture, performing secondary judgment 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.
Further, when the off-air state comprehensive judgment module is configured to perform secondary judgment on the playing state of the program to which the program detection picture belongs, and determine the state detection result of the program to which the program detection picture belongs, the off-air state comprehensive judgment module is configured to:
judging whether the acquisition time of the program detection picture is enabled at a fixed time interval;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining whether the acquisition time is in a fixed off-air time period;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing.
Further, the detection system further includes a reporting module, and the reporting module 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, the detection system further includes a thread allocation module, and 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 method and the system for detecting the playing state of the program, provided by the embodiment of the application, are used for acquiring 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture; calculating 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 a prestored hash value of a prestored material picture of a channel to which the program detection picture belongs to determine a comparison result of the program detection picture; determining an alarm result of the program detection picture based on alarm configuration information in the preset configuration information; and determining the 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 is compared with the prestored material picture to determine a comparison result, and meanwhile, the warning result of the program detection picture can be determined, and then the playing state of the program to which the program detection picture belongs is verified doubly based on the comparison result and the warning result, so that the accuracy of the state detection result of the program to which the program detection picture belongs can be improved.
In order to make the aforementioned 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 required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart of a method for detecting a playing status of a program according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a storage material library of channel preset configuration information according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a detection process of a status detection result according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating a status detection result reporting process according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a system for detecting a playing status 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 status 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
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
Research shows that in order to ensure normal broadcasting of television programs, a broadcasting mechanism generally monitors a video playing picture in the video playing process, and monitors and alarms when the playing state of the television programs is in abnormal broadcasting states such as black screen, static picture, no accompanying sound and the like. Due to the requirements of equipment maintenance, updating and the like, a part of television programs stop broadcasting formal programs in a specific time period, and a situation that a stop-broadcasting picture and background music are replaced exists, however, the stop-broadcasting picture of the part of programs has moving areas such as a walking clock, a small-window video and the like, and the start-stop moment of the stop-broadcasting is not completely fixed, so that alarm evasion cannot be performed in a mode of presetting a program running diagram, and further, when the situation occurs in the programs, a large amount of invalid alarms are often generated, and great troubles are caused to operators on duty.
Based on this, the embodiment of the present application provides a method for detecting a playing state of a program, which is helpful for improving the accuracy of a state detection result of a program to which a program detection picture belongs.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for detecting a program playing status according to an embodiment of the present application. As shown in fig. 1, a method for detecting a program playing status provided in an 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 a prestored hash value of a prestored material picture of a channel to which the program detection picture belongs to determine 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;
and S105, determining the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result.
As shown in fig. 2, fig. 2 is a schematic structural diagram 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 includes 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 include a management standard channel table, a management channel group, a channel name, a channel belonging mechanism, 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 alarm condition information for the channel, indicator threshold information for the channel, and the like. The pre-stored material picture refers to a preset off-air picture of the channel, namely a picture played in a preset off-air time period of the channel.
In step S101, a program detection picture of a program being played at the current time is acquired from video stream data at preset time intervals.
Further, in step S102, a comparison hash value of the program detection picture may be calculated by using an image perception algorithm (PHASH) according to the material configuration information in the acquired preset configuration information, so as to compare the comparison hash value with a pre-stored material picture in a subsequent process.
In order to relax the limitation on the resolution of the image, that is, the image resolution of the program detection picture is not mandatory to be consistent with the image resolution of the pre-stored material picture, in the present application, the program detection picture is processed based on the material configuration information, 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture; and calculating the target detection picture by utilizing a hash algorithm to obtain a comparison hash value of the program detection picture.
For a program detection picture, firstly, a target detection area which can be compared in the program detection picture is determined according to material configuration information, and characteristic information which can represent the broadcasting state of a 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 during image processing, the areas of the program detection screen other than the target detection area are filled with black, and the filled program detection screen is determined as the target detection screen; 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, it should be noted that the image sensing algorithm is only one method for calculating the comparison hash value of the program detection picture, and other hash algorithms may also be used for calculating the comparison hash value of the program detection picture, which is not 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.
Here, the comparison hash value of the program detection picture obtained by calculation may be a 64-bit numerical value, and the comparison hash value of the program detection picture is compared with the prestored hash value of the prestored material picture, specifically, the number of the same number of bits in the comparison hash value and the prestored 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 is, and when the number of the same digits reaches a preset number threshold value, the program detection picture is determined to be consistent with the pre-stored material picture; otherwise, determining 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-stop state.
The method comprises the steps that at least one pre-stored material picture is pre-stored in a channel to which a program detection picture belongs, when more than two pre-stored material pictures are pre-stored, a comparison hash value of the program detection picture is compared with a pre-stored hash value of each pre-stored material picture, and a comparison result of the program detection picture is determined; for example, when three pre-stored material pictures exist, the comparison hash value of the program detection picture is respectively compared with the pre-stored hash value of the first pre-stored material picture, the pre-stored hash value of the second pre-stored material picture and the pre-stored hash value of the third pre-stored material picture; 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 calculated through the following steps:
step 1: determining a material detection area which can be compared in the prestored material picture according to the material configuration information, wherein characteristic information which can represent the broadcasting state of the program to which the prestored material picture belongs is displayed in the material detection area which can be used for comparison under the common condition;
step 2: in order to reduce the data processing amount in the image processing process, filling the areas except the material detection area in the pre-stored material picture into black to obtain the filled pre-stored material picture;
and step 3: calculating the filled prestored material picture by utilizing a Hash algorithm to obtain a comparison Hash value of the prestored material picture; here, as an example, the filled pre-stored material picture may be calculated by using an image sensing algorithm, 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 also be used for calculating 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 warning configuration information in the preset configuration information, and whether the program to which the program detection picture belongs at the current time has warning information that satisfies the off-air warning condition is determined according to the picture data and the index data of the program detection picture, so as to obtain a warning result of the program detection picture.
Here, the off-air alert condition includes one or more of:
a. the program is interrupted and lasts for a specified threshold time;
b. video loss, lasting for a specified threshold time;
c. video decoding is abnormal and lasts for a specified threshold time;
d. an audio decoding anomaly persists for a specified threshold of time;
e. the program bandwidth is below the threshold rate and lasts for a specified threshold time.
Further, when the off-air warning condition of the program detection picture is determined, the warning result of the program detection picture is determined; specifically, when the program detection picture meets any one of the stop-off warning conditions, it is determined that warning information meeting the stop-off warning condition exists in the program detection picture.
In step S105, the playing status of the program to which the program detection screen belongs may be determined based on the obtained comparison result and the warning result, so as to more accurately determine the status detection result of the program to which the program detection screen belongs.
Here, the state detection result may include: any one of normal playing, suspected stop playing and stop playing confirmation.
In one possible implementation, step S105 includes: 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 no warning information exists in the program detection picture, determining that the program to which the program detection picture belongs is in a normal playing state; and when the comparison result indicates that the program to which the program detection picture belongs is in a non-playing state and the warning result indicates that warning information exists in the program detection picture, performing secondary judgment on the playing state of the program to which the program detection picture belongs, and determining a state detection result of the program to which the program detection picture belongs.
Here, when determining the state detection result of the program according to the program detection screen, the state detection result needs to be determined doubly by 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 the non-stop state and the warning result indicates that the warning information meeting the stop warning condition does not exist in the program detection picture, it is determined that the state detection result of the program to which the program detection picture belongs is normally played.
And when the comparison result indicates that the program to which the program detection picture belongs is in the off-air state and/or the warning result indicates that warning information meeting the off-air warning condition exists in the program detection picture, performing secondary judgment on the playing state of the program to which the program detection picture belongs, and further more accurately determining the state detection result of the program to which the program detection picture belongs.
In a possible implementation manner, the secondarily determining the playing status of the program to which the program detection picture belongs and determining the status 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 at a fixed time interval; if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting; if not, determining whether the acquisition time is in a fixed off-air time period; if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting; if not, determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing.
The fixed time period enables the preset time period, the fixed time period enables the representation of the preset time required 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 program playing states of all the channels can not be detected in a unified detection mode at the same time, so that the program playing state of each channel can be detected in a targeted manner by setting the fixed time period enables.
Judging whether the acquisition time of the program detection picture is enabled at a fixed time interval; if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting; and if not, further judging whether the acquisition time is in a fixed off-air time period.
The fixed off-air time period represents a program off-air time period preset by the channel, and the channel is in the equipment maintenance time in the time period, at the moment, no program is played, and a preset off-air picture is used for replacing the program off-air time 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 the fixed off-air time 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-air time period, the state detection result of the program to which the program detection picture belongs is determined to be suspected off-air; if not, determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing.
When the comparison result indicates that the program to which the program detection picture belongs is in the 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 to which the program detection picture belongs can be determined according to the comparison result, the state detection result of the program to which the program detection picture belongs is determined according to the warning result, and if the determined state detection results are inconsistent, the two state detection results are reported together.
When the comparison result indicates that the program to which the program detection picture belongs is in the non-off-air state, but the warning result indicates that warning information exists in the program detection picture, the state detection result of the program to which the program detection picture belongs can be determined according to the comparison result, the state detection result of the program to which the program detection picture belongs 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 view of a detection flow of a state detection result according to an embodiment of the present application. As shown in fig. 3, step 301: acquiring a program detection picture, and respectively executing the step 302 and the step 303; step 302: determining a comparison result of the program detection picture, and executing step 304; step 303: determining the warning result of the program detection picture, and executing step 305; step 304: judging whether the program of the program detection picture is in a stop-broadcasting state according to the comparison result, if not, executing step 306; if yes, go to step 307; step 305: determining whether the detection picture of the program has alarm information meeting the stop-off alarm condition according to the alarm result, if yes, 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 playing; step 307: judging whether the acquisition time of the program detection picture is enabled at a fixed time interval or not, if not, executing a 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 time 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 to stop broadcasting; step 310: determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing; step 311: and determining that the state detection result of the program to which the program detection picture belongs is normal playing.
In a 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 reporting the status detection result, it may be determined whether the status detection result of this time changes from the last status detection result of the channel to which the program detection screen belongs, and if so, the status detection result of this time is reported, so that the monitoring person adjusts the playing content of the channel to which the program detection screen belongs based on the status detection result of this time.
If the current state detection result is consistent with the last state detection result of the channel to which the program detection picture belongs, the current state detection result is not reported so as to avoid increasing unnecessary workload of monitoring personnel by repeated reporting.
In a 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 acquired 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 the comparison processing thread with the least task processing quantity so as to calculate the comparison hash value of the program detection picture. And then, the tasks to be processed are more reasonably distributed for each comparison processing thread, and the utilization rate of the comparison processing threads is greatly improved.
As shown in fig. 4, fig. 4 is a schematic diagram of a status detection result reporting process according to an 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 the pre-stored material picture into 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 a pre-stored hash value to a comparison processing thread with the least task processing quantity; step 408: determining a state detection result of a program to which a program detection picture belongs; step 409: and reporting the state detection result.
The method for detecting the playing state of the program, provided by the embodiment of the application, comprises the steps of obtaining 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture; calculating 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 a prestored hash value of a prestored material picture of a channel to which the program detection picture belongs to determine a comparison result of the program detection picture; determining an alarm result of the program detection picture based on alarm configuration information in the preset configuration information; and determining the 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 is compared with the prestored material picture to determine a comparison result, and meanwhile, the warning result of the program detection picture can be determined, and then the playing state of the program to which the program detection picture belongs is verified doubly based on the comparison result and the warning result, so that the accuracy of the state detection result of the program to which the program detection picture belongs can be improved.
Referring to fig. 5 and fig. 6, fig. 5 is a first schematic structural diagram of a system for detecting a program playing status according to an embodiment of the present application, and fig. 6 is a second schematic structural diagram of the system for detecting a program playing status according to the embodiment of the present application. As shown in fig. 5, the detection system 500 includes:
a multi-picture detection module 510, configured to obtain a program detection picture from video stream data;
the image processing module 520 is 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 an off-air state comprehensive judgment module 550, 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture;
and calculating the target detection picture by utilizing a hash algorithm to obtain a comparison hash value of the program detection picture.
Further, when the off-air state comprehensive judgment module 550 is configured to determine the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result, the off-air state comprehensive judgment module 550 is configured to:
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 no warning information exists in the program detection picture, determining that the state detection result of the program to which the program detection picture belongs is normally played;
and when the comparison result indicates that the program to which the program detection picture belongs is in a stop-broadcasting state and/or the warning result indicates that warning information exists in the program detection picture, performing secondary judgment 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.
Further, when the general determination module 550 for the off-air state is configured to perform secondary determination on the playing state of the program to which the program detection picture belongs, and determine the state detection result of the program to which the program detection picture belongs, the general determination module 550 for the off-air state is configured to:
judging whether the acquisition time of the program detection picture is enabled at a fixed time interval;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining whether the acquisition time is in a fixed off-air time period;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing.
The detection system for the program playing state provided by the embodiment of the application 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture; calculating 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 a prestored hash value of a prestored material picture of a channel to which the program detection picture belongs to determine a comparison result of the program detection picture; determining an alarm result of the program detection picture based on alarm configuration information in the preset configuration information; and determining the 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 is compared with the prestored material picture to determine a comparison result, and meanwhile, the warning result of the program detection picture can be determined, and then the playing state of the program to which the program detection picture belongs is verified doubly based on the comparison result and the warning result, so that the accuracy of the state detection result of the program to which the program detection picture belongs 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 disclosure. 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 runs, 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 program playing state in the method embodiment shown in fig. 1 may be performed.
An 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 when the computer program is executed by a processor, the steps of the method for detecting a program playing state in the method embodiment shown in fig. 1 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into 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 or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by 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 (10)

1. A method for detecting a playing state of a program, 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 a prestored hash value of a prestored material picture of a channel to which the program detection picture belongs to determine a comparison result of the program detection picture;
determining an alarm result of the program detection picture based on alarm configuration information in the preset configuration information;
and determining the state detection result of the program to which the program detection picture belongs based on the comparison result and the warning result.
2. The detecting method according to claim 1, wherein the determining the 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 comprises:
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 areas except the target detection area in the program detection picture into black to obtain a target detection picture;
and calculating the target detection picture by utilizing a hash algorithm to obtain a comparison hash value of the program detection picture.
3. The detecting method according to claim 1, wherein the determining the status detecting result of the program to which the program detecting screen belongs based on the comparison result and the warning result comprises:
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 no warning information exists in the program detection picture, determining that the state detection result of the program to which the program detection picture belongs is normally played;
and when the comparison result indicates that the program to which the program detection picture belongs is in a stop-broadcasting state and/or the warning result indicates that warning information exists in the program detection picture, performing secondary judgment 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.
4. The detecting method according to claim 3, wherein said determining the playing status of the program to which the program detecting picture belongs twice and determining the status detecting result of the program to which the program detecting picture belongs comprises:
judging whether the acquisition time of the program detection picture is enabled at a fixed time interval;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining whether the acquisition time is in a fixed off-air time period;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing.
5. The detecting method according to claim 1, wherein after determining the status detecting result of the program to which the program detecting screen belongs based on the comparison result and the warning result, the detecting 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.
6. The detection method according to claim 1, wherein after said acquiring the program detection picture from the video stream data, the detection 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.
7. A system for detecting a playing status of a program, 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 off-air detection module is used for comparing the comparison hash value of the program detection picture with the prestored hash value of the prestored material picture of the channel to which the program detection picture belongs to determine the comparison result of the program detection picture;
the warning module is used for determining a warning result of the program detection picture based on warning configuration information in the preset configuration information;
and the off-air state comprehensive judgment module 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.
8. The detection system according to claim 7, wherein when the image processing module is configured to determine the 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 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 areas except the target detection area in the program detection picture into black to obtain a target detection picture;
and calculating the target detection picture by utilizing a hash algorithm to obtain a comparison hash value of the program detection picture.
9. The detecting system according to claim 7, wherein when the off-air state comprehensive judging module is configured to determine the state detecting result of the program to which the program detecting screen belongs based on the comparison result and the warning result, the off-air state comprehensive judging module is configured to:
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 no warning information exists in the program detection picture, determining that the state detection result of the program to which the program detection picture belongs is normally played;
and when the comparison result indicates that the program to which the program detection picture belongs is in a stop-broadcasting state and/or the warning result indicates that warning information exists in the program detection picture, performing secondary judgment 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.
10. The detecting system according to claim 9, wherein the stop state comprehensive judging module, when being configured to secondarily judge the playing state of the program to which the program detecting screen belongs and determine the state detecting result of the program to which the program detecting screen belongs, is configured to:
judging whether the acquisition time of the program detection picture is enabled at a fixed time interval;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining whether the acquisition time is in a fixed off-air time period;
if yes, determining that the state detection result of the program detection picture is suspected to stop broadcasting;
if not, determining that the state detection result of the program to which the program detection picture belongs is determined to stop playing.
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 true CN113313036A (en) 2021-08-27
CN113313036B 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)

Cited By (4)

* 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
CN116866666A (en) * 2023-09-05 2023-10-10 天津市北海通信技术有限公司 Video stream picture processing method and device in rail transit environment
CN115460438B (en) * 2022-09-22 2024-05-10 西安诺瓦星云科技股份有限公司 Video pushing method and device, nonvolatile storage medium and electronic equipment

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

Cited By (5)

* 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
CN115460438B (en) * 2022-09-22 2024-05-10 西安诺瓦星云科技股份有限公司 Video pushing method and device, nonvolatile storage medium and electronic equipment
CN116866666A (en) * 2023-09-05 2023-10-10 天津市北海通信技术有限公司 Video stream picture processing method and device in rail transit environment
CN116866666B (en) * 2023-09-05 2023-12-08 天津市北海通信技术有限公司 Video stream picture processing method and device in rail transit environment

Also Published As

Publication number Publication date
CN113313036B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN113313036A (en) Method and system for detecting program playing state
CN111049705B (en) Method and device for monitoring distributed storage system
CN110601900B (en) Network fault early warning method and device
US9176798B2 (en) Computer-readable recording medium, failure prediction device and applicability determination method
CN109726312B (en) Regular expression detection method, device, equipment and storage medium
CN106782236B (en) Display screen device abnormal playing alarm method and device and display screen device
US20130166745A1 (en) Network event management
CN111104283B (en) Fault detection method, device, equipment and medium of distributed storage system
CN108021490B (en) Hard disk fault domain detection method and device and computer readable storage medium
CN109726062B (en) Off-line method of proxy server and control server
US10664335B2 (en) System and method for maintaining the health of a machine
US20190303231A1 (en) Log analysis method, system, and program
CN110674149B (en) Service data processing method and device, computer equipment and storage medium
JP6718367B2 (en) Judgment system, judgment method, and program
WO2010113212A1 (en) Memory leak monitoring device and method
JP6002856B2 (en) Monitoring system and monitoring method
WO2017094263A1 (en) Log analysis system, method, and program
CN110381152B (en) Statistical method and statistical device for automatic playing amount of pushed resources and electronic equipment
CN114610560B (en) System abnormality monitoring method, device and storage medium
CN113835961A (en) Alarm information monitoring method, device, server and storage medium
CN110413472B (en) Cluster management method and device
CN111708676A (en) Example cluster monitoring method and device and server
CN116996243A (en) Abnormality detection method, abnormality detection device, electronic device, and storage medium
CN111257683B (en) Prompting method and device for electrostatic discharge test
CN112699015B (en) Log output method, device, server and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant