WO2014108102A1 - Image and video synthesis system and synthesis method - Google Patents

Image and video synthesis system and synthesis method Download PDF

Info

Publication number
WO2014108102A1
WO2014108102A1 PCT/CN2014/070531 CN2014070531W WO2014108102A1 WO 2014108102 A1 WO2014108102 A1 WO 2014108102A1 CN 2014070531 W CN2014070531 W CN 2014070531W WO 2014108102 A1 WO2014108102 A1 WO 2014108102A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
video
file
effect file
effect
Prior art date
Application number
PCT/CN2014/070531
Other languages
French (fr)
Chinese (zh)
Inventor
林艳
Original Assignee
北京友维科软件科技有限公司
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 北京友维科软件科技有限公司 filed Critical 北京友维科软件科技有限公司
Publication of WO2014108102A1 publication Critical patent/WO2014108102A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Definitions

  • the present invention relates to a system and method for synthesizing an image having a specific effect into an image video, and belongs to the field of image processing technology.
  • the present invention discloses an image and video and video synthesizing system for synthesizing one or more images into a video image by overlaying, specifically including:
  • the image conversion unit is configured to convert one or more images into a single image supplement effect file;
  • the video editing unit is configured to read the image supplement effect file and the image video, and synthesize the image supplement effect file onto the image video and Output the final video and video file.
  • the image used is preferably any image format with an alpha channel that can be set in the current image field, such as JPG, PNG, PSD, etc.
  • the alpha channel value of these images By setting the alpha channel value of these images, the transparency of the image can be adjusted to facilitate application to the image.
  • Cover synthesis at a later stage of the invention preferably, the image conversion
  • the unit replaces one or more PNG format images into a single image supplemental effect file.
  • PNG format images support high-level lossless compression, fully native support for alpha channel transparency adjustment, and support for gamma correction, support for interlacing and many other adjustable features.
  • one PNG can be imported to create a single image supplement effect file for static effects, and multiple PN images can be imported for conversion into a single image supplement effect file of dynamic effects.
  • a minimum of 20 PNGs is used.
  • Up to 30 PNG images are used as a single image supplement effect file with dynamic effects and can be played back in a dynamic cycle, that is, the number of PNG format images used by the image conversion unit is 20-30 sheets.
  • the implementation of the single image supplement effect file can be implemented in various manners, and the file format currently available in the field can be used, or the file format can be customized according to the technical needs.
  • the former is a GIF image widely used in the field.
  • File, multi-frame PNG image file, FLASH file container, etc. the latter is mainly for the need to increase the file's other needs to customize the scalable features, for example, the applicant of the present invention based on the above-mentioned functions need to implement an EFS (EFfect Supplementary) specific file format.
  • EFS Efect Supplementary
  • the working principle of the synthesis system of the invention is that the image conversion unit inputs one or more images of PNG format or images of other formats (the image used at this time may be transparent, that is, the alpha channel is defined as 0, or may be non-transparent. , that is, the alpha channel is not 0, and the transparent or partially transparent image is obtained by adjusting the alpha channel value later), and it is made into a single image supplement effect file with static effect or dynamic effect, and output to the video editing unit for use; video editing unit Importing a single image replenishment effect file will complement the single image with the desired effect (such as a layer of portrait or landscape or calendar on the original video file or a specific photo on a portion of the original video file)
  • the single or multi-frame image in the effect file is read into the video editing unit, and its characteristics such as size, position, transparency, rotation angle, etc.
  • the original image video needs to be inserted into the corresponding image effect Position (on the timeline or in the spatial position), and consider the need for motion pictures or still images contained in the video interval to which this effect is applied, and adjust the PNG format effect image or other format image included in the single image supplement effect file.
  • the transparent part is covered.
  • the motion effect is achieved by overlaying multiple images, such as 2CT30, PNG format or other formats, onto the original video file screen in sequence. At the same time based on The length of this implementation time.
  • the moving image or the still image superimposed by the image of the PNG format is continuously encoded to complete the final video and video file output.
  • the original video and video may be a moving image (such as a camera, a camera, a video of a avi, mov, etc.), or a still image (such as a camera, a camera, a jpg, or a mobile phone).
  • a moving image such as a camera, a camera, a video of a avi, mov, etc.
  • a still image such as a camera, a camera, a jpg, or a mobile phone.
  • the image conversion unit of the present invention further inputs a BMP image or an image without an alpha channel in another format, and converts one or more images of the PNG format or other formats when converted into a single image supplemental effect file.
  • the alpha channel image is combined with the image without the alpha channel (ie, opaque), and the resulting single image supplemental effect file can preview one or more PNG format images or other formats with alpha channel.
  • the synthetic effect of the image is a BMP image or an image without an alpha channel in another format, and converts one or more images of the PNG format or other formats when converted into a single image supplemental effect file.
  • the video editing unit separates the image (i.e., opaque) that does not have the alpha channel after entering the single image supplemental effect file described above, and does not enter the final image.
  • the video editing unit includes an image adjustment module, and the image adjustment module is used for reading the video editing unit.
  • the attributes of the image included in the image supplement effect file on the image video file screen are adjusted, and the attributes include size, position, transparency, and rotation angle.
  • the image adjustment module adjusts the transparency of the image contained in the image supplement effect file, and the video editing unit overlays it onto the image video screen.
  • the specific encryption and decryption algorithms can be implemented using any available method.
  • the synthesizing system of the present invention can generate a continuous motion effect file or a static image of a specific form in one or more PNG formats or other format images, and can import the effect of the effect file into the video according to the needs of the video and video files.
  • the editing unit adjusts the size, position, transparency, rotation angle and other characteristics of the PNG format image displayed on the video and video screen to use the image when editing the video. Enrich the content by adding a clip that is freed on the video and video file screen by overlay.
  • the present invention also discloses a method for synthesizing images and video images, which includes the following steps:
  • step (1) reading the original video and video file and the single image supplemental effect file of step (1);
  • the synthesis method of the present invention can realize the synthesis of the image file and the video and video file picture having the specific desired effect in an overlaid manner, thereby making the video picture more colorful.
  • step (1) further includes the step of synthesizing the image having no alpha channel and the one or more images having the alpha channel into a single image supplemental effect file, so as to cover the composite image having the alpha channel.
  • the effect is previewed; correspondingly, corresponding to the additional step, step (3) further includes reading a single image supplement effect file, separating the image without the alpha channel, thereby applying the image display suitable for the video and video file display.
  • the synthesizing method further includes the step of encrypting and decrypting the single image supplement effect file of the step (1), and encrypting the single image supplement effect file after the step (1) is completed, in the step (2) A single image supplemental effect file is decrypted while reading.
  • the software or hardware implementation of the encryption and decryption used may employ any method that can be used in the present invention.
  • the synthesizing method further comprises the steps of superimposing a plurality of images in order to realize an action effect and synthesizing the same into the original video file, thereby realizing an animation effect in the original video file.
  • the original video and video can be either a moving image (such as a camera, a camera, a video in a format such as avi, mov, or the like), or a still image (such as a camera, a camera, or a jpg taken by a mobile phone).
  • a moving image such as a camera, a camera, a video in a format such as avi, mov, or the like
  • a still image such as a camera, a camera, or a jpg taken by a mobile phone.
  • Raw format image can convert an image (multiple picture connection including PNG format or other format) into a single file format with image supplement effect, and then insert the file into an image effect form.
  • the image editing unit adjusts its size, position, transparency, rotation adjustment, etc. on the original video file screen to achieve the combination of the two.
  • Figure 1 is a schematic structural view of a synthesis system of the present invention
  • 2a and 2b are partial flow charts of the synthesis method of the present invention, respectively.
  • FIG. 1 is a structure of an image and video and video synthesizing system of the present invention, including an image converting unit and a video editing unit, wherein the image converting unit is configured to use one or more transparent images of an image format having a settable alpha channel.
  • the image converting unit is configured to use one or more transparent images of an image format having a settable alpha channel.
  • the video editing unit reads in The file and the original image and video file to be processed, and the image contained in the single image supplemental effect file is overlaid at a specific time or space of the original video and video file after being adjusted in transparency, size, position, and rotation angle.
  • FIG. 2a an implementation process of converting an image into a single image supplemental effect file is shown, which combines a BMP image with a specific image content to preview a single image supplemental effect file effect and a png image composition that meets the needs of the synthetic effect.
  • Supplement the effect file for a single image (the illustration is the applicant's custom EFS format file, other file types such as gif, multi-frame png, etc. are all available), in order to facilitate classification management, add this when the file is generated.
  • the basic type of effect, the name of the clip file, the setting of the effect name, and the effect on the actual screen can be previewed.
  • a single image supplement effect file (shown as the applicant's custom EFS format file, other file types such as gif, multi-frame png, etc.) is displayed, and the video editing unit reads the image.
  • Video file motion image, still image
  • the insertion effect classification the clip file name, the effect name, etc.
  • the single image supplement effect file first separates the BMP image without the alpha channel, and then adjusts the position of the PNG format file in the single image supplement effect file on the image video file screen according to the required effect, Parameters such as size, angle, transparency, etc., so that the PNG image is overlaid on the screen of the original video file, and after the synthesis is completed, the code is output as the final video file.
  • the manner in which the image is adjusted on the screen can be implemented by any geometric algorithm.
  • the applicant has given an implementation method as follows. This is not a limitation, and other geometric transformations can be implemented by those skilled in the art.
  • the image I (X, y) moves ⁇ in the X-axis direction and ⁇ y in the y-axis direction.
  • the image / 2 ( ⁇ ) is indicated as follows.
  • the image I(x, y) is enlarged (or reduced) in the X-axis direction, and enlarged (or reduced) in the y-axis direction.
  • the image / 2 ( ⁇ ) is indicated as follows
  • Image I (X, y) rotates ⁇ degrees clockwise and the image / 3 ( ⁇ ) is marked as follows
  • the overall coordinate transformation matrix of various geometric transformations is obtained by the inverse sequential matrix multiplication of individual transformation matrix transformations.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

A synthesis system for synthesizing an image effect onto a video and a synthesis method are disclosed. Said synthesis system comprises: an image conversion unit, for converting one or a plurality of images into a single image supplemental-effect file; a video editing unit, for reading both the image supplemental-effect file and a video and then synthesizing said file onto a video frame and outputting the final video file. The synthesis system and synthesis method of the present invention allow for the synthesis of video and image effects, thereby diversifying and enriching the color effects of a video.

Description

图像与影像视频合成系统与合成方法 技术领域  Image and video video synthesis system and synthesis method
本发明涉及一种用于实现将具有特定效果的图像合成到影像视频的系统与 方法, 属于图像处理技术领域。  The present invention relates to a system and method for synthesizing an image having a specific effect into an image video, and belongs to the field of image processing technology.
背景技术 Background technique
随着具有视频录制、 图像拍摄等功能的数码相机, 摄像机、手机等多种电子 产品的普及, 在日常生活中, 为了便于记录或对特定场景、 场合进行纪念, 越来 越多使用视频录制功能, 从而带动人们对视频编辑也产生了浓厚的兴趣,包括视 频剪切、组合等,但是目前市场上已有的视频编辑处理软件都是对视频文件自身 的处理, 例如队视频文件进行编码压缩、对视频文件打上马赛克、加强视频文件 的湖面亮度、降低画面噪点等,这些功能都是基于视频后期处理软件,如 ULEAD、 PRIMER, VEGAS等, 基于软件自带功能对视频文件的处理, 都无法将外部的部分 图画效果插入到影像编辑程序中进行编辑,已有的视频后期处理软件做出的视频 比较单调, 只是对视频文件自身效果的编辑处理,在视频编辑过程中缺少了制作 的乐趣, 同时也限制了视频的效果。  With the popularity of digital cameras, such as video recording and image capture, cameras, mobile phones, etc., in daily life, more and more video recording functions are used to facilitate recording or to commemorate specific scenes and occasions. Therefore, people have also developed a strong interest in video editing, including video cutting, combination, etc., but the video editing processing software currently available on the market is the processing of the video file itself, such as the encoding and compression of the team video file. Mosaic of video files, enhancement of lake surface brightness of video files, reduction of picture noise, etc. These functions are based on video post-processing software such as ULEAD, PRIMER, VEGAS, etc., based on the software's own function to process video files, can not be The external part of the picture effect is inserted into the image editing program for editing. The video made by the existing video post-processing software is relatively monotonous, only the editing process of the video file itself, and the production fun is lacking in the video editing process. It also limits the effect of the video.
发明内容 Summary of the invention
针对现有技术的缺陷, 本发明公开了一种图像与视频合成系统与合成方法, 基于本发明的系统和方法,能够以透明静态和动态图像的形式添加效果到原始的 影像视频中, 实现不同来源的实现视频与图像效果的合成,使得视频视觉效果绚 丽多彩, 内容丰富。  In view of the deficiencies of the prior art, the present invention discloses an image and video synthesis system and a synthesis method. Based on the system and method of the present invention, it is possible to add effects to the original video and video in the form of transparent static and dynamic images to achieve different The source realizes the synthesis of video and image effects, making the video visual effects colorful and rich in content.
为了实现上述目的, 本发明是通过下述技术方案实现的:  In order to achieve the above object, the present invention is achieved by the following technical solutions:
首先,本发明公开了一种图像与影像视频合成系统,用于实现将一个或多个 图像以覆盖方式合成到影像视频的画面上, 具体的包括:  First, the present invention discloses an image and video and video synthesizing system for synthesizing one or more images into a video image by overlaying, specifically including:
图像转换单元, 用于将一个或多个图像转换成单一的影像补充效果文件; 视频编辑单元,用于读取影像补充效果文件和影像视频, 并将影像补充效果 文件合成覆盖到影像视频上并输出最终的影像视频文件。  The image conversion unit is configured to convert one or more images into a single image supplement effect file; the video editing unit is configured to read the image supplement effect file and the image video, and synthesize the image supplement effect file onto the image video and Output the final video and video file.
其中,所用的图像优选是目前图像领域任何可用的具有可设置 alpha通道的 图像格式, 如 JPG、 PNG, PSD等, 通过设置这些图像的 alpha通道值, 可以调节 图像的透明度从而有利于应用于本发明后期的覆盖合成,优选的,所述图像转换 单元将一个或多个 PNG格式图像成换成单一的影像补充效果文件。与其它类型的 文件相比, PNG格式的图像能够支持高级别无损耗压缩, 并完全原生支持 alpha 通道透明度调整, 并且具有支持伽玛校正、 支持交错等多种可调整特性。 The image used is preferably any image format with an alpha channel that can be set in the current image field, such as JPG, PNG, PSD, etc. By setting the alpha channel value of these images, the transparency of the image can be adjusted to facilitate application to the image. Cover synthesis at a later stage of the invention, preferably, the image conversion The unit replaces one or more PNG format images into a single image supplemental effect file. Compared to other types of files, PNG format images support high-level lossless compression, fully native support for alpha channel transparency adjustment, and support for gamma correction, support for interlacing and many other adjustable features.
其中, 既可以导入 1张 PNG用于制作静态效果的单一影像补充效果文件,还 可以导入多张 PN图像用于转换成动态效果的单一影像补充效果文件, 优选的, 是采用最少为 20张 PNG, 最多为 30张 PNG图像作为一个具有动态效果, 并以动 态周期可循环播放的单一影像补充效果文件, 即所述图像转换单元使用的 PNG 格式图像的数量为 20-30张。  Among them, one PNG can be imported to create a single image supplement effect file for static effects, and multiple PN images can be imported for conversion into a single image supplement effect file of dynamic effects. Preferably, a minimum of 20 PNGs is used. Up to 30 PNG images are used as a single image supplement effect file with dynamic effects and can be played back in a dynamic cycle, that is, the number of PNG format images used by the image conversion unit is 20-30 sheets.
其中, 单一的影像补充效果文件的实现方式可以通过多种方式实现, 既可以 采用本领域目前已有的文件格式, 也可以根据技术需要自定义文件格式,前者如 本领域广为采用的 GIF图像文件、 多帧 PNG图像文件、 FLASH文件容器等, 后者 主要是出于增加文件的其它需要自定义的可扩展特性的需要,例如本发明申请人 即基于上述功能需要实现了一种 EFS(EFfect Supplementary)的特定文件格式。 尽管实现不同的单一影像补充效果文件需要通过不同的软件或硬件编码实现,但 是只要其可以用于本发明即为本发明的技术方案所涵盖。  The implementation of the single image supplement effect file can be implemented in various manners, and the file format currently available in the field can be used, or the file format can be customized according to the technical needs. The former is a GIF image widely used in the field. File, multi-frame PNG image file, FLASH file container, etc., the latter is mainly for the need to increase the file's other needs to customize the scalable features, for example, the applicant of the present invention based on the above-mentioned functions need to implement an EFS (EFfect Supplementary) specific file format. Although different single image supplemental effect files need to be implemented by different software or hardware codes, as long as they can be used in the present invention, they are covered by the technical solutions of the present invention.
本发明合成系统的工作原理是:图像转换单元输入一张或多张 PNG格式的图 像或其他格式的图像 (此时所用的图像可以是透明的, 即 alpha通道定义为 0, 也可以是非透明的, 即 alpha通道不为 0, 通过后期调整 alpha通道值获得透明 或部分透明的图像)将其制作成具有静态效果或动态效果的单一影像补充效果文 件, 并输出给视频编辑单元使用; 视频编辑单元导入单一影像补充效果文件, 将 具有所需要的效果(例如需要在原始影像视频文件上覆盖一层人像或风景或日历、 或需要在原始影像视频文件的部分内容上覆盖特定照片)的单一影像补充效果文 件中的单帧或多帧图像读入视频编辑单元,并调整其用于原始影像视频画面中所 显示的大小, 位置, 透明度, 旋转角度等各种特性以满足特定需要, 将其覆盖到 原始影像视频需要插入图像效果的相应位置 (时间轴上或空间位置上), 并考虑 要适用此效果的视频区间所包含的动态影像或静态影像的需要,并调整单一影像 补充效果文件所包含的 PNG格式效果图像或其它格式图像的透明部分覆盖。  The working principle of the synthesis system of the invention is that the image conversion unit inputs one or more images of PNG format or images of other formats (the image used at this time may be transparent, that is, the alpha channel is defined as 0, or may be non-transparent. , that is, the alpha channel is not 0, and the transparent or partially transparent image is obtained by adjusting the alpha channel value later), and it is made into a single image supplement effect file with static effect or dynamic effect, and output to the video editing unit for use; video editing unit Importing a single image replenishment effect file will complement the single image with the desired effect (such as a layer of portrait or landscape or calendar on the original video file or a specific photo on a portion of the original video file) The single or multi-frame image in the effect file is read into the video editing unit, and its characteristics such as size, position, transparency, rotation angle, etc. displayed in the original video image are adjusted to meet specific needs, and are covered. The original image video needs to be inserted into the corresponding image effect Position (on the timeline or in the spatial position), and consider the need for motion pictures or still images contained in the video interval to which this effect is applied, and adjust the PNG format effect image or other format image included in the single image supplement effect file. The transparent part is covered.
当需要覆盖动画效果时, 通过多个, 例如 2CT30个, PNG格式或其他格式的 图像按顺序叠加覆盖在原始影像视频文件画面上来实现动作效果。 同时可基于 此实现时间的长短。 When it is necessary to cover the animation effect, the motion effect is achieved by overlaying multiple images, such as 2CT30, PNG format or other formats, onto the original video file screen in sequence. At the same time based on The length of this implementation time.
在完成上述处理后, 对通过 PNG格式(或其它格式)的图像重叠的动态影像 或者静态影像进行连续的编码完成最终的影像视频文件输出。  After the above processing is completed, the moving image or the still image superimposed by the image of the PNG format (or other format) is continuously encoded to complete the final video and video file output.
如上所述, 所述的原始的影像视频既可以是动态影像(如相机、 摄像机、 手 机拍摄的 avi、 mov等格式的视频), 还可以是静态图像(如相机、 摄像机、 手机 拍摄的 jpg、 raw格式的图像)。  As described above, the original video and video may be a moving image (such as a camera, a camera, a video of a avi, mov, etc.), or a still image (such as a camera, a camera, a jpg, or a mobile phone). Raw format image).
进一步的, 本发明的图像转换单元, 还输入一张 BMP 图像或其它格式的无 alpha通道的图像, 在转换为单一影像补充效果文件时将一张或多张 PNG格式的 图像或其他格式的具有 alpha通道的图像与该不具有 alpha通道的图像(也就是 不透明的) 进行合成, 从所生成的单一影像补充效果文件既可预览一张或多张 PNG格式的图像或其他格式的具有 alpha通道的图像具有的合成效果。  Further, the image conversion unit of the present invention further inputs a BMP image or an image without an alpha channel in another format, and converts one or more images of the PNG format or other formats when converted into a single image supplemental effect file. The alpha channel image is combined with the image without the alpha channel (ie, opaque), and the resulting single image supplemental effect file can preview one or more PNG format images or other formats with alpha channel. The synthetic effect of the image.
同样的,在上述情况下,视频编辑单元在输入上述的单一影像补充效果文件 后先将不具有 alpha通道的图像(也就是不透明的)分离出来不进入最终的影像 视频画面覆盖合成。  Similarly, in the above case, the video editing unit separates the image (i.e., opaque) that does not have the alpha channel after entering the single image supplemental effect file described above, and does not enter the final image.
如上所述,为了满足能够对单一影像补充效果文件所含图像在影像视频文件 画面上的位置等各种参数进行调整,所述视频编辑单元包括图像调整模块, 图像 调整模块用于视频编辑单元读入影像补充效果文件后调整影像补充效果文件包 含的图像在影像视频文件画面上的属性, 所述属性包括大小、位置、透明度和旋 转角度。  As described above, in order to satisfy various parameters such as the position of the image included in the single image supplemental effect file on the video video file screen, the video editing unit includes an image adjustment module, and the image adjustment module is used for reading the video editing unit. After the image supplement effect file is input, the attributes of the image included in the image supplement effect file on the image video file screen are adjusted, and the attributes include size, position, transparency, and rotation angle.
其中,尤其重要的功能是图像调整模块调整影像补充效果文件包含的图像的 透明度, 所述视频编辑单元将其覆盖到影像视频画面上。  Among them, a particularly important function is that the image adjustment module adjusts the transparency of the image contained in the image supplement effect file, and the video editing unit overlays it onto the image video screen.
进一步的, 为了防止单一影像补充效果文件被其他用户或厂商盗用,满足版 权保护的需要,所述合成系统还包括加密与解密单元,用于对图像转换单元生成 的单一的影像补充效果文件进行加密和解密。  Further, in order to prevent the single image supplement effect file from being stolen by other users or vendors to meet the needs of copyright protection, the synthesizing system further includes an encryption and decryption unit for encrypting a single image supplement effect file generated by the image conversion unit. And decryption.
具体的加密和解密的算法可以采用任意可用的方法实现。  The specific encryption and decryption algorithms can be implemented using any available method.
通过上述技术方案,本发明的合成系统得以将一个或多个 PNG格式或其它格 式图像制作特定形态的连续动作效果文件或静态图像,并可根据影像视频文件的 需要把效果文件的效果导入到视频编辑单元中调整 PNG格式影像的在影像视频 画面中所显示的大小, 位置, 透明度, 旋转角等各种特性以便编辑视频时使用图 像以覆盖的方式添加影像视频文件画面上实现自由化的剪辑, 丰富其内容。 Through the above technical solution, the synthesizing system of the present invention can generate a continuous motion effect file or a static image of a specific form in one or more PNG formats or other format images, and can import the effect of the effect file into the video according to the needs of the video and video files. The editing unit adjusts the size, position, transparency, rotation angle and other characteristics of the PNG format image displayed on the video and video screen to use the image when editing the video. Enrich the content by adding a clip that is freed on the video and video file screen by overlay.
进一步的,基于上述合成系统,本发明还公开了一种图像与影像视频的合成 方法, 包括下述步骤:  Further, based on the above synthesizing system, the present invention also discloses a method for synthesizing images and video images, which includes the following steps:
( 1 ) 将一个或多个具有 alpha通道的图像转换成单一的影像补充效果文 件;  (1) Converting one or more images with alpha channels into a single image supplemental effect file;
( 2 ) 读取原始的影像视频文件和步骤 (1 ) 的单一的影像补充效果文件; (2) reading the original video and video file and the single image supplemental effect file of step (1);
( 3 ) 读入单一的影像补充效果文件包含的适用于影像视频文件画面显示 的图像, 并调整其大小, 位置, 透明度, 旋转角度等特性, 通过覆盖方式将图像 合成到原始影像视频文件的画面上; (3) Read in the image of the image and video file screen included in the single image supplement effect file, and adjust its size, position, transparency, rotation angle, etc., and overlay the image into the original video file. Upper
( 4) 对合成后的影像视频文件进行编码, 输出最终影像视频文件。  (4) Encode the synthesized video and video files and output the final video and video files.
如上对合成系统的描述,本发明的合成方法能够以覆盖方式实现具有特定需 要效果的图像文件与影像视频文件画面的合成,从而使得视频画面更加绚丽多彩。  As described above for the synthesis system, the synthesis method of the present invention can realize the synthesis of the image file and the video and video file picture having the specific desired effect in an overlaid manner, thereby making the video picture more colorful.
进一步的, 上述步骤 (1 ) 还包括将不具有 alpha通道的图像与上述一个或 多个具有 alpha通道的图像合成为单一的影像补充效果文件的步骤,以便对具有 alpha通道的图像具有的覆盖合成效果进行预览; 相应的, 对应与该附加步骤, 步骤 (3 ) 还包括读入单一的影像补充效果文件, 将不具有 alpha通道的图像分 离出来,从而应用包含的适用于影像视频文件画面显示的具有 alpha通道的图像 的步骤。  Further, the above step (1) further includes the step of synthesizing the image having no alpha channel and the one or more images having the alpha channel into a single image supplemental effect file, so as to cover the composite image having the alpha channel. The effect is previewed; correspondingly, corresponding to the additional step, step (3) further includes reading a single image supplement effect file, separating the image without the alpha channel, thereby applying the image display suitable for the video and video file display. The steps for an image with an alpha channel.
进一步的, 所述合成方法还包括对步骤 (1 ) 的单一的影像补充效果文件进 行加密和解密的步骤,在步骤(1 )完成后对单一的影像补充效果文件进行加密, 在步骤 (2 ) 读取时对单一的影像补充效果文件进行解密。  Further, the synthesizing method further includes the step of encrypting and decrypting the single image supplement effect file of the step (1), and encrypting the single image supplement effect file after the step (1) is completed, in the step (2) A single image supplemental effect file is decrypted while reading.
具体的,所用的加密和解密的软件或硬件实现可以采用任意可用于本发明的 方法。  In particular, the software or hardware implementation of the encryption and decryption used may employ any method that can be used in the present invention.
进一步的,所述合成方法还包括将多个图像按顺序叠加来实现动作效果并将 其合成到原始影像视频文件的步骤,从而实现在原始影像视频文件中合成动画效 果。  Further, the synthesizing method further comprises the steps of superimposing a plurality of images in order to realize an action effect and synthesizing the same into the original video file, thereby realizing an animation effect in the original video file.
与上述类似, 所述的原始的影像视频既可以是动态影像 (如相机、 摄像机、 手机拍摄的 avi、 mov等格式的视频), 还可以是静态图像(如相机、 摄像机、 手 机拍摄的 jpg、 raw格式的图像)。 通过上述的合成系统与合成方法,本发明得以将图像(包含 PNG格式或其它 格式的多重画面连接合并)转换成单一的具有影像补充效果的文件格式,然后将 该文件以图像效果的形式插入到影像编辑单元并调整其在原始影像视频文件画 面上的大小, 位置, 透明度, 旋转调整等, 实现二者的合成。 Similar to the above, the original video and video can be either a moving image (such as a camera, a camera, a video in a format such as avi, mov, or the like), or a still image (such as a camera, a camera, or a jpg taken by a mobile phone). Raw format image). Through the above-mentioned synthesis system and synthesis method, the present invention can convert an image (multiple picture connection including PNG format or other format) into a single file format with image supplement effect, and then insert the file into an image effect form. The image editing unit adjusts its size, position, transparency, rotation adjustment, etc. on the original video file screen to achieve the combination of the two.
附图说明 DRAWINGS
图 1为本发明合成系统的结构示意图; Figure 1 is a schematic structural view of a synthesis system of the present invention;
图 2a、 2b分别为本发明的合成方法局部流程图。 2a and 2b are partial flow charts of the synthesis method of the present invention, respectively.
具体实施方式 detailed description
结合具体实施方式及所附附图有助于更好地理解本发明的发明精神及其技 术实质,然而本发明的保护范围并不仅限于此。本领域技术人员在理解本发明的 基础上结合本领域已有技术常识所进行的改进、变换、替换等依旧属于本发明的 保护范围, 本发明的范围涵盖于所附权利要求及其等同变化。  The invention and its technical spirit are better understood in conjunction with the specific embodiments and the accompanying drawings, but the scope of the invention is not limited thereto. The modifications, alterations, substitutions, etc., which are made by those skilled in the art in the light of the present invention, which are in the form of the invention, are intended to be included in the scope of the invention.
参考附图 1, 为本发明的图像与影像视频合成系统的结构, 包括图像转换单 元、视频编辑单元,其中图像转换单元用于将一幅或多幅具有可设置 alpha通道 的图像格式的透明图像(图示为四幅,本领域技术人员可以理解其它数目的图像 也是可行的; 同时采用非透明图像而在后期合成时调整透明度也是可行的)转换 成单一的影像补充效果文件;视频编辑单元读入该文件和要进行效果处理的原始 影像视频文件,并将单一的影像补充效果文件中所含的图像在进行透明度、大小、 位置、 旋转角度调整后覆盖在原始影像视频文件的特定时间或空间的画面上。  1 is a structure of an image and video and video synthesizing system of the present invention, including an image converting unit and a video editing unit, wherein the image converting unit is configured to use one or more transparent images of an image format having a settable alpha channel. (There are four images, those skilled in the art can understand that other numbers of images are also feasible; it is also feasible to use a non-transparent image to adjust the transparency during post-synthesis) to convert into a single image supplement effect file; the video editing unit reads in The file and the original image and video file to be processed, and the image contained in the single image supplemental effect file is overlaid at a specific time or space of the original video and video file after being adjusted in transparency, size, position, and rotation angle. On the screen.
参考图 2a, 显示了将图像转换成单一的影像补充效果文件的一种实现过程, 将具有特定图像内容以便对单一的影像补充效果文件效果进行预览的 BMP 图像 和符合合成效果需要的 png图像合成为单一的影像补充效果文件(图示为申请人 自定义的 EFS格式文件,其他的文件类型如 gif、多帧 png等都是一样可用的), 为了便于分类管理, 在文件生成时加上该效果的基本类型、 clip 文件的名称, 效果名称的设置, 并且可以对其在实际画面上的效果进行预览。  Referring to FIG. 2a, an implementation process of converting an image into a single image supplemental effect file is shown, which combines a BMP image with a specific image content to preview a single image supplemental effect file effect and a png image composition that meets the needs of the synthetic effect. Supplement the effect file for a single image (the illustration is the applicant's custom EFS format file, other file types such as gif, multi-frame png, etc. are all available), in order to facilitate classification management, add this when the file is generated. The basic type of effect, the name of the clip file, the setting of the effect name, and the effect on the actual screen can be previewed.
参考图 2b, 显示了将单一的影像补充效果文件(图示为申请人自定义的 EFS 格式文件, 其他的文件类型如 gif、 多帧 png等都是一样可用的), 视频编辑单 元读入影像视频文件 (动态影像、 静态图像), 并根据单一的影像补充效果文件 的基本类型、 所属插入效果分类、 clip 剪辑文件名称, 效果名称等读入所需要 的单一的影像补充效果文件,先将其中的不具有 alpha通道的 BMP图像分离出去, 然后将单一的影像补充效果文件中的 PNG格式文件根据所需要的效果调整在影 像视频文件画面上的位置、 大小、 角度、透明度等参数, 从而将 PNG图像覆盖在 原始影像视频文件的画面上, 合成完成后将其编码输出为最终的影像视频文件。 Referring to Figure 2b, a single image supplement effect file (shown as the applicant's custom EFS format file, other file types such as gif, multi-frame png, etc.) is displayed, and the video editing unit reads the image. Video file (motion image, still image), and according to the basic type of the single image supplement effect file, the insertion effect classification, the clip file name, the effect name, etc. The single image supplement effect file first separates the BMP image without the alpha channel, and then adjusts the position of the PNG format file in the single image supplement effect file on the image video file screen according to the required effect, Parameters such as size, angle, transparency, etc., so that the PNG image is overlaid on the screen of the original video file, and after the synthesis is completed, the code is output as the final video file.
具体的, 图像在画面上的调整方式可以通过任意几何算法实现, 申请人在下 述给出了一种实现方法,此并不构成限制,本领域技术人员也可采用其他几何变 换实现。  Specifically, the manner in which the image is adjusted on the screen can be implemented by any geometric algorithm. The applicant has given an implementation method as follows. This is not a limitation, and other geometric transformations can be implemented by those skilled in the art.
1) 图像的移动  1) Image movement
图像 I (X, y)往 X轴方向移动 Δχ,往 y轴方向移动△ y后图像 /2(^)标示如下。 The image I (X, y) moves Δχ in the X-axis direction and Δ y in the y-axis direction. The image / 2 (^) is indicated as follows.
表 矩阵如下。
Figure imgf000007_0001
The table matrix is as follows.
Figure imgf000007_0001
2) 图像的扩大缩小  2) The image is enlarged and reduced
图像 I(x, y)往 X轴方向扩大(或缩小),往 y轴方向扩大(或缩小)后图像 /2(ϋ) 如下标示 The image I(x, y) is enlarged (or reduced) in the X-axis direction, and enlarged (or reduced) in the y-axis direction. The image / 2 (ϋ) is indicated as follows
{ — Sx (3)  { — Sx (3)
y = yxSy  y = yxSy
表达式 (3)中, 坐标转换关系标示为矩阵如下。 In the expression (3), the coordinate conversion relationship is indicated as a matrix as follows.
X Sx 0  X Sx 0
0 Sy 0 (4)  0 Sy 0 (4)
0 0 1  0 0 1
3)图像的旋转  3) Rotation of the image
图像 I (X, y)顺时针方向旋转 α度后图像 /3(^)如下标示 Image I (X, y) rotates α degrees clockwise and the image / 3 (^) is marked as follows
X = cos -x-sma · y X = cos -x-sma · y
(5)  (5)
y = sma - + cos - y  y = sma - + cos - y
表达式 (5) 中, 坐标转换关系标示为如下
Figure imgf000007_0002
4) 镜像转换
In the expression (5), the coordinate conversion relationship is marked as follows
Figure imgf000007_0002
4) Mirror conversion
X轴镜像转换的情况下坐标转换矩阵标示如下.  In the case of X-axis mirror conversion, the coordinate transformation matrix is labeled as follows.
X 1 0 0Yx、  X 1 0 0Yx,
0 1 0 (7)  0 1 0 (7)
0 0 1  0 0 1
X轴镜像转换的情况下坐标转换矩阵标示如下.  In the case of X-axis mirror conversion, the coordinate transformation matrix is labeled as follows.
X 1 0 ΟΥ χ、  X 1 0 ΟΥ χ,
0 -1 0 (8)  0 -1 0 (8)
0 0 1  0 0 1
5) 复合转换  5) Compound conversion
先转换 后转换 Τ2, 再转换 Τ3的话, 从原来的坐标到新的坐标的转换如下  First convert and then convert Τ2, then convert Τ3, the conversion from the original coordinates to the new coordinates is as follows
(9)(9)
Figure imgf000008_0001
Figure imgf000008_0001
在此是 Here is
Τ = Ί ·Ί ·Τ、 (10)  Τ = Ί ·Ί ·Τ, (10)
也就是说, 各种几何转换时总体的坐标转换矩阵是 个别的转换矩阵转换的 相反顺序矩阵乘法来获得的.  That is to say, the overall coordinate transformation matrix of various geometric transformations is obtained by the inverse sequential matrix multiplication of individual transformation matrix transformations.
例如, 扩大转换 (Sx, Sy)后再旋转转换( α )的复合转换的情况下坐标转换矩 阵是  For example, in the case of expanding the transformation (Sx, Sy) and then rotating the transformation (α), the coordinate transformation matrix is
X cos a sin a 0 Y Sx Sx-cosa -Sy- sin a θΥ X cos a sin a 0 Y Sx Sx-cosa -Sy- sin a θΥ
= =
y sin 0 ^ 0 •sin Sy -cosa  y sin 0 ^ 0 •sin Sy -cosa
、 o 乂 V 0 0 1  , o 乂 V 0 0 1
(u)。  (u).

Claims

权利要求书 Claim
1. 图像与影像视频合成系统, 包括: 1. Image and video synthesis system, including:
图像转换单元, 用于将一个或多个图像转换成单一的影像补充效果文件; 视频编辑单元, 用于读取影像补充效果文件和影像视频, 并将影像补充效果 文件合成覆盖到影像视频画面上并输出最终的影像视频文件。  The image conversion unit is configured to convert one or more images into a single image supplement effect file; the video editing unit is configured to read the image supplement effect file and the image video, and synthesize the image supplement effect file onto the image video screen And output the final video and video files.
2. 根据权利要求 1所述的合成系统, 其特征在于所述图像转换单元将一个或多 个 PNG格式图像成换成单一的影像补充效果文件。  2. A composition system according to claim 1, wherein said image conversion unit converts one or more PNG format images into a single image supplemental effect file.
3. 根据权利要求 2所述的合成系统, 其特征在于所述图像转换单元所用 PNG格 式图像的数量为 20-30张。  3. The composition system according to claim 2, wherein the number of PNG format images used by said image conversion unit is 20-30 sheets.
4. 根据权利要求 1所述的合成系统, 其特征在于所述视频编辑单元包括图像调 整模块, 图像调整模块用于视频编辑单元读入影像补充效果文件后调整影像 补充效果文件包含的图像在影像视频文件画面上的属性,所述属性包括大小、 位置、 透明度和旋转角度。  4. The compositing system according to claim 1, wherein the video editing unit comprises an image adjustment module, and the image adjustment module is configured to: after the video editing unit reads the image supplement effect file, adjust the image included in the image supplement effect file in the image. Properties on the video file screen, including properties such as size, position, transparency, and rotation angle.
5. 根据权利要求 4所述的合成系统, 其特征在于所述图像调整模块调整影像补 充效果文件包含的图像的透明度, 所述视频编辑单元将其覆盖到影像视频画 面上。  5. The composition system of claim 4, wherein the image adjustment module adjusts transparency of an image included in the image supplement effect file, and the video editing unit overlays the image on the video video surface.
6. 根据权利要求 1所述的合成系统, 其特征在于还包括加密与解密单元, 用于 对图像转换单元生成的单一的影像补充效果文件进行加密和解密。  6. The composition system according to claim 1, further comprising an encryption and decryption unit for encrypting and decrypting a single image supplemental effect file generated by the image conversion unit.
7. 根据权利要求 1所述的合成系统, 其特征在于所述影像视频为动态影像或静 态图像。  7. The composition system of claim 1 wherein the image video is a motion image or a static image.
8. 图像与视频合成方法, 包括下述步骤:  8. Image and video synthesis method, including the following steps:
( 1 ) 将一个或多个图像转换成单一的影像补充效果文件;  (1) converting one or more images into a single image supplemental effect file;
( 2) 读取原始的影像视频文件和步骤 (1 ) 的单一的影像补充效果文件; (2) reading the original video and video file and the single image supplemental effect file of step (1);
( 3) 读入单一的影像补充效果文件包含的适用于影像视频文件画面显示的 图像, 并调整其大小, 位置, 透明度, 旋转角度等特性, 通过覆盖方 式将图像合成到原始影像视频文件的画面上; (3) Read in the image of the video and video file screen included in the single image supplement effect file, and adjust its size, position, transparency, rotation angle, etc., and overlay the image into the original video file. Upper
(4) 对合成后的影像视频文件进行编码, 输出最终影像视频文件。  (4) Encode the synthesized video and video files and output the final video and video files.
9. 根据权利要求 8所述的合成方法, 其特征在于还包括对步骤(1 )的单一的影 像补充效果文件进行加密和解密的步骤, 在步骤(1 )完成后对单一的影像补 充效果文件进行加密, 在步骤(2)读取时对单一的影像补充效果文件进行解 权利要求书 密。 9. The method according to claim 8, further comprising the step of encrypting and decrypting the single image supplemental effect file of step (1), and supplementing the effect file with a single image after step (1) is completed. Encryption, solve the single image supplement effect file when reading in step (2) The claims are confidential.
根据权利要求 8所述的合成方法, 其特征在于还包括将多个图像按顺序叠加 来实现动作效果并将其合成到原始影像视频文件的步骤。 The compositing method according to claim 8, further comprising the step of superimposing a plurality of images in order to realize an action effect and synthesizing the same into the original video file.
PCT/CN2014/070531 2013-01-11 2014-01-13 Image and video synthesis system and synthesis method WO2014108102A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310013047.7 2013-01-11
CN2013100130477A CN103079040A (en) 2013-01-11 2013-01-11 Synthetic system and synthetic method for synthesizing image effect into video images

Publications (1)

Publication Number Publication Date
WO2014108102A1 true WO2014108102A1 (en) 2014-07-17

Family

ID=48155439

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/070531 WO2014108102A1 (en) 2013-01-11 2014-01-13 Image and video synthesis system and synthesis method

Country Status (2)

Country Link
CN (1) CN103079040A (en)
WO (1) WO2014108102A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363466A (en) * 2014-11-04 2015-02-18 无锡天脉聚源传媒科技有限公司 Image generating method and device

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079040A (en) * 2013-01-11 2013-05-01 北京友维科软件科技有限公司 Synthetic system and synthetic method for synthesizing image effect into video images
CN103714565A (en) * 2013-12-31 2014-04-09 广州市久邦数码科技有限公司 Method and system for generating dynamic image with audio
CN105721775B (en) * 2016-02-29 2018-09-18 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106657776A (en) * 2016-11-29 2017-05-10 努比亚技术有限公司 Shooting post-processing method, shooting post-processing device and mobile terminal
CN108471554A (en) * 2017-02-23 2018-08-31 合网络技术(北京)有限公司 Multimedia resource synthetic method and device
CN106803888A (en) * 2017-03-06 2017-06-06 联想(北京)有限公司 The method and electronic equipment of composograph
CN107027075A (en) * 2017-05-27 2017-08-08 邓骁磊 A kind of Online Video player based on the network platform
CN109547849B (en) * 2017-09-21 2022-06-07 腾讯科技(北京)有限公司 Video information playing method, device, terminal and computer storage medium
CN109658369A (en) * 2018-11-22 2019-04-19 中国科学院计算技术研究所 Video intelligent generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971622A (en) * 2006-12-12 2007-05-30 北京中星微电子有限公司 Processing method and system for video cartoon background of digital camera apparatus
CN101365079A (en) * 2007-08-08 2009-02-11 上海未来宽带技术及应用工程研究中心有限公司 Method for overlapping and dynamically displaying background color into transparent dynamic image
CN102542546A (en) * 2010-10-07 2012-07-04 佳能株式会社 Image synthesis processing apparatus and image synthesis processing method
CN103079040A (en) * 2013-01-11 2013-05-01 北京友维科软件科技有限公司 Synthetic system and synthetic method for synthesizing image effect into video images

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5313127B2 (en) * 2007-04-02 2013-10-09 株式会社エム・ソフト Video composition method, video composition system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971622A (en) * 2006-12-12 2007-05-30 北京中星微电子有限公司 Processing method and system for video cartoon background of digital camera apparatus
CN101365079A (en) * 2007-08-08 2009-02-11 上海未来宽带技术及应用工程研究中心有限公司 Method for overlapping and dynamically displaying background color into transparent dynamic image
CN102542546A (en) * 2010-10-07 2012-07-04 佳能株式会社 Image synthesis processing apparatus and image synthesis processing method
CN103079040A (en) * 2013-01-11 2013-05-01 北京友维科软件科技有限公司 Synthetic system and synthetic method for synthesizing image effect into video images

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363466A (en) * 2014-11-04 2015-02-18 无锡天脉聚源传媒科技有限公司 Image generating method and device

Also Published As

Publication number Publication date
CN103079040A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
WO2014108102A1 (en) Image and video synthesis system and synthesis method
US11079912B2 (en) Method and apparatus for enhancing digital video effects (DVE)
CN105144229B (en) Image processing apparatus, image processing method and program
CN112804459A (en) Image display method and device based on virtual camera, storage medium and electronic equipment
US9959905B1 (en) Methods and systems for 360-degree video post-production
WO2002069619A3 (en) Method and apparatus for processing photographic images
JP2007316982A (en) Image display control device, image display device, camera, and image display control program
JP2011166300A (en) Imaging apparatus and image processing method
WO2009043246A1 (en) Method and system for photograph processing
CN105208288A (en) Photo taking method and mobile terminal
CN202143152U (en) Shooting apparatus synthesizing images of figure and visual site of figure
US10554948B2 (en) Methods and systems for 360-degree video post-production
KR101663085B1 (en) System for producing video card in a portable smart device using alpha channel image composition based on video and method therefor
Richardt et al. Video for virtual reality
JP5012668B2 (en) Image processing apparatus, image processing method, and program
TWI802204B (en) Methods and systems for derived immersive tracks
Hasche et al. Creating high-resolution 360-degree single-line 25K video content for modern conference rooms using film compositing techniques
KR101897692B1 (en) Server for composing image using frame separating method
JP2011139300A (en) Image processing apparatus and program
JP7267568B2 (en) Video/audio synthesis method
Sawyer Open-source compositing in blender
Gu A Study on the 3D Contents Production Technology of Taepyungmu
CN103024418B (en) A kind of method making multichannel stereopsis
Sampat Photography, Mobile, and Immersive Imaging 2019
TWI492617B (en) System and method for composing pictures

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14737531

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.11.2015)

122 Ep: pct application non-entry in european phase

Ref document number: 14737531

Country of ref document: EP

Kind code of ref document: A1