CN112565780B - Game state information sharing method, network device, and storage medium - Google Patents

Game state information sharing method, network device, and storage medium Download PDF

Info

Publication number
CN112565780B
CN112565780B CN202011507064.2A CN202011507064A CN112565780B CN 112565780 B CN112565780 B CN 112565780B CN 202011507064 A CN202011507064 A CN 202011507064A CN 112565780 B CN112565780 B CN 112565780B
Authority
CN
China
Prior art keywords
watermark
game
macro block
state information
game state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011507064.2A
Other languages
Chinese (zh)
Other versions
CN112565780A (en
Inventor
司美玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, MIGU Interactive Entertainment Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011507064.2A priority Critical patent/CN112565780B/en
Publication of CN112565780A publication Critical patent/CN112565780A/en
Application granted granted Critical
Publication of CN112565780B publication Critical patent/CN112565780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/467Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

Compared with the related art, the method and the device acquire the original video and the game state information of the game; the method comprises the steps of obtaining a watermark value sequence according to game state information, obtaining a watermark embedding area from a game original video, obtaining a game sharing video according to the watermark value sequence and the watermark embedding area, and sharing the game video and the state video by sending the game sharing video carrying the game state watermark information without additionally storing the game state information by using a third-party storage device.

Description

Game state information sharing method, network device, and storage medium
Technical Field
The embodiment of the application relates to the field of game sharing, in particular to a game state information sharing method, network equipment and a storage medium.
Background
During the game experience process of the user, game state information such as user grade, residual energy and the like can be generated, and when game data are shared, the related technology can use a third-party storage device to store the game state information, and the game state information is received and transmitted through the third-party storage device so as to realize the sharing of the game state information.
However, in the related art, when sharing game data, a third party storage device needs to be introduced to store game state information, and both video and shared game state information need to be transmitted, and the transmission process is complex.
Disclosure of Invention
The embodiment of the application aims to provide a game state information sharing method, network equipment and a storage medium, so that a third party device is not required to be introduced to store shared game information, and transmission of shared data is simplified.
In order to solve the above technical problems, the embodiment of the present application provides a game information sharing method, including the following steps: acquiring original video and game state information of a game; obtaining a watermark value sequence according to the game state information; obtaining a watermark embedding area from the game original video; acquiring a game sharing video according to the watermark value sequence and the watermark embedding area; and sending the game sharing video.
The embodiment of the application also provides a game state information sharing method, which comprises the following steps: acquiring a game sharing video, wherein the game sharing video carries game state information; obtaining a watermark embedding area according to the game sharing video; obtaining a watermark value sequence according to the watermark embedding area; and acquiring game state information according to the watermark value sequence.
The embodiment of the application also provides network equipment and at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the game state information sharing method described above.
The embodiment of the application also provides a computer readable storage medium storing a computer program which realizes the game state information sharing method when being executed by a processor.
Compared with the related art, the method and the device acquire the original video and the game state information of the game; the method comprises the steps of obtaining a watermark value sequence according to game state information, obtaining a watermark embedding area from a game original video, obtaining a game sharing video according to the watermark value sequence and the watermark embedding area, and sharing the game video and the state video by sending the game sharing video carrying the game state watermark information without additionally storing the game state information by using a third-party storage device.
In addition, the obtaining the watermark embedding area from the game original video includes: acquiring corner points according to the original video of the game; and acquiring the watermark embedding area according to the corner points. In the implementation, the watermark region is acquired according to the corner points, so that the embedded watermark has better invisibility, and in addition, the corner points are inherent invariant characteristic points of the image, have better resistance and insensitivity to noise, so that the embedded watermark has stronger robustness and is beneficial to extracting the watermark.
In addition, after the watermark embedding area is obtained from the original video of the game, the method further comprises the following steps: obtaining a contrast masking threshold of the watermark embedding region; the obtaining the game sharing video according to the watermark value sequence and the watermark embedding area comprises the following steps: and embedding the watermark value sequence into the watermark embedding area according to the contrast masking threshold. In the implementation, the watermark embedding region in which the watermark sequence is embedded is obtained according to the contrast masking threshold, so that the invisibility of the watermark is further improved, the difference between the original image and the image before embedding the watermark is small, and the human eyes cannot distinguish the two images.
In addition, the watermark embedding region includes a first macro block of a first game original frame and a second macro block of a second game original frame; the first game original frame and the second game original frame are adjacent frames of a game original video, and the position of the first macro block in the first game original frame is the same as the position of the second macro block in the second game original frame; said embedding said watermark value sequence into said watermark embedding region according to said contrast masking threshold, comprising: watermark values are embedded in the first and second macro blocks according to the contrast masking threshold of the first macro block and the contrast masking threshold of the second macro block. In this implementation, one watermark value is embedded into the macro block, making the embedded watermark value more robust.
In addition, the watermark value sequence includes a first watermark value and a second watermark value; the embedding watermark values into the first macro block and the second macro block according to the contrast masking threshold of the first macro block and the contrast masking threshold of the second macro block, comprising: if the watermark value is the first watermark value, acquiring a first watermark DCT coefficient matrix according to the contrast masking threshold of the first macro block and the DCT coefficient matrix of the first macro block, and acquiring a second watermark DCT coefficient matrix according to the contrast masking threshold of the second macro block and the DCT coefficient matrix of the second macro block; and if the watermark value is the second watermark value, acquiring a third watermark DCT coefficient matrix according to the contrast masking threshold of the first macro block and the DCT coefficient matrix of the second macro block, and acquiring a fourth watermark DCT coefficient matrix according to the contrast masking threshold of the second macro block and the DCT coefficient matrix of the second macro block.
In addition, the game sharing video includes a first watermark frame including a first watermark macroblock and a second watermark frame including a second watermark macroblock; the first watermark frame and the second watermark frame are adjacent in the game sharing video, the position of the first watermark macro block in the first watermark frame is the same as the position of the second watermark macro block in the second watermark frame, and the watermark value is the watermark value in the watermark value sequence of the game state information; the obtaining the watermark value sequence according to the watermark embedding area comprises the following steps: extracting watermark values according to the IDCT coefficient matrix of the first watermark macro block and the IDCT coefficient matrix of the second watermark macro block of the game sharing video.
In addition, the watermark value sequence includes a first watermark value and a second watermark value; extracting watermark values according to the IDCT coefficient matrix of the first watermark macro block of the first watermark frame of the game sharing video and the IDCT coefficient matrix of the second watermark macro block of the second watermark frame, wherein the method comprises the following steps: acquiring the number count1 of the IDCT coefficients of the first watermark macro block larger than the IDCT coefficients of the second watermark macro block; acquiring the number count2 of the IDCT coefficients of the first watermark macro block smaller than the IDCT coefficients of the second watermark macro block; the position of the IDCT coefficient of the first watermark macro block in the IDCT coefficient matrix of the first watermark macro block is the same as the position of the IDCT coefficient of the second watermark macro block in the IDCT coefficient matrix of the first watermark macro block; and extracting watermark values according to the count1 and the count 2. In the implementation, the extracted watermark value is determined according to the number of the differences, and the accuracy of the extracted watermark value is improved.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings.
Fig. 1 is a flowchart of a game state information sharing method according to a first embodiment of the present application;
FIG. 2 is a flowchart of the sub-steps of a game state information sharing method according to a first embodiment of the present application;
FIG. 3 is a diagram of a binarized image of game state information according to a first embodiment of the present application;
fig. 4 is a flowchart of a game state information sharing method according to a second embodiment of the present application;
fig. 5 is a schematic structural view of a server according to a third embodiment of the present application;
fig. 6 is a schematic diagram of a game state information sharing system according to a fourth embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
The first embodiment of the present application relates to a game status information sharing method, which can be applied to a server, but is not limited thereto. The game state information sharing method of the embodiment comprises the following steps: acquiring original video and game state information of a game; acquiring a game sharing video according to the game original video and the game state information, wherein the game sharing video carries the game state information; and sending the game sharing video. According to the embodiment, a third-party storage device is not required to be used for additionally storing game state information, the game is shared, meanwhile, the state information is shared, data transmission is simple, data sharing is more synchronous, and the sharing process is more convenient and quicker. The implementation details of the game state information sharing method of the present embodiment are specifically described below, and the following description is provided only for convenience of understanding, and is not necessary to implement the present embodiment.
The flow of the first embodiment of the present application is shown in fig. 1.
Step 101, obtaining original video of game and game state information.
In one example, the server obtains raw video of the game and game state information from a terminal, such as a cell phone, which may be game related data, such as user level, remaining energy, etc.
Step 102, obtaining game sharing video according to the game original video and the game state information.
Specifically, a watermark value sequence is obtained according to game state information; obtaining a watermark embedding area from an original video of a game; and acquiring the game sharing video according to the watermark value sequence and the watermark embedding area. The flow of capturing a game sharing video is shown in fig. 2.
In a substep 201, a watermark value sequence is obtained from the game state information.
In one example, the shared game state information is stored in a binarized image, and the binarized image is processed to include a first watermark value and a second watermark value. The watermark image size is in principle not limited and is determined according to the amount of embedded state information. The processing and storing of the shared game state information into the binarized image is to simplify watermark values included in the watermark value sequence, so that the watermark values can be conveniently embedded.
Illustratively, as shown in fig. 3, the binarized image 301 is processed into a watermark value sequence including a first watermark value-1 and a second watermark value 1, the pixels with gray values of 0 are set to the first watermark value-1, the pixels with gray values of 255 are set to the second watermark value 1, and the number of the watermark value sequence is the same as the number of the pixels of the binarized image.
In a substep 202, a watermark embedding area is obtained from the original video of the game.
In one example, corner points are obtained from the original game video and watermark embedded regions are obtained from the corner points. Specifically, an original game frame is obtained from an original game video, corner points are obtained from the original game frame, and a plurality of macro blocks are selected as watermark embedding areas by taking the corner points as centers. In the related art, the algorithm selects a continuous region in the video to embed the watermark, in this embodiment, the watermark embedding region is obtained according to the corner, the corner is mainly concentrated in the region with complex texture and the place with obvious change of gray level, and the watermark embedding region is obtained according to the corner, so that the robustness of embedding and extracting the watermark image can be improved.
For example, the number of watermark values in the watermark value sequence is num, and taking each corner as a center, 32×32 pixels, that is, 16×8 macro blocks are selected, and the following is an example of extracting the corner of one game original frame in the game original video.
Firstly, extracting Harris corner points of an image, wherein the Harris corner points are points which are used for measuring that gray signals of the image have significant transformation in horizontal and vertical directions by using an autocorrelation function. Constructing an autocorrelation matrix, wherein the autocorrelation matrix is as follows:
wherein w (x, y) is a windowFunction, defined as->I is the gray function of the image, I x Representing the difference in the x-direction, I y Representing the difference in the y-direction, A, C and B are the Gaussian function pair, respectively>And I x I y Proceeding withAnd (5) Gaussian weighting. The matrix M is an autocorrelation matrix of the current pixel point and has two eigenvalues lambda 1 And lambda (lambda) 2 Its two eigenvalues are proportional to the M principal curvature. The corner difference method given by Harris does not need to calculate specific characteristic values, but calculates a corner response value R to judge the corner. The calculation formula of R is as follows: r=detm- α (traceM) 2 Wherein Trace (M) =λ 12 =A+C;Det(M)=λ 1 λ 2 =AC-B 2 Trace (M) is the Trace of matrix M, which is the determinant of matrix M. Alpha is an empirical value, usually taken as alpha E [0.04,0.06 ]]. And when the response value of the target pixel point is larger than a certain threshold value, the pixel point is defined as a corner point. The selected corner points are ordered according to the magnitude of the response value, and then the first N corner points are selected, where n=num/16.
After obtaining N corner points of the original frame of the game, 16 macro blocks of 8 x 8 are obtained by taking each corner point as a center.
By the method, the next game original frame, namely the second game original frame, of which the first game original frame is adjacent to the first game original frame is obtained from the game original video, and N angular points are respectively obtained in the first game original frame and the second game original frame.
It should be noted that, in the above example, N corner points can be obtained from one game original frame, and when the original video has low resolution, the corner points obtained in one game original frame are less than N, that is, two adjacent game original frames cannot embed all watermark sequences, and multiple groups of adjacent frames can be embedded, that is, N diagonal points are obtained from multiple groups of frames, and a complete watermark sequence is spliced from multiple frames of watermark images.
DCT transformation is carried out on the original video of the game, and the DCT transformation formula of the macro block with the size of 8 x 8 is as follows:
wherein u=0, 1, … M-1; v=0, 1, … N-1; m=8; n=8;
taking one corner point of the obtained N corner points as an example, 16 macro blocks with the corner points as centers and 8 x 8 macro blocks are calculated, and considering that the sensitivity of human eyes to the image has a certain relationship with the brightness of the image and the texture information of the image. The present embodiment thus calculates its brightness and contrast masking thresholds, respectively.
Firstly, the direct current coefficient of the (i+1) th macro block of 8 x 8 with the corner point as the center is obtained, and the DC coefficient is expressed as follows:
wherein i is an integer, i is greater than or equal to 0 and less than or equal to 15, and the formula is as follows after obtaining DC coefficients of 16 8 x 8 macro blocks:
then, a luminance masking threshold is calculated, which is generally dependent on the background luminance of the local image region, the brighter the background, the higher the masking value, i.e. the larger the modification can be made in the bright region, the luminance masking threshold formula at the (x, y) position in the ith macroblock, i.e. the ith DCT block, is as follows:
wherein, the liquid crystal display device comprises a liquid crystal display device,take the value of 0.649, t x,y For the frequency sensitivity value of the (x, y) th DCT coefficient in the frequency sensitivity table as shown in Table one, each data in the table represents the smallest DCT coefficient that can be perceived without masking noise, i.e.Just as the perceptual distortion threshold, a lower value indicates that the human eye is more sensitive to the frequency, and the amount of variability is smaller, as shown in the frequency sensitivity table for the 8 x 8dct block.
List one
Index 1 2 3 4 5 6 7 8
1 1.40 1.01 1.16 1.66 2.40 2.43 4.79 6.56
2 1.01 1.45 1.32 1.52 2.00 2.71 3.67 4.93
3 1.16 1.32 2.24 2.59 2.98 3.64 4.60 5.88
4 1.66 1.52 2.59 3.77 4.55 5.30 6.28 7.60
5 2.40 2.00 2.98 4.55 6.15 7.46 8.71 10.17
6 3.43 2.71 3.64 5.30 7.46 9.62 11.58 13.51
7 4.79 3.67 4.60 6.28 8.71 11.58 14.5 17.29
8 6.56 4.93 5.88 7.60 10.17 13.51 17.29 21.15
After computing the luminance masking threshold, a contrast masking threshold is computed, which is one of the important factors affecting the visual perception, and when the presence of two image components affects the visibility of the other image component, a phenomenon called contrast masking, for which the formula is as follows:
SC i,x,y =max{TC i,x,y ,|X i,x,y | β ×(TC i,x,y ) 1-β };
where β is a constant between 0 and 1, the value β=0.7 in the present application. TC (TC) i,x,y The threshold is masked for the luminance calculated above. X is X i,x,y After the DCT transform for the ith macroblock, the DCT coefficients at (x, y) th in the DCT matrix.
The 16 macro blocks of 8 x 8 around the corner point and the contrast masking threshold value form a watermark template W (x, y), wherein x and y are the positions of the pixel points in the original game frame.
The contrast masking threshold of the watermark embedding region is obtained in the above-described manner.
And a sub-step 203 of acquiring the game sharing video according to the watermark value sequence and the watermark embedding area.
In one example, the watermark value sequence is embedded in the watermark embedding region according to a contrast masking threshold.
In one example, the watermark embedding region includes a first macroblock of a first game original frame and a second macroblock of a second game original frame; the first game original frame and the second game original frame are adjacent frames of a game original video, and the position of the first macro block in the first game original frame is the same as the position of the second macro block in the second game original frame; watermark values are embedded in the first and second macro blocks according to the contrast masking threshold of the first macro block and the contrast masking threshold of the second macro block.
In one example, if the watermark value is the first watermark value, a first watermark DCT coefficient matrix is obtained according to the contrast masking threshold of the first macroblock and the DCT coefficient matrix of the first macroblock, and a second watermark DCT coefficient matrix is obtained according to the contrast masking threshold of the second macroblock and the DCT coefficient matrix of the second macroblock; and if the watermark value is the second watermark value, acquiring a third watermark DCT coefficient matrix according to the contrast masking threshold of the first macro block and the DCT coefficient matrix of the second macro block, and acquiring a fourth watermark DCT coefficient matrix according to the contrast masking threshold of the second macro block and the DCT coefficient matrix of the second macro block.
For example, if the binary image to be embedded is: 256×256, 256×256 blocks of 8×8 macroblock are required to be obtained, and in the previous example, the template is 16×8 macroblocks, and 4096 pairs of templates are required, that is, 4096 pairs of corner points need to be found, and if 4096 pairs of corner points meeting the conditions in the previous example are not found in a group of adjacent frames, corner points are found from multiple groups of adjacent frames. After the corner point is found, a template, namely a contrast masking threshold of 16 macro blocks with the corner point as a center is obtained, adjacent frames are a first game original frame and a second game original frame, if the watermark value is 1, the DCT coefficients in DCT coefficient matrixes of the first macro blocks of the first game original frame are respectively added with the contrast masking threshold of corresponding positions of the macro blocks, so that a first watermark DCT coefficient matrix is obtained, for example, the DCT coefficient positions are in (1, 1), and the contrast masking threshold of the positions (1, 1) is added; and subtracting contrast masking thresholds of corresponding positions of the macro blocks from DCT coefficients of DCT coefficient matrixes of the second macro blocks of the second game original frame area respectively to obtain second watermark DCT coefficient matrixes. And if the watermark value is-1, subtracting the contrast masking threshold value of the corresponding position of the macro block from the DCT coefficient of the DCT coefficient matrix of the first macro block in the first game original frame area respectively to obtain a third watermark DCT coefficient matrix, and adding the contrast masking threshold value of the corresponding position of the macro block to the DCT coefficient of the DCT coefficient matrix of the second macro block in the second game original frame area respectively to obtain a fourth watermark DCT coefficient matrix. The watermark is embedded into the original video of the game in the video coding process by using simple addition and subtraction operation, so that the operation complexity does not influence the coding efficiency of the game.
It should be noted that, whether each 8×8DCT coefficient needs to add or subtract the contrast masking threshold may be selected by itself, in order to enhance the concealment of the added watermark, a portion of the DCT coefficients may be selected to add or subtract the contrast masking threshold, so as to embed the watermark, for example, an intermediate frequency coefficient with stronger robustness in the DCT coefficient matrix may be selected, and in the case of enhancing the concealment of the watermark, the robustness of embedding the watermark is ensured as much as possible.
Step 103, sending the game sharing video.
In one example, the DCT coefficients after the processing are quantized, encoded, and generated into a video code stream, and sent to a terminal, such as a mobile phone, etc.
In the embodiment, original video and game state information of a game are obtained; the game sharing video is obtained according to the game original video and the game state information, the game sharing video carries the game state information, the game state information is not required to be additionally stored by a third-party storage device, the game video and the state video can be shared by sending the game sharing video, and compared with the situation that the game state information and the game video are required to be respectively transmitted in the related technology, the game sharing video sharing method is used for sharing the state information while sharing the game, the transmission data is simple, the data sharing is more synchronous, the sharing process is more convenient and quicker, in addition, the image embedding area is obtained according to the corner points, so that the embedded watermark robustness is stronger, meanwhile, the watermark embedding concealment is also increased, the watermark value is embedded into the image according to the contrast masking threshold, the watermark embedding concealment is further increased, namely the watermark invisibility is the same, so that the experience of a user watching the game watermark video and the game original video is embedded with one piece of watermark paper according to a pair of macro blocks in two adjacent frames, and the robustness of the watermark paper is further improved.
A second embodiment of the present application relates to a game state information sharing method. The embodiment can be applied to a terminal, such as a mobile phone, a computer, a tablet computer, and other devices, but is not limited thereto. The game state information sharing method of the embodiment comprises the following steps: acquiring a game sharing video; and extracting game state information in the game sharing video. According to the embodiment, the game state information is not required to be received, the game video is also required to be received, the game state information can be obtained only by receiving the game sharing video, the received data is simpler, and the game state information is more convenient and quicker to obtain.
A flowchart of a game state information sharing method of a second embodiment of the present application is shown in fig. 4.
Step 401, obtaining a game sharing video.
In one example, the mobile phone acquires a game sharing video transmitted by the server, wherein the game sharing video carries game state information, and then extracts the game state information according to the game sharing video, as follows.
Step 402, obtaining a watermark embedding area according to a game sharing video.
In one example, the watermark embedding region is obtained from two adjacent frames of the game shared video. For example: sequentially searching from the first frame and the second frame of the game sharing video.
Step 403, obtaining a watermark value sequence according to the watermark embedding area.
In one example, a game sharing video includes a first watermark frame including a first watermark macroblock and a second watermark frame including a second watermark macroblock; the first watermark frame and the second watermark frame are adjacent in the game shared video, the position of the first watermark macro block in the first watermark frame is the same as the position of the second watermark macro block in the second watermark frame, and the watermark value is the watermark value in the watermark value sequence of the game state information; extracting watermark values according to the IDCT coefficient matrix of the first watermark macro block and the IDCT coefficient matrix of the second watermark macro block of the game sharing video, so as to obtain all watermark values in the watermark paper sequence, and further obtain game state information.
In one example, the number count1 of the IDCT coefficients of the first watermark macro block greater than the IDCT coefficients of the second watermark macro block is obtained; acquiring the number count2 of the IDCT coefficients of the first watermark macro block smaller than the IDCT coefficients of the second watermark macro block; the position of the IDCT coefficient of the first watermark macro block in the IDCT coefficient matrix of the first watermark macro block is the same as the position of the IDCT coefficient of the second watermark macro block in the IDCT coefficient matrix of the first watermark macro block; and extracting watermark values according to the count1 and the count 2. And extracting watermark values of all watermark embedding areas in the mode, thus obtaining a watermark value sequence.
Step 404, obtaining game state information according to the watermark value sequence.
In one example, a binarized image of the game state information is obtained from the watermark value sequence, and the game state information is extracted from the binarized image of the game state information.
Illustratively, the mobile phone decodes the video stream of the obtained game sharing video to obtain the dequantized coefficient, i.e., the IDCT coefficient. After acquiring the count1 and the count2, extracting the watermark value according to the size relation of the count1 and the count 2. If count1 is greater than count2, the extracted watermark value is 1, whereas the extracted watermark value is-1. And by comparing the difference numbers, selecting a plurality of bases which are the last watermark information value extraction, the accuracy of watermark information extraction is improved.
The embodiment obtains a game sharing video; and extracting game state information in the game sharing video. In addition, by comparing the number of differences, a plurality of bases which are the last watermark information value are selected, and the accuracy of watermark information extraction is improved.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
A third embodiment of the present application relates to a network device, as shown in fig. 5, including: at least one processor 501; and a memory 502 communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above embodiments.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
A fourth embodiment of the present application relates to game state information sharing information, as shown in fig. 6, the game state information sharing system includes at least one server 601, and at least one terminal 602 in communication with the server, the server 601 acquiring a game original video and game state information from a terminal of a first user; and acquiring a game sharing video according to the game original video and the game state information, wherein the game sharing video carries the game state information, the game sharing video is sent to the terminal 602 of the second user, the terminal 602 acquires the game sharing video, and the game state information in the game sharing video is extracted, so that the second user can know the sharing game content conveniently.
A fifth embodiment of the present application relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the application and that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (7)

1. A game state information sharing method, characterized by comprising:
acquiring original video and game state information of a game;
obtaining a watermark value sequence according to the game state information;
obtaining a watermark embedding area from the game original video;
obtaining a game sharing video according to the watermark value sequence and the watermark embedding area;
wherein said obtaining a game sharing video from said watermark value sequence and said watermark embedding region comprises:
embedding watermark values into a first macro block and a second macro block of a first game original frame in the watermark embedding area according to a contrast masking threshold of the first macro block and the contrast masking threshold of the second macro block of a second game original frame so as to acquire a game sharing video;
wherein the watermark value sequence comprises a first watermark value and a second watermark value;
if the watermark value in the watermark value sequence is the first watermark value, acquiring a first watermark DCT coefficient matrix according to the contrast masking threshold of the first macro block and the DCT coefficient matrix of the first macro block, and acquiring a second watermark DCT coefficient matrix according to the contrast masking threshold of the second macro block and the DCT coefficient matrix of the second macro block;
if the watermark value in the watermark value sequence is the second watermark value, acquiring a third watermark DCT coefficient matrix according to the contrast masking threshold of the first macro block and the DCT coefficient matrix of the second macro block, and acquiring a fourth watermark DCT coefficient matrix according to the contrast masking threshold of the second macro block and the DCT coefficient matrix of the second macro block;
and sending the game sharing video.
2. The game state information sharing method according to claim 1, wherein the acquiring a watermark embedding area from the game original video includes:
acquiring corner points according to the original video of the game;
and acquiring the watermark embedding area according to the corner points.
3. The game state information sharing method according to claim 2, wherein after the watermark embedding area is obtained from the game original video, further comprising:
and acquiring the contrast masking threshold of the watermark embedding region.
4. The game state information sharing method of claim 3, wherein the first game original frame and the second game original frame are adjacent frames of a game original video, and the first macro block is located at the same position as the second macro block at the second game original frame.
5. A game state information sharing method, characterized by comprising:
acquiring a game sharing video, wherein the game sharing video carries game state information;
obtaining a watermark embedding area according to the game sharing video;
obtaining a watermark value sequence according to the watermark embedding area;
wherein the obtaining the watermark value sequence according to the watermark embedding area includes:
acquiring the number count1 of the IDCT coefficients of the first watermark macro block larger than the IDCT coefficients of the second watermark macro block;
acquiring the number count2 of the IDCT coefficients of the first watermark macro block smaller than the IDCT coefficients of the second watermark macro block; the position of the IDCT coefficient of the first watermark macro block in the IDCT coefficient matrix of the first watermark macro block is the same as the position of the IDCT coefficient of the second watermark macro block in the IDCT coefficient matrix of the first watermark macro block;
extracting watermark values according to the count1 and the count2;
acquiring game state information according to the watermark value sequence;
the first watermark frame and the second watermark frame are adjacent in the game sharing video, the position of the first watermark macro block in the first watermark frame is the same as the position of the second watermark macro block in the second watermark frame, and the watermark value is the watermark value in the watermark value sequence of the game state information.
6. A network device, comprising: at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the game state information sharing method of any one of claims 1 to 4 or the game state information sharing method of claim 5.
7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the game state information sharing method of any one of claims 1 to 4 or the game state information sharing method of claim 5.
CN202011507064.2A 2020-12-18 2020-12-18 Game state information sharing method, network device, and storage medium Active CN112565780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011507064.2A CN112565780B (en) 2020-12-18 2020-12-18 Game state information sharing method, network device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011507064.2A CN112565780B (en) 2020-12-18 2020-12-18 Game state information sharing method, network device, and storage medium

Publications (2)

Publication Number Publication Date
CN112565780A CN112565780A (en) 2021-03-26
CN112565780B true CN112565780B (en) 2023-08-15

Family

ID=75031171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011507064.2A Active CN112565780B (en) 2020-12-18 2020-12-18 Game state information sharing method, network device, and storage medium

Country Status (1)

Country Link
CN (1) CN112565780B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB255797A (en) * 1925-03-20 1926-07-20 Peters G D & Co Ltd Improvements in or relating to control valves for use in fluid pressure apparatus onvehicles
MX2012011078A (en) * 2010-07-19 2013-03-21 Inst Nac De Astrofisica Optica Y Electronica Video watermarking method resistant to temporal desynchronization attacks.
CN103179469A (en) * 2013-01-29 2013-06-26 潘玮玲 Video with virtual reality information and loading and decoding method thereof
KR102134597B1 (en) * 2016-03-01 2020-07-16 샤프 가부시키가이샤 Method for signaling opaque user data
CN109714599A (en) * 2017-10-26 2019-05-03 北京京东尚科信息技术有限公司 The method and device of video watermark processing based on HEVC
CN109309869B (en) * 2018-09-11 2021-01-26 东方网力科技股份有限公司 Watermark embedding method, device and storage medium
CN109685711B (en) * 2018-12-29 2022-09-30 中山大学 Anti-rotation watermark method for embedding periodogram in characteristic region
CN110418209B (en) * 2019-06-24 2021-07-20 荣耀终端有限公司 Information processing method applied to video transmission and terminal equipment
CN111127291B (en) * 2019-12-30 2023-06-20 山东师范大学 Image watermark embedding and extracting method and system based on space-frequency domain JND conversion

Also Published As

Publication number Publication date
CN112565780A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
Shi et al. Normalised gamma transformation‐based contrast‐limited adaptive histogram equalisation with colour correction for sand–dust image enhancement
US11109029B2 (en) Video enhancement method and device
CN107908998B (en) Two-dimensional code decoding method and device, terminal equipment and computer readable storage medium
WO2021047177A1 (en) Data encoding method and apparatus
US20090274368A1 (en) Image correction method and apparatus
CN114626967A (en) Digital watermark embedding and extracting method, device, equipment and storage medium
CN112150368A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112070648A (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and electronic equipment
CN113469869B (en) Image management method and device
CN113487473B (en) Method and device for adding image watermark, electronic equipment and storage medium
CN113221842B (en) Model training method, image recognition method, device, equipment and medium
CN115131229A (en) Image noise reduction and filtering data processing method and device and computer equipment
US11501404B2 (en) Method and system for data processing
US20230419452A1 (en) Method and device for correcting image on basis of compression quality of image in electronic device
CN112565780B (en) Game state information sharing method, network device, and storage medium
CN112511890A (en) Video image processing method and device and electronic equipment
CN108765503B (en) Skin color detection method, device and terminal
Kunhu et al. A reversible watermarking scheme for ownership protection and authentication of medical images
CN116567246A (en) AVC coding method and device
CN112215237B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN113674130A (en) Image processing method and device, storage medium and terminal
CN116167926A (en) Model training method and contrast adjustment method
CN111918061A (en) Coding block dividing method and device, storage medium and electronic equipment
CN111738034A (en) Method and device for detecting lane line
CN117750037A (en) Image processing method and device, electronic equipment and computer readable storage medium

Legal Events

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