CN108307203A - Film encryption method, decryption method based on multi-projector splicing fusion - Google Patents
Film encryption method, decryption method based on multi-projector splicing fusion Download PDFInfo
- Publication number
- CN108307203A CN108307203A CN201711465803.4A CN201711465803A CN108307203A CN 108307203 A CN108307203 A CN 108307203A CN 201711465803 A CN201711465803 A CN 201711465803A CN 108307203 A CN108307203 A CN 108307203A
- Authority
- CN
- China
- Prior art keywords
- encryption
- film
- password
- fusion
- decryption
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000004927 fusion Effects 0.000 title claims abstract description 69
- 238000009877 rendering Methods 0.000 claims abstract description 4
- 238000005516 engineering process Methods 0.000 abstract description 13
- 238000010586 diagram Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 10
- 230000009466 transformation Effects 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000002238 attenuated effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000011426 transformation method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2347—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/26613—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4405—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4408—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4821—End-user interface for program selection using a grid, e.g. sorted out by channel and broadcast time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8358—Generation of protective data, e.g. certificates involving watermark
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/12—Picture reproducers
- H04N9/31—Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
- H04N9/3141—Constructional details thereof
- H04N9/3147—Multi-projection systems
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Controls And Circuits For Display Device (AREA)
- Projection Apparatus (AREA)
Abstract
本发明属于视频加密领域,具体涉及一种基于多投影仪拼接融合的影片加密方法、解密方法,旨在解决电影版权保护问题的影片片源加密解密技术,本方法包括:(1)对投影幕布参数化划分,选择加密区域;(2)使用加密软件在目标机器上生成密码;(3)将密码转化成二进制数,选择其前n位生成影片加密mask;(4)在渲染生成影片的过程中,叠加水印mask生成加密影片;(5)在播放环节,调用同样的加密程序,生成与加密同样的密码,并转为二进制数列,生成拼接融合解密配置参数;(6)拼接融合软件调用解密配置参数,播放加密影片片源,实现解密播放。本发明实现了针对多投影仪特种幕布拼接融合影片加密技术。
The invention belongs to the field of video encryption, specifically relates to a film encryption method and decryption method based on multi-projector splicing and fusion, and aims to solve the film source encryption and decryption technology for film copyright protection. The method includes: (1) the projection screen Parameterized division, select the encryption area; (2) use encryption software to generate a password on the target machine; (3) convert the password into a binary number, select the first n digits to generate a movie encryption mask; (4) in the process of rendering and generating a movie (5) In the playback link, call the same encryption program to generate the same password as encryption, and convert it into a binary sequence to generate splicing fusion decryption configuration parameters; (6) Splicing fusion software calls decryption Configure parameters, play encrypted video source, and realize decryption playback. The invention realizes the splicing fusion film encryption technology for special screens of multiple projectors.
Description
技术领域technical field
本发明属于视频加密领域,具体涉及一种基于多投影仪拼接融合的影片加密方法、解密方法。The invention belongs to the field of video encryption, and in particular relates to a video encryption method and decryption method based on multi-projector splicing and fusion.
背景技术Background technique
以环幕、球幕电影等为代表的曲面多投影仪拼接融合特种电影,是20世纪初出现的一种大视张角特种幕布电影。大视张角电影影片的拍摄和动画场景的制作,使用超广角的鱼眼镜头或图像多摄像机的组合镜头。幕布程环形或半球形,观众被包围置身其中。由于影像对观众视张角大,并伴有环绕立体声,使得观众有身临其境之感。由于环幕、球幕电影幕布巨大、投影仪摆放空间受限,单台投影仪无法打满整个屏幕。并且由于单台投影仪显示分辨率有限,因此采用多台投影仪拼接融合的方式显示输出。Curved-surface multi-projector splicing and fusion special films represented by ring screens and dome screen films are a special screen film with a large viewing angle that appeared in the early 20th century. For the shooting of movies with large viewing angles and the production of animation scenes, use ultra-wide-angle fisheye lenses or combined lenses with multi-camera images. The curtain is circular or hemispherical, and the audience is surrounded by it. Because the image has a large viewing angle for the audience and is accompanied by surround sound, the audience has a sense of being there. Due to the huge screen of the ring screen and the dome screen, and the limited space for placing the projector, a single projector cannot fill the entire screen. And because the display resolution of a single projector is limited, multiple projectors are used to splicing and merging to display the output.
由于拼接融合影片视张角大、影片观看距离近的原因,导致整个片源分辨率大,制作周期长、制作成本高。因此对于影片版权的保护是该产业发展的重点课题。如果不对片源加密,而仅对播放程序或拼接融合程序加密,那么不能很好的保护影片。因此,本发明提供了一种对影片片源进行加密,并只能在制定播放机器上正确解密播放的加密解密技术。Due to the large viewing angle and short viewing distance of the splicing fusion film, the resolution of the entire film source is large, the production cycle is long, and the production cost is high. Therefore, the protection of film copyright is a key issue in the development of this industry. If the film source is not encrypted, but only the playback program or splicing and fusion program is encrypted, the film cannot be well protected. Therefore, the present invention provides an encryption and decryption technology that encrypts the film source and can only be correctly decrypted and played on a designated playback machine.
本发明针对版权保护的问题,提出了一种基于多投影拼接融合技术的加密解密技术。该技术将加密环节结合投影拼接融合的参数网格划分、Crypto++程序算法,影片后期制作技术,生成加密片源;在解密环节,将解密过程与多投影仪拼接融合的色彩变化环节结合,进行解密播放。只有在加密和解密密码序列同样在制定播放机上生成的情况下才可以得到正确的影片播放效果。本发明实现对片源的良好保护,巧妙的利用特种影片拼接融合的技术特性,将加密解密技术与本发明人发明的多投影仪拼接融合技术结合一体。Aiming at the problem of copyright protection, the present invention proposes an encryption and decryption technology based on multi-projection splicing fusion technology. This technology combines the encryption link with the parameter grid division of projection splicing fusion, Crypto++ program algorithm, and film post-production technology to generate encrypted film sources; in the decryption link, the decryption process is combined with the color change link of multi-projector splicing and fusion to decrypt play. Only when the encryption and decryption password sequences are also generated on the specified player can the correct movie playback effect be obtained. The invention realizes good protection of film sources, skillfully utilizes the technical characteristics of splicing and fusion of special films, and combines the encryption and decryption technology with the multi-projector splicing and fusion technology invented by the inventor.
基于拼接融合的影片加密技术由以下具体的技术部分构成:加密部分对目标幕布建立参数化网格,根据参数化网格选定加密区域,然后运行Crypto++算法生成本机密码并转化为二进制数列。建立二进制数列与参数化网格加密区间的对应关系,按照密码二进制序列生成加密水印mask图。利用后期制作软件将未加密的片源的每一帧与水印mask图做相乘后期处理,以处理后的结果作为加密的片源。在解码播放部分,同样调用Crytpo++生成密码并转换为二进制序列,同样建立二进制序列中的每一位与加密区域的每一个网格的对应关系,将解密模块与拼接融合中的色彩衰减模块统一起来形成新的色彩变换方式,实现解密播放。同时对于在其他机器或场地播放的情况,由于生成解密密码与加密密码不一致而不能得到正确的解密播放结果。The video encryption technology based on splicing and fusion consists of the following specific technical parts: the encryption part establishes a parameterized grid for the target screen, selects the encrypted area according to the parameterized grid, and then runs the Crypto++ algorithm to generate a local password and convert it into a binary sequence. Establish the corresponding relationship between the binary sequence and the parameterized grid encryption interval, and generate the encrypted watermark mask image according to the encrypted binary sequence. Use the post-production software to multiply each frame of the unencrypted film source with the watermark mask image for post-processing, and use the processed result as the encrypted film source. In the decoding and playing part, also call Crytpo++ to generate a password and convert it into a binary sequence, and also establish the correspondence between each bit in the binary sequence and each grid in the encrypted area, and unify the decryption module with the color attenuation module in the splicing fusion Form a new color transformation method to realize decryption playback. Simultaneously, for the situation of playing on other machines or venues, the correct decrypted playback result cannot be obtained due to the inconsistency between the generated decryption password and the encrypted password.
发明内容Contents of the invention
为了解决现有技术中的上述问题,即为了解决电影版权保护问题的影片片源加密解密技术,本发明的一方面,提出了一种基于多投影仪拼接融合的影片加密方法,包括以下步骤:In order to solve the above-mentioned problems in the prior art, that is, in order to solve the film source encryption and decryption technology of the film copyright protection problem, one aspect of the present invention proposes a film encryption method based on multi-projector splicing and fusion, including the following steps:
步骤A1,对投影幕布进行参数化网格化分,并选择加密区域;Step A1, parametrically meshing the projection screen, and selecting an encrypted area;
步骤A2,对所述加密区域的参数网格,使用加密软件在目标机器上分别生成密码;Step A2, using encryption software to generate passwords on the target machine respectively for the parameter grid of the encryption area;
步骤A3,将步骤A2所生成的密码转化成二进制数,选择其前n位生成影片加密mask;Step A3, converting the password generated in step A2 into a binary number, and selecting its first n digits to generate a movie encryption mask;
步骤A4,在渲染生成投影影片的过程中,叠加水印mask生成加密影片。Step A4, in the process of rendering and generating the projection film, superimposing the watermark mask to generate the encrypted film.
进一步地,所述“对投影幕布进行参数化网格化分,并选择加密区域”,其方法为:Further, the method of "parametrically meshing the projection screen and selecting an encrypted area" is as follows:
将投影幕布按照参数化方程的方式划分为(M+1)*(N+1)个参数网格,其中,参数网格点坐标为[i,j](i=0,1,2,3...M;j=0,1,2,3...N);Divide the projection screen into (M+1)*(N+1) parameter grids according to the parametric equation, where the coordinates of the parameter grid points are [i, j] (i=0,1,2,3 ...M;j=0,1,2,3...N);
选择融合区域为加密区域,确定所述加密区域对应的参数网格。Select the fusion area as the encrypted area, and determine the parameter grid corresponding to the encrypted area.
进一步地,所述“将步骤A2所生成的密码转化成二进制数,选择其前n位生成影片加密mask”,其方法为:Further, the method of "converting the password generated by step A2 into a binary number and selecting its first n digits to generate a film encryption mask" is as follows:
将步骤A2所生成的密码转化成二进制数;Convert the password generated by step A2 into a binary number;
基于预设衰减密码生成方法,计算mask图上对应序号为i的网格加密mask色彩RGB分量颜色衰减密码Ei。Based on the preset attenuation password generation method, calculate the grid encryption mask color RGB component color attenuation password E i corresponding to the number i on the mask map.
进一步地,所述预设衰减密码生成方法为Further, the preset attenuation password generation method is
进一步地,所述“叠加水印mask生成加密影片”,其方法为:Further, the method of "overlaying watermark mask to generate encrypted movie" is:
通过水印叠加程序对要保密的片源的每一帧进行加密;加密的方式为水印和原图相乘的方式。Encrypt each frame of the film source to be kept secret through the watermark superposition program; the encryption method is the multiplication of the watermark and the original image.
进一步地,所述加密软件为Crypto++密码生成库。Further, the encryption software is a Crypto++ password generation library.
本发明的另一方面,提出了一种基于多投影仪拼接融合的影片解密方法,包括以下步骤:Another aspect of the present invention proposes a film decryption method based on multi-projector splicing and fusion, comprising the following steps:
步骤B1,识别加密区域;Step B1, identifying the encryption area;
步骤B2,调用生成密码时所采用的加密软件,对所述加密区域的参数网格分别生成与加密同样的密码;Step B2, calling the encryption software used when generating the password, and generating the same password as encryption for the parameter grid of the encryption area;
步骤B3,将步骤B2所生成的密码转化成二进制数,生成拼接融合解密配置参数;Step B3, converting the password generated in step B2 into a binary number, and generating splicing fusion decryption configuration parameters;
步骤B4,拼接融合软件调用解密配置参数,播放加密影片片源,进行解密播放。In step B4, the splicing and fusion software invokes the decryption configuration parameters, plays the encrypted video source, and performs decryption and playback.
进一步地,在进行拼接融合播放时执行步骤B2。Further, step B2 is performed when splicing and fusion playing is performed.
进一步地,所述“将步骤B2所生成的密码转化成二进制数,生成拼接融合解密配置参数”,其方法为:Further, the method of "converting the password generated in step B2 into a binary number to generate splicing fusion decryption configuration parameters" is:
将步骤A2所生成的密码转化成二进制数;Convert the password generated by step A2 into a binary number;
基于预设衰减密码生成方法,计算mask图上对应序号为i的网格加密mask色彩RGB分量颜色衰减密码Ei,生成颜色增强密码E′i。Based on the preset attenuation password generation method, calculate the grid encryption mask color RGB component color attenuation password E i corresponding to the sequence number i on the mask graph, and generate the color enhancement password E′ i .
进一步地,所述预设衰减密码生成方法为Further, the preset attenuation password generation method is
所述颜色增强密码E′i为The color enhanced password E′ i is
本发明对于环幕、球幕等特种影片的加密解密问题,提出了一套基于对影片片源加密,结合拼接融合播放解密的技术,实现了影片授权播放过程中的加密、解密,为特种影片知识产权保护提供了一种可靠的保障。本发明巧妙利用了特种影片的特殊播放方式,将加密解密与片源发放、片源播放结合在一起,对于该领域的知识产权保护提供了一种全新的解决策略。For the encryption and decryption of special films such as ring screens and ball screens, the present invention proposes a set of technology based on the encryption of the film source, combined with splicing and fusion playback and decryption, and realizes the encryption and decryption in the process of authorized playback of films. Intellectual property protection provides a reliable guarantee. The invention cleverly utilizes the special playing mode of special films, combines encryption and decryption with film source distribution and film source play, and provides a brand new solution strategy for intellectual property protection in this field.
附图说明Description of drawings
图1是本发明基于多投影仪拼接融合的影片加密方法、解密方法流程示意图;Fig. 1 is a schematic flow diagram of a film encryption method and a decryption method based on multi-projector splicing and fusion in the present invention;
图2是幕布网格参数化划分示意图;Fig. 2 is a schematic diagram of the parametric division of the curtain grid;
图3是数列与网格对应关系对应示意图;Fig. 3 is a corresponding schematic diagram of the corresponding relationship between the sequence and the grid;
图4是加密环节流程示意图;Fig. 4 is a schematic diagram of the encryption process;
图5是解密环节流程示意图;Fig. 5 is a schematic diagram of the decryption process;
图6是加密解密各个环节效果图。Fig. 6 is an effect diagram of each link of encryption and decryption.
具体实施方式Detailed ways
下面参照附图来描述本发明的优选实施方式。本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。Preferred embodiments of the present invention are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention, and are not intended to limit the protection scope of the present invention.
本发明对目标投影幕布进行参数化网格划分,选定加密区域;在指定播放机本地运行Crypto++密码生成软件生成密码序列;将密码转化为二进制序列,将二进制序列的每一个二进制位与加密区域的每一个网格一一对应,生成与加密区域参数化网格相对应的加密mask水印图;在AE(Adobe After Effect)中,使用相乘添加水印的方式,用mask码与未加密的片源的每一帧画面进行相乘运算得到加密后的片源;在解密播放环节,对于在指定播放机播放的情况,播放前先调用Crypto++生成与加密环节同样的密码并转化为二进制序列,以该序列每一位的0、1信息作为解密环节的色彩融合参数,与本发明人发明的拼接融合软件的色彩强度衰减过程相结合。生成包含解密信息的新的色彩衰减参数,对加密片源的每一帧进行播放,由于在指定播放机的解密环节生成的密码序列与加密环节一致,因此可以正确的解密加密片源,而对于在其他机器或其他影院播放的情况,由于解密序列和加密序列不一致因此不能正确恢复片源色彩。从而根据以上步骤实现基于多投影仪拼接融合的影片加密解密播放技术。The present invention performs parametric grid division on the target projection screen, and selects the encryption area; runs the Crypto++ password generation software locally on the specified player to generate the password sequence; converts the password into a binary sequence, and combines each binary bit of the binary sequence with the encryption area One-to-one correspondence of each grid of the encryption area to generate an encrypted mask watermark image corresponding to the parameterized grid of the encrypted area; Each frame of the source is multiplied to obtain the encrypted film source; in the decryption and playback link, for the case of playing on a specified player, call Crypto++ to generate the same password as the encryption link before playing and convert it into a binary sequence. The 0 and 1 information of each bit of the sequence is used as the color fusion parameter in the decryption link, and is combined with the color intensity attenuation process of the splicing and fusion software invented by the inventor. Generate new color attenuation parameters containing decryption information, and play each frame of the encrypted source. Since the password sequence generated in the decryption link of the specified player is consistent with the encryption link, the encrypted source can be correctly decrypted. In the case of playing on other machines or other theaters, the source color cannot be restored correctly due to the inconsistency between the decryption sequence and the encryption sequence. Therefore, according to the above steps, the video encryption and decryption playback technology based on multi-projector splicing and fusion is realized.
本发明包括基于多投影仪拼接融合的影片加密方法、基于多投影仪拼接融合的影片解密方法,两个方法相匹配使用才能完成对影片的加密、解密操作,实现一个完成的处理流程。如图1所示,(1)加密过程:将目标幕布进行参数化网格划分并选定加密区域,在指定的目标机器上调用播放机密码生成软件(Crypto++)生产播放机本机密码序列,并将其转化为二进制数列,建立加密区域参数化网格与加密密码二进制序列的对应关系,生成加密mask水印图,在后期制作中生成加密影片片源(由于密码序列的二进制数已生成,所以生成加密mask水印图,在后期制作中生成加密影片片源可以进行异地处理);(2)解密过程:该过程在播放影片时同步运行,首先运行Crypto++生成解密密码并转化为二进制数列,生成拼接融合解码配置信息,并基于此将二进制数列信息融合至拼接融合播放的色彩变换当中,在拼接融合的色彩变换中连同色彩衰减一同完成解密播放。当且仅当在授权指定的机器上播放加密片源时,片源才可被正确的解码;而在其他的机器上播放时,加密片源不会被正确解码。从而实现了对片源的版权保护。The invention includes a film encryption method based on multi-projector splicing and fusion, and a film decryption method based on multi-projector splicing and fusion. Only when the two methods are matched and used can the encryption and decryption operations of the film be completed, and a complete processing flow is realized. As shown in Figure 1, (1) Encryption process: Carry out parametric grid division of the target curtain and select the encryption area, call the player password generation software (Crypto++) on the designated target machine to produce the player's native password sequence, And convert it into a binary sequence, establish the corresponding relationship between the parameterized grid of the encrypted area and the binary sequence of the encrypted password, generate an encrypted mask watermark image, and generate an encrypted movie source in post-production (because the binary number of the encrypted sequence has been generated, so Generate an encrypted mask watermark image, and generate an encrypted movie source in post-production for remote processing); (2) Decryption process: This process runs synchronously when playing the movie, first run Crypto++ to generate a decrypted password and convert it into a binary sequence to generate a splicing The decoding configuration information is fused, and based on this, the binary sequence information is fused into the color transformation of splicing fusion playback, and decryption playback is completed together with color attenuation in the splicing fusion color transformation. If and only when the encrypted video source is played on the authorized machine, the video source can be correctly decoded; when played on other machines, the encrypted video source will not be correctly decoded. Thereby realizing the copyright protection to film source.
本发明实施例的基于多投影仪拼接融合的影片加密方法,包括:The video encryption method based on multi-projector splicing and fusion in the embodiment of the present invention includes:
步骤A1,对投影幕布进行参数化网格化分,并选择加密区域。Step A1, parametrically meshing the projection screen, and selecting an encrypted area.
对目标幕布进行参数化网格划分,如图2所示,以环幕为例:将幕布按照参数化方程的方式划分为(M+1)*(N+1)个参数网格。其上的参数网格点坐标:[i,j](i=0,1,2,3...M;j=0,1,2,3...N)。该网格坐标对应的环幕的圆柱上点坐标为:[i*Δθ,j*Δh]。本发明中,选择加密的区域为融合区,融合区所对应的参数区间为:i∈[i0,i1]。在图2中,细线和粗线的网格是目标幕布参数化网格,其中的粗线部分是加密区域,同时也是颜色融合区域;Carry out parametric grid division for the target screen, as shown in Figure 2, take the ring screen as an example: divide the screen into (M+1)*(N+1) parameter grids according to the parametric equation. The parameter grid point coordinates on it: [i,j] (i=0,1,2,3...M; j=0,1,2,3...N). The coordinates of the point on the cylinder of the ring screen corresponding to the grid coordinates are: [i*Δθ, j*Δh]. In the present invention, the encrypted area is selected as the fusion area, and the parameter range corresponding to the fusion area is: i∈[i 0 , i 1 ]. In Figure 2, the grid of thin and thick lines is the parameterized grid of the target curtain, and the part of the thick line is the encrypted area and also the color fusion area;
步骤A2,对所述加密区域的参数网格,使用加密软件在目标机器上分别生成密码。Step A2, using encryption software to generate passwords on the target machine for the parameter grid of the encryption area.
调用Crypto++密码生成库,在播放机上生成密码C0,将密码C0转化为二进制序列C1。选取前(i1-i0)N位,每一位二进制数的位数对应于ID(码位)为该位数的融合网格。二进制数列与幕布参数网格的对应关系,如图3所示,码位为1、2、3、4、5…,对应的码值为0、0、1、1、1…;Call Crypto++ password generation library, generate password C 0 on the player, and convert password C 0 into binary sequence C 1 . The first (i 1 -i 0 ) N bits are selected, and the number of bits of each binary number corresponds to the fused grid whose ID (code bit) is the number of bits. The corresponding relationship between the binary sequence and the curtain parameter grid is shown in Figure 3, the code points are 1, 2, 3, 4, 5..., and the corresponding code values are 0, 0, 1, 1, 1...;
步骤A3,将步骤A2所生成的密码转化成二进制数,选择其前n位生成影片加密mask。Step A3, converting the password generated in step A2 into a binary number, and selecting the first n digits to generate a video encryption mask.
如图3所示,按照每个网格ID对应的二进制数字Di是0还是1,生成拼接融合加密mask,mask图上对应ID为i的网格加密mask色彩RGB分量颜色衰减密码Ei的生成方式如公式(1)所示:As shown in Figure 3, according to whether the binary number D i corresponding to each grid ID is 0 or 1, a spliced fusion encryption mask is generated, and the color RGB component color attenuation password E i of the grid encryption mask corresponding to ID i on the mask map The generation method is shown in formula (1):
所生成的加密mask图为一张有(i1-i0)N个网格的灰度图,每个网格的灰度值由该位置对应ID衰减密码Ei确定为0.5或1。The generated encrypted mask image is a grayscale image with (i 1 -i 0 )N grids, and the grayscale value of each grid is determined to be 0.5 or 1 by the ID decay password E i corresponding to the position.
步骤A4,在渲染生成投影影片的过程中,叠加水印mask生成加密影片。Step A4, in the process of rendering and generating the projection film, superimposing the watermark mask to generate the encrypted film.
如图4所示,在播放机(服务器)生成密码mask后,在AE(Adobe After Effects)中使用水印叠加程序对要保密的片源的每一帧进行加密。加密的方式采用水印和原图相乘的方式。通过相乘,使得原片在加密区域部分实现加密。在被加密的区域的网格若对应的ID衰减密码:Ei为0.5的时候,加密后的片源每一帧的该网格部分色彩强度变为加密前的一半;而Ei为1的时候,加密后片源每一帧的该网格部分色彩强度与加密前一致。这样加密视频源的加密区域就生成了色彩明暗变化排列的加密效果。As shown in Figure 4, after the player (server) generates the password mask, use the watermark superposition program in AE (Adobe After Effects) to encrypt each frame of the film source to be kept secret. The encryption method adopts the method of multiplying the watermark and the original image. Through multiplication, the original film is partially encrypted in the encrypted area. If the grid in the encrypted area corresponds to the ID attenuation password: when E i is 0.5, the color intensity of the grid part of each frame of the encrypted film source becomes half of that before encryption; while E i is 1 At this time, the color intensity of the grid part of each frame of the film source after encryption is consistent with that before encryption. In this way, the encryption area of the encrypted video source generates an encryption effect in which the color light and shade changes.
本发明的基于多投影仪拼接融合的影片解密方法,在播放的环节中对加密片源进行拼接融合和解密同步操作,将解密的过程与拼接融合的过程统一进行。拼接融合采用拼接融合软件,按照参数划分网格对片源的每一帧图像进行几何变换和色彩融合形成拼接融合。The film decryption method based on multi-projector splicing and fusion of the present invention performs splicing, fusion and decryption synchronous operations on encrypted film sources during the playback link, and unifies the decryption process and the splicing and fusion process. The splicing and fusion software is used to divide the grid according to the parameters to perform geometric transformation and color fusion on each frame of the source image to form splicing and fusion.
对于没有加密的片源,本发明中调用的拼接融合程序对片源按照幕布形状以及幕布与投影仪的相对位置姿态关系,进行几何变换使得各个投影仪的投射部分画面完好的与幕布以及其他投影仪的投射部分完好的贴合,完成影片多投影仪拼接部分的功能;同时对于不同投影仪的重叠区域,对不同投影仪的色彩进行Alhpa变换,即:对色彩亮度按照其远离非融合区域的距离进行衰减,使得多个投影仪重叠后的色彩亮度与单个投影仪的投影效果相一致,完成多投影仪的色彩融合部分功能。For unencrypted film sources, the splicing and fusion program called in the present invention performs geometric transformation on the film source according to the shape of the screen and the relative position and posture relationship between the screen and the projector so that the projection part of each projector is perfectly aligned with the screen and other projections. The projection part of the projector is perfectly fitted to complete the function of the multi-projector splicing part of the film; at the same time, for the overlapping area of different projectors, the Alhpa transformation is performed on the colors of different projectors, that is: the color brightness is adjusted according to its distance from the non-fusion area The distance is attenuated, so that the color brightness of multiple projectors overlapped is consistent with the projection effect of a single projector, and the color fusion part of the multi-projector function is completed.
在本发明中,对于已经加密的片源几何变换部分与未经加密的片源完全一致,而在色彩片换部分除了进行色彩衰减外,同时进行解密。解密的效果是只有在播放机上运行本发明的含解密拼接融合程序才会正确解密,而对于试图在其他机器上播放该加密影片的情况,都不能出现正确的解密播放。In the present invention, the geometric transformation part of the encrypted film source is completely consistent with the unencrypted film source, while the color attenuation and decryption are simultaneously performed in the color film change part. The effect of decryption is that only when the decryption splicing fusion program of the present invention is run on the player can it be correctly decrypted, and the encrypted film cannot be correctly decrypted and played when trying to play the encrypted film on other machines.
本发明实施例的基于多投影仪拼接融合的影片解密方法,包括以下步骤:The film decryption method based on multi-projector splicing and fusion in the embodiment of the present invention includes the following steps:
步骤B1,识别加密区域;Step B1, identifying the encryption area;
步骤B2,调用生成密码时所采用的加密软件,对所述加密区域的参数网格分别生成与加密同样的密码;Step B2, calling the encryption software used when generating the password, and generating the same password as encryption for the parameter grid of the encryption area;
步骤B3,将步骤B2所生成的密码转化成二进制数,生成拼接融合解密配置参数;Step B3, converting the password generated in step B2 into a binary number, and generating splicing fusion decryption configuration parameters;
步骤B4,拼接融合软件调用解密配置参数,播放加密影片片源,进行解密播放。In step B4, the splicing and fusion software invokes the decryption configuration parameters, plays the encrypted video source, and performs decryption and playback.
为了更清晰的对本发明解密方法进行说明,具体过程结合图5再次进行描述:首先,在运行拼接融合播放程序的时候,在本机运行Crypto++密码生成程序,生成与加密过程中完全相同的密码(如果在指定的播放机运行的话,对于其他机器该密码不同),并将改密码转化为二进制码。基于预设衰减密码生成方法构建颜色增强密码E′i的计算公式,如公式(2)所示。对于加密密码Ei为0.5的网格,拼接融合程序除了完成正常的色彩衰减变化外,还要根据Ei为0.5这个信息,对色彩亮度乘以2;而对于加密密码Ei为1的网格,只进行和无加密的片源播放完全一样的色彩衰减。这样的就完成了对加密片源的拼接融合解密过程。In order to illustrate the decryption method of the present invention more clearly, the specific process is described again in conjunction with Fig. 5: first, when running the splicing and fusion player program, run the Crypto++ password generation program on this machine to generate the same password as in the encryption process ( If it runs on the specified player, the password is different for other machines), and converts the password into binary code. Based on the preset attenuation password generation method, the calculation formula of the color-enhanced password E′ i is constructed, as shown in formula (2). For the grid whose encrypted password E i is 0.5, the splicing and fusion program not only completes the normal color attenuation change, but also multiplies the color brightness by 2 according to the information that E i is 0.5; and for the grid whose encrypted password E i is 1 format, only the same color attenuation as that of unencrypted source playback is performed. In this way, the splicing fusion decryption process of the encrypted film source is completed.
而针对于在其他机器上试图播放本加密片源的情况,由于其他机器上运行Crypto++得到的密码与加密密码并不一致,于是将不会出现正确的解密结果。其最终的播放展示结果会有一些网格块明显暗于其他部分,而另一些网格块亮于其他部分,甚至出现高光区域。因而无法正确的播放该加密影片。And for the situation of trying to play this encrypted film source on other machines, because the password obtained by running Crypto++ on other machines is not consistent with the encrypted password, the correct decryption result will not appear. In the final playback display, some grid blocks are obviously darker than others, while others are brighter than others, and even highlight areas appear. Therefore, the encrypted video cannot be played correctly.
图6是加密解密各个环节效果图。其中,图6a是未加密片源单帧效果图,图6b是加密片源单帧效果图,图6c是解密片源播放单帧效果图。Fig. 6 is an effect diagram of each link of encryption and decryption. Among them, Fig. 6a is an effect diagram of a single frame of an unencrypted film source, Fig. 6b is an effect diagram of a single frame of an encrypted film source, and Fig. 6c is an effect diagram of a single frame of a decrypted film source.
针对于使用同样的播放机在其他影院播放的情况,由于本拼接融合发明程序的几何变换部分是针对指定影片的机器播放位置计算设定的,于是对于其他的影院由于幕布的尺寸不同,各个投影仪与幕布的摆放相对位置姿态不同,因此运行同样的程序不会得到正确的拼接融合结果。For the situation where the same player is used to play in other theaters, since the geometric transformation part of the splicing and fusion invention program is calculated and set for the machine playback position of the specified film, so for other theaters, due to the different sizes of the screens, each projection The relative position and posture of the instrument and the screen are different, so running the same program will not get the correct splicing and fusion results.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
本领域技术人员应该能够意识到,结合本文中所公开的实施例描述的各示例的方法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明电子硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以电子硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art should be able to realize that the method steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the possibility of electronic hardware and software For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are performed by electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may implement the described functionality using different methods for each particular application, but such implementation should not be considered as exceeding the scope of the present invention.
术语“包括”或者任何其它类似用语旨在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者还包括这些过程、方法所固有的要素。The term "comprising" or any other similar term is intended to cover a non-exclusive inclusion such that a process, method comprising a series of elements includes not only those elements but also other elements not expressly listed or also includes such processes, methods inherent elements.
至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings, but those skilled in the art will easily understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to relevant technical features, and the technical solutions after these changes or substitutions will all fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711465803.4A CN108307203B (en) | 2017-12-28 | 2017-12-28 | Video encryption method and decryption method based on multi-projector splicing and fusion |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711465803.4A CN108307203B (en) | 2017-12-28 | 2017-12-28 | Video encryption method and decryption method based on multi-projector splicing and fusion |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108307203A true CN108307203A (en) | 2018-07-20 |
| CN108307203B CN108307203B (en) | 2019-11-08 |
Family
ID=62867750
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711465803.4A Active CN108307203B (en) | 2017-12-28 | 2017-12-28 | Video encryption method and decryption method based on multi-projector splicing and fusion |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108307203B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113709428A (en) * | 2020-05-20 | 2021-11-26 | 中强光电股份有限公司 | Projection system and projection method |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020016916A1 (en) * | 1997-09-29 | 2002-02-07 | Hewlett-Packard Company | Watermarking of digital object |
| US6463162B1 (en) * | 1998-09-30 | 2002-10-08 | Hewlett-Packard Company | Robust watermarking for digital objects |
| CN1455578A (en) * | 2003-05-10 | 2003-11-12 | 合肥工业大学 | Image waterprint method for copyright protection |
| CN1608361A (en) * | 2001-10-26 | 2005-04-20 | 松下电器产业株式会社 | Digital works protection system, key management device and user device |
| CN1945623A (en) * | 2006-10-26 | 2007-04-11 | 丹东东方测控技术有限公司 | Method for removing visual watermark of block local encrypted digital image |
| CN102103738A (en) * | 2011-03-04 | 2011-06-22 | 西南交通大学 | Method for generating and authenticating digital image tampered content recoverable variable capacity watermarks |
| CN102609889A (en) * | 2011-01-20 | 2012-07-25 | 北京中盈信安科技发展有限责任公司 | Image digital watermark embedding method and image digital watermark detecting method |
| CN103886543A (en) * | 2014-04-02 | 2014-06-25 | 海南大学 | Volume data robust multi-watermark method based on three-dimensional DFT perceptual Hashing |
| CN105025281A (en) * | 2015-06-29 | 2015-11-04 | 北京中科盘古科技发展有限公司 | Large-dimension full dome super-clear film playing and interaction application splicing fusion method |
-
2017
- 2017-12-28 CN CN201711465803.4A patent/CN108307203B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020016916A1 (en) * | 1997-09-29 | 2002-02-07 | Hewlett-Packard Company | Watermarking of digital object |
| US6463162B1 (en) * | 1998-09-30 | 2002-10-08 | Hewlett-Packard Company | Robust watermarking for digital objects |
| CN1608361A (en) * | 2001-10-26 | 2005-04-20 | 松下电器产业株式会社 | Digital works protection system, key management device and user device |
| CN1455578A (en) * | 2003-05-10 | 2003-11-12 | 合肥工业大学 | Image waterprint method for copyright protection |
| CN1945623A (en) * | 2006-10-26 | 2007-04-11 | 丹东东方测控技术有限公司 | Method for removing visual watermark of block local encrypted digital image |
| CN102609889A (en) * | 2011-01-20 | 2012-07-25 | 北京中盈信安科技发展有限责任公司 | Image digital watermark embedding method and image digital watermark detecting method |
| CN102103738A (en) * | 2011-03-04 | 2011-06-22 | 西南交通大学 | Method for generating and authenticating digital image tampered content recoverable variable capacity watermarks |
| CN103886543A (en) * | 2014-04-02 | 2014-06-25 | 海南大学 | Volume data robust multi-watermark method based on three-dimensional DFT perceptual Hashing |
| CN105025281A (en) * | 2015-06-29 | 2015-11-04 | 北京中科盘古科技发展有限公司 | Large-dimension full dome super-clear film playing and interaction application splicing fusion method |
Non-Patent Citations (3)
| Title |
|---|
| XINPENG ZHANG: "Reversible Data Hiding in Encrypted Image", 《IEEE SIGNAL PROCESSING LETTERS ( VOLUME: 18 , ISSUE: 4 , APRIL 2011 )》 * |
| 李海燕等: "一种基于视觉特性的彩色图像数字水印算法", 《电脑知识与技术》 * |
| 项世军等: "加密域可逆水印综述", 《暨南大学学报(自然科学与医学版)》 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113709428A (en) * | 2020-05-20 | 2021-11-26 | 中强光电股份有限公司 | Projection system and projection method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108307203B (en) | 2019-11-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11700342B2 (en) | System and method for creating a temporal-based dynamic watermark | |
| US10277935B2 (en) | Method and apparatus for hardware-enforced, always-on insertion of a watermark in a video processing path | |
| JP5886130B2 (en) | Method and apparatus for protecting a three-dimensional object by converting points of the three-dimensional object | |
| US10607421B2 (en) | Secure rendering system that generates ray tracing samples with obfuscated position data | |
| US10963574B2 (en) | Video security and ray tracing samples compression system | |
| US9679369B2 (en) | Depth key compositing for video and holographic projection | |
| US11023596B2 (en) | Non-rasterized image streaming system that uses ray tracing samples | |
| JP2004159309A (en) | Digital watermarking method and apparatus, and watermark decoding method and apparatus | |
| CN108307203B (en) | Video encryption method and decryption method based on multi-projector splicing and fusion | |
| US10331862B2 (en) | Viewport decryption | |
| WO2023125291A1 (en) | Image display methods, apparatuses and system and device | |
| CN106650395B (en) | A method for displaying confidential information based on moiré fringes | |
| CN109993679B (en) | Digital watermark encryption method based on vector parameters | |
| Asthana et al. | Deepfake forensics: Identifying real regions in altered videos with Digital Watermarking | |
| JP2003051022A (en) | Method for authenticating playback of animated contents and device for playback | |
| CN114723873A (en) | End-to-end 3D scene reconstruction and image projection | |
| KR20180059104A (en) | Method and apparatus for protecting image at 3d contents service | |
| Choi et al. | Beyond the Screen | |
| CN108401161B (en) | Processing method for assisting film to perform network release projection | |
| JPH0241052A (en) | Cryptographic method for color picture |
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 |