Advertisement log monitoring method, device and equipment and storage medium
By setting up message middleware on the electronic advertising machine and using front-facing cameras to detect crowd attention, combined with real-time subscription of monitoring information through the WeChat applet, the existing problems of low efficiency and high cost of advertising monitoring are solved, and real-time monitoring of advertising playback is achieved. and accurate assessment.
Patent Information
- Application Number
- CN202411204172.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-08-30
AI Technical Summary
Existing advertising monitoring methods mainly rely on manual offline monitoring, which is inefficient and costly. It cannot monitor advertising playback in real time and cannot cover all delivery scenarios.
By setting up message middleware on the electronic advertising machine and using the message topic subscription mechanism, it is possible to regularly detect the advertising playback status and send logs. Combined with the front camera crowd attention detection, the backend server analyzes and scores the advertising playback effect, and WeChat applet real-time subscription Monitor broadcast information.
It realizes low-intrusive advertising monitoring without affecting the advertising playback logic, improves monitoring efficiency and accuracy, and provides real-time monitoring and intuitiveness of advertising playback effects.
Smart Images

Figure CN118735601A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of advertisement monitoring, and in particular to an advertisement log monitoring method, device, equipment and storage medium. Background Art
[0002] With the development of Internet technology, more and more advertisers are promoting their products through electronic advertising. This brings about a demand from advertisers, that is, how to determine whether the media operator has placed advertisements as required and whether the frequency of placement is sufficient. This monitoring process is currently mainly carried out manually. That is, advertisers and media operators themselves or through third-party monitoring platforms, use mobile phones and other digital cameras to go to the advertising site to take photos, including the shooting date and the content of the advertisements that have been placed. Usually, they also bring newspapers published on that day, tickets and other dated objects to take photos as monitoring proof.
[0003] This manual offline monitoring method requires a huge operating cost and is inefficient. In addition, offline monitoring is usually conducted by random sampling and cannot cover all delivery scenarios. In particular, offline monitoring requires personnel to arrive at the scene and wait for the corresponding advertisement to be rotated before shooting, which takes a long time. Advertisers cannot see the current advertising playback status of the advertising machines within the delivery range in real time or anytime and anywhere. Summary of the invention
[0004] Based on the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide an advertisement log monitoring method, device, equipment and storage medium to solve the above-mentioned technical problems.
[0005] To achieve the above object, the present invention provides the following technical solution: an advertisement log monitoring method, applied to an electronic advertisement machine, wherein the background server connected to the electronic advertisement machine is provided with a message middleware, a message topic Topic is created on the message middleware, and the message topic Topic is used for the background server to subscribe to the playback log message of the electronic advertisement machine, comprising: S1: When the electronic advertising machine starts playing an advertisement, it sends a start advertisement log to the message topic Topic. The start advertisement log includes the device unique code SID, the current advertisement unique code GID, the play time, and the estimated play time of the advertisement. S2: The electronic advertising machine starts the timing detection task, and regularly detects the playing status of the electronic advertising machine, including the device unique code SID, the current playing advertisement unique code GID, the detection time, the current playing advertisement playing time, the current playing advertisement remaining playing time and the estimated playing time of the advertisement. The current running interface of the electronic advertising machine is captured to form a picture P, and combined with the crowd attention detection score of the front camera of the electronic advertising machine, an advertisement timing detection log is formed and sent to the message topic Topic; S3: The backend server pre-generates the advertising schedules that are expected to be played by all electronic advertising machines on the current date according to the program change records of the electronic advertising machine. If there is no program change record for the electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The backend server uses the power on / off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program. If there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on / off time interval of the electronic advertising machine, the electronic advertising machine needs to divide the power on / off time interval of the electronic advertising machine into multiple time periods according to the program change record time, and there is only one program in each time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program. S4: The backend server subscribes to the message topic Topic. After receiving the start play log, the backend server queries the expected advertisement schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and the play time of the advertisement to be played in the start play log to see if it complies with the pre-generated plan. If not, it is marked as an error play record; if it complies, the advertisement play effect detection task is started. The advertisement play effect detection task sets an expiration time, which is equal to the expected play time of the advertisement, and waits for the advertisement timing detection log to perform the playback effect detection; S5: When the advertisement timing detection log arrives, determine whether there is an advertisement playing effect detection task for the corresponding electronic advertising machine. If not, discard the timing detection log. If yes, take out the current running interface in the timing detection log information and take out the picture P formed by screenshot. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as picture Y according to the advertisement unique code GID and the advertisement playing time in the timing detection log information. Perform a comprehensive comparison of the structural similarity and color similarity of picture P and picture Y to obtain the picture similarity value. If the picture similarity value meets the similarity threshold T1, record the timing detection log information. If not, it is regarded as an erroneous playback and discard the timing detection log. If the remaining playback time of the advertisement recorded in the timing detection log information is less than the timing detection time interval of the timing detection task, it is regarded as the end of the advertisement playing effect detection task. S6: If, after the advertisement playing effect detection task is completed, the advertisement playing effect detection task does not record any timing detection log information, it is determined that the electronic advertising machine does not effectively play the advertisement in the advertisement playing effect detection task, which is counted as invalid playback, and the playback effect is 0 points; if the advertisement playing effect detection task records timing detection log information, it is determined whether the last timing detection log information has exceeded 2 / 3 of the expected playback time of the advertisement; if so, the advertisement in the task is effectively played, and the playback effect score when playing the advertisement is further calculated; if the advertisement has not exceeded 2 / 3 of the expected playback time of the advertisement, it is recorded as invalid playback of the advertisement in the task, and the playback effect is 0 points; S7: When the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received is the start of the advertisement playing log, the corresponding advertisement information to be played is updated for display, and the corresponding first screen of the advertisement unique code GID to be played is called out, and the estimated playing time of the advertisement is used as the remaining playing time for countdown; if the received is the advertisement timing detection log, the current playing advertisement unique code GID is taken out, if the current playing advertisement unique code GID is inconsistent with the current playing advertisement unique code cached by the WeChat applet, the corresponding advertisement information is requested to be displayed according to the advertisement unique code GID in the advertisement timing detection log, and the estimated screen of the corresponding advertisement playing time is requested to be displayed, and the remaining playing time of the advertisement in the advertisement timing detection log is used as the remaining seconds of the countdown; if the current playing advertisement unique code GID is consistent with the current playing advertisement unique code cached by the WeChat applet, the estimated screen of the corresponding advertisement playing time is directly requested to be displayed, and the remaining playing time of the advertisement is used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the advertisement playing status of the electronic advertising machine in real time.
[0006] The present invention is further configured that the logic for obtaining the crowd attention detection score of the front camera of the electronic advertising machine specifically includes: S21: The electronic advertising machine performs HOG pedestrian detection on the image of the front camera. When the timed detection task is triggered, the number of pedestrians in front of the front camera is counted, which is recorded as num; S22: performing face recognition detection on the image of the front camera at the same time to obtain the number of faces in the image and the posture information of each face; S23: If the position of the recognized face is not within the detected pedestrian area, it is regarded as a false face and is removed; S24: When the face posture information satisfies the formula group: , , When , it is recorded as a face effective attention, where Indicates the angle at which the face rotates left and right. Indicates the up and down pitch angle of the face. Indicates the horizontal rotation angle of the face; S25: The total number of effective face attention is recorded as Focus, the total number of ineffective face attention is recorded as NonFocus, and the final result of the crowd attention detection score of the front camera of the electronic advertising machine is recorded as FScore. The calculation formula of the crowd attention detection score of the front camera of the electronic advertising machine is: .
[0007] The present invention is further configured to generate a schedule of advertisements that are expected to be played by the electronic advertising machine according to the program list content, specifically including: S31: Assume that there are n advertisements in the program list corresponding to a certain time period Need to be played in turn, the number of seconds required for each advertisement to be played corresponds to the set The starting time of the time period calculated from 0:00:00 on the same day is The end time of the time period calculated from 0:00:00 on the day is ; S32: Assume that the total number of seconds required to play all advertisements in the program is , the calculation formula is: ; S33: Assume that the advertisement to be played at the start time of the time period is the temp-th advertisement, then: ; S34: Advertisement list according to program content , starting from the tempth ad, the ads are played in turn, and the number of seconds required for each ad to play is set Arrange a specific advertising schedule to be played. The start time of the advertising schedule is defined as , the first ad to be played in the ad schedule is , for the start time of the advertising schedule , there is the following formula: .
[0008] The present invention is further configured to perform a comprehensive comparison of structural similarity and color similarity on the image P and the image Y to obtain an image similarity value, specifically including: S51: Grayscale the images P and Y respectively to obtain grayscale images and pictures ; S52: Grayscale image and pictures Perform SSIM structural similarity calculation to obtain the structural similarity score ; S53: Perform color space conversion on the images P and Y respectively, from the RGB color space to the HSV color space, and calculate the average color parameter of all pixels of the image P in the HSV color space to obtain the average hue. , average saturation and average brightness , calculate the average color parameter of all pixels in the image Y in the HSV color space to get the average hue , average saturation and average brightness ; S54: Calculate the vector of the image P in the HSV color space ( , , ) and the image Y vector in HSV color space ( , , ) ; S55. Final similarity value result of picture P and picture Y The calculation formula is: .
[0009] The present invention is further configured to further calculate the playing effect score when playing the advertisement, specifically including: Assume that the advertising playback effect detection task records a total of m timed detection log information, where the playback effect score of each timed detection log is defined as , the detection time interval of the detection log is defined as Interval, and the playing time of the current advertisement in each timed detection log is defined as , the estimated duration of the ad is defined as The crowd attention detection result of the front camera of the electronic advertising machine corresponding to the timing detection log is defined as , there is the following formula: ; The total score of the playback effect of all the timed detection log information in the advertising playback effect detection task is: .
[0010] The present invention also provides an advertisement log monitoring device, the device comprising: Sending module: When the electronic advertising machine starts playing an advertisement, it sends the start-playing advertisement log to the message topic Topic. The start-playing advertisement log includes the device unique code SID, the current playing advertisement unique code GID, the playing time, and the estimated playing time of the advertisement. Detection module: The electronic advertising machine starts the timing detection task, and regularly detects the playing status of the electronic advertising machine, including the device unique code SID, the current playing advertisement unique code GID, the detection time, the current playing advertisement playing time, the current playing advertisement remaining playing time and the estimated playing time of the advertisement. The current running interface of the electronic advertising machine is captured to form a picture P, and combined with the crowd attention detection score of the front camera of the electronic advertising machine, an advertisement timing detection log is formed and sent to the message topic Topic; Generation module: the backend server pre-generates the advertising schedules that are expected to be played by all electronic advertising machines on the current date according to the program change records of the electronic advertising machine. If there is no program change record for the electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The backend server uses the power on and off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program list. If there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on and off time interval of the electronic advertising machine, the electronic advertising machine needs to divide the power on and off time interval of the electronic advertising machine into multiple time periods according to the program change record time. There is only one program in each time period, and the advertising schedule that is expected to be played by the electronic advertising machine is generated according to the content of the program list. Query module: The backend server subscribes to the message topic Topic. When receiving the start play log, it queries the expected advertising schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and the play time of the advertisement to be played in the start play log to see if it meets the pre-generated plan. If not, it is marked as an error play record; if it meets the requirements, the advertisement play effect detection task is started. The advertisement play effect detection task sets an expiration time, which is equal to the expected play time of the advertisement, and waits for the advertisement timing detection log to perform the playback effect detection; Judgment module: when the advertisement timing detection log arrives, it is determined whether there is an advertisement playing effect detection task corresponding to the electronic advertising machine. If not, the timing detection log is discarded. If yes, the current running interface in the timing detection log information is taken out and the picture P formed by screenshot is taken. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as picture Y according to the advertisement unique code GID and the advertisement playing time in the timing detection log information. The picture P and the picture Y are comprehensively compared for structural similarity and color similarity to obtain the picture similarity value. If the picture similarity value meets the similarity threshold value T1, the timing detection log information is recorded. If not, it is regarded as an erroneous playback and the timing detection log is discarded. If the remaining playback time of the advertisement recorded in the timing detection log information is smaller than the timing detection time interval of the timing detection task, it is regarded as the end of the advertisement playing effect detection task. Scoring module: if after the advertisement playing effect detection task is completed, the advertisement playing effect detection task does not record any timing detection log information, then it is judged that the electronic advertising machine has not effectively played the advertisement in the advertisement playing effect detection task, which is counted as invalid playback, and the playback effect is 0 points; if the advertisement playing effect detection task has recorded timing detection log information, then it is judged whether the last timing detection log information has exceeded 2 / 3 of the expected playback time of the advertisement; if so, the advertisement in the task is effectively played, and the playback effect score when playing the advertisement is further calculated; if the advertisement has not exceeded 2 / 3 of the expected playback time of the advertisement, then it is counted as invalid playback of the advertisement in the task, and the playback effect is 0 points; Display module: When the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received log is the start of playing the advertisement, the corresponding advertisement information to be played is updated for display, and the corresponding first screen of the advertisement unique code GID to be played is called out, and the estimated playing time of the advertisement is used as the remaining playing time for countdown; if the received log is the advertisement timing detection log, the current playing advertisement unique code GID is taken out, if the current playing advertisement unique code GID is inconsistent with the current playing advertisement unique code cached by the WeChat applet, the corresponding advertisement information is requested to be displayed according to the advertisement unique code GID in the advertisement timing detection log, and the estimated screen of the corresponding advertisement playing time is requested to be displayed, and the remaining playing time of the advertisement in the advertisement timing detection log is used as the remaining seconds of the countdown; if the current playing advertisement unique code GID is consistent with the current playing advertisement unique code cached by the WeChat applet, the estimated screen of the corresponding advertisement playing time is directly requested to be displayed, and the remaining playing time of the advertisement is used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the advertisement playing status of the electronic advertising machine in real time.
[0011] The present invention further provides an electronic device, comprising: one or more processors; A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements an advertisement log monitoring method as described in any one of the above items.
[0012] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer is enabled to execute an advertisement log monitoring method as described in any one of the above items.
[0013] The present invention provides an advertisement log monitoring method, device, equipment and storage medium. The method sends a start advertisement log to a message topic Topic every time an electronic advertisement machine starts to play an advertisement, wherein the start advertisement log includes a device unique code SID, a currently playing advertisement unique code GID, a play time, and an expected advertisement play time. The electronic advertisement machine starts a timing detection task to regularly detect the play status of the electronic advertisement machine, including the device unique code SID, the currently playing advertisement unique code GID, the detection time, the currently playing advertisement play time, the currently playing advertisement remaining play time and the expected advertisement play time, takes a screenshot of the current operation interface of the electronic advertisement machine to form a picture P, and combines the electronic advertisement machine with the computer to detect the play status of the electronic advertisement machine. The crowd attention detection score of the front camera of the electronic advertising machine is formed into an advertisement timing detection log and then sent to the message topic Topic; the background server pre-generates the advertising schedule that all electronic advertising machines are expected to play on the current date according to the program change record of the electronic advertising machine. If there is no program change record for the electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The background server uses the power on and off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that the electronic advertising machine is expected to play according to the program content; if there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on and off time interval of the electronic advertising machine, the electronic advertising machine needs to be switched on and off according to the program. The program list records the change time, divides the on / off time interval of the electronic advertising machine into multiple time periods, and there is only one program list in each time period, and generates the expected advertising schedule of the electronic advertising machine according to the content of the program list; the background server subscribes to the message topic Topic, and when receiving the start playback log, queries the expected advertising schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and playback time of the advertisement to be played in the start playback log to see if it meets the pre-generated plan. If not, it is marked as an error playback record; if it meets the requirements, the advertising playback effect detection task is started, and the advertising playback effect detection task sets an expiration time, which is equal to the expected playback time of the advertisement, and waits for the advertisement to be played. The timing detection log is used to detect the playback effect; when the advertisement timing detection log arrives, it is determined whether there is an advertisement playback effect detection task for the corresponding electronic advertising machine. If not, the timing detection log is discarded. If yes, the current running interface in the timing detection log information is taken out to form a screenshot of the picture P. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as the picture Y according to the advertisement unique code GID and the advertisement playback time in the timing detection log information, and performs a comprehensive comparison of the structural similarity and color similarity of the picture P and the picture Y to obtain the picture similarity value. If the picture similarity value meets the similarity threshold T1, the timing detection log information is recorded. If not, it is regarded as an erroneous playback and the timing detection log is discarded.If the remaining playback time of the advertisement recorded in the timing detection log information is less than the timing detection time interval of the timing detection task, it is deemed that the advertisement playback effect detection task is completed; if the advertisement playback effect detection task is completed and the advertisement playback effect detection task does not record any timing detection log information, it is determined that the electronic advertising machine has not effectively played the advertisement in the advertisement playback effect detection task, which is counted as invalid playback, and the playback effect is 0 points; if the advertisement playback effect detection task has recorded timing detection log information, it is determined whether the last timing detection log information has exceeded 2 / 3 of the expected playback time of the advertisement; if so, the advertisement in the task is effectively played, and the playback effect score when the advertisement is played is further calculated; if the advertisement has not exceeded 2 / 3 of the expected playback time, it is counted as invalid playback of the advertisement in the task, and the playback effect is 0 points; when the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received message is to start playing, If the ad log is received, the ad information to be played will be updated for display, and the first screen of the ad unique code GID to be played will be called out, and the estimated ad playing time will be used as the remaining playing time for countdown; if the ad timing detection log is received, the current ad unique code GID will be taken out. If the current ad unique code GID is inconsistent with the current ad unique code cached by the WeChat applet, the corresponding ad information will be requested to be displayed according to the ad unique code GID in the ad timing detection log, and the estimated screen corresponding to the ad playing time will be requested to be displayed, and the remaining ad playing time in the ad timing detection log will be used as the remaining seconds of the countdown; if the current ad unique code GID is consistent with the current ad unique code cached by the WeChat applet, the estimated screen corresponding to the ad playing time will be directly requested to be displayed, and the remaining ad playing time will be used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the ad playing status of the electronic advertising machine in real time, and the beneficial effects produced include: 1. The present invention uses a timed detection task to take a screenshot of the electronic advertising machine screen and form a timed detection log, which can achieve effective monitoring without affecting the advertising playback logic and has low intrusion on the original APP logic; 2. The present invention can effectively analyze the number of pedestrians in front of the electronic advertising machine by using the front camera of the electronic advertising machine to detect the attention of the crowd. In addition, combined with the posture of face recognition, it can effectively determine the proportion of people paying attention to the screen of the electronic advertising machine at this time, and then obtain the attention of the advertisement at this time, the effectiveness of the advertisement, etc. 3. The present invention compares the screenshots in the timing detection log with the expected playback screen of the advertising material captured according to the playback progress information to determine whether the electronic advertising machine has performed effective playback and whether the playback screen has deviations, thereby avoiding the need for manual offline monitoring, reducing manpower, improving efficiency and also improving accuracy; 4. The present invention calculates the playing effect score when the advertisement is played, and for the crowd attention detection obtained by the advertisement timing detection task, further calculates the total score according to different weights based on the playing time point of the collected detection log, and can further calculate the score that better reflects the playing effect, providing advertisers with a more intuitive measurement scale; 5. The present invention adopts the method of directly subscribing to the message topic Topic of the WeChat applet to obtain the advertising log for display, and through the countdown reminder method, the advertiser can observe and control the current and future advertising playback status of a certain electronic advertising machine in real time, thereby achieving the purpose of remotely monitoring the advertising playback effect.
[0014] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings: Figure 1 A flowchart of an advertisement log monitoring method is shown as an exemplary embodiment of the present invention; Figure 2 The present invention is a schematic structural diagram of an advertisement log monitoring device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0016] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0017] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0018] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0019] Embodiment 1
[0020] An advertisement log monitoring method is applied to an electronic advertisement machine. The backend server connected to the electronic advertisement machine is provided with a message middleware. A message topic Topic is created on the message middleware. The message topic Topic is used for the backend server to subscribe to the playback log message of the electronic advertisement machine. Figure 1 As shown, including: S1: When the electronic advertising machine starts playing an advertisement, it sends a start advertisement log to the message topic Topic. The start advertisement log includes the device unique code SID, the current advertisement unique code GID, the play time, and the estimated play time of the advertisement. S2: The electronic advertising machine starts the timing detection task, and regularly detects the playing status of the electronic advertising machine, including the device unique code SID, the current playing advertisement unique code GID, the detection time, the current playing advertisement playing time, the current playing advertisement remaining playing time and the estimated playing time of the advertisement. The current running interface of the electronic advertising machine is captured to form a picture P, and combined with the crowd attention detection score of the front camera of the electronic advertising machine, an advertisement timing detection log is formed and sent to the message topic Topic; S3: The backend server pre-generates the advertising schedules that are expected to be played by all electronic advertising machines on the current date according to the program change records of the electronic advertising machine. If there is no program change record for the electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The backend server uses the power on / off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program. If there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on / off time interval of the electronic advertising machine, the electronic advertising machine needs to divide the power on / off time interval of the electronic advertising machine into multiple time periods according to the program change record time, and there is only one program in each time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program. S4: The backend server subscribes to the message topic Topic. After receiving the start play log, the backend server queries the expected advertisement schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and the play time of the advertisement to be played in the start play log to see if it complies with the pre-generated plan. If not, it is marked as an error play record; if it complies, the advertisement play effect detection task is started. The advertisement play effect detection task sets an expiration time, which is equal to the expected play time of the advertisement, and waits for the advertisement timing detection log to perform the playback effect detection; S5: When the advertisement timing detection log arrives, determine whether there is an advertisement playing effect detection task for the corresponding electronic advertising machine. If not, discard the timing detection log. If yes, take out the current running interface in the timing detection log information and take out the picture P formed by screenshot. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as picture Y according to the advertisement unique code GID and the advertisement playing time in the timing detection log information. Perform a comprehensive comparison of the structural similarity and color similarity of picture P and picture Y to obtain the picture similarity value. If the picture similarity value meets the similarity threshold T1, record the timing detection log information. If not, it is regarded as an erroneous playback and discard the timing detection log. If the remaining playback time of the advertisement recorded in the timing detection log information is less than the timing detection time interval of the timing detection task, it is regarded as the end of the advertisement playing effect detection task. S6: If, after the advertisement playing effect detection task is completed, the advertisement playing effect detection task does not record any timing detection log information, it is determined that the electronic advertising machine does not effectively play the advertisement in the advertisement playing effect detection task, which is counted as invalid playback, and the playback effect is 0 points; if the advertisement playing effect detection task records timing detection log information, it is determined whether the last timing detection log information has exceeded 2 / 3 of the expected playback time of the advertisement; if so, the advertisement in the task is effectively played, and the playback effect score when playing the advertisement is further calculated; if the advertisement has not exceeded 2 / 3 of the expected playback time of the advertisement, it is recorded as invalid playback of the advertisement in the task, and the playback effect is 0 points; S7: When the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received content is the start of the advertisement playback log, the corresponding advertisement information to be played is updated for display, and the corresponding first screen of the advertisement unique code GID to be played is called out, and the estimated playback time of the advertisement is used as the remaining playback time for countdown; if the received content is the advertisement timing detection log, the currently playing advertisement unique code GID is retrieved. If the currently playing advertisement unique code GID is inconsistent with the currently playing advertisement unique code cached by the WeChat applet, the corresponding advertisement information is requested according to the advertisement unique code GID in the advertisement timing detection log. The information is displayed, and a request is made to display the estimated screen image of the corresponding advertising duration, and the remaining advertising duration in the advertising timing detection log is used as the remaining seconds of the countdown; if the currently playing advertisement unique code GID is consistent with the currently playing advertisement unique code cached by the WeChat applet, a request is made directly to display the estimated screen image of the corresponding advertising duration, and the remaining advertising duration is used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the advertising playback status of the electronic advertising machine in real time, where the advertising information includes the advertisement name, advertising delivery frequency, estimated advertising playback duration, advertising delivery start and end cycle, etc.
[0021] Specifically, during the advertisement playing process, the electronic advertising machine generally generates corresponding playing logs, but the traditional advertisement monitoring process does not make good use of these playing logs to perform online log monitoring of advertisement playing. For this reason, this embodiment is based on the MQTT protocol commonly used in the Internet of Things. Through the publish-subscribe method, the electronic advertising machine publishes the playing log to the specified message topic Topic, and implements the subscription method of the message topic Topic through the background server and the client WeChat applet, thereby realizing an advertisement log monitoring method.
[0022] Assume that there is an electronic advertising machine D that is playing an advertisement. It creates a message topic Topic on the message middleware server for the backend server to subscribe to the playback log messages of the electronic advertising machine D. During the advertisement playback process, there are mainly two types of advertisement logs: The first type is the ad start log: when the electronic advertising machine starts playing an ad, it will send the ad start log to the message topic Topic, where the ad start log includes the device unique code SID, the current ad unique code GID, the play time (i.e. the time when the play starts), and the estimated play time of the ad; The second category is the advertising timing detection log: after the electronic advertising machine starts the playback APP, it will start a timing detection task, which regularly detects the current playback status of the electronic advertising machine, including the device unique code SID, the current playing advertisement unique code GID, the detection time (that is, the time point of the detection playback), the current playing advertisement playback time, the current playing advertisement remaining playback time, the estimated advertising playback time and other text information.
[0023] In the embodiment, the time interval of the timing detection is preferably set to 5 seconds.
[0024] By adopting the method of timed detection tasks, the screen of the electronic advertising machine is regularly captured and a timed detection log is formed. This can achieve effective monitoring without affecting the advertising playback logic, and has low intrusion into the original APP logic.
[0025] However, simple text log information cannot well determine whether the current electronic advertising machine plays the picture normally. Therefore, in this embodiment, the advertisement timing detection log adds a screenshot of the current operation interface of the electronic advertising machine to form a picture P, which is convenient for the background server to detect whether effective playback has been performed.
[0026] At the same time, many electronic advertising machines have front cameras. The front cameras of electronic advertising machines can be combined to detect the attention of the people in front of the camera, and the attention score of the people during the advertising timing detection can be obtained. Finally, the advertising timing detection graphic log is formed and sent to the message topic.
[0027] The present invention is further configured that the logic for obtaining the crowd attention detection score of the front camera of the electronic advertising machine specifically includes: S21: the electronic advertising machine performs HOG pedestrian detection on the image of the front camera. When the timing detection task is triggered, the number of pedestrians in front of the front camera is counted, which is recorded as num. Specifically, the electronic advertising machine continuously performs HOG pedestrian detection on the image of the front camera. When the timing detection task is triggered, the number of pedestrians in front of the front camera at this time is counted, which is recorded as num, and the image of the front camera when the timing detection task is triggered is saved to obtain picture B and the detected pedestrian area information. S22: Performing face recognition detection on the image of the front camera at the same time to obtain the number of faces in the image and the posture information of each face; specifically, performing face recognition detection on image B to obtain the number of faces in the image and the posture information of each face; S23: If the position of the recognized face is not within the detected pedestrian area, it is regarded as a false face and is removed; S24: When the face posture information satisfies the formula group: , , When , it is recorded as a face effective attention, where Indicates the angle at which the face rotates left and right. Indicates the up and down pitch angle of the face. Indicates the horizontal rotation angle of the face; Specifically, if the recognized face position is within the detected pedestrian area, the posture information is further filtered; The above formula group is mainly used to filter out faces that are not facing the electronic advertising machine screen, that is, faces that do not see the electronic advertising machine screen. At this time, the face is not considered a valid focus, but its score weight is different from that of the pedestrian, and needs to be counted separately for the subsequent calculation of the total score; S25: The total number of effective face attention is recorded as Focus, the total number of ineffective face attention is recorded as NonFocus, and the final result of the crowd attention detection score of the front camera of the electronic advertising machine is recorded as FScore. The calculation formula of the crowd attention detection score of the front camera of the electronic advertising machine is: There are three types of numbers here. The first type is the number of pedestrians detected. The weight of this number is relatively low because they are just passing by and may not be looking in the direction of the electronic advertising machine. Therefore, this type of number has the lowest weight in the crowd attention score, which is recorded as 1. This type of number needs to exclude the number of detected faces, so the final number of people is: ; The second category is the number of people who detect faces but do not meet the face posture formula group. This number is looking in the direction of the electronic advertising machine and can see the advertising screen on the electronic advertising machine, but it is only at the edge of the field of vision. They just scanned the advertising screen and did not pay effective attention to it. This number is counted in the crowd attention score with a general weight of 1.5, and the specific number is NonFocus; The third category is the number of effective face attention. This number meets the requirements of the face posture formula group. These people in the crowd can effectively view the advertising screen on the electronic advertising machine. This number is counted in the crowd attention score with the highest weight, recorded as 2, and the specific number is Focus. By weighted summing according to the weight information, we can get the crowd attention detection score result of the front camera of the electronic advertising machine: After simplification, the final result of the crowd attention detection score of the front camera of the electronic advertising machine is as follows: ; Due to the use of crowd attention detection by the front camera of the electronic advertising machine, the number of pedestrians in front of the electronic advertising machine can be effectively analyzed, and combined with the posture of face recognition, the proportion of people paying attention to the electronic advertising machine screen at this time can be effectively determined, and then the attention paid to the advertisement at this time, the effectiveness of the advertisement, etc.
[0028] Before the background server implements the subscription message topic Topic, it first pre-generates the advertising schedules that all electronic advertising machines are expected to play on the current date based on the program change records of the electronic advertising machines. If there is no program change record for a certain electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The background server uses the power on and off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that the electronic advertising machine is expected to play according to the content of the program list; if there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on and off time interval of the electronic advertising machine, the electronic advertising machine needs to divide the power on and off time interval of the electronic advertising machine into multiple time periods according to the program change record time. There is only one program in each time period, and the advertising schedule that the electronic advertising machine is expected to play is generated according to the content of the program list.
[0029] The present invention is further configured to generate a schedule of advertisements that are expected to be played by the electronic advertising machine according to the program list content, specifically including: S31: Assume that there are n advertisements in the program list corresponding to a certain time period Need to be played in turn, the number of seconds required for each advertisement to be played corresponds to the set The starting time of the time period calculated from 0:00:00 on the same day is The end time of the time period calculated from 0:00:00 on the day is ; S32: Assume that the total number of seconds required to play all advertisements in the program is , the calculation formula is: ; S33: Assume that the advertisement to be played at the start time of the time period is the temp-th advertisement, then: ; S34: Advertisement list according to program content , starting from the tempth ad, the ads are played in turn, and the number of seconds required for each ad to play is set Arrange a specific advertising schedule to be played. The start time of the advertising schedule is defined as , the first ad to be played in the ad schedule is , for the start time of the advertising schedule , there is the following formula: Specifically, after the background server implements the subscription message topic Topic, when it receives the start playback log, it queries the expected advertising schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and playback time of the advertisement to be played in the start playback log to see if it complies with the pre-generated plan. If not, it is marked as an error playback record; if it complies, the advertising playback effect detection task is started. The task sets an expiration time, which is equal to the expected playback time of the advertisement, and waits for the advertisement timing detection log to perform playback effect detection.
[0030] When receiving the advertisement timing detection log, determine whether there is an advertisement playing effect detection task for the corresponding electronic advertising machine. If not, discard the timing detection log. If yes, take out the current running interface in the timing detection log information and take out the picture P formed by screenshot. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as picture Y according to the advertisement unique code GID and the advertisement playing time in the timing detection log information. Perform a comprehensive comparison of the structural similarity and color similarity of picture P and picture Y to obtain the picture similarity value. If the picture similarity value meets the similarity threshold T1, record the timing detection log information. If not, it is regarded as an erroneous playback and discard the timing detection log. If the remaining playback time of the advertisement recorded in the timing detection log information is smaller than the timing detection time interval of the timing detection task, it is regarded as the end of the advertisement playing effect detection task.
[0031] The present invention is further configured to perform a comprehensive comparison of structural similarity and color similarity on the image P and the image Y to obtain an image similarity value, specifically including: S51: Grayscale the images P and Y respectively to obtain grayscale images and pictures ; S52: Grayscale image and pictures Perform SSIM structural similarity calculation to obtain the structural similarity score ; S53: Perform color space conversion on the images P and Y respectively, from the RGB color space to the HSV color space, and calculate the average color parameter of all pixels of the image P in the HSV color space to obtain the average hue. , average saturation and average brightness , calculate the average color parameter of all pixels in the image Y in the HSV color space to get the average hue , average saturation and average brightness ; S54: Calculate the vector of the image P in the HSV color space ( , , ) and the image Y vector in HSV color space ( , , ) Specifically, the color space of the images P and Y is converted from RGB color space to HSV color space, and the average color parameters of all pixels of the image P in the HSV color space are calculated to obtain the average hue. , average saturation and average brightness , calculate the average color parameter of all pixels in the image Y in the HSV color space to get the average hue , average saturation and average brightness ; Calculate the vector of picture P in HSV color space ( , , ) and the image Y vector in HSV color space ( , , ) Calculate the vector of picture P in HSV color space ( , , ) and the image Y vector in HSV color space ( , , ) ; S55. Final similarity value result of picture P and picture Y The calculation formula is: ; Specifically, in this embodiment, the optimal value of the similarity threshold T1 is 0.85; the above formula mainly takes into account that after the image is compressed and saved, there is a certain degree of distortion, and this distortion mainly exists in the color. For this reason, the weight of the structural similarity of the image in the formula is set slightly larger than the weight of the color similarity, which can better conform to the actual situation and obtain a more realistic score.
[0032] By comparing the screenshots in the timed detection log with the expected playback screen of the advertising material captured based on the playback progress information for image similarity, it is possible to determine whether the electronic advertising machine has played effectively, whether the playback screen has deviations, etc., thereby avoiding the need for manual offline monitoring, reducing manpower, improving efficiency and also improving accuracy.
[0033] If, after the advertisement playing effect detection task is completed, the task does not record any timed detection log information, it is determined that the electronic advertising machine did not effectively play the advertisement in the advertisement playing effect detection task, which is counted as invalid playback and the playback effect is 0 points.
[0034] If the task has recorded the timing detection log information, then determine the last timing detection log information to see whether the advertisement has been played for more than 2 / 3 of the expected duration of the advertisement; if so, the advertisement in the task has been effectively played, and the playback effect score of the advertisement is further calculated; if the advertisement has been played for less than 2 / 3 of the expected duration of the advertisement, then it is recorded as invalid playback of the advertisement in the task, and the playback effect score is 0.
[0035] The present invention is further configured to further calculate the playing effect score when playing the advertisement, specifically including: Assume that the advertising playback effect detection task records a total of m timed detection log information, where the playback effect score of each timed detection log is defined as , the detection time interval of the detection log is defined as Interval, and the playing time of the current advertisement in each timed detection log is defined as , the estimated duration of the ad is defined as The crowd attention detection result of the front camera of the electronic advertising machine corresponding to the timing detection log is defined as Specifically, according to ideal conditions, the total number of timed detection log information that can be recorded by the advertising playback effect detection task should be exactly equal to The integer part of , for which there is the following formula: ,in, The symbol indicates rounding down.
[0036] When the electronic advertising machine is at the beginning and about to end, the people in the crowd may have just appeared in front of the electronic advertising machine or are about to leave the electronic advertising machine. Therefore, in the timing detection log task, the crowd attention detection score of the electronic advertising machine front camera calculated by the timing detection log at the beginning and the end of the advertisement played is not as representative as the crowd attention detection score of the electronic advertising machine front camera calculated near the middle moment of the advertisement. Therefore, in the timing detection task, the weight of the crowd attention detection score of the electronic advertising machine front camera in the timing detection log obtained closer to the middle moment is greater. From the time dimension, its weight is similar to a normal distribution. According to this type of weight, there is the following formula: ; Combining the above two formulas, we can get the following formula: ; The total score of the playback effect of all the timed detection log information in the advertising playback effect detection task is: .
[0037] Since the playback effect score when the advertisement is played is calculated, the crowd attention detection obtained by the advertisement timing detection task can be further statistically totaled according to different weights based on the playback time point of the collected detection logs. This can further calculate the score that better reflects the playback effect and provide advertisers with a more intuitive measurement scale.
[0038] When the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received log is the start of the advertisement, the corresponding advertisement information to be played is updated for display, and the corresponding first screen of the advertisement unique code GID to be played is called out, and the estimated advertisement playing time is used as the remaining playing time for countdown; if the received log is the advertisement timing detection log, the current advertisement unique code GID is taken out. If the current advertisement unique code GID is inconsistent with the current advertisement unique code cached by the WeChat applet, the corresponding advertisement information is requested to be displayed according to the advertisement unique code GID in the advertisement timing detection log, and the estimated screen corresponding to the advertisement playing time is requested to be displayed, and the remaining advertisement playing time in the advertisement timing detection log is used as the remaining seconds of the countdown; if the current advertisement unique code GID is consistent with the current advertisement unique code cached by the WeChat applet, the estimated screen corresponding to the advertisement playing time is directly requested to be displayed, and the remaining advertisement playing time is used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the advertisement playing status of the electronic advertising machine in real time.
[0039] By using the WeChat applet to directly subscribe to message topics to obtain advertising logs for display, and through countdown reminders, advertisers can observe and control the current and future advertising playback status of an electronic advertising machine in real time, thereby achieving the purpose of remotely monitoring the advertising playback effect.
[0040] Embodiment 2
[0041] See also Figure 2 , the exemplary advertising log monitoring device includes: Sending module: When the electronic advertising machine starts playing an advertisement, it sends the start-playing advertisement log to the message topic Topic. The start-playing advertisement log includes the device unique code SID, the current playing advertisement unique code GID, the playing time, and the estimated playing time of the advertisement. Detection module: The electronic advertising machine starts the timing detection task, and regularly detects the playing status of the electronic advertising machine, including the device unique code SID, the current playing advertisement unique code GID, the detection time, the current playing advertisement playing time, the current playing advertisement remaining playing time and the estimated playing time of the advertisement. The current running interface of the electronic advertising machine is captured to form a picture P, and combined with the crowd attention detection score of the front camera of the electronic advertising machine, an advertisement timing detection log is formed and sent to the message topic Topic; Generation module: the backend server pre-generates the advertising schedules that are expected to be played by all electronic advertising machines on the current date according to the program change records of the electronic advertising machine. If there is no program change record for the electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The backend server uses the power on and off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program list. If there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on and off time interval of the electronic advertising machine, the electronic advertising machine needs to divide the power on and off time interval of the electronic advertising machine into multiple time periods according to the program change record time. There is only one program in each time period, and the advertising schedule that is expected to be played by the electronic advertising machine is generated according to the content of the program list. Query module: The backend server subscribes to the message topic Topic. When receiving the start play log, it queries the expected advertising schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and the play time of the advertisement to be played in the start play log to see if it meets the pre-generated plan. If not, it is marked as an error play record; if it meets the requirements, the advertisement play effect detection task is started. The advertisement play effect detection task sets an expiration time, which is equal to the expected play time of the advertisement, and waits for the advertisement timing detection log to perform the playback effect detection; Judgment module: when the advertisement timing detection log arrives, it is determined whether there is an advertisement playing effect detection task corresponding to the electronic advertising machine. If not, the timing detection log is discarded. If yes, the current running interface in the timing detection log information is taken out and the picture P formed by screenshot is taken. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as picture Y according to the advertisement unique code GID and the advertisement playing time in the timing detection log information. The picture P and the picture Y are comprehensively compared for structural similarity and color similarity to obtain the picture similarity value. If the picture similarity value meets the similarity threshold value T1, the timing detection log information is recorded. If not, it is regarded as an erroneous playback and the timing detection log is discarded. If the remaining playback time of the advertisement recorded in the timing detection log information is smaller than the timing detection time interval of the timing detection task, it is regarded as the end of the advertisement playing effect detection task. Scoring module: if after the advertisement playing effect detection task is completed, the advertisement playing effect detection task does not record any timing detection log information, then it is judged that the electronic advertising machine has not effectively played the advertisement in the advertisement playing effect detection task, which is counted as invalid playback, and the playback effect is 0 points; if the advertisement playing effect detection task has recorded timing detection log information, then it is judged whether the last timing detection log information has exceeded 2 / 3 of the expected playback time of the advertisement; if so, the advertisement in the task is effectively played, and the playback effect score when playing the advertisement is further calculated; if the advertisement has not exceeded 2 / 3 of the expected playback time of the advertisement, then it is counted as invalid playback of the advertisement in the task, and the playback effect is 0 points; Display module: When the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received log is the start of playing the advertisement, the corresponding advertisement information to be played is updated for display, and the corresponding first screen of the advertisement unique code GID to be played is called out, and the estimated playing time of the advertisement is used as the remaining playing time for countdown; if the received log is the advertisement timing detection log, the current playing advertisement unique code GID is taken out, if the current playing advertisement unique code GID is inconsistent with the current playing advertisement unique code cached by the WeChat applet, the corresponding advertisement information is requested to be displayed according to the advertisement unique code GID in the advertisement timing detection log, and the estimated screen of the corresponding advertisement playing time is requested to be displayed, and the remaining playing time of the advertisement in the advertisement timing detection log is used as the remaining seconds of the countdown; if the current playing advertisement unique code GID is consistent with the current playing advertisement unique code cached by the WeChat applet, the estimated screen of the corresponding advertisement playing time is directly requested to be displayed, and the remaining playing time of the advertisement is used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the advertisement playing status of the electronic advertising machine in real time.
[0042] It should be noted that the advertising log monitoring device provided in the above embodiment and the advertising log monitoring method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In actual application, the advertising log monitoring device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the system into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0043] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements an advertising log monitoring method provided in the above-mentioned embodiments.
[0044] The embodiment of the present application also provides a computer system of an electronic device. It should be noted that the computer system of an electronic device is only an example and should not bring any limitation to the function and scope of use of the embodiment of the present application.
[0045] Specifically, the computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM), such as executing the method described in the above embodiment. In the RAM, various programs and data required for system operation are also stored. The CPU, ROM and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.
[0046] The following components are connected to the I / O interface: an input section including a keyboard, a mouse, etc.; an output section including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section including a hard disk, etc.; and a communication section including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that a computer program read therefrom is installed into the storage section as needed.
[0047] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), various functions defined in the system of the present application are executed.
[0048] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, which carries a computer-readable computer program. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0049] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0050] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, an advertisement log monitoring method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0051] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes an advertisement log monitoring method provided in each of the above embodiments.
[0052] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. An advertisement log monitoring method is applied to an electronic advertisement machine, wherein the backend server connected to the electronic advertisement machine is provided with a message middleware, and a message topic Topic is created on the message middleware, and the message topic Topic is used for the backend server to subscribe to the playback log message of the electronic advertisement machine, characterized in that: include: S1: When the electronic advertising machine starts playing an advertisement, it sends a start advertisement log to the message topic Topic. The start advertisement log includes the device unique code SID, the current advertisement unique code GID, the play time, and the estimated play time of the advertisement. S2: The electronic advertising machine starts the timing detection task, and regularly detects the playing status of the electronic advertising machine, including the device unique code SID, the current playing advertisement unique code GID, the detection time, the current playing advertisement playing time, the current playing advertisement remaining playing time and the estimated playing time of the advertisement. The current running interface of the electronic advertising machine is captured to form a picture P, and combined with the crowd attention detection score of the front camera of the electronic advertising machine, an advertisement timing detection log is formed and sent to the message topic Topic; S3: The backend server pre-generates the advertising schedules that are expected to be played by all electronic advertising machines on the current date according to the program change records of the electronic advertising machine. If there is no program change record for the electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The backend server uses the power on / off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program. If there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on / off time interval of the electronic advertising machine, the electronic advertising machine needs to divide the power on / off time interval of the electronic advertising machine into multiple time periods according to the program change record time, and there is only one program in each time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program. S4: The backend server subscribes to the message topic Topic. After receiving the start play log, the backend server queries the expected advertisement schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and the play time of the advertisement to be played in the start play log to see if it complies with the pre-generated plan. If not, it is marked as an error play record; if it complies, the advertisement play effect detection task is started. The advertisement play effect detection task sets an expiration time, which is equal to the expected play time of the advertisement, and waits for the advertisement timing detection log to perform the playback effect detection; S5: When the advertisement timing detection log arrives, determine whether there is an advertisement playing effect detection task for the corresponding electronic advertising machine. If not, discard the timing detection log. If yes, take out the current running interface in the timing detection log information and take out the picture P formed by screenshot. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as picture Y according to the advertisement unique code GID and the advertisement playing time in the timing detection log information. Perform a comprehensive comparison of the structural similarity and color similarity of picture P and picture Y to obtain the picture similarity value. If the picture similarity value meets the similarity threshold T1, record the timing detection log information. If not, it is regarded as an erroneous playback and discard the timing detection log. If the remaining playback time of the advertisement recorded in the timing detection log information is less than the timing detection time interval of the timing detection task, it is regarded as the end of the advertisement playing effect detection task. S6: If, after the advertisement playing effect detection task is completed, the advertisement playing effect detection task does not record any timing detection log information, it is determined that the electronic advertising machine does not effectively play the advertisement in the advertisement playing effect detection task, which is counted as invalid playback, and the playback effect is 0 points; if the advertisement playing effect detection task records timing detection log information, it is determined whether the last timing detection log information has exceeded 2 / 3 of the expected playback time of the advertisement; if so, the advertisement in the task is effectively played, and the playback effect score when playing the advertisement is further calculated; if the advertisement has not exceeded 2 / 3 of the expected playback time of the advertisement, it is recorded as invalid playback of the advertisement in the task, and the playback effect is 0 points; S7: When the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received is the start of the advertisement playing log, the corresponding advertisement information to be played is updated for display, and the corresponding first screen of the advertisement unique code GID to be played is called out, and the estimated playing time of the advertisement is used as the remaining playing time for countdown; if the received is the advertisement timing detection log, the current playing advertisement unique code GID is taken out, if the current playing advertisement unique code GID is inconsistent with the current playing advertisement unique code cached by the WeChat applet, the corresponding advertisement information is requested to be displayed according to the advertisement unique code GID in the advertisement timing detection log, and the estimated screen of the corresponding advertisement playing time is requested to be displayed, and the remaining playing time of the advertisement in the advertisement timing detection log is used as the remaining seconds of the countdown; if the current playing advertisement unique code GID is consistent with the current playing advertisement unique code cached by the WeChat applet, the estimated screen of the corresponding advertisement playing time is directly requested to be displayed, and the remaining playing time of the advertisement is used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the advertisement playing status of the electronic advertising machine in real time.
2. The method for monitoring advertisement logs according to claim 1, characterized in that: The logic for obtaining the crowd attention detection score of the front camera of the electronic advertising machine includes: S21: The electronic advertising machine performs HOG pedestrian detection on the image of the front camera. When the timed detection task is triggered, the number of pedestrians in front of the front camera is counted, which is recorded as num; S22: performing face recognition detection on the image of the front camera at the same time to obtain the number of faces in the image and the posture information of each face; S23: If the position of the recognized face is not within the detected pedestrian area, it is regarded as a false face and is removed; S24: When the face posture information satisfies the formula group: , , When , it is recorded as a face effective attention, where Indicates the angle at which the face rotates left and right. Indicates the up and down pitch angle of the face. Indicates the horizontal rotation angle of the face; S25: The total number of effective face attention is recorded as Focus, the total number of ineffective face attention is recorded as NonFocus, and the final result of the crowd attention detection score of the front camera of the electronic advertising machine is recorded as FScore. The calculation formula of the crowd attention detection score of the front camera of the electronic advertising machine is: .
3. The method for monitoring advertisement logs according to claim 1, characterized in that: Generate the advertising schedule that the electronic advertising machine is expected to play based on the program list content, including: S31: Assume that there are n advertisements in the program list corresponding to a certain time period Need to be played in turn, the number of seconds required for each advertisement to be played corresponds to the set The starting time of the time period calculated from 0:00:00 on the same day is The end time of the time period calculated from 0:00:00 on the day is ; S32: Assume that the total number of seconds required to play all advertisements in the program is , the calculation formula is: ; S33: Assume that the advertisement to be played at the start time of the time period is the temp-th advertisement, then: ; S34: Advertisement list according to program content , starting from the tempth ad, the ad list is played in turn, and the number of seconds required for each ad to play is set Arrange a specific advertising schedule to be played. The start time of the advertising schedule is defined as , the first ad to be played in the ad schedule is , for the start time of the advertising schedule , there is the following formula: .
4. The method for monitoring advertisement logs according to claim 1, characterized in that: The structural similarity and color similarity of images P and Y are comprehensively compared to obtain the image similarity value, including: S51: Grayscale the images P and Y respectively to obtain grayscale images and pictures ; S52: Grayscale image and pictures Perform SSIM structural similarity calculation to obtain the structural similarity score ; S53: Perform color space conversion on the images P and Y respectively, from the RGB color space to the HSV color space, and calculate the average color parameter of all pixels of the image P in the HSV color space to obtain the average hue. , average saturation and average brightness , calculate the average color parameter of all pixels in the image Y in the HSV color space to get the average hue , average saturation and average brightness ; S54: Calculate the vector of the image P in the HSV color space ( , , ) and the image Y vector in HSV color space ( , , ) ; S55. Final similarity value result of picture P and picture Y The calculation formula is: .
5. The method for monitoring advertisement logs according to claim 1, characterized in that: The playback effect score when playing the advertisement is further calculated, including: Assume that the advertising playback effect detection task records a total of m timed detection log information, where the playback effect score of each timed detection log is defined as , the detection time interval of the detection log is defined as Interval, and the playing time of the current advertisement in each timed detection log is defined as , the estimated duration of the ad is defined as The crowd attention detection result of the front camera of the electronic advertising machine corresponding to the timing detection log is defined as , there is the following formula: ; The total score of the playback effect of all the timed detection log information in the advertising playback effect detection task is: .
6. An advertisement log monitoring device, characterized in that: include: Sending module: When the electronic advertising machine starts playing an advertisement, it sends the start-playing advertisement log to the message topic Topic. The start-playing advertisement log includes the device unique code SID, the current playing advertisement unique code GID, the playing time, and the estimated playing time of the advertisement. Detection module: The electronic advertising machine starts the timing detection task, and regularly detects the playing status of the electronic advertising machine, including the device unique code SID, the current playing advertisement unique code GID, the detection time, the current playing advertisement playing time, the current playing advertisement remaining playing time and the estimated playing time of the advertisement. The current running interface of the electronic advertising machine is captured to form a picture P, and combined with the crowd attention detection score of the front camera of the electronic advertising machine, an advertisement timing detection log is formed and sent to the message topic Topic; Generation module: the backend server pre-generates the advertising schedules that are expected to be played by all electronic advertising machines on the current date according to the program change records of the electronic advertising machine. If there is no program change record for the electronic advertising machine on the current date, it means that the electronic advertising machine has only one program on the current date. The backend server uses the power on and off time interval of the electronic advertising machine as the time period, and generates the advertising schedule that is expected to be played by the electronic advertising machine according to the content of the program list. If there is a program change record for the electronic advertising machine on the current date, and the program change time is within the scheduled power on and off time interval of the electronic advertising machine, the electronic advertising machine needs to divide the power on and off time interval of the electronic advertising machine into multiple time periods according to the program change record time. There is only one program in each time period, and the advertising schedule that is expected to be played by the electronic advertising machine is generated according to the content of the program list. Query module: The backend server subscribes to the message topic Topic. When receiving the start play log, it queries the expected advertising schedule of the corresponding electronic advertising machine according to the device unique code SID, and compares the unique code GID and the play time of the advertisement to be played in the start play log to see if it meets the pre-generated plan. If not, it is marked as an error play record; if it meets the requirements, the advertisement play effect detection task is started. The advertisement play effect detection task sets an expiration time, which is equal to the expected play time of the advertisement, and waits for the advertisement timing detection log to perform the playback effect detection; Judgment module: when the advertisement timing detection log arrives, it is determined whether there is an advertisement playing effect detection task corresponding to the electronic advertising machine. If not, the timing detection log is discarded. If yes, the current running interface in the timing detection log information is taken out and the picture P formed by screenshot is taken. The background server takes out the advertisement screen that the electronic advertising machine should present at this time as picture Y according to the advertisement unique code GID and the advertisement playing time in the timing detection log information. The picture P and the picture Y are comprehensively compared for structural similarity and color similarity to obtain the picture similarity value. If the picture similarity value meets the similarity threshold value T1, the timing detection log information is recorded. If not, it is regarded as an erroneous playback and the timing detection log is discarded. If the remaining playback time of the advertisement recorded in the timing detection log information is smaller than the timing detection time interval of the timing detection task, it is regarded as the end of the advertisement playing effect detection task. Scoring module: if after the advertisement playing effect detection task is completed, the advertisement playing effect detection task does not record any timing detection log information, then it is judged that the electronic advertising machine has not effectively played the advertisement in the advertisement playing effect detection task, which is counted as invalid playback, and the playback effect is 0 points; if the advertisement playing effect detection task has recorded timing detection log information, then it is judged whether the last timing detection log information has exceeded 2 / 3 of the expected playback time of the advertisement; if so, the advertisement in the task is effectively played, and the playback effect score when playing the advertisement is further calculated; if the advertisement has not exceeded 2 / 3 of the expected playback time of the advertisement, then it is counted as invalid playback of the advertisement in the task, and the playback effect is 0 points; Display module: When the advertiser subscribes to the message topic Topic in real time through the WeChat applet for viewing, if the received log is the start of playing the advertisement, the corresponding advertisement information to be played is updated for display, and the corresponding first screen of the advertisement unique code GID to be played is called out, and the estimated playing time of the advertisement is used as the remaining playing time for countdown; if the received log is the advertisement timing detection log, the current playing advertisement unique code GID is taken out, if the current playing advertisement unique code GID is inconsistent with the current playing advertisement unique code cached by the WeChat applet, the corresponding advertisement information is requested to be displayed according to the advertisement unique code GID in the advertisement timing detection log, and the estimated screen of the corresponding advertisement playing time is requested to be displayed, and the remaining playing time of the advertisement in the advertisement timing detection log is used as the remaining seconds of the countdown; if the current playing advertisement unique code GID is consistent with the current playing advertisement unique code cached by the WeChat applet, the estimated screen of the corresponding advertisement playing time is directly requested to be displayed, and the remaining playing time of the advertisement is used as the remaining seconds of the countdown, thereby realizing the WeChat applet to remotely monitor the advertisement playing status of the electronic advertising machine in real time.
7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement an advertisement log monitoring method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute an advertisement log monitoring method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Advertisement monitoring method, advertisement monitoring device and computer readable storage medium
CN112291606A
Self-operation media operation and maintenance method and system based on Internet of Things, storage medium and device
CN112543376A
Advertisement synchronous playing method, system and device capable of being inserted, and medium
CN116155435A
Method and apparatus for determining advertisement placement strategy, computer device, and storage medium
WO2024082772A1
