Play device link-in method and device, equipment, storage medium
By employing DAG rules and hash processing in the blockchain, playback devices are directly added to the blockchain, solving the problems of low efficiency and easy data tampering in existing viewership statistics, and achieving efficient and secure viewership data statistics.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD
- Filing Date
- 2022-08-04
- Publication Date
- 2026-05-15
AI Technical Summary
Existing blockchain-based viewership statistics methods suffer from low efficiency, especially when processing large-scale data, and the data is easily tampered with.
The playback device is added to the blockchain using the Directed Acyclic Graph (DAG) rule. By collecting playback data and hashing it with reference data, the device is directly added to the blockchain after meeting the similarity condition, which avoids miners' packaging and transaction fees and improves the speed of adding the device to the blockchain.
It improves the speed of playback device input and the efficiency of subsequent viewership statistics, increases the number of statistical samples, improves the accuracy and security of data, and prevents data from being tampered with.
Smart Images

Figure CN116962759B_ABST
Abstract
Description
Technical Field
[0001] This application relates to electronic technology, including but not limited to methods, apparatus, devices, and storage media for linking playback devices into a blockchain. Background Technology
[0002] In various market segments such as traditional digital television, internet broadband television, and video websites, viewership data is a crucial reference for program production, scheduling, and adjustment. Existing viewership data collection methods include diary card methods and measurement instrument methods. Both methods select a small sample of users, manually record viewership information, or collect viewership data using observation instruments. This data is then reported to a server for processing at a predetermined time via telephone or broadband network. These methods have limited sample coverage and the collected data is easily tampered with. Therefore, in recent years, blockchain-based viewership data collection methods have been proposed. These methods incorporate viewership data into the blockchain, leveraging the immutability of blockchain data to improve the accuracy of viewership statistics. However, this method also suffers from low efficiency. Summary of the Invention
[0003] In view of this, the playback device addition method, apparatus, device, and storage medium provided in this application add the playback device to the blockchain according to the Directed Acyclic Graph (DAG) rule, which improves the speed of playback device addition to the blockchain and thus improves the efficiency of subsequent viewing statistics using the blockchain.
[0004] According to one aspect of the embodiments of this application, a method for adding a playback device to a blockchain is provided. The method is applied to a first playback device to be added to the blockchain, comprising: collecting playback data of at least one first program; obtaining reference data corresponding to the playback data from the blockchain based on the playback data; and adding itself to the blockchain according to the DAG rule when the similarity between the playback data and the reference data satisfies a first condition.
[0005] According to one aspect of the embodiments of this application, a viewership statistics method is provided, comprising: determining a fourth playback device that has played a first program on a pre-generated blockchain; wherein the topology of the blockchain is a DAG, and the nodes of the DAG include at least the fourth playback device; acquiring playback data of the first program recorded by the fourth playback device; and calculating viewership parameters of the first program based at least on the playback data of the first program.
[0006] According to one aspect of the embodiments of this application, a playback device joining device is provided, comprising: a collection module for collecting playback data of at least one first program; a first acquisition module for acquiring reference data corresponding to the playback data from a blockchain based on the playback data; and a joining module for joining itself to the blockchain according to a DAG rule when the similarity between the playback data and the reference data satisfies a first condition.
[0007] According to one aspect of the embodiments of this application, a viewership statistics device is provided, comprising: a determining module, configured to determine a fourth playback device that has played a first program on a pre-generated blockchain; wherein the topology of the blockchain is a DAG, and the nodes of the DAG include at least the fourth playback device; a second acquiring module, configured to acquire playback data of the first program recorded by the fourth playback device; and a statistics module, configured to calculate viewership parameters of the first program based at least on the playback data of the first program.
[0008] According to one aspect of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor executes the program to implement the method described in the embodiments of the present application.
[0009] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the methods provided in the embodiments of this application.
[0010] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application. Obviously, the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0012] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0013] Figure 1 A schematic diagram illustrating the implementation flow of the playback device joining method provided in this application embodiment;
[0014] Figure 2 A schematic diagram of the topology of the DAG blockchain network provided in the embodiments of this application;
[0015] Figure 3 A schematic diagram of the topology of another DAG blockchain network provided in this application embodiment;
[0016] Figure 4 A schematic diagram illustrating the implementation process of another playback device joining method provided in this application embodiment;
[0017] Figure 5 This is a schematic diagram of viewership data information provided in an embodiment of this application;
[0018] Figure 6 This is a schematic diagram of the viewing data information processing flow provided in the embodiments of this application;
[0019] Figure 7 A schematic diagram of a blockchain network topology provided in this application embodiment;
[0020] Figure 8 This is a schematic diagram of the structure of the playback device chain input device provided in the embodiments of this application;
[0021] Figure 9 This is a schematic diagram of the viewership statistics device provided in the embodiments of this application;
[0022] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0023] Figure 11 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0026] In the following description, references to "some embodiments," "this embodiment," "this application embodiment," and examples, etc., describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subset of all possible embodiments and may be combined with each other without conflict.
[0027] The network architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. Those skilled in the art will understand that, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0028] This application provides a method for adding a playback device to a blockchain. The method is applied to a first playback device to be added to the blockchain. During implementation, the first playback device has at least data processing capabilities and can be various types of devices with video, audio, text, or image playback capabilities. For example, the first playback device may include a mobile phone, tablet computer, laptop computer, desktop computer, and smart TV. The functions implemented by this method can be achieved by the processor in the first playback device calling program code. Of course, the program code can be stored in a computer storage medium. Therefore, the first playback device includes at least a processor and a storage medium.
[0029] Figure 1 This is a schematic diagram illustrating the implementation flow of the playback device joining method provided in the embodiments of this application, as shown below. Figure 1 As shown, the method may include the following steps 101 to 103:
[0030] Step 101: Collect playback data of at least one first program.
[0031] In some embodiments, the first playback device includes a data acquisition module; the first playback device can acquire playback data of at least one first program through the data acquisition module.
[0032] In some embodiments, when the first playback device plays the first program, it may automatically trigger the viewership data statistics program in the data acquisition module, which records at least the playback data of the first program.
[0033] In some embodiments, the playback data of the first program includes at least one frame of the first program; the at least one frame may be a video frame selected from a playback segment of the first program that has or includes key information; the key information may include male and female lead actors, etc. These playback images may be in the format of bmp, jpg, or png, etc., in the data acquisition module.
[0034] In some embodiments, the playback data of the first program may also include the time position information of the at least one frame of the playback image in the first program.
[0035] In some embodiments, the data acquisition module may also record program information of the first program based on the viewership data statistics program; the program information includes program name, program duration and program cast and crew, etc.
[0036] In some embodiments, the data acquisition module may also record device information of the first playback device based on the viewing data statistics program; the device information includes device type and Media Access Control Address (MAC), etc.; the device type includes smart TVs, mobile phones, tablets, laptops and desktops, etc., and the device type can be used to understand the audience's program viewing path; the MAC address can be used as a unique identifier for the first playback device.
[0037] In some embodiments, the first playback device further includes a storage module, which can use the playback data of the first program, the program information of the first program, and the device information of the first playback device collected by the data acquisition module as the viewing data information of the first program. The storage module packages and compresses the viewing data information and then saves it.
[0038] Step 102: Based on the playback data, obtain reference data corresponding to the playback data from the blockchain.
[0039] In some embodiments, the first playback device further includes a data processing module. The storage module of the playback device first marks the viewing data information collected by the data acquisition module as unprocessed data, sends the unprocessed data to the data processing module to request the data processing module to process it, and then marks the viewing data information processed by the data processing module as processed data.
[0040] In some embodiments, the data processing module performs hash processing on at least one frame of the playback image in the playback data of the first program in the viewing data information to obtain at least one first hash value; the first playback device broadcasts the program name of the first program and the time position information of each playback image in the first program, and requests at least one third playback device on the blockchain to provide the first playback device with the second hash value of the reference image corresponding to each playback image in the first program according to the broadcast content.
[0041] In some embodiments, the third playback device can be a playback device that has played the first program on the blockchain, or it can be any playback device on the blockchain that has not played the first program. That is, the third playback device can be any playback device on the blockchain. It is understood that after the first program is launched on the relevant platform, any playback device on the blockchain has the right to view and retrieve the first program. Therefore, the third playback device can obtain reference images corresponding to the playback images in the first program based on the program name of the first program broadcast by the first playback device and the time position of each playback image in the first program, and then send the second hash values of each reference image to the first playback device.
[0042] In this embodiment, the hash algorithm used to perform hash processing on the played image can be an average hash algorithm, a perceptual hash algorithm, or a difference hash algorithm, etc., and this embodiment does not limit the specific hash algorithm used. After processing the played image using the hash algorithm, a fixed-length binary value, namely the first hash value, can be obtained. The first hash value obtained by the hash algorithm is unique and unpredictable. If the played image changes or is tampered with, the generated hash value will be very different from the previous hash value. In this way, it is relatively easy to determine whether the played image is a tampered image, thereby ensuring the accuracy of the viewing data.
[0043] In some embodiments, the data processing module may determine the similarity between the playback image and the reference image based on the similarity between the first hash value and the second hash value.
[0044] Understandably, after receiving the second hash value of the reference image sent by at least one third playback device, the data processing module performs a similarity calculation between it and the corresponding first hash value; for example, the data processing module can calculate the similarity between the first hash value and the second hash value according to the Hamming distance calculation method, as shown in the following formula (1):
[0045]
[0046] Where d(x,y) represents the similarity between the i-th playback image and the corresponding reference image; x[i] represents the first hash value of the i-th playback image; and y[i] represents the second hash value of the reference image corresponding to the i-th playback image.
[0047] Step 103: If the similarity between the playback data and the reference data meets the first condition, add itself to the blockchain according to the DAG rule.
[0048] Understandably, in this embodiment of the application, the first playback device is directly added to the blockchain, without miners needing to package the playback data into blocks and add the blocks to the blockchain; the blockchain in this embodiment of the application does not have the concept of "blocks" and does not require miners to package them, thus saving transaction fees and improving data processing speed.
[0049] In some embodiments, if the similarity between the playback image in M frames and the corresponding reference image is greater than or equal to a first threshold, it is determined that the similarity between the playback data and the reference data satisfies a first condition; wherein M is greater than or equal to 1 and less than or equal to the number of playback images, i.e., 1≤M≤the number of playback images; the first threshold can be preset according to actual needs.
[0050] In some embodiments, if the similarity between the playback data and the reference data satisfies a first condition, i.e., when the similarity between the M-frame playback image and the corresponding reference image is greater than or equal to a first threshold, consensus verification is requested from N second playback devices on the blockchain; where N is greater than or equal to 1 and less than or equal to the number of playback devices on the blockchain; that is, 1 ≤ N ≤ the number of playback devices on the blockchain. If the first playback device passes the consensus verification of the N second playback devices, it connects itself to each of the N second playback devices in a first direction.
[0051] In some embodiments, the first direction is from the first playback device to the second playback device.
[0052] In some embodiments, after confirming that the similarity between the playback data and the reference data meets the first condition, the data processing module notifies the blockchain module of the first playback device to add the first playback device to the blockchain, so as to prevent the viewing data in the first playback device from being tampered with when calculating the viewing parameters.
[0053] In some embodiments, before the first playback device to be added to the blockchain, the blockchain includes at least one genesis playback device. When the first playback device is added to the blockchain, the first playback device performs consensus verification with some or all of the genesis playback devices. After successful verification, the first playback device and the aforementioned some or all of the genesis playback devices are connected in the same direction, i.e., the first playback device is added to the blockchain. When other subsequent playback devices are added to the blockchain, the same method is used to connect the first playback device with N second playback devices on the blockchain for consensus verification, where the second playback devices include the genesis playback device. After successful consensus verification, the first playback device is connected to the N second playback devices respectively. Wherein, 1 ≤ N ≤ the number of playback devices on the blockchain, i.e., the N second playback devices are a portion of the playback devices on the blockchain. This process continues until all the first playback devices are finally added to the blockchain, generating a blockchain with a DAG topology.
[0054] It should be noted that, in this embodiment of the application, the playback device to be added to the chain is referred to as the first playback device; after the first playback device is added to the chain, it can be regarded as the second playback device on the blockchain.
[0055] In this embodiment, the first playback device performs consensus verification with N second playback devices on the blockchain. After the consensus verification is successful, the first playback device is connected to the corresponding N second playback devices. This can also be described as the first playback device confirming a transaction with the N second playback devices. This embodiment does not limit the scope of this embodiment.
[0056] In some embodiments, when the first playback device joins the chain, it can confirm transactions with the previous N second playback devices; for example, Figure 2 This is a schematic diagram of the topology of the DAG blockchain network provided in the embodiments of this application, as shown below. Figure 3 As shown, when the first playback device 1 joins the chain, the first playback device 1 confirms the transaction with the genesis playback device 1 and / or the genesis playback device 2; when the first playback device 2 joins the chain, the first playback device 2 confirms the transaction with the genesis playback device 2 and the first playback device node 1 after joining the chain; and so on, when the first playback device q joins the chain, it only needs to confirm the transaction with the first two first playback devices after joining the chain.
[0057] Understandably, N is greater than or equal to 1, and less than the number of playback devices on the blockchain. This means that when the first playback device joins the blockchain, it only needs to confirm its transaction with a subset of the playback devices on the blockchain. Compared to traditional blockchains that require confirmation with all playback devices on the blockchain, this increases the speed at which the first playback device joins the blockchain.
[0058] In other embodiments, when the first playback device joins the blockchain, it can confirm transactions with any N second playback devices on the blockchain; for example, Figure 3 This is a schematic diagram of the topology of another DAG blockchain network provided in this application embodiment; when the first playback device 1 joins the chain, the first playback device 1 can confirm the transaction with the genesis playback device 1 and / or the genesis playback device 2; when the first playback device 2 joins the chain, the first playback device 2 can confirm the transaction with the genesis playback device 2 and playback device node 1; when the first playback device 3 joins the chain, the first playback device 3 can confirm the transaction with the genesis playback device 1...; and so on, the remaining first playback devices confirm the transaction with their corresponding N arbitrary second playback devices respectively, generating a blockchain with a DAG topology.
[0059] Understandably, in the example above, since the first playback device can confirm transactions with any N second playback devices without needing to confirm transactions with the first N playback devices in the order they joined the chain, it is possible to support multiple first playback devices simultaneously and in parallel confirming transactions with their corresponding N arbitrary second playback devices. That is, playback device 1 confirming transactions with the genesis playback device and / or genesis playback device 2, and playback device 3 confirming transactions with the genesis playback device 1, can occur simultaneously, thus improving the joining speed of the first playback devices.
[0060] In this application embodiment, the playback device can also be described as a playback device node, and the genesis device can also be described as a genesis device node, genesis node, etc. This application embodiment does not limit this.
[0061] This application provides a viewership statistics method, which can be applied to electronic devices. Figure 4 This is a schematic diagram illustrating the implementation process of the viewership statistics method provided in the embodiments of this application, as follows: Figure 4 As shown, the method includes step 401 and step 403:
[0062] Step 401: Determine the fourth playback device that has played the first program on the pre-generated blockchain; wherein the topology of the blockchain is a DAG, and the nodes of the DAG include at least the fourth playback device;
[0063] Step 402: Obtain the playback data of the first program recorded by the fourth playback device;
[0064] Step 403: At least based on the playback data of the first program, calculate the viewership parameters of the first program.
[0065] In some embodiments, the viewership parameters may include viewership ratings and / or click-through rates. The viewership parameters of the first program during a given time period can be determined based on the ratio of the number of fourth playback devices that played the first program on the blockchain to the total number of playback devices. This application embodiment does not limit the duration of the time period.
[0066] Understandably, the blockchain used for viewership statistics is generated based on the rules of a directed acyclic graph, which increases the transaction speed of the blockchain used for viewership statistics, thereby increasing the speed of viewership statistics.
[0067] Viewership statistics refer to the statistics of video program ratings or click-through rates. Ratings or click-through rates indicate the percentage of people who watched a particular program within a certain period of time out of the total audience. In different market segments such as traditional digital television, internet broadband television, and video websites, ratings and click-through rates are key indicators for evaluating the effectiveness and popularity of program production, and are important references for program production, scheduling, and adjustments.
[0068] Traditional viewership data collection methods, such as the diary card method and the meter method, involve selecting a small sample of users, manually recording viewership information, or collecting viewership data using observation instruments. This data is then reported to a server for processing at a predetermined time via telephone or broadband network. With the development of blockchain technology, its immutable nature is also being applied to viewership rating methods to improve the accuracy of ratings.
[0069] The existing methods for statistical analysis of viewership data have several drawbacks, including limited sample size coverage, high data analysis costs, susceptibility to data tampering, and low data accuracy.
[0070] In some embodiments, the blockchain-based viewership rating statistics method employs a public blockchain with a chain structure. However, it suffers from slow processing speed and high costs. Especially with the current explosion of massive amounts of short video content, how to accelerate data processing and reduce data processing costs while ensuring that the statistical sample size is no longer limited and the statistical data is not easily tampered with is a new challenge facing viewership data statistics.
[0071] This application provides a method and system for viewership data statistics based on directed acyclic graphs (DAGs). By leveraging the characteristics of DAGs—fast data processing, strong scalability, and high security—it solves the aforementioned problems in the viewership data statistics process.
[0072] Digital television broadcasting, broadband internet television, and mobile short videos are flourishing, and the quality of a program's production directly determines its popularity. Television ratings and short video click-through rates are important indicators for evaluating the popularity and production quality of films and television programs. This application proposes a method and system for statistical analysis of viewership data based on a directed acyclic graph (DAG). In some embodiments, multiple playback device nodes exist within the DAG blockchain, forming a DAG blockchain topology. Each playback device node includes at least a data acquisition module, a data storage module, a data processing module, and an input module, each responsible for collecting, storing, processing, and inputting viewership data into the blockchain.
[0073] Based on this, the exemplary application of the embodiments of this application in a practical application scenario will be described below.
[0074] Figure 5 This is a schematic diagram of viewership data information provided in an embodiment of this application, such as... Figure 5 As shown, the data acquisition module obtains the device information of the first playback device. The device information includes the device type and MAC address, the timestamp of each first program, and the program information of the first program. The program information includes the program name, program duration, program author (an example of a cast and crew member), and key video frame segments of the program, wherein the video frame segments are saved in the form of images.
[0075] In some embodiments, after the data acquisition module completes the collection of viewing data information, it stores it in the data storage module.
[0076] In some embodiments, the data processing module is responsible for processing the viewership data of the first program and determining whether the viewership data meets the statistical requirements based on preset conditions.
[0077] In some embodiments, the blockchain module performs a blockchain entry operation based on the processing results of the viewing data by the data processing module after the viewing data is successfully verified (for example, the similarity between the playback data of the first program and the reference data meets a first threshold). The blockchain module also synchronizes the viewing data information of the first program with other playback device nodes on the blockchain for accounting purposes, thereby preventing the viewing data information from being tampered with.
[0078] Figure 6 This is a schematic diagram of the viewing data information processing flow provided in the embodiments of this application, such as... Figure 6As shown, the acquisition module packages and compresses the viewership data of the first program and stores it in the data storage module. The data storage module is responsible for storing the viewership data written by the acquisition module and marking it as either processed or unprocessed. Viewership data just written by the acquisition module is marked as unprocessed, while data processed by the processing module is marked as processed. When unprocessed data is stored, the data storage module sends a data processing request signal to the processing module, requesting processing. The processing module processes the unprocessed data before storing it in the data storage module. After successful acceptance of the viewership data, the processing module notifies the input module to perform the input operation.
[0079] In some embodiments, the viewing data is processed, namely, at least one frame of the playback image in the playback data of the first program is hashed, and it is determined whether the similarity between the playback image and the corresponding reference image meets a first threshold.
[0080] In some embodiments, after receiving a data processing request signal from the storage module, the data processing module reads the playback data of the first program from the storage module and performs hash processing on the playback image in the playback data to obtain a first hash value. The first playback device node broadcasts the program name of the first program and the time location information of the playback image, requesting the third playback device node on the blockchain to assist in providing the hash value of the reference image at the corresponding time in the first program for viewing data acceptance. After receiving the second hash value of the reference image, the data processing module calculates the image similarity between it and the first hash value of the corresponding playback image. The similarity calculation of the two hash values can use a Hamming distance meter. Within the data processing module, a preset threshold μ is used. If d(x,y)≤μ, it indicates that the similarity between the playback data and the reference data meets the first condition, that is, the viewing data acceptance is successful.
[0081] In some embodiments, the data processing module calculates the hash value of the played image and the corresponding reference image using Hamming distance. After determining that the viewing data acceptance is successful, it notifies the blockchain module to perform the blockchain entry operation, adding the first playback device to the directed acyclic graph blockchain network.
[0082] In some embodiments, such as Figure 2 As shown, when the first first playback device node 1 joins the chain, it confirms the transaction with genesis device node 1 and genesis device node 2. When the second first playback device node 2 joins the chain, it confirms the transaction with genesis device node 2 and first playback node 1. And so on, until the qth first playback device node is added to the directed acyclic graph.
[0083] In some embodiments, nodes in a directed acyclic graph blockchain topology can be other device types, such as program servers.
[0084] This application provides a method and system for statistical analysis of viewership data based on a directed acyclic graph (DAG). The DAG technology is used in the statistical analysis of viewership data such as ratings. The playback device is divided into a collection module, a storage module, a processing module, and an input module. After the processing module successfully verifies the viewership data, the input module packages the viewership data and adds it to the DAG blockchain network.
[0085] The embodiments of this application increase the number of statistical samples, enhance the accuracy and security of statistical data, and prevent viewership data from being tampered with.
[0086] Figure 7 This is another schematic diagram of a blockchain network topology provided in this application embodiment. In the directed acyclic graph blockchain used in this embodiment, since there are no miners, no transaction fees are required, and the playback device node transacts with some device nodes on the blockchain, without the need for... Figure 7 Unlike traditional blockchains that require all nodes to participate in transactions, blockchains can significantly reduce power consumption during the process of acquiring the right to record transactions by eliminating large-scale transactions between all nodes and eliminating transaction fees.
[0087] It is understood that in the embodiments of this application, data such as user information are involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0088] It should be noted that although the steps of the method in this application are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps; or steps from different embodiments may be combined into a new technical solution.
[0089] Based on the foregoing embodiments, this application provides a playback device linking device, which includes various modules and units included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.
[0090] Figure 8This is a schematic diagram of the structure of the playback device linking device provided in the embodiments of this application, as shown below. Figure 8 As shown, the device 80 includes a data acquisition module 81, a first acquisition module 82, and an input module 83, wherein:
[0091] Acquisition module 81 is used to acquire playback data of at least one first program;
[0092] The first acquisition module 82 is used to acquire reference data corresponding to the playback data from the blockchain based on the playback data;
[0093] The blockchain module 83 is used to add itself to the blockchain according to the DAG rule when the similarity between the playback data and the reference data meets the first condition.
[0094] In some embodiments, the chain entry module 83 is configured to request consensus verification from N second playback devices on the blockchain when the similarity between the playback data and the reference data meets a first condition; wherein N is greater than or equal to 1 and less than the number of playback devices on the blockchain; and when the first playback device passes the consensus verification of the N second playback devices, it connects itself to the N second playback devices in a first direction.
[0095] In some embodiments, the playback data includes at least one frame of the first program, and the device 80 further includes a determining module, which is configured to determine that the similarity between the playback data and the reference data satisfies a first condition when the similarity between the M frames of the playback image and the corresponding reference image is greater than or equal to a first threshold; wherein M is greater than or equal to 1 and less than or equal to the number of the playback images.
[0096] In some embodiments, the apparatus 80 further includes a processing module and a broadcasting module. The processing module is configured to perform hash processing on the playback image to obtain a first hash value. The broadcasting module is configured to broadcast at least the temporal location information of the playback image in the first program, so that at least one third playback device on the blockchain provides the first playback device with a second hash value of a reference image corresponding to the playback image in the first program based on the broadcast content. The determining module is configured to determine the similarity between the playback image and the reference image based on the similarity between the first hash value and the second hash value.
[0097] Based on the foregoing embodiments, this application provides a viewership statistics device, which includes various modules and units included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.
[0098] Figure 9 This is a schematic diagram of the viewership statistics device provided in the embodiments of this application, as shown below. Figure 9 As shown, the device 90 includes a determining module 91, a second acquiring module 92, and a statistics module 93, wherein:
[0099] The determining module 91 is used to determine the fourth playback device that has played the first program on the pre-generated blockchain; wherein the topology of the blockchain is a DAG, and the nodes of the DAG include at least the fourth playback device;
[0100] The second acquisition module 92 is used to acquire the playback data of the first program recorded by the fourth playback device;
[0101] The statistics module 93 is used to calculate the viewership parameters of the first program based at least on the playback data of the first program.
[0102] In some embodiments, the viewership parameters include viewership ratings and / or click-through rates.
[0103] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0104] It should be noted that, in the embodiments of this application... Figure 8 The playback device chain input device and shown Figure 9 The module division of the viewership statistics device shown is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or have two or more units integrated into one unit. The integrated units can be implemented in hardware, as software functional units, or a combination of both.
[0105] It should be noted that, in the embodiments of this application, if the above-described methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0106] This application provides an electronic device. Figure 10 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application, such as... Figure 10 As shown, the electronic device 100 includes a memory 101 and a processor 102. The memory 101 stores a computer program that can run on the processor 102. When the processor 102 executes the program, it implements the steps in the method provided in the above embodiments.
[0107] It should be noted that the memory 101 is configured to store instructions and applications executable by the processor 102, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 102 and various modules in the electronic device 100, which can be implemented by flash memory or random access memory (RAM).
[0108] This application provides an electronic device. Figure 11 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application, such as... Figure 11 As shown, the electronic device 110 includes a memory 111 and a processor 112. The memory 111 stores a computer program that can run on the processor 112. When the processor 112 executes the program, it implements the steps in the method provided in the above embodiments.
[0109] It should be noted that the memory 111 is configured to store instructions and applications executable by the processor 112, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the various modules of the processor 112 and the electronic device 110, which can be implemented by flash memory or random access memory (RAM).
[0110] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method provided in the above embodiments.
[0111] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the method provided in the above-described method embodiments.
[0112] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0113] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0114] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0115] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0116] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0117] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0118] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0119] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0120] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0121] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0122] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0123] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0124] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for adding a playback device to a chain, applied to a first playback device to be added to the chain, characterized in that, The method includes: Collect playback data for at least one primary program; Based on the playback data, obtain reference data corresponding to the playback data from the blockchain; If the similarity between the playback data and the reference data meets the first condition, the data is added to the blockchain according to the DAG rule. The playback data includes at least one frame of the first program. If the similarity between the playback image in M frames and the corresponding reference image is greater than or equal to a first threshold, it is determined that the similarity between the playback data and the reference data satisfies a first condition; wherein M is greater than or equal to 1 and less than or equal to the number of playback images.
2. The method according to claim 1, characterized in that, The step of adding itself to the chain according to the DAG rule when the similarity between the playback data and the reference data meets the first condition includes: If the similarity between the playback data and the reference data meets a first condition, consensus verification is requested from N second playback devices on the blockchain; wherein N is greater than or equal to 1 and less than the number of playback devices on the blockchain; If the first playback device passes the consensus verification of the N second playback devices, it will connect itself to each of the N second playback devices in a first direction.
3. The method according to claim 1 or 2, characterized in that, The image being played is hashed to obtain a first hash value; At least the temporal location information of the played image in the first program is broadcast, so that at least one third playback device on the blockchain provides the first playback device with a second hash value of a reference image in the first program corresponding to the played image, based on the broadcast content; The similarity between the playback image and the reference image is determined based on the similarity between the first hash value and the second hash value.
4. A viewership statistics method, characterized in that, include: A fourth playback device that has already played the first program on a pre-generated blockchain is identified; wherein the topology of the blockchain is a DAG, and the nodes of the DAG include at least the fourth playback device, and the fourth playback device is a playback device that has been added to the blockchain through the playback device joining method of claim 1; Obtain the playback data of the first program recorded by the fourth playback device; At least based on the playback data of the first program, the viewership parameters of the first program are calculated.
5. The method according to claim 4, characterized in that, The viewership parameters include viewership ratings and / or click-through rates.
6. A playback device link input device, characterized in that, include: The acquisition module is used to acquire playback data of at least one first program; The playback data includes at least one frame of the first program. The first acquisition module is used to acquire reference data corresponding to the playback data from the blockchain based on the playback data; The blockchain module is used to add itself to the blockchain according to the DAG rule when the similarity between the playback data and the reference data meets the first condition. If the similarity between the playback image in M frames and the corresponding reference image is greater than or equal to a first threshold, it is determined that the similarity between the playback data and the reference data satisfies a first condition; wherein M is greater than or equal to 1 and less than or equal to the number of playback images.
7. A viewership statistics device, characterized in that, include: A determining module is used to determine a fourth playback device that has played the first program on a pre-generated blockchain; wherein the topology of the blockchain is a DAG, and the nodes of the DAG include at least the fourth playback device, and the fourth playback device is a playback device that has been added to the blockchain through the playback device joining method of claim 1; The second acquisition module is used to acquire the playback data of the first program recorded by the fourth playback device; The statistics module is used to calculate the viewership parameters of the first program based at least on the playback data of the first program.
8. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the method according to any one of claims 1 to 3, or when the processor executes the program, it implements the method according to claim 4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 3, or when the computer program is executed by a processor, it implements the method as described in claim 4.