WO2014169653A1 - Method and device for optimizing image synthesis - Google Patents

Method and device for optimizing image synthesis Download PDF

Info

Publication number
WO2014169653A1
WO2014169653A1 PCT/CN2013/087578 CN2013087578W WO2014169653A1 WO 2014169653 A1 WO2014169653 A1 WO 2014169653A1 CN 2013087578 W CN2013087578 W CN 2013087578W WO 2014169653 A1 WO2014169653 A1 WO 2014169653A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
synthesized
pixel
target image
color
Prior art date
Application number
PCT/CN2013/087578
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 WO2014169653A1 publication Critical patent/WO2014169653A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present invention relates to the field of image processing, and more particularly to a method and apparatus for optimizing image synthesis.
  • the existing image synthesis technology extracts some images in the source image (here, the character image is taken as an example), does not perform any processing on them, and then synthesizes the extracted characters directly to the set background according to the original scale.
  • the image 1 in Fig. 1 is a source image
  • the size of the source image is: 15 cm in length and 15 cm in width.
  • the position of the head image A of the person image 11 in the source image can be represented by a coordinate, and the coordinate of the point A is (7, 9) (the coordinate origin is the lower left corner of the source image).
  • the character image 11 is extracted from the source image to obtain the extracted person image 12, and the extracted person image 12 and the target image 22 are combined to obtain a composite image 2 having a size of 10 cm in length and 10 cm in width. . Since the extracted person image 12 is not processed, and the size of the target image 22 and the source image 1 are different, the ratio of the portrait image to the background image in the synthesized image 2 is very uncoordinated. Summary of the invention
  • the embodiment of the invention provides an image synthesis algorithm, which solves the problem that the ratio of the image to be combined and the target image in the composite image is not coordinated due to the inconsistency between the source image size and the target image size during image synthesis.
  • the image to be synthesized is synthesized into the target image based on the position information and the size ratio.
  • the length ratio and the width of the target image and the source image Degree ratio are integers.
  • the location information is coordinate information of at least one pixel of the image to be composited.
  • the method before the image to be synthesized is synthesized into the target image, the method further includes acquiring a color value displayed in the target image of the image to be composited;
  • the synthesizing the image to be synthesized into the target image according to the location information and the size ratio includes: Coordinate values of the length direction and the width direction of each pixel are multiplied by the length ratio and the width ratio, respectively, to obtain coordinate values of corresponding pixel points in the target image; and the target image is set according to the color value The color parameter of the corresponding pixel;
  • the synthesizing the image to be synthesized into the target image according to the location information and the size ratio includes: Coordinates of each pixel point on the boundary are multiplied by the length ratio and the broadband ratio, respectively, to obtain coordinate values of corresponding pixel points of each pixel on the boundary in the target image; the target image The area enclosed by the boundary pixel is the area to be synthesized; and the color parameter of each pixel in the area to be combined is set according to the color value.
  • the target image and the source image are pictures or videos.
  • the target image is a preset background image.
  • the image to be composited is a character image.
  • An embodiment of the present invention further provides an apparatus for image synthesis optimization, the apparatus comprising: a data acquisition module configured to determine an image to be synthesized in a source image and position information of an image to be synthesized in a source image;
  • a calculation module configured to determine a size ratio of the source image to the target image
  • an image synthesis module configured to synthesize the image to be composite into the target image according to the position information and the size ratio .
  • the size ratio includes: a length ratio and a width ratio of the target image to the source image.
  • the location information is coordinate information of at least one pixel of the image to be composited.
  • the device further includes a color acquiring module, configured to acquire the image to be composited before the image synthesizing module synthesizes the image to be synthesized into the target image.
  • the color value displayed in the target image
  • the image synthesis module includes a conversion sub-module and a color setting sub-module;
  • the conversion sub-module is configured to: when the position information is coordinate information of each pixel point of the image to be combined, respectively, the coordinate values of the length direction and the width direction of each pixel point are respectively compared with the length ratio and the Multiplying a width ratio to obtain a coordinate value of a corresponding pixel in the target image; the color setting sub-module is configured to set a color parameter of a corresponding pixel in the target image according to the color value;
  • the conversion sub-module is further configured to: when the position information is coordinate information of each pixel point on the boundary of the image to be composited, respectively, coordinate the coordinates of each pixel point on the boundary with the length ratio and the Multiplying the broadband ratio to obtain a coordinate value of a corresponding boundary pixel point of each pixel on the boundary in the target image; an area enclosed by the boundary pixel point in the target image is an area to be synthesized; the color setting The sub-module is further configured to set a color parameter of each pixel in the area to be combined according to the color value.
  • the method and device for optimizing image synthesis provided by the embodiment of the present invention, by determining the image to be synthesized in the source image and the position information of the image to be synthesized in the source image, according to the size ratio of the target image and the source image, will be described
  • the composite image is synthesized into the target image, instead of directly synthesizing the image to be synthesized into the set target image according to the original scale, thereby coordinating the image to be synthesized in the composite image with the target image.
  • Figure 1 is an image synthesis diagram
  • FIG. 2 is a flowchart of a method for optimizing an image to be synthesized according to Embodiment 1 of the present invention
  • FIG. 3 is a structural diagram of an apparatus for optimizing an image to be synthesized according to Embodiment 2 of the present invention
  • FIG. 5 is a schematic diagram of a method for optimizing an image to be synthesized according to Embodiment 3 of the present invention
  • FIG. FIG. 6 is a flowchart of a method for optimizing a composite image according to Embodiment 3 of the present invention
  • FIG. 7 is a schematic diagram of another method for optimizing a composite image according to Embodiment 3 of the present invention
  • FIG. 8 is a flowchart of applying the optimization method to a background of a video call switching according to Embodiment 4 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 2 is a flowchart of a method for optimizing an image to be synthesized according to an embodiment, where the optimization method includes the following steps:
  • Step 201 Determine the image to be synthesized and the position information of the image to be combined in the source image;
  • the source image referred to herein may be a picture or a video, and the image to be synthesized is extracted from the source image and needs to be synthesized.
  • the image to be composited may be any image in the source image, such as a character image, an animal image, etc., taking the character image as an example.
  • the image of the person in the source image can be determined by the face recognition algorithm, and the image of the person can be extracted by other computer software (such as Photoshop, Meitu Xiuxiu), and the extraction of other images to be synthesized can also be realized by computer software.
  • the position information of the image to be combined may be determined by determining the distance of the image to be combined with respect to each side of the source image, or by calibrating the image to be combined.
  • the specific point is determined by the coordinates in the source image (usually the origin of the source image as the origin of the source image). Since each image information has pixels, we can use at least one pixel of the image to be composited. Coordinates to characterize location information. Preferably, it can be determined by determining the coordinates of each pixel of the image to be combined.
  • Step 202 Calculate a ratio of a source image size to a target image size
  • the size can be characterized by "length * width", so the size ratio can be the length ratio and the width ratio.
  • the size has a depth value in addition to the length and width, so the size ratio is the length ratio, the width ratio, and the depth ratio. The same, for more The dimension image, the ratio also includes the ratio of other dimension parameters.
  • Step 203 synthesize the image to be synthesized into the target image according to the obtained position information and the size ratio;
  • the target image may be any picture or video, and may also be a preset background.
  • the position information of the image to be synthesized is generally data representing the relative relationship between the image to be synthesized and the source image, so the position information can be processed according to the obtained size ratio, so that the newly obtained position information is adapted to the ratio of the target image and the source image. While processing the position of the composite image, the size of the composite image is also processed according to the ratio, so that the size of the image to be combined is adapted to the target image.
  • the method further includes the step of acquiring the color value, including at least two ways: Method 1: acquiring the color value in the source image as the color value displayed in the target image; the color value in the source image is to be synthesized The color value of each pixel of the image in the source image (the color value refers to a value that can represent the color information contained in the pixel, such as RGB value, luminance value, gray value, etc.).
  • Method 2 Directly set the color value displayed in the target image.
  • the predetermined color value can be realized by setting the RGB value, the luminance value, the gradation value, and the like of the pixel in the target image.
  • the predetermined color value may be related to a color value of each pixel in the image to be synthesized (for example, a transformation of the original color value), or may be a color value of each pixel in the source image of the image to be composited. Irrelevant, completely reset.
  • step 201 when the position information of the image to be synthesized in the source image is the coordinate information of each pixel of the image to be combined, correspondingly, the position of the image to be synthesized in step 203 should also be made according to the size ratio.
  • the coordinates of each pixel point adjusted are determined.
  • the coordinates of each pixel point are multiplied by the length ratio and the width ratio, respectively, to obtain the coordinate value of the corresponding pixel point in the target image.
  • the color parameter of the corresponding pixel in the target image is set according to the obtained color value of the image to be synthesized displayed in the target image, thereby realizing the moving of the color value of the image to be synthesized from the source image to the target image.
  • step 201 when the position information of the image to be synthesized in the source image is the coordinate information of each pixel on the boundary of the image to be combined, correspondingly, the position of the image to be synthesized in step 203 should also be This is determined by the coordinates of the pixel points on the boundary adjusted according to the size ratio.
  • the coordinates of each pixel on the boundary of the image to be combined are respectively multiplied by the length ratio and the width ratio to obtain the coordinate value of the corresponding pixel in the target image.
  • the newly determined coordinate values determine an area enclosed by boundary pixel points, which is the area to be synthesized.
  • the color parameter referred to in the present invention refers to a quantization value of the color, a bit value, and the like, which can represent the color), thereby achieving Synthesis of a composite image and a target image.
  • the image to be synthesized has more pixels in the source image than in the target image.
  • the pixel ratio of the image to be composited in the source image will appear. In the case where there are few pixels in the target image, the pixels are added at this time.
  • the acquisition of the composite image information is performed at a certain frequency, and the processing of the target image and the image to be synthesized is also performed at the same frequency.
  • the synthesis of the target image and the image to be synthesized changes correspondingly according to the information of the acquired image to be combined and the change of the position information.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 3 is a structural diagram of an apparatus for optimizing an image to be synthesized according to the embodiment, where the apparatus includes a data acquisition module, a calculation module, and an image synthesis module.
  • the data acquisition module is configured to determine the image to be synthesized in the source image, the position information of the image to be synthesized in the source image, and store the acquired information.
  • the source image referred to herein may be a picture or a video, and the image to be synthesized is extracted from the source image.
  • the image to be composited may be any image in the source image, such as a character image, an animal image, etc., taking the character image as an example.
  • the person image in the source image can be determined by the face recognition algorithm, and the character image can also be extracted by computer software (such as Photoshop, Meitu Xiuxiu), and the extraction of other images to be synthesized can also be realized by computer software.
  • the position information of the image to be combined can be determined by determining the distance of the image to be combined with respect to each side of the source image.
  • the position of the image can also be determined by calibrating the coordinates of several specific points in the image to be combined in the source image (usually the origin of the source image as the origin of the source image), since each image information has pixels. So we can characterize the position information with the coordinates of the pixels of the image to be composited. Preferably, it can be determined by determining the coordinates of each pixel of the image to be combined.
  • the calculation module is configured to determine a size ratio of the target image to the source image and save the size ratio.
  • the dimensions are characterized by "length * width", so the size ratio is the ratio of length to width.
  • the size has a depth value in addition to the length and width, so the size ratio is the length ratio, the width ratio, and the depth ratio.
  • the ratio also includes the ratio of other size parameters.
  • the image synthesis module is configured to synthesize the image to be composite into the target image based on the position information and the size ratio.
  • the target image can be any picture or video, and can also be a pre-set background.
  • the position information of the image to be synthesized is generally data representing the relative relationship between the image to be synthesized and the source image, so the position information can be processed according to the obtained size ratio, so that the newly obtained position information is adapted to the ratio of the target image and the source image. While processing the position of the composite image, the size of the composite image is also processed according to the ratio, so that the size of the image to be combined is adapted to the target image.
  • the apparatus further includes a color acquisition module, as shown in Fig. 4, the color module is configured to acquire a color value displayed in the target image of the image to be composited before the image synthesis module synthesizes the image to be composited into the target image.
  • the image synthesis module also includes a conversion sub-module and a color setting sub-module.
  • the conversion sub-module is set to multiply the coordinate values of the length direction and the width direction of each pixel by the length ratio and the width ratio when the position information is the coordinate information of each pixel of the image to be combined, to obtain the corresponding pixel in the target image.
  • the coordinate value of the point; the color setting sub-module is set to set the color parameter of the corresponding pixel in the target image according to the color value;
  • the conversion sub-module is further configured to multiply the coordinates of each pixel on the boundary by the length ratio and the broadband ratio when the position information is the coordinate information of each pixel on the boundary of the synthesized image, to obtain each pixel on the boundary.
  • FIG. 6 is a flowchart of a method for optimizing an image to be synthesized provided by the embodiment; the steps of the method are:
  • Step 401 determining a position of each pixel of the character image in the source image, represented by coordinates;
  • Step 402 calculating a length ratio and a width ratio of the target image and the source image;
  • Step 403 multiplying the coordinate values of the length direction and the width direction of each pixel by the length ratio and the width ratio, respectively, to obtain coordinate values of corresponding pixel points in the target image;
  • Step 404 Set color parameters of corresponding pixel points in the target image according to the acquired color values of the pixels in the image to be synthesized.
  • Step 301 Determine the coordinates of each pixel in the image of the person in the source image 1, and only three points are marked here. A, B, C, the coordinates of other pixels are not marked here.
  • the point A is coordinates (8, 9)
  • the point B is (11, 5)
  • the point C is (8, 4);
  • the character image 12 is the image of the person extracted from the source image 1.
  • Step 303 Calculate the coordinate value. Multiply the abscissas of the three points of B, C and M, multiply the ordinate by N, and round up to get the new coordinates, ie A, B, C, A, and the point coordinate value is (5,6). ), B' point coordinate value is (7,3), C' point coordinate value is (5,3).
  • Step 304 Combine the character image 12 with the target image 22 according to the obtained new coordinates. Specifically, the color parameter of the pixel at the A′ in the target image is set as the color value of the pixel at the point A in the source image, and the color parameter of the pixel at the position B′ in the target image is set as the source image. The color value of the pixel at the B point is processed in the pixel of the person image. The processed person image 12 is combined with the target image to obtain a composite image. The person image in the composite image is represented by the person image 13.
  • the size of the source image is larger than the size of the target image
  • the pixel of the person image 11 is larger than the pixel of the person image 13.
  • discarding or merging processing is performed; when the source image is used
  • the size of the target image is smaller than the size of the target image
  • the pixel of the person image 11 is smaller than the pixel of the person image 13 and the supplementary processing is performed at this time.
  • the target image and the source image in the above embodiment may also be multi-dimensional, and the three-dimensional example will be described here.
  • the target image and the source image are three-dimensional, when calculating the size ratio, the depth ratio of the target image and the source image is calculated.
  • you need to process each pixel because the coordinates of its pixel have three parameters, such as (x, y, z), you must not only process x, y, but also the depth and depth of z and depth. Multiply the ratio to get a new ⁇ ' to determine the new coordinates.
  • the 7 is another method for optimizing image synthesis, the method being different from the above method in that, when determining the position of the image to be combined in the source image, only the pixels on the boundary of the person image are determined in the source image 1.
  • the coordinates of the point here only three points D, E, F are marked, the coordinates of other pixels are not marked here.
  • the coordinates of point D are (8,9), the point of E is (11,5), and the point of point F is (8,4).
  • the coordinate values of the corresponding boundary pixel points of the respective pixel points on the boundary in the target image are obtained in the same manner as the above method, that is, D', E', F', D' point coordinate values are (5, 6), E 'The point coordinate value is (7,3), and the F' point coordinate value is (5,3).
  • an area to be combined is determined in the target image, that is, an area defined by a broken line of the character image 14 in the figure, and each of the areas to be combined is set according to the acquired color value or the preset color value.
  • the above embodiment is an optimization of the image synthesis algorithm, and the following embodiment applies the optimization method to real life.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • FIG. 8 is a flow chart of applying the optimization method to a background of a video call switching according to an embodiment of the present disclosure.
  • the optimized image synthesis algorithm is applied to a video call of mobile communication, and the specific steps are as follows:
  • Step 701 Presetting a plurality of static solid color backgrounds in the mobile communication terminal, such as white, red, blue, etc., the user may select a preset solid color background, or may customize other static or dynamic background images, where the preset solid colors are preset.
  • the background, the static background, and the dynamic background are the target images to be selected;
  • Step 702 Shooting a background environment video by using the mobile communication terminal, the background environment video Is to replace the background, the background environment video is preset in the mobile communication terminal; and the segment of the environment video can also be other video, where the video selected by the mobile communication terminal is used to make the video synthesis effect better.
  • the video here is also the target image to be selected;
  • Step 703 Set whether to enable the background filtering function before starting the video call or during the call missed state or video call.
  • the call setting can be set; when the call is not answered, the call interface provides a shortcut switch for the background filter function;
  • Step 704 Before the background filtering function is enabled, before starting the video call and during the video call, the solid color background or the customized background video may be selected as the video background in the call setting menu; when the incoming call is not answered, the background filtering is started from the incoming call interface. After the function, the background selection box is popped up for the user to select; Step 705: The background filtering function is enabled and the video call is started after the background setting is completed; Step 706: After the video call is established, the camera starts to collect the local video data in real time, in the local video data stream.
  • the image is the source image in the above embodiment;
  • Step 707 According to the local video data collected by the camera, after the portrait recognition module, the portrait image is extracted by the portrait recognition algorithm, and the actual background environment is filtered out.
  • Step 708 Combine the extracted character image with the preset background in step 704, and optimize the synthesized image by using the optimization method proposed in the present application in the process of synthesis;
  • Step 709 Pass the synthesized image information to the peer end through the wireless network
  • the preset background is video.
  • the background video is recycled until the call ends.
  • Step 710 If the background filtering function is not enabled, the video call is initiated according to the normal video call process, or the video call is received;
  • Step 711 The background filtering function is not enabled. During the video call, the local end passes the actual background environment to the peer.
  • the optimization method combines the image to be synthesized in the source image, the position information of the image to be synthesized in the source image, and synthesizes the image to be synthesized according to the size ratio of the target image and the source image.
  • the image to be synthesized in the composite image is coordinated with the target image.
  • Applying the method to the video call switching background can also make the video after switching the background more realistic, and realize real-time adjustment of the synthesized video.
  • the optimization method provided by the embodiment of the present invention adjusts the size of the image to be synthesized according to the size ratio of the target image and the source image, so that the size of the image to be synthesized in the composite image is coordinated with the target image ratio, so that the composite image is more realistic.

Landscapes

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

Abstract

Provided are a method and device for optimizing an image synthesis. The method comprises the following steps: determining an image to be synthesized in a source image and location information about the image to be synthesized in the source image (S201); determining a size ratio of a target image to the source image (S202); and according to the location information and the size ratio, synthesizing the image to be synthesized into the target image (S203).

Description

一种图像合成的优化方法及装置 技术领域  Method and device for optimizing image synthesis
本发明涉及一种图像处理领域, 尤其涉及一种对图像合成进行优化的方 法和装置。  The present invention relates to the field of image processing, and more particularly to a method and apparatus for optimizing image synthesis.
背景技术 Background technique
现有的图像合成技术是将源图像中的某些图像(这里以人物图像为例) 提取出来, 不对其进行任何处理, 然后将提取出来的人物直接按照原比例大 小合成到设定好的背景图像中。 如图 1所示, 图 1中的图像 1为源图像, 源 图像的尺寸为: 长为 15cm, 宽为 15cm。 人物图像 11的头顶 A处在源图像中 的位置可用一个坐标来表示, A点的坐标为 (7,9 ) (坐标原点是源图像的左 下角) 。 将人物图像 11从源图像中提取出来, 得到提取的人物图像 12, 将 提取的人物图像 12与目标图像 22进行合成, 得到合成图像 2, 目标图像 22 的尺寸为: 长为 10cm, 宽为 10cm。 因没有对提取的人物图像 12进行处理, 且目标图像 22与源图像 1的尺寸又不一致, 因此, 合成后的图像 2中人物图 像的比例与背景图像的比例就会很不协调。 发明内容  The existing image synthesis technology extracts some images in the source image (here, the character image is taken as an example), does not perform any processing on them, and then synthesizes the extracted characters directly to the set background according to the original scale. In the image. As shown in Fig. 1, the image 1 in Fig. 1 is a source image, and the size of the source image is: 15 cm in length and 15 cm in width. The position of the head image A of the person image 11 in the source image can be represented by a coordinate, and the coordinate of the point A is (7, 9) (the coordinate origin is the lower left corner of the source image). The character image 11 is extracted from the source image to obtain the extracted person image 12, and the extracted person image 12 and the target image 22 are combined to obtain a composite image 2 having a size of 10 cm in length and 10 cm in width. . Since the extracted person image 12 is not processed, and the size of the target image 22 and the source image 1 are different, the ratio of the portrait image to the background image in the synthesized image 2 is very uncoordinated. Summary of the invention
本发明实施例提供一种图像合成算法, 解决图像合成时, 因源图像尺寸 与目标图像尺寸不一致而导致的合成图像中的待合成图像与目标图像比例不 协调的问题。  The embodiment of the invention provides an image synthesis algorithm, which solves the problem that the ratio of the image to be combined and the target image in the composite image is not coordinated due to the inconsistency between the source image size and the target image size during image synthesis.
本发明实施例提供的一种图像合成的优化方法, 包括:  An optimization method for image synthesis provided by an embodiment of the present invention includes:
确定源图像中的待合成图像以及待合成图像在源图像中的位置信息; 确定目标图像与源图像的尺寸比值;  Determining an image to be synthesized in the source image and position information of the image to be synthesized in the source image; determining a size ratio of the target image to the source image;
根据所述位置信息和所述尺寸比值将所述待合成图像合成到所述目标图 像中。  The image to be synthesized is synthesized into the target image based on the position information and the size ratio.
在本发明的一种实施例中, 所述目标图像与所述源图像的长度比值和宽 度比值。 In an embodiment of the invention, the length ratio and the width of the target image and the source image Degree ratio.
在本发明的一种实施例中, 所述位置信息为所述待合成图像的至少一个 像素点的坐标信息。  In an embodiment of the invention, the location information is coordinate information of at least one pixel of the image to be composited.
在本发明的一种实施例中, 将所述待合成图像合成到所述目标图像中之 前, 还包括获取所述待合成图像的在所述目标图像中显示的色彩值;  In an embodiment of the present invention, before the image to be synthesized is synthesized into the target image, the method further includes acquiring a color value displayed in the target image of the image to be composited;
当所述位置信息为所述待合成图像的各像素点的坐标信息时, 所述根据 所述位置信息和所述尺寸比值将所述待合成图像合成到所述目标图像中包 括: 将所述各像素点长度方向和宽度方向的坐标值分别与所述长度比值和所 述宽度比值相乘, 得到在所述目标图像中对应像素点的坐标值; 根据所述色 彩值设定所述目标图像中对应像素点的色彩参数;  When the location information is the coordinate information of each pixel of the image to be combined, the synthesizing the image to be synthesized into the target image according to the location information and the size ratio includes: Coordinate values of the length direction and the width direction of each pixel are multiplied by the length ratio and the width ratio, respectively, to obtain coordinate values of corresponding pixel points in the target image; and the target image is set according to the color value The color parameter of the corresponding pixel;
当所述位置信息为所述待合成图像边界上的各像素点的坐标信息时, 所 述根据所述位置信息和所述尺寸比值将所述待合成图像合成到所述目标图像 中包括: 将所述边界上的各像素点的坐标分别与所述长度比值和所述宽带比 值相乘, 得到边界上的各像素点在所述目标图像中对应的边界像素点的坐标 值; 所述目标图像中的边界像素点围合的区域为待合成区域; 根据所述色彩 值设定所述待合成区域内的各像素点的色彩参数。  When the location information is the coordinate information of each pixel on the boundary of the image to be combined, the synthesizing the image to be synthesized into the target image according to the location information and the size ratio includes: Coordinates of each pixel point on the boundary are multiplied by the length ratio and the broadband ratio, respectively, to obtain coordinate values of corresponding pixel points of each pixel on the boundary in the target image; the target image The area enclosed by the boundary pixel is the area to be synthesized; and the color parameter of each pixel in the area to be combined is set according to the color value.
在本发明的一种实施例中, 所述目标图像和源图像是图片或者视频。 在本发明的一种实施例中, 所述目标图像为预先设置的背景图像。  In an embodiment of the invention, the target image and the source image are pictures or videos. In an embodiment of the invention, the target image is a preset background image.
在本发明的一种实施例中, 所述待合成图像为人物图像。  In an embodiment of the invention, the image to be composited is a character image.
本发明实施例还提供了一种图像合成优化的装置, 该装置包括: 数据获取模块, 其设置为确定源图像中的待合成图像以及待合成图像在 源图像中的位置信息;  An embodiment of the present invention further provides an apparatus for image synthesis optimization, the apparatus comprising: a data acquisition module configured to determine an image to be synthesized in a source image and position information of an image to be synthesized in a source image;
计算模块, 其设置为确定所述源图像与所述目标图像的尺寸比值; 图像合成模块, 其设置为根据所述位置信息和所述尺寸比值将所述待合 成图像合成到所述目标图像中。  a calculation module configured to determine a size ratio of the source image to the target image; an image synthesis module configured to synthesize the image to be composite into the target image according to the position information and the size ratio .
在本发明的一种实施例中, 所述尺寸比值包括: 所述目标图像与所述源 图像的长度比值和宽度比值。 在本发明的一种实施例中, 所述位置信息为所述待合成图像的至少一个 像素点的坐标信息。 In an embodiment of the invention, the size ratio includes: a length ratio and a width ratio of the target image to the source image. In an embodiment of the invention, the location information is coordinate information of at least one pixel of the image to be composited.
在本发明的一种实施例中, 所述装置还包括色彩获取模块, 其设置为在 所述图像合成模块将待合成图像合成到所述目标图像中之前, 获取所述待合 成图像的在所述目标图像中显示的色彩值;  In an embodiment of the present invention, the device further includes a color acquiring module, configured to acquire the image to be composited before the image synthesizing module synthesizes the image to be synthesized into the target image. The color value displayed in the target image;
所述图像合成模块包括换算子模块和色彩设定子模块;  The image synthesis module includes a conversion sub-module and a color setting sub-module;
所述换算子模块设置为当所述位置信息为所述待合成图像的各像素点的 坐标信息时, 将所述各像素点长度方向和宽度方向的坐标值分别与所述长度 比值和所述宽度比值相乘, 得到在所述目标图像中对应像素点的坐标值; 所 述色彩设定子模块设置为根据所述色彩值设定所述目标图像中对应像素点的 色彩参数;  The conversion sub-module is configured to: when the position information is coordinate information of each pixel point of the image to be combined, respectively, the coordinate values of the length direction and the width direction of each pixel point are respectively compared with the length ratio and the Multiplying a width ratio to obtain a coordinate value of a corresponding pixel in the target image; the color setting sub-module is configured to set a color parameter of a corresponding pixel in the target image according to the color value;
所述换算子模块还设置为当所述位置信息为所述待合成图像边界上的各 像素点的坐标信息时, 将所述边界上的各像素点的坐标分别与所述长度比值 和所述宽带比值相乘, 得到边界上的各像素点在所述目标图像中对应的边界 像素点的坐标值; 所述目标图像中的边界像素点围合的区域为待合成区域; 所述色彩设定子模块还设置为根据所述色彩值设定所述待合成区域内的各像 素点的色彩参数。  The conversion sub-module is further configured to: when the position information is coordinate information of each pixel point on the boundary of the image to be composited, respectively, coordinate the coordinates of each pixel point on the boundary with the length ratio and the Multiplying the broadband ratio to obtain a coordinate value of a corresponding boundary pixel point of each pixel on the boundary in the target image; an area enclosed by the boundary pixel point in the target image is an area to be synthesized; the color setting The sub-module is further configured to set a color parameter of each pixel in the area to be combined according to the color value.
本发明实施例提供的对图像合成进行优化的方法和装置, 通过确定源图 像中的待合成图像、 待合成图像在源图像中的位置信息, 依据目标图像与源 图像的尺寸比值, 将述待合成图像合成到所述目标图像中, 而不是将待合成 的图像直接按照原比例大小合成到设定好的目标图像中, 从而使合成图像中 的待合成图像与目标图像比例相协调。 附图概述  The method and device for optimizing image synthesis provided by the embodiment of the present invention, by determining the image to be synthesized in the source image and the position information of the image to be synthesized in the source image, according to the size ratio of the target image and the source image, will be described The composite image is synthesized into the target image, instead of directly synthesizing the image to be synthesized into the set target image according to the original scale, thereby coordinating the image to be synthesized in the composite image with the target image. BRIEF abstract
图 1为一种图像合成图;  Figure 1 is an image synthesis diagram;
图 2为本发明实施例一提供的对待合成图像进行优化的方法的流程图; 图 3为本发明实施例二提供的对待合成图像进行优化的装置的结构图; 图 4为本发明实施例二提供的另一种对待合成图像进行优化的装置的结 构图;  2 is a flowchart of a method for optimizing an image to be synthesized according to Embodiment 1 of the present invention; FIG. 3 is a structural diagram of an apparatus for optimizing an image to be synthesized according to Embodiment 2 of the present invention; Another structural diagram of an apparatus for optimizing a composite image to be provided;
图 5为本发明实施例三提供的对待合成图像进行优化的方法的示意图; 图 6为本发明实施例三提供的对待合成图像进行优化的方法的流程图; 图 7为本发明实施例三提供的另一种对待合成图像进行优化的方法的示 意图; FIG. 5 is a schematic diagram of a method for optimizing an image to be synthesized according to Embodiment 3 of the present invention; FIG. FIG. 6 is a flowchart of a method for optimizing a composite image according to Embodiment 3 of the present invention; FIG. 7 is a schematic diagram of another method for optimizing a composite image according to Embodiment 3 of the present invention;
图 8为本发明实施例四提供的将该优化方法应用于视频通话中切换背景 的流程图。  FIG. 8 is a flowchart of applying the optimization method to a background of a video call switching according to Embodiment 4 of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面结合附图对本发明的具体实施方式作详细说明,在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。  The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings, and the features in the embodiments and the embodiments in the present application can be arbitrarily combined with each other without conflict.
实施例一:  Embodiment 1:
图 2为本实施例提供的对待合成图像进行优化的方法的流程图,该优化方 法包括以下步骤:  FIG. 2 is a flowchart of a method for optimizing an image to be synthesized according to an embodiment, where the optimization method includes the following steps:
步骤 201 : 在源图像中确定待合成图像、 以及待合成图像的位置信息; 这里所说的源图像可以是图片或者视频, 待合成图像是从源图像中提取的、 需要对其进行合成处理的图像。 待合成图像可以是源图像中的任意图像, 例 如人物图像、 动物图像等, 我们以人物图像为例。 通常, 可以通过人脸识别 算法确定源图像中的人物图像, 也可以通过其他计算机软件(如 Photoshop, 美图秀秀)提取人物图像, 对于其他的待合成图像的提取也可以通过计算机 软件实现。 待合成图像的位置信息即待合成图像在源图像中所处的位置, 可 以通过确定待合成图像相对于源图像各边的距离来确定待合成图像的位置, 也可以通过标定待合成图像中几个特定的点在源图像中的坐标(通常以源图 像左下角作为源图像的坐标原点)来确定, 因每个图像信息都有像素点, 因 此我们可以用待合成图像的至少一个像素点的坐标来表征位置信息。较优的, 可以通过确定待合成图像各像素点的坐标来确定。  Step 201: Determine the image to be synthesized and the position information of the image to be combined in the source image; the source image referred to herein may be a picture or a video, and the image to be synthesized is extracted from the source image and needs to be synthesized. image. The image to be composited may be any image in the source image, such as a character image, an animal image, etc., taking the character image as an example. Generally, the image of the person in the source image can be determined by the face recognition algorithm, and the image of the person can be extracted by other computer software (such as Photoshop, Meitu Xiuxiu), and the extraction of other images to be synthesized can also be realized by computer software. The position information of the image to be combined, that is, the position of the image to be synthesized in the source image, may be determined by determining the distance of the image to be combined with respect to each side of the source image, or by calibrating the image to be combined. The specific point is determined by the coordinates in the source image (usually the origin of the source image as the origin of the source image). Since each image information has pixels, we can use at least one pixel of the image to be composited. Coordinates to characterize location information. Preferably, it can be determined by determining the coordinates of each pixel of the image to be combined.
步骤 202: 计算源图像尺寸与目标图像尺寸比值;  Step 202: Calculate a ratio of a source image size to a target image size;
对于二维图像, 其尺寸可用 "长 *宽" 来表征的, 因此其尺寸比值就可为 长度比值和宽度比值。 对于三维图像, 其尺寸除了长和宽以外, 还有个深度 值, 因此其尺寸比值就是长度比值、 宽度比值和深度比值。 同样的, 对于多 维图像, 其比值还包括其他的尺寸参数的比值。 For two-dimensional images, the size can be characterized by "length * width", so the size ratio can be the length ratio and the width ratio. For three-dimensional images, the size has a depth value in addition to the length and width, so the size ratio is the length ratio, the width ratio, and the depth ratio. The same, for more The dimension image, the ratio also includes the ratio of other dimension parameters.
步骤 203 : 根据得到的位置信息和尺寸比值将待合成图像合成到目标图 像中;  Step 203: synthesize the image to be synthesized into the target image according to the obtained position information and the size ratio;
目标图像可以是任何图片或者视频, 并且也可以是预先设置的背景。 待 合成图像的位置信息一般为表征待合成图像与源图像相对关系的数据, 因此 可以依据得到的尺寸比值对位置信息做处理, 使新得到的位置信息与目标图 像与源图像的比例相适应, 在对待合成图像的位置进行处理的同时, 也依据 比例对待合成图像的大小进行处理, 从而使待合成图像的大小与目标图像相 适应。  The target image may be any picture or video, and may also be a preset background. The position information of the image to be synthesized is generally data representing the relative relationship between the image to be synthesized and the source image, so the position information can be processed according to the obtained size ratio, so that the newly obtained position information is adapted to the ratio of the target image and the source image. While processing the position of the composite image, the size of the composite image is also processed according to the ratio, so that the size of the image to be combined is adapted to the target image.
在上述步骤 203之前, 还包括获取色彩值的步骤, 包括至少两种方式: 方式一: 获取在源图像中的色彩值作为在目标图像中显示的色彩值; 源 图像中的色彩值为待合成图像在源图像中的各像素点的色彩值(色彩值是指 能表征该像素点所包含的色彩信息的值,例如 RGB值、 亮度值、灰度值等)。  Before the step 203 above, the method further includes the step of acquiring the color value, including at least two ways: Method 1: acquiring the color value in the source image as the color value displayed in the target image; the color value in the source image is to be synthesized The color value of each pixel of the image in the source image (the color value refers to a value that can represent the color information contained in the pixel, such as RGB value, luminance value, gray value, etc.).
方式二: 直接预先设定在目标图像中显示的色彩值。 预定的色彩值可以 通过设定目标图像中的像素点的 RGB值、 亮度值、 灰度值等来实现。 预定的 色彩值可以与待合成图像在源图像中的各像素点的色彩值有关 (例如是对原 色彩值的变换) , 也可以是与待合成图像在源图像中的各像素点的色彩值无 关, 完全重新设定。  Method 2: Directly set the color value displayed in the target image. The predetermined color value can be realized by setting the RGB value, the luminance value, the gradation value, and the like of the pixel in the target image. The predetermined color value may be related to a color value of each pixel in the image to be synthesized (for example, a transformation of the original color value), or may be a color value of each pixel in the source image of the image to be composited. Irrelevant, completely reset.
在步骤 201 中, 当待合成图像在源图像中的位置信息为所述待合成图像 的各像素点的坐标信息时, 相应地, 在步骤 203中待合成图像的位置也应该 用根据尺寸比值做了调整的各像素点的坐标来确定。 本实施例将各像素点的 坐标分别与长度比值和宽度比值相乘, 得到在目标图像中对应像素点的坐标 值。 根据获取的待合成图像在目标图像中显示的色彩值设定待合成图像在目 标图像中对应像素点的色彩参数, 从而实现了待合成图像的色彩值从源图像 到目标图像的搬移。 对待合成图像的每个像素点都进行上述的处理之后, 就 完成了待合成图像与目标图像的合成。  In step 201, when the position information of the image to be synthesized in the source image is the coordinate information of each pixel of the image to be combined, correspondingly, the position of the image to be synthesized in step 203 should also be made according to the size ratio. The coordinates of each pixel point adjusted are determined. In this embodiment, the coordinates of each pixel point are multiplied by the length ratio and the width ratio, respectively, to obtain the coordinate value of the corresponding pixel point in the target image. The color parameter of the corresponding pixel in the target image is set according to the obtained color value of the image to be synthesized displayed in the target image, thereby realizing the moving of the color value of the image to be synthesized from the source image to the target image. After each of the pixels of the composite image is subjected to the above processing, the synthesis of the image to be synthesized and the target image is completed.
在步骤 201 中, 当待合成图像在源图像中的位置信息为待合成图像边界 上的各像素点的坐标信息时, 相应地, 在步骤 203中待合成图像的位置也应 该用根据尺寸比值做了调整的边界上的像素点的坐标来确定。 本实施例将待 合成图像边界上的各像素点的坐标分别与长度比值和宽度比值相乘, 得到在 目标图像中对应像素点的坐标值。 在目标图像中, 新确定的坐标值确定了一 个由边界像素点围合的区域, 该区域就是待合成区域。 根据获取的待合成图 像在目标图像中显示的色彩值设定待合成区域的色彩参数 (本发明所指的色 彩参数指颜色的量化值、 比特值等能表征色彩的参数) , 从而实现了待合成 图像与目标图像的合成。 In step 201, when the position information of the image to be synthesized in the source image is the coordinate information of each pixel on the boundary of the image to be combined, correspondingly, the position of the image to be synthesized in step 203 should also be This is determined by the coordinates of the pixel points on the boundary adjusted according to the size ratio. In this embodiment, the coordinates of each pixel on the boundary of the image to be combined are respectively multiplied by the length ratio and the width ratio to obtain the coordinate value of the corresponding pixel in the target image. In the target image, the newly determined coordinate values determine an area enclosed by boundary pixel points, which is the area to be synthesized. Setting the color parameter of the area to be combined according to the obtained color value of the image to be synthesized displayed in the target image (the color parameter referred to in the present invention refers to a quantization value of the color, a bit value, and the like, which can represent the color), thereby achieving Synthesis of a composite image and a target image.
在合成的过程中, 当源图像中的尺寸比较大, 而替换背景的尺寸比较小 时, 会出现待合成图像在源图像中的像素点比在目标图像中的像素点多的情 况, 这时候就要对有的像素点做丟弃, 或者是对有的像素点做合并; 当源图 像的尺寸比较小, 而目标图像的尺寸比较大时, 会出现待合成图像在源图像 中的像素点比在目标图像中的像素点少的情况, 这时候就要对像素点进行补 充。  In the process of synthesis, when the size of the source image is relatively large, and the size of the replacement background is relatively small, there will be a case where the image to be synthesized has more pixels in the source image than in the target image. To discard some pixels, or to merge some pixels; when the size of the source image is small, and the size of the target image is large, the pixel ratio of the image to be composited in the source image will appear. In the case where there are few pixels in the target image, the pixels are added at this time.
当源图像和替换目标为视频时, 对待合成图像信息的获取是按照一定频 率进行的, 目标图像与待合成图像的处理也是按照相同的频率进行的。 目标 图像与待合成图像的合成会依据获取到的待合成图像的信息和位置信息的变 化而相应的发生变化。  When the source image and the replacement target are video, the acquisition of the composite image information is performed at a certain frequency, and the processing of the target image and the image to be synthesized is also performed at the same frequency. The synthesis of the target image and the image to be synthesized changes correspondingly according to the information of the acquired image to be combined and the change of the position information.
实施例二: Embodiment 2:
图 3为本实施例提供的对待合成图像进行优化的装置的结构图, 该装置 包括数据获取模块、 计算模块和图像合成模块。  FIG. 3 is a structural diagram of an apparatus for optimizing an image to be synthesized according to the embodiment, where the apparatus includes a data acquisition module, a calculation module, and an image synthesis module.
其中数据获取模块设置为确定源图像中的待合成图像、 待合成图像在源 图像中的位置信息, 并将获取的信息存储起来。 这里所说的源图像可以是图 片或者视频, 待合成图像是从源图像中提取的。 待合成图像可以是源图像中 的任意图像, 例如人物图像、 动物图像等, 我们以人物图像为例。 通常, 可 以通过人脸识别算法确定源图像中的人物图像, 也可以通过计算机软件(如 Photoshop, 美图秀秀)提取人物图像, 对于其他的待合成图像的提取也可以 通过计算机软件实现。 待合成图像的位置信息即待合成图像在源图像中所处 的位置, 可以通过确定待合成图像相对于源图像各边的距离来确定待合成图 像的位置,也可以通过标定待合成图像中几个特定的点在源图像中的坐标(通 常以源图像左下角作为源图像的坐标原点)来确定, 因每个图像信息都有像 素点, 因此我们可以用待合成图像的像素点的坐标来表征位置信息。较优的, 可以通过确定待合成图像各像素点的坐标来确定。 The data acquisition module is configured to determine the image to be synthesized in the source image, the position information of the image to be synthesized in the source image, and store the acquired information. The source image referred to herein may be a picture or a video, and the image to be synthesized is extracted from the source image. The image to be composited may be any image in the source image, such as a character image, an animal image, etc., taking the character image as an example. Generally, the person image in the source image can be determined by the face recognition algorithm, and the character image can also be extracted by computer software (such as Photoshop, Meitu Xiuxiu), and the extraction of other images to be synthesized can also be realized by computer software. The position information of the image to be combined, that is, the position of the image to be synthesized in the source image, can be determined by determining the distance of the image to be combined with respect to each side of the source image. The position of the image can also be determined by calibrating the coordinates of several specific points in the image to be combined in the source image (usually the origin of the source image as the origin of the source image), since each image information has pixels. So we can characterize the position information with the coordinates of the pixels of the image to be composited. Preferably, it can be determined by determining the coordinates of each pixel of the image to be combined.
计算模块设置为确定目标图像与源图像的尺寸比值,并保存该尺寸比值。 对于二维图像, 尺寸是用 "长 *宽" 来表征的, 因此其尺寸比值就是长度比值 和宽度比值。 对于三维图像, 其尺寸除了长和宽以外, 还有个深度值, 因此 其尺寸比值就是长度比值、 宽度比值和深度比值。 同样的, 对于多维图像, 其比值还包括其他的尺寸参数的比值。  The calculation module is configured to determine a size ratio of the target image to the source image and save the size ratio. For two-dimensional images, the dimensions are characterized by "length * width", so the size ratio is the ratio of length to width. For 3D images, the size has a depth value in addition to the length and width, so the size ratio is the length ratio, the width ratio, and the depth ratio. Similarly, for multi-dimensional images, the ratio also includes the ratio of other size parameters.
图像合成模块设置为根据位置信息和尺寸比值将所述待合成图像合成到 所述目标图像中。 目标图像可以是任何图片或者视频, 并且也可以是预先设 置的背景。 待合成图像的位置信息一般为表征待合成图像与源图像相对关系 的数据, 因此可以依据得到的尺寸比值对位置信息做处理, 使新得到的位置 信息与目标图像与源图像的比例相适应, 在对待合成图像的位置进行处理的 同时, 也依据比例对待合成图像的大小进行处理, 从而使待合成图像的大小 与目标图像相适应。  The image synthesis module is configured to synthesize the image to be composite into the target image based on the position information and the size ratio. The target image can be any picture or video, and can also be a pre-set background. The position information of the image to be synthesized is generally data representing the relative relationship between the image to be synthesized and the source image, so the position information can be processed according to the obtained size ratio, so that the newly obtained position information is adapted to the ratio of the target image and the source image. While processing the position of the composite image, the size of the composite image is also processed according to the ratio, so that the size of the image to be combined is adapted to the target image.
该装置还包括色彩获取模块, 见图 4, 色彩模块设置为在图像合成模块 将待合成图像合成到目标图像中之前, 获取待合成图像的在目标图像中显示 的色彩值。 图像合成模块还包括换算子模块和色彩设定子模块。 换算子模块 设置为当位置信息为待合成图像的各像素点的坐标信息时, 将各像素点长度 方向和宽度方向的坐标值分别与长度比值和宽度比值相乘, 得到在目标图像 中对应像素点的坐标值; 色彩设定子模块设置为根据色彩值设定目标图像中 对应像素点的色彩参数;  The apparatus further includes a color acquisition module, as shown in Fig. 4, the color module is configured to acquire a color value displayed in the target image of the image to be composited before the image synthesis module synthesizes the image to be composited into the target image. The image synthesis module also includes a conversion sub-module and a color setting sub-module. The conversion sub-module is set to multiply the coordinate values of the length direction and the width direction of each pixel by the length ratio and the width ratio when the position information is the coordinate information of each pixel of the image to be combined, to obtain the corresponding pixel in the target image. The coordinate value of the point; the color setting sub-module is set to set the color parameter of the corresponding pixel in the target image according to the color value;
换算子模块还设置为当位置信息为所合成图像边界上的各像素点的坐标 信息时, 将边界上的各像素点的坐标分别与长度比值和宽带比值相乘, 得到 边界上的各像素点在目标图像中对应的边界像素点的坐标值;在目标图像中, 新确定的坐标值确定了一个由边界像素点围合的区域, 该区域就是待合成区 域; 色彩设定子模块还设置为根据获取的待合成图像在目标图像中显示的色 彩值设定待合成区域内的各像素点的色彩参数, 从而实现了待合成图像与目 标图像的合成。 实施例三: The conversion sub-module is further configured to multiply the coordinates of each pixel on the boundary by the length ratio and the broadband ratio when the position information is the coordinate information of each pixel on the boundary of the synthesized image, to obtain each pixel on the boundary. The coordinate value of the corresponding boundary pixel in the target image; in the target image, the newly determined coordinate value determines an area enclosed by the boundary pixel, the area is the area to be synthesized; the color setting sub-module is also set to The color parameters of each pixel in the area to be synthesized are set according to the acquired color values of the image to be synthesized displayed in the target image, thereby realizing the synthesis of the image to be combined and the target image. Embodiment 3:
图 6为本实施例提供的对待合成图像进行优化的方法的流程图; 该方法 的步骤为:  FIG. 6 is a flowchart of a method for optimizing an image to be synthesized provided by the embodiment; the steps of the method are:
步骤 401 : 确定人物图像的各像素点在源图像中的位置, 用坐标表示; 步骤 402: 计算目标图像与源图像的长度比值和宽度比值;  Step 401: determining a position of each pixel of the character image in the source image, represented by coordinates; Step 402: calculating a length ratio and a width ratio of the target image and the source image;
步骤 403 : 将各像素点长度方向和宽度方向的坐标值分别与长度比值和 宽度比值相乘, 得到在目标图像中对应像素点的坐标值; ;  Step 403: multiplying the coordinate values of the length direction and the width direction of each pixel by the length ratio and the width ratio, respectively, to obtain coordinate values of corresponding pixel points in the target image;
步骤 404: 根据获取的待合成图像在源图像中的各像素点的色彩值设定 目标图像中对应的各像素点的色彩参数。  Step 404: Set color parameters of corresponding pixel points in the target image according to the acquired color values of the pixels in the image to be synthesized.
为了更好的理解本发明, 现在以图 5所示的应用场景为例进行说明: 步骤 301 : 在源图像 1 中确定人物图像中的每个像素点的坐标, 这里只 标出了三个点 A、 B、 C, 其他像素点的坐标这里没有标记出来。 其中 A点坐 标为 (8,9 ) , B点为 (11,5 ) , C点为 (8,4 ); 人物图像 12为从源图像 1中 提取出来的人物图像。  For a better understanding of the present invention, the application scenario shown in FIG. 5 is taken as an example for explanation: Step 301: Determine the coordinates of each pixel in the image of the person in the source image 1, and only three points are marked here. A, B, C, the coordinates of other pixels are not marked here. The point A is coordinates (8, 9), the point B is (11, 5), and the point C is (8, 4); the character image 12 is the image of the person extracted from the source image 1.
步骤 302: 计算目标图像与源图像的尺寸比值, 将目标图像 22的长度尺 寸与源图像 1 的长度尺寸做除, 得到长度比值为 M=10/16=5/8, 将目标图像 22的宽度尺寸与源图像的宽度尺寸做除, 得到宽度比值为 N=10/15=2/3。  Step 302: Calculate a size ratio of the target image to the source image, divide the length dimension of the target image 22 and the length dimension of the source image 1, and obtain a length ratio of M=10/16=5/8, and the width of the target image 22 The size is divided from the width dimension of the source image to obtain a width ratio of N=10/15=2/3.
步骤 303: 计算坐标值。 将 、 B、 C三点的横坐标与 M相乘, 纵坐标与 N相乘, 四舍五入取整得到新的坐标, 即 A,、 B,、 C,, A,点坐标值为(5,6 ) 、 B'点坐标值为 (7,3 ) 、 C'点坐标值为 (5,3 ) 。  Step 303: Calculate the coordinate value. Multiply the abscissas of the three points of B, C and M, multiply the ordinate by N, and round up to get the new coordinates, ie A, B, C, A, and the point coordinate value is (5,6). ), B' point coordinate value is (7,3), C' point coordinate value is (5,3).
步骤 304: 依据得到的新坐标, 将人物图像 12与目标图像 22进行合成。 具体为: 将目标图像中处于 A'处的像素点的色彩参数设置为源图像中处于 A 点的像素点的色彩值, 将目标图像中处于 B'处的像素点的色彩参数设置为源 图像中处于 B点的像素点的色彩值, 对人物图像的各像素点都进行这样的处 理。 经过处理之后的人物图像 12就与目标图像完成了合成, 得到合成图像。 合成图像中的人物图像用人物图像 13表示。  Step 304: Combine the character image 12 with the target image 22 according to the obtained new coordinates. Specifically, the color parameter of the pixel at the A′ in the target image is set as the color value of the pixel at the point A in the source image, and the color parameter of the pixel at the position B′ in the target image is set as the source image. The color value of the pixel at the B point is processed in the pixel of the person image. The processed person image 12 is combined with the target image to obtain a composite image. The person image in the composite image is represented by the person image 13.
当源图像的尺寸比目标图像的尺寸大时,会出现人物图像 11的像素点比 人物图像 13的像素点多的情况, 这时候就要做丟弃或者合并处理; 当源图像 的尺寸比目标图像的尺寸小时, 会出现人物图像 11 的像素点比人物图像 13 的像素点少的情况, 这时候就要做补充处理。 When the size of the source image is larger than the size of the target image, there may be a case where the pixel of the person image 11 is larger than the pixel of the person image 13. At this time, discarding or merging processing is performed; when the source image is used When the size of the target image is smaller than the size of the target image, there may be a case where the pixel of the person image 11 is smaller than the pixel of the person image 13, and the supplementary processing is performed at this time.
对于上述实施例中的目标图像和源图像也可以是多维的, 这里以三维为 例进行说明。 当目标图像和源图像为三维时, 在计算尺寸比值时, 就要计算 目标图像和源图像的深度比值。 当需要对每个像素点进行处理的, 因其像素 点的坐标有三个参数, 例如(x,y,z ) , 因此不仅要对 x、 y进行处理, 而且还 要将表示深度的 z与深度比值相乘, 得到新的 ζ' , 从而确定新的坐标。  The target image and the source image in the above embodiment may also be multi-dimensional, and the three-dimensional example will be described here. When the target image and the source image are three-dimensional, when calculating the size ratio, the depth ratio of the target image and the source image is calculated. When you need to process each pixel, because the coordinates of its pixel have three parameters, such as (x, y, z), you must not only process x, y, but also the depth and depth of z and depth. Multiply the ratio to get a new ζ' to determine the new coordinates.
图 7是对图像合成进行优化的另一种方法, 该方法与上述方法的区别在 于:在确定待合成图像在源图像中的位置时,只在源图像 1 中确定人物图像的 边界上的像素点的坐标, 这里只标出了三个点 D、 E、 F, 其他像素点的坐标 这里没有标记出来。 其中 D点坐标为(8,9 ) , E点为(11,5 ) , F点为( 8,4 ) 。 通过与上述方法相同的方式得到边界上的各像素点在目标图像中对应的边界 像素点的坐标值, 即 D'、 E'、 F', D'点坐标值为 ( 5,6 ) 、 E'点坐标值为( 7,3 ) 、 F'点坐标值为 (5,3 ) 。 根据得到的新的坐标值, 在目标图像中确定了一个待 合成区域, 即图中人物图像 14虚线所限定的区域, 根据获取的色彩值或者预 设的色彩值设定待合成区域内的各像素点的色彩参数,从而实现图像的合成, 得到合成图像 4。  7 is another method for optimizing image synthesis, the method being different from the above method in that, when determining the position of the image to be combined in the source image, only the pixels on the boundary of the person image are determined in the source image 1. The coordinates of the point, here only three points D, E, F are marked, the coordinates of other pixels are not marked here. The coordinates of point D are (8,9), the point of E is (11,5), and the point of point F is (8,4). The coordinate values of the corresponding boundary pixel points of the respective pixel points on the boundary in the target image are obtained in the same manner as the above method, that is, D', E', F', D' point coordinate values are (5, 6), E 'The point coordinate value is (7,3), and the F' point coordinate value is (5,3). According to the obtained new coordinate value, an area to be combined is determined in the target image, that is, an area defined by a broken line of the character image 14 in the figure, and each of the areas to be combined is set according to the acquired color value or the preset color value. The color parameters of the pixels, thereby realizing the synthesis of the image, to obtain a composite image 4.
上面的实施例是对图像合成算法的一个优化, 下面的实施例是将该优化 方法应用于实际生活中。  The above embodiment is an optimization of the image synthesis algorithm, and the following embodiment applies the optimization method to real life.
实施例四: Embodiment 4:
图 8为本实施例提供的将该优化方法应用于视频通话中切换背景的流程 图。 该实施例是将优化后的图像合成算法运用于移动通信的视频通话中, 具 体步骤如下:  FIG. 8 is a flow chart of applying the optimization method to a background of a video call switching according to an embodiment of the present disclosure. In this embodiment, the optimized image synthesis algorithm is applied to a video call of mobile communication, and the specific steps are as follows:
步骤 701 : 在移动通信终端中预置多种静态纯色背景, 比如白色、 红色、 蓝色等, 用户可选择预置的纯色背景, 也可以自定义其他静态或动态背景图 片, 这里预置的纯色背景、 静态背景、 动态背景就是待选择的目标图像; 步骤 702: 利用移动通信终端拍摄一段背景环境视频, 该背景环境视频 就是替换背景的一种, 将该段背景环境视频预置于移动通信终端中; 并且该 段环境视频也可以是其他的视频, 这里选用移动通信终端拍摄的视频是为了 使视频合成效果更好, 这里的视频也是待选择的目标图像; Step 701: Presetting a plurality of static solid color backgrounds in the mobile communication terminal, such as white, red, blue, etc., the user may select a preset solid color background, or may customize other static or dynamic background images, where the preset solid colors are preset. The background, the static background, and the dynamic background are the target images to be selected; Step 702: Shooting a background environment video by using the mobile communication terminal, the background environment video Is to replace the background, the background environment video is preset in the mobile communication terminal; and the segment of the environment video can also be other video, where the video selected by the mobile communication terminal is used to make the video synthesis effect better. The video here is also the target image to be selected;
步骤 703 : 在开始视频通话前或者来电未接听状态或者视频通话中, 设 置是否启动背景过滤功能。 开始视频通话前和视频通话中可在通话设置下进 行设置; 来电未接听状态下, 来电界面提供背景过滤功能的快捷开关;  Step 703: Set whether to enable the background filtering function before starting the video call or during the call missed state or video call. Before the start of the video call and during the video call, the call setting can be set; when the call is not answered, the call interface provides a shortcut switch for the background filter function;
步骤 704: 在背景过滤功能开启的前提下, 开始视频通话前和视频通话 中, 可在通话设置菜单选择纯色背景或者自定义背景视频为视频背景; 来电 未接听状态下,从来电界面开启背景过滤功能后弹出背景选择框供用户选择; 步骤 705: 背景过滤功能开启且背景设置完成后开始视频通话; 步骤 706: 视频通话建立连接后, 摄像头开始实时釆集本端视频数据, 本地视频数据流中的图像就是上述实施例中的源图像;  Step 704: Before the background filtering function is enabled, before starting the video call and during the video call, the solid color background or the customized background video may be selected as the video background in the call setting menu; when the incoming call is not answered, the background filtering is started from the incoming call interface. After the function, the background selection box is popped up for the user to select; Step 705: The background filtering function is enabled and the video call is started after the background setting is completed; Step 706: After the video call is established, the camera starts to collect the local video data in real time, in the local video data stream. The image is the source image in the above embodiment;
步骤 707: 根据摄像头釆集的本端视频数据, 经过人像识别模块, 釆用 人像识别算法将人物图像提取出来, 实际背景环境过滤掉。  Step 707: According to the local video data collected by the camera, after the portrait recognition module, the portrait image is extracted by the portrait recognition algorithm, and the actual background environment is filtered out.
步骤 708: 将提取出来的人物图像与步骤 704 中预设的背景合成起来, 在合成的过程中运用本申请提出的优化方法, 对合成图像进行优化;  Step 708: Combine the extracted character image with the preset background in step 704, and optimize the synthesized image by using the optimization method proposed in the present application in the process of synthesis;
步骤 709: 将合成好的影像信息通过无线网络传递给对端;  Step 709: Pass the synthesized image information to the peer end through the wireless network;
若背景过滤功能开启, 预置的背景为视频, 当视频通话时长大于预设的 背景视频时, 背景视频循环使用, 直至通话结束。  If the background filtering function is enabled, the preset background is video. When the video call duration is greater than the preset background video, the background video is recycled until the call ends.
步骤 710: 若不开启背景过滤功能, 则按普通视频通话流程发起视频通 话, 或接听视频电话;  Step 710: If the background filtering function is not enabled, the video call is initiated according to the normal video call process, or the video call is received;
步骤 711 : 未开启背景过滤功能, 在视频通话过程中, 本端将实际背景 环境传递给对端。  Step 711: The background filtering function is not enabled. During the video call, the local end passes the actual background environment to the peer.
由上述实施例可以看出, 该优化方法通过确定源图像中的待合成图像、 待合成图像在源图像中的位置信息, 依据目标图像与源图像的尺寸比值, 将 述待合成图像合成到所述目标图像中, 从而使合成图像中的待合成图像与目 标图像比例相协调。 将该方法应用于视频通话中切换背景还能使切换背景后 的视频更加真实, 并实现了对合成视频实时的调整。 以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不能 认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的普通 技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若干简单推演或 替换, 都应当视为属于本发明的保护范围。 It can be seen from the above embodiment that the optimization method combines the image to be synthesized in the source image, the position information of the image to be synthesized in the source image, and synthesizes the image to be synthesized according to the size ratio of the target image and the source image. In the target image, the image to be synthesized in the composite image is coordinated with the target image. Applying the method to the video call switching background can also make the video after switching the background more realistic, and realize real-time adjustment of the synthesized video. The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific implementation of the invention is not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
工业实用性 Industrial applicability
本发明实施例提供的优化方法依据目标图像与源图像的尺寸比值对待合 成图像的大小进行调整, 从而使合成图像中的待合成图像的大小与目标图像 比例相协调, 使合成图像更加的真实。  The optimization method provided by the embodiment of the present invention adjusts the size of the image to be synthesized according to the size ratio of the target image and the source image, so that the size of the image to be synthesized in the composite image is coordinated with the target image ratio, so that the composite image is more realistic.

Claims

权 利 要 求 书 claims
1、 一种图像合成的优化方法, 包括: 1. An optimization method for image synthesis, including:
确定源图像中的待合成图像以及待合成图像在源图像中的位置信息; 确定目标图像与源图像的尺寸比值; Determine the image to be synthesized in the source image and the position information of the image to be synthesized in the source image; determine the size ratio of the target image and the source image;
根据所述位置信息和所述尺寸比值将所述待合成图像合成到所述目标图 像中。 The image to be synthesized is synthesized into the target image according to the position information and the size ratio.
2、如权利要求 1所述的图像合成的优化方法,其中,所述尺寸比值包括: 所述目标图像与所述源图像的长度比值和宽度比值。 2. The optimization method of image synthesis according to claim 1, wherein the size ratio includes: a length ratio and a width ratio of the target image and the source image.
3、 如权利要求 2所述的图像合成的优化方法, 其中, 所述位置信息为所 述待合成图像的至少一个像素点的坐标信息。 3. The optimization method of image synthesis according to claim 2, wherein the position information is the coordinate information of at least one pixel of the image to be synthesized.
4、 如权利要求 3所述的图像合成的优化方法, 其中, 将所述待合成图像 合成到所述目标图像中之前, 还包括获取所述待合成图像的在所述目标图像 中显示的色彩值; 4. The optimization method of image synthesis according to claim 3, wherein before synthesizing the image to be synthesized into the target image, it further includes obtaining the color of the image to be synthesized that is displayed in the target image. value;
当所述位置信息为所述待合成图像的各像素点的坐标信息时, 所述根据 所述位置信息和所述尺寸比值将所述待合成图像合成到所述目标图像中包 括: 将所述各像素点长度方向和宽度方向的坐标值分别与所述长度比值和所 述宽度比值相乘, 得到在所述目标图像中对应像素点的坐标值; 根据所述色 彩值设定所述目标图像中对应像素点的色彩参数; When the position information is the coordinate information of each pixel of the image to be synthesized, synthesizing the image to be synthesized into the target image according to the position information and the size ratio includes: The coordinate value of each pixel in the length direction and width direction is multiplied by the length ratio and the width ratio respectively to obtain the coordinate value of the corresponding pixel in the target image; setting the target image according to the color value The color parameters of the corresponding pixels in
当所述位置信息为所述待合成图像边界上的各像素点的坐标信息时, 所 述根据所述位置信息和所述尺寸比值将所述待合成图像合成到所述目标图像 中包括: 将所述边界上的各像素点的坐标分别与所述长度比值和所述宽带比 值相乘, 得到边界上的各像素点在所述目标图像中对应的边界像素点的坐标 值; 所述目标图像中的边界像素点围合的区域为待合成区域; 根据所述色彩 值设定所述待合成区域内的各像素点的色彩参数。 When the position information is the coordinate information of each pixel on the boundary of the image to be synthesized, synthesizing the image to be synthesized into the target image according to the position information and the size ratio includes: The coordinates of each pixel point on the boundary are multiplied by the length ratio and the broadband ratio respectively to obtain the coordinate value of the corresponding boundary pixel point of each pixel point on the boundary in the target image; the target image The area enclosed by the boundary pixels in is the area to be synthesized; and the color parameters of each pixel in the area to be synthesized are set according to the color value.
5、 如权利要求 1-4任一项所述的图像合成的优化方法, 其中, 所述源图 像和目标图像是图片或者视频。 5. The optimization method of image synthesis according to any one of claims 1 to 4, wherein the source image and the target image are pictures or videos.
6、 如权利要求 1-4任一项所述的图像合成的优化方法, 其中, 所述目标 图像为预先设置的背景图像。 6. The optimization method of image synthesis according to any one of claims 1 to 4, wherein the target image is a preset background image.
7、 如权利要求 1-4任一项所述的图像合成的优化方法, 其中, 所述待合 成图像为人物图像。 7. The optimization method of image synthesis according to any one of claims 1 to 4, wherein the image to be synthesized is a human image.
8、 一种图像合成优化的装置, 包括: 8. A device for image synthesis and optimization, including:
数据获取模块, 其设置为确定源图像中的待合成图像以及待合成图像在 源图像中的位置信息; a data acquisition module, which is configured to determine the image to be synthesized in the source image and the position information of the image to be synthesized in the source image;
计算模块, 其设置为确定所述目标图像与源图像的尺寸比值; 以及 图像合成模块, 其设置为根据所述位置信息和所述尺寸比值将所述待合 成图像合成到所述目标图像中。 a calculation module, which is configured to determine the size ratio of the target image and the source image; and an image synthesis module, which is configured to synthesize the image to be synthesized into the target image according to the position information and the size ratio.
9、如权利要求 8所述的图像合成优化的装置,其中,所述尺寸比值包括: 所述目标图像与所述源图像的长度比值和宽度比值。 9. The device for image synthesis optimization according to claim 8, wherein the size ratio includes: a length ratio and a width ratio of the target image and the source image.
10、 如权利要求 9所述的图像合成优化的装置, 其中, 所述位置信息为 所述待合成图像的至少一个像素点的坐标信息。 10. The device for image synthesis optimization according to claim 9, wherein the position information is the coordinate information of at least one pixel of the image to be synthesized.
11、 如权利要求 10所述的图像合成优化的装置, 其中, 所述装置还包括 色彩获取模块, 其设置为在所述图像合成模块将待合成图像合成到所述目标 图像中之前, 获取所述待合成图像的在所述目标图像中显示的色彩值; 11. The device for image synthesis optimization according to claim 10, wherein the device further includes a color acquisition module configured to acquire the color of the image to be synthesized before the image synthesis module synthesizes the image to be synthesized into the target image. The color value of the image to be synthesized that is displayed in the target image;
所述图像合成模块包括换算子模块和色彩设定子模块; The image synthesis module includes a conversion sub-module and a color setting sub-module;
所述换算子模块设置为: 当所述位置信息为所述待合成图像的各像素点 的坐标信息时, 将所述各像素点长度方向和宽度方向的坐标值分别与所述长 度比值和所述宽度比值相乘, 得到在所述目标图像中对应像素点的坐标值; 所述色彩设定子模块设置为根据所述色彩值设定所述目标图像中对应像素点 的色彩参数; The conversion sub-module is configured to: when the position information is the coordinate information of each pixel of the image to be synthesized, compare the coordinate value of each pixel in the length direction and width direction with the length ratio and the Multiply the width ratios to obtain the coordinate values of the corresponding pixels in the target image; the color setting sub-module is configured to set the color parameters of the corresponding pixels in the target image according to the color values;
所述换算子模块还设置为: 当所述位置信息为所述待合成图像边界上的 各像素点的坐标信息时, 将所述边界上的各像素点的坐标分别与所述长度比 值和所述宽带比值相乘, 得到边界上的各像素点在所述目标图像中对应的边 界像素点的坐标值;所述目标图像中的边界像素点围合的区域为待合成区域; 所述色彩设定子模块还设置为: 根据所述色彩值设定所述待合成区域内的各 像素点的色彩参数。 The conversion sub-module is further configured to: when the position information is the coordinate information of each pixel point on the boundary of the image to be synthesized, compare the coordinate information of each pixel point on the boundary with the length ratio and the Multiply the broadband ratios to obtain the coordinate values of the corresponding boundary pixels in the target image for each pixel on the boundary; the area enclosed by the boundary pixels in the target image is the area to be synthesized; the color setting The stator module is further configured to: set color parameters of each pixel in the area to be synthesized according to the color value.
PCT/CN2013/087578 2013-08-28 2013-11-21 Method and device for optimizing image synthesis WO2014169653A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310382405.1 2013-08-28
CN201310382405.1A CN104424624B (en) 2013-08-28 2013-08-28 A kind of optimization method and device of image synthesis

Publications (1)

Publication Number Publication Date
WO2014169653A1 true WO2014169653A1 (en) 2014-10-23

Family

ID=51730769

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087578 WO2014169653A1 (en) 2013-08-28 2013-11-21 Method and device for optimizing image synthesis

Country Status (2)

Country Link
CN (1) CN104424624B (en)
WO (1) WO2014169653A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286760A (en) * 2018-09-28 2019-01-29 上海连尚网络科技有限公司 A kind of entertainment video production method and its terminal
CN111063001A (en) * 2019-12-18 2020-04-24 北京金山安全软件有限公司 Picture synthesis method and device, electronic equipment and storage medium
CN112640412A (en) * 2018-09-06 2021-04-09 富士胶片株式会社 Image processing apparatus, method and program

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303592A (en) * 2015-09-11 2016-02-03 东莞市微云系统科技有限公司 Method and system for on-line processing of image
CN105338242A (en) * 2015-10-29 2016-02-17 努比亚技术有限公司 Image synthesis method and device
CN105407280B (en) * 2015-11-11 2019-02-12 Oppo广东移动通信有限公司 Panoramic image synthesis method and system
CN109789526B (en) * 2016-09-19 2021-11-16 苏州宝时得电动工具有限公司 Hand-held tool system
CN106803888A (en) * 2017-03-06 2017-06-06 联想(北京)有限公司 The method and electronic equipment of composograph
CN106991696B (en) 2017-03-09 2020-01-24 Oppo广东移动通信有限公司 Backlight image processing method, backlight image processing device and electronic device
CN107071275B (en) * 2017-03-22 2020-07-14 珠海大横琴科技发展有限公司 Image synthesis method and terminal
WO2019061048A1 (en) * 2017-09-27 2019-04-04 深圳传音通讯有限公司 Dual camera and fusion imaging method thereof
CN109937434B (en) * 2017-10-18 2021-06-11 腾讯科技(深圳)有限公司 Image processing method, device, terminal and storage medium
WO2020056693A1 (en) * 2018-09-20 2020-03-26 太平洋未来科技(深圳)有限公司 Picture synthesizing method and apparatus, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383543A (en) * 2000-06-20 2002-12-04 皇家菲利浦电子有限公司 Karaoka system
JP2005204015A (en) * 2004-01-15 2005-07-28 Nec Corp Mobile equipment and image processing method
CN101360191A (en) * 2007-07-31 2009-02-04 奥林巴斯映像株式会社 Imaging reconstruction device and imaging reconstruction method
CN101677386A (en) * 2008-08-01 2010-03-24 中兴通讯股份有限公司 System capable of selecting real-time virtual call background and video call method
CN101835023A (en) * 2009-03-10 2010-09-15 英华达(西安)通信科技有限公司 Method for changing background of video call
CN102098381A (en) * 2010-12-29 2011-06-15 上海华勤通讯技术有限公司 Backgrounded conversation realizing method for mobile phone
CN102859991A (en) * 2010-04-06 2013-01-02 阿尔卡特朗讯 A Method Of Real-time Cropping Of A Real Entity Recorded In A Video Sequence
CN103209312A (en) * 2012-01-12 2013-07-17 中兴通讯股份有限公司 Video player, mobile terminal and method for mobile terminal to play videos

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3932482B2 (en) * 2002-10-18 2007-06-20 株式会社日立メディコ Ultrasonic diagnostic equipment
CN100426727C (en) * 2005-06-08 2008-10-15 腾讯科技(深圳)有限公司 Image synthesis processing system and method therefor
WO2007015471A1 (en) * 2005-08-02 2007-02-08 Sharp Kabushiki Kaisha Character data generation device, electronic information device, character data generation program, and readable recording medium
CN101589420A (en) * 2007-01-23 2009-11-25 马维尔国际贸易有限公司 Method and apparatus for low power refresh of a display device
KR101468267B1 (en) * 2008-10-02 2014-12-15 프라운호퍼-게젤샤프트 추르 푀르데룽 데어 안제반텐 포르슝 에 파우 Intermediate view synthesis and multi-view data signal extraction
US20100321405A1 (en) * 2009-06-22 2010-12-23 Vistaprint Technologies Limited Method and system for dynamically arranging multiple product images in a preconfigured panel on an electronic display
CN101739675B (en) * 2009-12-11 2012-03-14 重庆邮电大学 Method and device for registration and synthesis of non-deformed images
CN102427504B (en) * 2011-10-08 2014-12-24 广东威创视讯科技股份有限公司 Image processing method, device and system based on background splicing wall
CN102867418B (en) * 2012-09-14 2014-10-22 浙江宇视科技有限公司 Method and device for judging license plate identification accuracy

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383543A (en) * 2000-06-20 2002-12-04 皇家菲利浦电子有限公司 Karaoka system
JP2005204015A (en) * 2004-01-15 2005-07-28 Nec Corp Mobile equipment and image processing method
CN101360191A (en) * 2007-07-31 2009-02-04 奥林巴斯映像株式会社 Imaging reconstruction device and imaging reconstruction method
CN101677386A (en) * 2008-08-01 2010-03-24 中兴通讯股份有限公司 System capable of selecting real-time virtual call background and video call method
CN101835023A (en) * 2009-03-10 2010-09-15 英华达(西安)通信科技有限公司 Method for changing background of video call
CN102859991A (en) * 2010-04-06 2013-01-02 阿尔卡特朗讯 A Method Of Real-time Cropping Of A Real Entity Recorded In A Video Sequence
CN102098381A (en) * 2010-12-29 2011-06-15 上海华勤通讯技术有限公司 Backgrounded conversation realizing method for mobile phone
CN103209312A (en) * 2012-01-12 2013-07-17 中兴通讯股份有限公司 Video player, mobile terminal and method for mobile terminal to play videos

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112640412A (en) * 2018-09-06 2021-04-09 富士胶片株式会社 Image processing apparatus, method and program
US11403798B2 (en) 2018-09-06 2022-08-02 Fujifilm Corporation Image processing apparatus, method, and program
CN112640412B (en) * 2018-09-06 2023-03-10 富士胶片株式会社 Image processing apparatus, method and recording medium
CN109286760A (en) * 2018-09-28 2019-01-29 上海连尚网络科技有限公司 A kind of entertainment video production method and its terminal
CN111063001A (en) * 2019-12-18 2020-04-24 北京金山安全软件有限公司 Picture synthesis method and device, electronic equipment and storage medium
CN111063001B (en) * 2019-12-18 2023-11-10 北京金山安全软件有限公司 Picture synthesis method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104424624B (en) 2018-04-10
CN104424624A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
WO2014169653A1 (en) Method and device for optimizing image synthesis
US10055815B2 (en) Image processing apparatus, image processing system, imaging apparatus and image processing method
CN107948733B (en) Video image processing method and device and electronic equipment
US20120105584A1 (en) Camera with sensors having different color patterns
WO2015161561A1 (en) Method and device for terminal to achieve image synthesis based on multiple cameras
TW201320748A (en) Moving image capture device, information processing system, information processing device, and image data processing method
US20120188409A1 (en) Camera with multiple color sensors
WO2016110188A1 (en) Method and electronic device for aesthetic enhancements of face in real-time video
US9148564B2 (en) Image pickup apparatus, information processing system and image data processing method
US11800048B2 (en) Image generating system with background replacement or modification capabilities
US20160322024A1 (en) Method of mapping source colors of images of a video content into the target color gamut of a target color device
WO2016086489A1 (en) Image noise reduction method and device thereof
CN113014803A (en) Filter adding method and device and electronic equipment
JP7218786B2 (en) Image processing device, image processing method and program
US20120106840A1 (en) Combining images captured with different color patterns
WO2006120840A1 (en) Video communication system, terminal, and image converter
WO2017101570A1 (en) Photo processing method and processing system
CN113691737B (en) Video shooting method and device and storage medium
US11017501B2 (en) Demosaicing method and apparatus
JP2020027956A (en) Processing device
KR102404130B1 (en) Device for transmitting tele-presence image, device for receiving tele-presence image and system for providing tele-presence image
CN111083345B (en) Apparatus and method for generating a unique illumination and non-volatile computer readable medium thereof
JP7057159B2 (en) Image processing equipment, image processing methods and programs
JP2021005798A (en) Imaging apparatus, control method of imaging apparatus, and program
JP5850365B2 (en) Image processing program and image processing apparatus

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: 13882388

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13882388

Country of ref document: EP

Kind code of ref document: A1