CN112565780A - 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
CN112565780A
CN112565780A CN202011507064.2A CN202011507064A CN112565780A CN 112565780 A CN112565780 A CN 112565780A CN 202011507064 A CN202011507064 A CN 202011507064A CN 112565780 A CN112565780 A CN 112565780A
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.)
Granted
Application number
CN202011507064.2A
Other languages
Chinese (zh)
Other versions
CN112565780B (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

Images

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]

Abstract

Compared with the related technology, the embodiment of the invention obtains 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 an original game video, obtaining a game sharing video according to the watermark value sequence and the watermark embedding area, not needing to use a third-party storage device to store the game state information additionally, and sharing the game video and the state video by sending the game sharing video carrying the game state watermark information.

Description

Game state information sharing method, network device, and storage medium
Technical Field
The embodiment of the invention relates to the field of game sharing, in particular to a game state information sharing method, network equipment and a storage medium.
Background
In the process of game experience of a user, game state information such as user level, remaining energy and the like can be generated, and when game data are shared, the related technology uses a third-party storage device to store the game state information, and receives and sends the game state information through the third-party storage device so as to realize the sharing of the game state information.
However, when the game data is shared in the related art, a third-party storage device needs to be introduced to store the game state information, the video and the shared game state information need to be transmitted, and the transmission process is complex.
Disclosure of Invention
The embodiment of the invention 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 the transmission of shared data is simplified.
In order to solve the above technical problem, an embodiment of the present invention provides a game information sharing method, including the following steps: acquiring original video and game state information of a game; acquiring a watermark value sequence according to the game state information; acquiring a watermark embedding area from the original game video; acquiring the game sharing video according to the watermark value sequence and the watermark embedding area; and sending the game sharing video.
The embodiment of the invention also provides a game state information sharing method, which comprises the following steps: obtaining a game sharing video, wherein the game sharing video carries game state information; acquiring a watermark embedding area according to the game sharing video; acquiring 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 invention also provides a network device, which comprises 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.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the game state information sharing method described above.
Compared with the related technology, the embodiment of the invention obtains 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 an original game video, obtaining a game sharing video according to the watermark value sequence and the watermark embedding area, not needing to use a third-party storage device to store the game state information additionally, and sharing the game video and the state video by sending the game sharing video carrying the game state watermark information.
In addition, the obtaining of the watermark embedding area from the game original video comprises: acquiring corner points according to the original game video; and acquiring the watermark embedding area according to the corner point. In the implementation, the watermark region is obtained according to the corner points, so that the embedded watermark has better invisibility, and in addition, the corner points are inherent invariant feature points of the image and have better resistance and the characteristic of insensitivity to noise, so that the embedded watermark has stronger robustness and is beneficial to extracting the watermark.
In addition, after acquiring the watermark embedding area from the original game video, the method further includes: acquiring a contrast masking threshold of the watermark embedding area; the obtaining of the game sharing video according to the watermark value sequence and the watermark embedding area comprises: and embedding the watermark value sequence into the watermark embedding area according to the contrast masking threshold. In the implementation, the watermark embedding area 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 the watermark embedding is small, and the human eyes cannot distinguish the two.
In addition, the watermark embedding area includes a first macro block of a first game original frame and a second macro block of a second game original frame; wherein 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; the embedding the sequence of watermark values into the watermark embedding region according to the contrast masking threshold includes: embedding watermark values into the first macroblock and the second macroblock according to the contrast masking threshold of the first macroblock and the contrast masking threshold of the second macroblock. In this implementation, a watermark value is embedded in a macroblock, making the embedded watermark value more robust.
Additionally, the sequence of watermark values comprises a first watermark value and a second watermark value; said embedding watermark values into said first macroblock and said second macroblock according to said contrast masking threshold of said first macroblock and said contrast masking threshold of said second macroblock, 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 shared video comprises a first watermark frame and a second watermark frame, the first watermark frame comprises a first watermark macro block, and the second watermark frame comprises a second watermark macro block; wherein 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 a watermark value in a watermark value sequence of the game state information; the obtaining of the watermark value sequence according to the watermark embedding region includes: and extracting a watermark value 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 shared video.
Additionally, the sequence of watermark values comprises a first watermark value and a second watermark value; extracting a watermark value according to an IDCT coefficient matrix of a first watermark macro block of a first watermark frame of the game shared video and an IDCT coefficient matrix of a second watermark macro block of a second watermark frame, comprising: acquiring the number count1 that the IDCT coefficient of the first watermark macro block is larger than that of the second watermark macro block; acquiring the number count2 that the IDCT coefficient of the first watermark macro block is smaller than the IDCT coefficient 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 a watermark value according to the count1 and the count 2. In the implementation, the extracted watermark value is determined according to the difference number, and the accuracy of extracting the watermark value is improved.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
FIG. 1 is a flowchart of a game state information sharing method according to a first embodiment of the present invention;
FIG. 2 is a flow diagram of sub-steps of a game state information sharing method according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating a binarized image of game state information according to a first embodiment of the present invention;
FIG. 4 is a flowchart of a game state information sharing method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of a game state information sharing system according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The first embodiment of the present invention relates to a game state information sharing method, and the present embodiment may be applied to a server, but is not limited thereto. The game state information sharing method of the embodiment includes: acquiring original video and game state information of a game; obtaining a game sharing video according to the original game video and the game state information, wherein the game sharing video carries the game state information; and sending the game sharing video. The game state information is not required to be additionally stored by a third-party storage device, the game state information is shared while the game is shared, data transmission is simple, data sharing is synchronous, and the sharing process is convenient and rapid. The following describes implementation details of the game state information sharing method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary for implementing the present embodiment.
The flow of the first embodiment of the present invention is shown in fig. 1.
Step 101, obtaining an original video and game state information of a game.
In one example, the server obtains the original video of the game and game state information from a terminal, such as a mobile phone, and the game state information may be game related data, such as user level, remaining energy, and the like.
And 102, acquiring a game sharing video according to the original game video and the game state information.
Specifically, a watermark value sequence is obtained according to the game state information; acquiring a watermark embedding area from an original game video; and acquiring the game sharing video according to the watermark value sequence and the watermark embedding area. The process of obtaining the game sharing video is shown in fig. 2.
And a substep 201, obtaining a watermark value sequence according to the game state information.
In one example, the shared game state information is stored to a binarized image, which is then processed to include a first watermark value and a second watermark value. The size of the watermark image is not limited in principle and is determined according to the embedded state information. The shared game state information is processed and stored in the binary image so as to simplify the watermark value included in the watermark value sequence and facilitate embedding the watermark value.
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, a pixel point with a gray value of 0 is set as the first watermark value-1, a pixel point with a gray value of 255 is set as the second watermark value 1, and the number of the watermark value sequence is the same as the number of the pixel points of the binarized image.
And a substep 202 of obtaining a watermark embedding area from the original game video.
In one example, a corner point is obtained from the original game video, and a watermark embedding region is obtained from the corner point. Specifically, an original game frame is obtained from an original game video, an angular point is obtained from the original game frame, and a plurality of macro blocks are selected as watermark embedding areas by taking the angular point as a center. In the related technology, algorithms select a continuous region in a video to embed a watermark, in the embodiment, the watermark embedding region is obtained according to the corner points, the corner points are mainly concentrated in the region with complex texture and the place with obvious change of gray scale, and the watermark embedding region is obtained according to the corner points, so that the robustness of embedding and extracting a watermark image can be improved.
Illustratively, the number of the watermark values in the watermark value sequence is num, and with each corner point as a center, 32 × 32 pixel points, that is, 16 macroblocks of 8 × 8, are selected, and the following is an example of extracting a corner point of a game original frame in a game original video.
Firstly, Harris angular points of an image are extracted, wherein the Harris angular points are points which measure that gray signals of the image have significant transformation in horizontal and vertical directions by utilizing an autocorrelation function. Constructing an autocorrelation matrix, wherein the autocorrelation matrix is as follows:
Figure BDA0002845235890000051
wherein w (x, y) is a window function defined as
Figure BDA0002845235890000052
I is the image gray scale function, IxDenotes the difference in the x-direction, IyRepresenting the difference in the y-direction, A, C and B are a Gaussian function pair
Figure BDA0002845235890000053
And IxIyObtained after Gaussian weighting. The matrix M is an autocorrelation matrix of the current pixel point and has two eigenvalues lambda1And λ2Its two eigenvalues are proportional to the M principal curvature. The corner difference method provided by Harris does not need to calculate specific characteristic values, but calculates a corner response value R to determine the corner. The formula for R is: r ═ detM-alpha (traceM)2Wherein Trace (M) ═ λ12=A+C;Det(M)=λ1λ2=AC-B2Trace (M) is the determinant of matrix M, which is the trace of matrix M. Alpha is an empirical value, usually taken as alpha ∈ [0.04,0.06 ]]. And when the response value of the target pixel point is greater than a certain threshold value, determining the pixel point as an angular point. And sorting the selected corner points according to the response value, and then selecting the first N corner points, wherein N is num/16.
After obtaining N corner points of the original frame of the game, 16 macro blocks of 8 × 8 are obtained centering on each corner point.
In the method, a next game original frame, namely a second game original frame, of the first game original frame and the first game original frame, which are adjacent to each other, 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 resolution of the original video is low, the corner points obtained from one game original frame are smaller 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 extracted from multiple frames of watermark images.
DCT transformation is carried out on the game original video, and the 8-by-8 macro block DCT transformation formula is as follows:
Figure BDA0002845235890000054
wherein u is 0,1, … M-1; v-0, 1, … N-1; m ═ 8; n is 8;
Figure BDA0002845235890000055
taking one of the N corner points as an example, 16 8 × 8 macroblocks centered at the corner point are calculated, taking into account that the sensitivity of human eyes to the image has a certain relationship not only with the brightness of the image, but also with the texture information of the image. The present embodiment calculates its luminance and contrast masking thresholds separately.
Firstly, the DC coefficient and DC coefficient of the i +1 th 8 × 8 macro block centered on the corner are obtained by the following formula:
Figure BDA0002845235890000061
wherein i is an integer, i is greater than or equal to 0 and less than or equal to 15, and after obtaining the DC coefficients of 16 8 × 8 macroblocks, the average value is obtained, and the formula is as follows:
Figure BDA0002845235890000062
then, a luminance masking threshold is calculated, which generally depends on the background luminance of the local image area, the brighter the background, the higher the masking value, i.e. the more extensive modification can be made in the bright area, and the luminance masking threshold formula at the (x, y) position in the ith macroblock, i.e. the ith DCT block, is as follows:
Figure BDA0002845235890000063
wherein the content of the first and second substances,
Figure BDA0002845235890000064
a value of 0.649, tx,yThe frequency sensitivity value of the (x, y) th DCT coefficient in the frequency sensitivity table shown in the table I is shown, each datum in the table represents the minimum DCT coefficient which can be sensed under the condition of no masking noise, namely, the distortion threshold value can be sensed, the lower value indicates that the human eye is sensitive to the frequency, and the variable quantity is smaller, and the table I is the frequency sensitivity table of 8DCT blocks.
Watch 1
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 the brightness masking threshold is calculated, a contrast masking threshold is calculated, the contrast masking is one of important factors influencing visual perception, when the existence of two image components influences the visibility of the other image component, the phenomenon is called contrast masking, and for the contrast masking threshold at the ith 8 × 8DCT block (x, y), the formula is as follows:
SCi,x,y=max{TCi,x,y,|Xi,x,y|β×(TCi,x,y)1-β};
where β is a constant between 0 and 1, the value β in the present invention is 0.7. TC (tungsten carbide)i,x,yThe threshold is masked for the luminance calculated above. Xi,x,yThe ith macroblock is DCT transformed and then the (x, y) th DCT coefficient is located in the DCT matrix.
And forming a watermark template W (x, y) by using 16 8 × 8 macro blocks around the corner point and a contrast masking threshold, wherein x and y are positions of pixel points in the original game frame.
The contrast masking threshold of the watermark embedding area is obtained in the above manner.
And a substep 203 of acquiring the game shared video according to the watermark value sequence and the watermark embedding area.
In one example, the sequence of watermark values is embedded in the watermark embedding region according to a contrast masking threshold.
In one example, the watermark embedding area includes a first macro block of a first game original frame and a second macro block of a second game original frame; wherein 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; embedding watermark values into the first macroblock and the second macroblock according to the contrast masking threshold of the first macroblock and the contrast masking threshold of the second macroblock.
In an example, if the watermark value is the first watermark value, obtaining 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 obtaining 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 the above example, the binary image to be embedded is: 256 × 256, 256 × 256 blocks of 8 × 8-based macroblocks need to be acquired, and in the above example, the template is 16 8 × 8 macroblocks, and 4096 pairs of templates, that is, 4096 pairs of corner points need to be found, and if 4096 pairs of corner points satisfying the conditions in the above example are not found in a set of adjacent frames, a corner point is found from the set of adjacent frames. After finding the corner point, obtaining a template, namely contrast masking thresholds of 16 8 × 8 macro blocks with the corner point as the center, wherein adjacent frames are a first game original frame and a second game original frame, and if the watermark value is 1, adding the contrast masking threshold of the corresponding position of the macro block to DCT coefficients in a DCT coefficient matrix of the first macro block of the first game original frame, so as to obtain a first watermark DCT coefficient matrix, for example, if the DCT coefficient position is (1, 1), adding the contrast masking threshold of the position (1, 1); and respectively 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 second macro block in the original frame area of the second game so as to obtain a second watermark DCT coefficient matrix. If the watermark value is-1, the DCT coefficient in the DCT coefficient matrix of the first macro block of the first game original frame area subtracts the contrast masking threshold value of the corresponding position of the macro block respectively so as to obtain a third watermark DCT coefficient matrix, and the DCT coefficient in the DCT coefficient matrix of the second macro block of the second game original frame area adds the contrast masking threshold value of the corresponding position of the macro block respectively so as 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, the operation complexity does not influence the coding efficiency of the game.
It should be noted that whether each 8 × 8DCT coefficient needs to be subjected to addition and subtraction of the contrast masking threshold may be selected by itself, and in order to enhance the concealment of the added watermark, a part of DCT coefficients may be selected to be subjected to addition and subtraction of the contrast masking threshold, so as to embed the watermark, for example, an intermediate frequency coefficient with strong robustness in a DCT coefficient matrix may be selected, and the robustness of the embedded watermark is ensured as much as possible in the case of enhancing the concealment of the watermark.
Step 103, sending the game sharing video.
In one example, the DCT coefficient after the processing is quantized and encoded to generate a video stream, which is sent to a terminal, such as a mobile phone.
In the embodiment, the original video and the game state information of the 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 using a third-party storage device, the game video and the state video can be shared by sending the game sharing video, compared with the game state information and the game video which are required to be respectively transmitted in the related technology, the game sharing method has the advantages that the game is shared while the state information is shared, the transmission data is simple, the data sharing is more synchronous, the sharing process is more convenient and faster, in addition, the image embedding area is obtained according to the angular points, the robustness of the embedded watermark is stronger, meanwhile, the concealment of the embedded watermark is increased, the watermark value is embedded into the image according to the contrast masking threshold, the concealment of the embedded watermark is further increased, namely the visibility of the watermark is not good, and the experience of a user watching the game watermark video and the game, and a piece of watermark paper is embedded according to a pair of macro blocks in two adjacent frames, so that the robustness of the watermark paper is further improved.
A second embodiment of the present invention 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 not limited thereto. The game state information sharing method of the embodiment includes: acquiring a game sharing video; and extracting game state information in the game sharing video. The game state information can be obtained only by receiving the game sharing video without receiving the game state information and the game video, the received data are simpler, and the game state information can be obtained more conveniently and quickly.
A flowchart of a game state information sharing method of a second embodiment of the present invention is shown in fig. 4.
Step 401, obtaining a game sharing video.
In one example, the mobile phone obtains a game sharing video transmitted by the server, 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, acquiring a watermark embedding area according to the game sharing video.
In one example, the watermark embedding area is obtained from two adjacent frames of the game shared video. For example: and searching from the first frame and the second frame of the game sharing video in sequence.
And step 403, acquiring a watermark value sequence according to the watermark embedding area.
In one example, the game shared video includes a first watermark frame and a second watermark frame, the first watermark frame including a first watermark macro-block, the second watermark frame including a second watermark macro-block; 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; and 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 shared 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 macroblock is greater than the number of the IDCT coefficients of the second watermark macroblock; acquiring the number count2 that the IDCT coefficient of the first watermark macro block is smaller than the IDCT coefficient 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 a watermark value according to the count1 and the count 2. The watermark values of all the watermark embedding areas are extracted in the above way, and the watermark value sequence can be obtained.
And 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 based on the watermark value sequence, and the game state information is extracted based on the binarized image of the game state information.
Illustratively, the mobile phone decodes the obtained video stream of the game sharing video to obtain an inverse quantized coefficient, i.e. an IDCT coefficient. After the count1 and the count2 are acquired, watermark values are extracted according to the magnitude relation between the count1 and the count 2. If count1 is greater than count2, the extracted watermark value is 1, otherwise the extracted watermark value is-1. By comparing the number of the differences, the number of the differences is selected as the basis for extracting the watermark information value finally, and the accuracy of extracting the watermark information is improved.
The embodiment acquires a game sharing video; and extracting game state information in the game sharing video. The embodiment does not need to receive the game state information and the game video, and can obtain the game state information only by receiving the game shared video, the received data is simpler, the game state information can be obtained more conveniently and rapidly, in addition, the basis for extracting the watermark information value is selected by comparing the difference number, and the accuracy of extracting the watermark information is improved.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention 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 processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or 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 a wireless medium via an 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 the memory may be used to store data used by the processor in performing operations.
A fourth embodiment of the present invention relates to game state information sharing information, and as shown in fig. 6, the game state information sharing system includes at least one server 601, and at least one terminal 602 communicating with the server, the server 601 obtains a game original video and game state information from a terminal of a first user; and obtaining a game sharing video according to the original game video and the game state information, wherein the game sharing video carries the game state information and is sent to a terminal 602 of a second user, and the terminal 602 obtains the game sharing video and extracts the game state information in the game sharing video so as to facilitate the second user to know the shared game content.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and 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 for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A game state information sharing method, comprising:
acquiring original video and game state information of a game;
acquiring a watermark value sequence according to the game state information;
acquiring a watermark embedding area from the original game video;
acquiring the game sharing video according to the watermark value sequence and the watermark embedding area;
and sending the game sharing video.
2. The game state information sharing method according to claim 1, wherein the obtaining of the watermark embedding area from the game original video includes:
acquiring corner points according to the original game video;
and acquiring the watermark embedding area according to the corner point.
3. The game state information sharing method according to claim 2, wherein after obtaining the watermark embedding area from the game original video, the method further comprises:
acquiring a contrast masking threshold of the watermark embedding area;
the obtaining of the game sharing video according to the watermark value sequence and the watermark embedding area comprises:
and embedding the watermark value sequence into the watermark embedding area according to the contrast masking threshold.
4. The game state information sharing method of claim 3, wherein the watermark embedding area includes a first macro block of a first game original frame and a second macro block of a second game original frame;
wherein 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;
the embedding the sequence of watermark values into the watermark embedding region according to the contrast masking threshold includes:
embedding watermark values into the first macroblock and the second macroblock according to the contrast masking threshold of the first macroblock and the contrast masking threshold of the second macroblock.
5. The game state information sharing method of claim 4, wherein the sequence of watermark values includes a first watermark value and a second watermark value;
said embedding watermark values into said first macroblock and said second macroblock according to said contrast masking threshold of said first macroblock and said contrast masking threshold of said second macroblock, 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.
6. A game state information sharing method, comprising:
obtaining a game sharing video, wherein the game sharing video carries game state information;
acquiring a watermark embedding area according to the game sharing video;
acquiring a watermark value sequence according to the watermark embedding area;
and acquiring game state information according to the watermark value sequence.
7. The game state information sharing method of claim 6, wherein the watermark area of the game shared video comprises a first watermark frame and a second watermark frame, the first watermark frame comprising a first watermark macro-block, the second watermark frame comprising a second watermark macro-block;
wherein 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 a watermark value in a watermark value sequence of the game state information;
the obtaining of the watermark value sequence according to the watermark embedding region includes:
and extracting a watermark value 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 shared video.
8. The game state information sharing method of claim 7, wherein extracting watermark values according to the IDCT coefficient matrix of a first watermark macro block of a first watermark frame and the IDCT coefficient matrix of a second watermark macro block of a second watermark frame of the game shared video comprises:
acquiring the number count1 that the IDCT coefficient of the first watermark macro block is larger than that of the second watermark macro block;
acquiring the number count2 that the IDCT coefficient of the first watermark macro block is smaller than the IDCT coefficient 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 the watermark value according to the count1 and the count 2.
9. 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 a game state information sharing method as claimed in any one of claims 1 to 5 or a game state information sharing method as claimed in any one of claims 6 to 8.
10. 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 5 or the game state information sharing method of any one of claims 6 to 8.
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 true CN112565780A (en) 2021-03-26
CN112565780B 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)

Citations (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
US20130094692A1 (en) * 2010-07-19 2013-04-18 Pedro Aaron Hernandez-Avalos 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
CN108702548A (en) * 2016-03-01 2018-10-23 夏普株式会社 Carry out the system and method for signaling resource identifier using watermark
CN109309869A (en) * 2018-09-11 2019-02-05 东方网力科技股份有限公司 A kind of watermark embedding method, device and storage medium
CN109685711A (en) * 2018-12-29 2019-04-26 中山大学 A kind of anti-rotation water mark method in characteristic area insertion cyclic graph
CN109714599A (en) * 2017-10-26 2019-05-03 北京京东尚科信息技术有限公司 The method and device of video watermark processing based on HEVC
CN110418209A (en) * 2019-06-24 2019-11-05 华为技术有限公司 A kind of information processing method and terminal device applied to transmission of video
CN111127291A (en) * 2019-12-30 2020-05-08 山东师范大学 Image watermark embedding and extracting method and system based on spatial frequency domain JND conversion

Patent Citations (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
US20130094692A1 (en) * 2010-07-19 2013-04-18 Pedro Aaron Hernandez-Avalos 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
CN108702548A (en) * 2016-03-01 2018-10-23 夏普株式会社 Carry out the system and method for signaling resource identifier using watermark
CN109714599A (en) * 2017-10-26 2019-05-03 北京京东尚科信息技术有限公司 The method and device of video watermark processing based on HEVC
CN109309869A (en) * 2018-09-11 2019-02-05 东方网力科技股份有限公司 A kind of watermark embedding method, device and storage medium
CN109685711A (en) * 2018-12-29 2019-04-26 中山大学 A kind of anti-rotation water mark method in characteristic area insertion cyclic graph
CN110418209A (en) * 2019-06-24 2019-11-05 华为技术有限公司 A kind of information processing method and terminal device applied to transmission of video
CN111127291A (en) * 2019-12-30 2020-05-08 山东师范大学 Image watermark embedding and extracting method and system based on spatial frequency domain JND conversion

Also Published As

Publication number Publication date
CN112565780B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN110139104B (en) Video decoding method, video decoding device, computer equipment and storage medium
WO2017096946A1 (en) Method and device for locating high-frequency information of image
JP2011517526A (en) Method and apparatus for adaptive color model parameter estimation of object of interest
KR101620933B1 (en) Method and apparatus for providing a mechanism for gesture recognition
CN110163057B (en) Object detection method, device, equipment and computer readable medium
JP2014527210A (en) Content adaptive system, method and apparatus for determining optical flow
CN114022790B (en) Cloud layer detection and image compression method and device in remote sensing image and storage medium
CN110533632B (en) Image blurring tampering detection method and device, computer equipment and storage medium
CN114626967A (en) Digital watermark embedding and extracting method, device, equipment and storage medium
CN113469869B (en) Image management method and device
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
WO2021047177A1 (en) Data encoding method and apparatus
CN112070648A (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and electronic equipment
CN112565780B (en) Game state information sharing method, network device, and storage medium
CN108765503B (en) Skin color detection method, device and terminal
Kunhu et al. A reversible watermarking scheme for ownership protection and authentication of medical images
Farah et al. Full-reference and reduced-reference quality metrics based on SIFT
CN111971951A (en) Arithmetic device, arithmetic method, program, and authentication system
CN109672829A (en) Method of adjustment, device, storage medium and the terminal of brightness of image
CN112215237B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN112565760B (en) Encoding method, apparatus and storage medium for string encoding technique
Zhu et al. A random-valued impulse noise removal algorithm via just noticeable difference threshold detector and weighted variation method
Sonawane et al. Image quality assessment techniques: An overview
CN113674130A (en) Image processing method and device, storage medium and terminal

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