Video data processing method and apparatus and related device

By fusing the object images in the video data to generate third video data, the problem of the inability of existing technology to achieve multiple color mappings is solved, and rich color matching modification of video data and the presentation of multiple color matching are realized.

WO2024199126A1PCT designated stage expired Publication Date: 2024-10-03BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/083313
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2024-03-22
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

The existing technology cannot realize the mapping between one color and multiple colors, limits the color matching modification of video data, and cannot meet the user's multiple color matching needs for interactive objects.

Method used

By acquiring the first video data and at least one second video data, fusing the first object image and multiple second object images, and generating the third video data, the restoration of the target object image and the presentation of multiple color combinations are achieved.

Benefits of technology

It realizes rich color matching modification of video data, can display object images of multiple colors, reduces the amount of video data required for object images of multiple colors, and avoids restrictions on color mapping relationships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083313_03102024_PF_FP_ABST
    Figure CN2024083313_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A video data processing method and apparatus applied to the technical field of data processing, and a related device. The video data processing method comprises: acquiring first video data and at least one piece of second video data, wherein a first image frame of the first video data comprises a first object image, and a second image frame of each piece of second video data comprises a second object image associated with the first object image; fusing the first object image with the at least one second object image to obtain at least one fused object image; and generating third video data on the basis of the fused object image. By using the fusion mode, a color mapping relationship between the first object image and the second object image would not be limited, and more abundant color matching presentation of object images is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Video data processing method, device and related equipment

[0001] This application claims priority to Chinese patent application No. 202310303201.8 filed on March 24, 2023, the entire text of which is incorporated herein by reference as a part of this application. Technical Field

[0002] The present disclosure relates to a video data processing method, apparatus and related equipment. Background Art

[0003] When users watch videos using video applications, they need to interact. To enrich the user's viewing experience, the video application displays interactive objects that are pre-configured to interact with the user's selected method. After the user triggers the interaction method, the video application displays the interactive object corresponding to the interaction method. For example, while watching a live video, a user may click the "Send Gift" button on the video display page, select a suitable gift to give to the live streamer, and interact with the live streamer. The gift will be displayed on the user's live video page using the user's selected interaction method, enhancing the interactive effect.

[0004] To meet the color requirements of different users for interactive objects, multiple color schemes are pre-set for the same type of interactive object. Users can select a specific color scheme from these pre-set colors to display the interactive object. The video application obtains the video data of the interactive object with the base color scheme and performs color processing on the video data of the interactive object with the base color scheme to display the interactive object with a different color scheme.

[0005] Currently, a display lookup table (LUT) is used to modify the color of video data for interactive objects with a base color scheme, resulting in video data capable of displaying interactive objects with other color schemes. However, the color correspondence supported by the LUT is a one-to-one relationship. This makes it impossible to use the LUT to modify the color of video data that maps between a single color and multiple colors.

[0006] Summary of the Invention

[0007] In view of this, the present disclosure provides a video data processing method, apparatus, and related equipment, which can achieve richer color modification of video data without restricting the relationship between color mappings.

[0008] Based on this, the technical solutions provided by this disclosure are as follows:

[0009] In a first aspect, the present disclosure provides a video data processing method, comprising:

[0010] Acquire first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and a second image frame of each second video data includes a second object image associated with the first object image;

[0011] fusing the first object image of the first image frame with the second object image of the at least one second image frame to obtain at least one fused object image;

[0012] A third video data is generated according to the at least one fused object image, and a third image frame of the third video data includes the at least one fused object image.

[0013] In a second aspect, the present disclosure provides a method for processing video data, the method comprising:

[0014] Acquiring third video data, wherein a third image frame of the third video data includes a plurality of fused object images; wherein the plurality of fused object images are obtained by fusing a first object image included in a first image frame of the first video data with second object images included in a plurality of second image frames of the second video data, wherein the second object images are object images associated with the first object images;

[0015] A target object image is obtained based on the third video data, where the target object image is at least one object image among the plurality of second object images.

[0016] In a third aspect, the present disclosure provides a video data processing device, the device comprising:

[0017] an acquiring unit, configured to acquire first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and each second image frame of the second video data includes a second object image associated with the first object image;

[0018] a fusion unit, configured to fuse the first object image of the first image frame with the second object image of the at least one second image frame to obtain at least one fused object image;

[0019] A generating unit is configured to generate third video data according to the at least one fused object image, wherein a third image frame of the third video data includes the at least one fused object image.

[0020] In a fourth aspect, the present disclosure provides a video data processing device, the device comprising:

[0021] an acquiring unit, configured to acquire third video data, wherein a third image frame of the third video data includes at least one fused object image; wherein the at least one fused object image is obtained by fusing a first object image included in a first image frame of the first video data with a second object image included in at least one second image frame of the second video data, wherein the second object image is an object image associated with the first object image;

[0022] A processing unit is configured to obtain a target object image based on the third video data, where the target object image is at least one object image among the plurality of second object images.

[0023] In a fifth aspect, the present disclosure provides an electronic device, including:

[0024] one or more processors;

[0025] a storage device having one or more programs stored thereon,

[0026] When the one or more programs are executed by the one or more processors, the one or more processors implement any method described in the first aspect or any method described in the second aspect.

[0027] In a sixth aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the program implements any method described in the first aspect or any method described in the second aspect.

[0028] In a seventh aspect, the present disclosure provides a computer program product, which, when running on a device, enables the device to execute the method described in the first aspect, or any one of the methods described in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0030] FIG2 is a flow chart of a video data processing method provided by an embodiment of the present disclosure;

[0031] FIG3 is a schematic diagram of a first object image provided by an embodiment of the present disclosure;

[0032] FIG4 is a schematic diagram of a second object image provided by an embodiment of the present disclosure;

[0033] FIG5 is a schematic diagram of a fused object image provided by an embodiment of the present disclosure;

[0034] FIG6 is a schematic diagram of a third image frame provided by an embodiment of the present disclosure;

[0035] FIG7 is a schematic diagram of a third image frame provided by an embodiment of the present disclosure;

[0036] FIG8 is a flow chart of another video data processing method provided by an embodiment of the present disclosure;

[0037] FIG9 is a schematic structural diagram of a video data processing device provided by an embodiment of the present disclosure;

[0038] FIG10 is a schematic structural diagram of another video data processing device provided by an embodiment of the present disclosure;

[0039] FIG11 is a schematic diagram of the basic structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0040] In order to facilitate understanding and explanation of the technical solutions provided by the embodiments of the present disclosure, the background technology of the present disclosure will be described below.

[0041] In some video playback scenarios, video applications provide users with multiple interactive objects with different color schemes corresponding to the same interaction method. Users can select the interactive object with their preferred color scheme. The video application pre-acquires the video data used to display the interactive objects. To reduce the bandwidth cost of transmitting video data, a lookup table (LUT) is often used to modify video data with a base color scheme to a different color scheme. The LUT records the correspondence between each color and the modified color. Using the LUT, video data with a base color scheme can be modified to obtain video data with a different color scheme. However, a LUT only records a one-to-one correspondence between one color and another. For example, a LUT records a one-to-one correspondence between yellow and green. Using the LUT, a yellow pixel block in video data with a base color scheme can be modified to a green pixel block. However, when a correspondence between one color and multiple colors is required, a LUT cannot be used for color modification. For example, if some yellow pixel blocks in video data with a base color scheme need to be modified to green pixel blocks and some yellow pixel blocks to blue pixel blocks, a LUT cannot be used to modify the video data.

[0042] Based on this, an embodiment of the present disclosure provides a video data processing method, which obtains first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and each second image frame of the second video data includes a second object image associated with the first object image; the first object image is fused with the at least one second object image to obtain at least one fused object image; and finally, third video data is generated based on the at least one fused object image. The third image frame of the third video data includes at least one fused object image. Using this fusion method, a richer color scheme for the object image can be achieved without restricting the color mapping relationship between the first object image and the second object image. The second object image can be restored based on the fused object image included in the generated third video data. Another embodiment of the present disclosure provides a video data processing method, which obtains third video data; the third image frame of the third video data includes at least one fused object image; and a target object image is obtained based on the third video data. The target object image is at least one object image in the at least one second object image. Thus, the target object image can be restored using the third video data, achieving the presentation of object images with different color schemes.

[0043] To facilitate understanding of the technical solution provided by the embodiments of the present disclosure, the video data processing method provided by the embodiments of the present disclosure is described below with reference to the accompanying drawings.

[0044] As shown in Figure 1, a first device acquires first video data and second video data. The first video data serves as the basis for color modification. The second video data indicates the color modification result. A first image frame of the first video data includes a first object image. A second image frame of the second video data includes a second object image associated with the first object image. In the first and second video data, the content of the associated first object image and the second object image is identical, but the pixel values ​​of some pixels of the first object image differ from those of some pixels of the second object image. In other words, the first and second object images have the same content but different color schemes. The first device fuses the first object image of the first image frame with the second object image of the corresponding second image frame to generate a fused object image. The fused object image can be used to restore the second object image. The fused object image generated by fusion is not restricted by the color mapping relationship between the first and second object images and can achieve a richer color mapping. The first device generates third video data using the fused object image. The third image frame of the third video data contains at least one fused object image. The first device transmits the third video data to the second device. The second device acquires the third video data, and the third image frame of the third video data contains at least one fused object image. The second device parses the third video data to obtain a target object image. The target object image is at least one object image in the at least one second object image. Thus, the second device can use the third video data to obtain the target object image and present object images with different color schemes.

[0045] The first device is a device capable of processing the first video data and the second video data to generate the third video data. The first device is, for example, a server. Specifically, the first device is, for example, a server or a video data editing device. The second device is a device that plays the third video data. Specifically, the second device is, for example, a client. Specifically, the second device is, for example, a mobile terminal, a computer, or a tablet computer.

[0046] Those skilled in the art will appreciate that the framework diagram shown in FIG1 is merely an example in which the embodiments of the present disclosure may be implemented, and the scope of application of the embodiments of the present disclosure is not limited in any way by the framework.

[0047] To facilitate understanding of the video data processing method provided by the embodiment of the present disclosure, the video data processing method provided by the embodiment of the present disclosure is described below with reference to the accompanying drawings. The video data processing method can be applied to the first device.

[0048] Referring to FIG. 2 , this figure is a flow chart of a video data processing method provided by an embodiment of the present disclosure, including S201 - S203 .

[0049] S201: Acquire first video data and at least one second video data.

[0050] The first video data is the video data used as the basis for color change. The second video data is the video data obtained by color change using the first video data. The number of second video data is at least one. The number of second video data can be determined based on the number of color combinations of the object image to be displayed.

[0051] The embodiment of the present disclosure does not limit the sources of the first video data and the at least one second video data. The first video data and the at least one second video data can be generated by the first device or obtained from other devices.

[0052] The disclosed embodiments do not limit the method for determining the first video data. As an example, video data for displaying object images with different color schemes are obtained, and from the video data for displaying object images with different color schemes, one video data is selected as the first video data, and the other video data is selected as the second video data. The method for selecting the first video data is, for example, optional, or selected to meet a selection condition. As another example, the first video data serving as the basis for the color change is pre-set.

[0053] The first image frame of the first video data is a frame including a first object image. The second image frame of the second video data is a frame including a second object image. The first object image and the second object image both include interactive objects that need to be displayed. The first object image is associated with the second object image. Referring to Figures 3 and 4, Figure 3 is a schematic diagram of a first object image provided in an embodiment of the present disclosure. Figure 4 is a schematic diagram of a second object image provided in an embodiment of the present disclosure. The content included in the first object image is the same as the content included in the second object image. However, the color scheme of the first object image included in the first image frame, including color 1 and color 2, is different from the color scheme of the second object image included in the second image frame associated with the first image frame, including color 3 and color 4.

[0054] When the playback time of the first video data is synchronized with the playback time of the second video data, the first image frame including the first object image and the second image frame including the second object image associated with the first object image can be image frames at the same playback time. For example, the first image frame is the frame at the 2nd second of the first video data, and the second image frame associated with the first image frame is the frame at the 2nd second of the second video data.

[0055] For another example, when there is at least one second video data set, each first image frame is associated with at least one second image frame. For example, there are three second video data sets, namely, second video data A, second video data B, and second video data C. The first object image included in the first image frame at the third second of the first video data is associated with the second object image included in the second image frame at the third second of the second video data A, the second object image included in the second image frame at the third second of the second video data B, and the second object image included in the second image frame at the third second of the second video data C.

[0056] S202: Fusing the first object image of the first image frame with the second object image of the at least one second image frame to obtain at least one fused object image.

[0057] The first object image is fused with the second object image to obtain a fused object image. As an example, using the first object image shown in Figure 3 and the second object image shown in Figure 4 as examples, the fused object image obtained by fusing the first and second object images is shown in Figure 5. The content of the fused object image is identical to that of the first and second object images, but the color scheme is different. The color scheme of the fused object image includes color 5 and color 6. Color 5 is obtained by fusing color 1 and color 3. Color 6 is obtained by fusing color 2 and color 4.

[0058] When there is only one second image frame, the first object image of the first image frame is fused with the second object image to generate a single fused object image. When there are multiple second image frames, the first object image of the first image frame is fused with each of the multiple second object images to generate multiple fused object images. The number of fused object images is the same as the number of second object images.

[0059] For example, let's say there are three pieces of second video data. The three pieces of second video data are second video data A, second video data B, and second video data C. The first object image included in the first image frame at the third second of the first video data is associated with the second object image included in the second image frame at the third second of the second video data A, the second object image included in the second image frame at the third second of the second video data B, and the second object image included in the second image frame at the third second of the second video data C. The first object image included in the first image frame at the third second of the first video data is fused with the second object image included in the second image frame at the third second of the second video data A to obtain a fused object image D. The first object image included in the first image frame at the third second of the first video data is fused with the second object image included in the second image frame at the third second of the second video data B to obtain a fused object image E. The first object image included in the first image frame at the third second of the first video data is fused with the second object image included in the second image frame at the third second of the second video data C to obtain a fused object image F.

[0060] In one possible implementation, based on a preset fusion rule, the first object image is fused with each second object image included in at least one second object image. The preset fusion rule is a pre-set rule that instructs the fusion of the first object image and the second object image. The presently disclosed embodiment does not limit the specific content of the preset fusion rule. In one possible implementation, the preset fusion rule requires calculating the first pixel value of each first pixel of the first object image and the second pixel value of each second pixel of the second object image. The first pixel value of each first pixel of the first object image and the second pixel value of each second pixel of the second object image are obtained. Based on the preset fusion rule, the first pixel value of each first pixel of the first object image and the second pixel value of each second pixel of the second object image are processed to obtain the third pixel value of each third pixel of the fused object image. Each second object image in the at least one second object image is fused with the first object image according to the method described, to obtain at least one fused object image. The number of fused object images is the same as the number of second object images.

[0061] As some examples, the embodiments of the present disclosure provide two specific implementations for obtaining a fused object image. In one possible implementation, a video editing tool can be used to process the first object image and the second object image.

[0062] The first method is to obtain the first pixel value of each first pixel point of the first object image and the second pixel value of each second pixel point of the second object image, and calculate the third pixel value of each third pixel point of the fused object image according to formula (1).

[0063] Among them, C i,j A is the third pixel value of the third pixel point at (i, j) in the fused object image. Where (i, j) is the target pixel position. (i, j) indicates that the pixel position of the third pixel point in the fused object image is the pixel point at row i and column j. i,j B is the first pixel value of the first pixel point at (i, j) in the first object image. i,j is the second pixel value of the second pixel point at (i, j) in the second object image. D represents the second parameter. The value of D can be 128 to ensure that the calculated C i,j The value of is a positive number.

[0064] By using formula (1) to calculate the first pixel value of each first pixel point of the first object image and the second pixel value of each second pixel point of the second object image, the third pixel value of each third pixel point of the fused object image can be obtained.

[0065] The second method involves processing pixels with different values ​​in the first and second object images using a preset fusion rule to obtain pixel values ​​for the corresponding pixel locations in the fused object image. The pixel values ​​for the corresponding pixel locations in the fused object image are then obtained based on the pixel values ​​for the pixels with the same values ​​in the first and second object images. The complete fused object image is then obtained based on the obtained pixel values ​​for the two components.

[0066] S203: Generate third video data according to the at least one fusion object image.

[0067] Third video data is generated based on the at least one fused object image. A third image frame of the third video data includes the at least one fused object image. As an example, the first device stitches the at least one fused object image to obtain a third image frame including the at least one fused object image. The presently disclosed embodiments provide specific implementations for generating the third video data based on the at least one fused object image, which are described below.

[0068] In some implementations, the playback time of the third image frame in the third video data is the same as the playback time of the first image frame to which the first object image belongs in the first video data, thereby enabling orderly display of the third video data.

[0069] The third video data can be used to restore a target object image obtained by changing the color of the first object image. The target object image is at least one of the at least one second object image.

[0070] The third video data can be used to display the object image with a different color scheme, thereby reducing the amount of video data required to display the object image with a variety of colors.

[0071] The third video data is a file in MP4 format. In a possible implementation, the generated third video data can also include audio data.

[0072] In this way, the fused object image, obtained by fusing the first and second object images, can be used to restore the second object image and achieve color modification. This eliminates the limitations of the color mapping relationship between the first and second object images, enabling a richer color presentation of the video data.

[0073] The embodiment of the present disclosure does not limit the implementation manner in which the first device generates the third video data based on at least one fused object image.

[0074] In one possible implementation, the first device compresses one or more of the first object image and at least one fused object image. The compressed object image occupies a smaller area in the third image frame. This ensures that the size of the generated third image frame is the same as that of the first image frame, avoiding an increase in the size of the third image frame due to the addition of the fused object image, which in turn increases the data volume of the third video data.

[0075] In another possible implementation, the third image frame of the third video data further includes the first object image, and the first object image and at least one fused object image are directly spliced ​​to obtain the third image frame.

[0076] In addition, in order to facilitate parsing the third image frame included in the third video data, in the process of generating the third image frame, it is necessary to clarify the specific object images included in each image region of the third image frame. The image region is a region in the third image frame that includes an image.

[0077] The first device generates a third image frame included in the third video data based on the first image area information. The first image area information is used to indicate the positions of the first object image and at least one fused object image in the third image frame, respectively. As an example, the first image area information includes a correspondence between an identifier of the first object image and a first image area included in the third image frame, and a correspondence between an identifier of at least one fused object image and each second image area included in the third image frame, respectively. The number of second image areas is greater than or equal to the number of fused object images. The identifier of the fused object image corresponds one-to-one to the second image area. Different identifiers of fused object images correspond to different second image areas.

[0078] The first image area information can be configured by the user based on needs, or pre-configured in the first device and the second device. The identifier of the first object image is also used to identify that the first object image is the image used as the basis for color change. This makes it convenient for the device that receives the third video data to obtain the target object image using the fused object image based on the first object image. The identifier of the fused object image is used to distinguish the fused object image from other fused object images, and to indicate the second object image that generates the fused object image. As some examples, the identifier of the first object image can be an identifier of the color of the first object image. The identifier of the color of the first object image is predetermined to identify the image used as the basis for color change. The identifier of the fused object image can be an identifier of the color of the second object image that generates the fused object image.

[0079] Based on the first image region information, the first object image and at least one fused object image are spliced ​​together to obtain a third image frame of the third video data. Specifically, taking the example where the first image region information includes a correspondence between the identifier of the first object image and the first image region included in the third image frame, and a correspondence between the identifier of at least one fused object image and each second image region included in the third image frame, the first image region corresponding to the identifier of the first object image is determined based on the first image region information, and the first object image is placed within the first image region. The second image regions corresponding to the identifiers of each fused object image are determined based on the first image region information, and each fused object image is placed within the corresponding second image region.

[0080] For example, referring to Figure 6, the figure is a schematic diagram of a third image frame provided by an embodiment of the present disclosure. The third image frame is obtained by splicing the first object image and a fused object image. The third image frame includes two image areas. The first image area information is pre-configured. The first image area information includes that the image area on the left is the image area of ​​the first object image, and the image area on the right is the image area of ​​the fused object image. In this way, when generating the third image frame, the first object image and the fused object image are spliced ​​according to the image area on the left being the image area of ​​the first object image and the image area on the right being the image area of ​​the fused object image to obtain the third image frame. When processing the third image frame, the second device can also parse the object image included in the image area of ​​the third image frame according to the first image area information.

[0081] In some possible implementations, the image frames of the played video may also be configured with transparency. The first image frame also includes a first transparency image. The second image frame also includes a second transparency image. The first transparency image is used to adjust the transparency of the first object image when displayed. The second transparency image is used to adjust the transparency of the second object image when displayed. The first transparency image of the corresponding first object image and the second transparency image of the corresponding second object image are the same.

[0082] Before the first device fuses the first object image and the corresponding second object image, it is necessary to segment the first image frame to obtain the first object image, and segment the second image frame to obtain the second object image.

[0083] In another possible implementation, the image frame of the played video also needs to be configured with transparency, and the third image frame included in the generated third video data also includes a target transparency image. The target transparency image can be the first transparency image or the second transparency image.

[0084] The first device generates a third image frame based on the second image region information. The second image region information indicates the positions of the first object image, at least one fused object image, and the target transparency image in the third image frame. As an example, the second image region information includes a correspondence between the identifier of the first object image and the third image region of the third image frame, a correspondence between the identifier of the target transparency image and the fourth image region of the third image frame, and a correspondence between the identifier of at least one fused object image and the fifth image region of the third image frame. The second image region information can be pre-configured by the user as needed. The identifier of the first object image identifies the first object image as the image used as the basis for color change. The identifier of the fused object image distinguishes the fused object image from other fused object images and indicates the second object image used to generate the fused object image. In some examples, the identifier of the first object image can be an identifier of the color scheme of the first object image. The identifier of the color scheme of the first object image is predetermined to identify the image used as the basis for color change. The identifier of the fused object image can be an identifier of the color scheme of the second object image used to generate the fused object image. The identifier of the target transparency image identifies the image including transparency information. The identifier of the target transparency image can be an image name.

[0085] Based on the second image region information, the first device stitches the first object image, the target transparency image, and at least one fused object image together to obtain a third image frame of the third video data. Specifically, taking the example where the second image region information includes a correspondence between the identifier of the first object image and a third image region of the third image frame, a correspondence between the identifier of the target transparency image and a fourth image region of the third image frame, and a correspondence between the identifier of at least one fused object image and a fifth image region of the third image frame, the first device determines the third image region corresponding to the identifier of the first object image based on the second image region information, and places the first object image within the third image region. Determine the fourth image region corresponding to the identifier of the target transparency image based on the second image region information, and place the target transparency image within the fourth image region. Determine the fifth image region corresponding to the identifiers of each second object image based on the second image region information, and place each second object image within the corresponding fifth image region. The target transparency image is the first transparency image obtained by cutting the first image frame or the second transparency image obtained by cutting the second image frame.

[0086] For example, referring to FIG7 , which is a schematic diagram of a third image frame provided by an embodiment of the present disclosure. The third image frame is obtained by stitching together a first object image, a fused object image, and a target transparency image. The third image frame includes three image areas. The image area on the left is pre-configured as the image area of ​​the first object image, the image area on the upper right is the image area of ​​the target transparency image, and the image area on the lower right is the image area of ​​the fused object image. In this way, when generating the third image frame, the image area on the left is the image area of ​​the first object image, the image area on the upper right is the image area of ​​the target transparency image, and the image area on the lower right is the image area of ​​the fused object image, and the first object image, the target transparency image, and the fused object image are stitched together to obtain the third image frame. When processing the third image frame, it can also be parsed based on the object image and the target transparency image included in the pre-configured image area of ​​the third image frame.

[0087] A third video data can be generated based on the obtained third image frame. A device having a video playback function, i.e., the second device, can use the third video data to display a first object image or a target object image during a single processing of the third video data. The target object image is at least one of the at least one second object image.

[0088] The embodiment of the present disclosure does not limit the implementation method of the second device obtaining the third video data.

[0089] In one possible implementation, the first device is a server. The second device is a client. The first device is connected to the second device. The first device can send third video data to the second device in response to a request from the second device or a triggered request to send third video data to the second device. In one implementation, the first device generates the third video data based on the first image area information. If the second device is not pre-configured with the first image area information, the first device also sends the first image area information to the second device. In another implementation, the first device generates the third video data based on the second image area information. If the second device is not pre-configured with the second image area information, the first device also sends the second image area information to the second device.

[0090] In another possible implementation, the first device sends the third video data to the other device. The other device is connected to the second device, and is configured to send the third video data to the second device after receiving a request to send the third video data. In one implementation, the first device generates the third video data based on the first image area information. If the second device is not pre-configured with the first image area information, the first device also sends the first image area information to the other device so that the other device sends the first image area information to the second device. In another implementation, the first device generates the third video data based on the second image area information. If the second device is not pre-configured with the second image area information, the first device also sends the second image area information to the other device so that the other device sends the second image area information to the second device.

[0091] The following describes a video data processing method for playing a video using the third video data. The video data processing method can be applied to the second device.

[0092] Referring to FIG. 8 , this figure is a flow chart of another video data processing method provided by an embodiment of the present disclosure, including S801 - S802 .

[0093] S801: Acquire third video data.

[0094] In the embodiments of the present disclosure, the method for obtaining the third video data is not limited. In one possible implementation, a request for obtaining the third video data is sent to a device that generates or stores the third video data. The third video data is then obtained from the device that generates or stores the third video data in response to the request. In another possible implementation, the third video data is pre-acquired from the device that generates or stores the third video data.

[0095] The third image frame included in the third video data includes the first object image and at least one fused object image.

[0096] S802: Obtain a target object image based on the third video data.

[0097] The embodiments of the present disclosure do not limit the method of triggering the acquisition of the target object image based on the third video data. In one possible implementation, the second device processes the third video data after acquiring the third video data. In another possible implementation, the user triggers a play instruction when interacting. As an example, the user clicks a button on the display page and selects to display the interactive object, triggering the generation of a play instruction. As another example, after the user triggers a specific interaction process, the second device automatically displays the interactive object preset by the interaction process. Based on the interaction process, the second device automatically generates a play instruction. In response to obtaining the play instruction, the second device processes the third video data.

[0098] The second device obtains a target object image based on the third video data. The target object image is at least one object image among the at least one second object image. If there is only one second object image, the target object image is the second object image. If there are multiple second object images, the target object image is at least one of the multiple second object images.

[0099] As an example, the embodiment of the present disclosure provides a specific implementation method for obtaining a target object image based on third video data.

[0100] In one possible implementation, the second device obtains a fused object image and a first object image based on the third video data, and then uses the fused object image and the first object image to obtain a target object image. The fused object image is obtained by the first device by fusing the target object image (i.e., the second object image) with the first object image.

[0101] In one possible implementation, the fused object image is obtained by the first device fusing a target object image (i.e., a second object image) with a first object image based on a preset fusion rule. Correspondingly, the second device processes the fused object image and the first object image based on a preset restoration rule to obtain the target object image. The preset restoration rule is a restoration rule corresponding to the preset fusion rule used to generate the fused object image.

[0102] As an example, the preset fusion rule corresponding to the preset restoration rule is a calculation method based on formula (1). Accordingly, the first pixel value of each first pixel point of the first object image and the third pixel value of each third pixel point of the fused object image are obtained, and the fourth pixel value of each fourth pixel point of the target object image is calculated according to formula (2). i,j’ =A i,j -2×C i,j’+E (2)

[0103] Among them, B i,j’ , is the fourth pixel value of the fourth pixel point at (i, j) of the target object image. (i, j) is the target pixel position. (i, j) indicates that the pixel position of the fourth pixel point in the target object image is the pixel point at the i-th row and j-th column. Ai,j is the first pixel value of the first pixel point at (i, j) of the first object image. C i,j’ , is the third pixel value of the third pixel point at (i, j) in the fused image. E represents the third parameter. The value of the third parameter is based on the second parameter. The value of E can be 255.

[0104] In a possible implementation, the second device triggers parsing of the third video data after receiving a play instruction. The play instruction includes a target object image identifier. The target object image identifier is at least one of the identifiers of at least one fused object image.

[0105] Corresponding to the two methods of generating the third video data provided in the above embodiments, as some examples, the embodiments of the present disclosure provide two specific implementation methods of obtaining the fused object image and the first object image based on the third video data.

[0106] The first type: when generating a third image frame based on the first image area information, the positions of the first object image and the fused object image serving as the basis for color change in the third image frame can be determined based on the first image area information. As an example, the first image area information includes a correspondence between an identifier of the first object image and the first image area included in the third image frame, and a correspondence between an identifier of at least one fused object image and each second image area included in the third image frame. Based on the first image area information, the first image area corresponding to the identifier of the first object image is determined, and the first object image is obtained from the first image area. The fused object image is obtained from the second image area corresponding to the identifier of the target object image. The first image area information can be acquired in advance or pre-configured in the second device.

[0107] Second: When generating a third image frame based on second image region information, the positions of the first object image, the fused object image, and the target transparency image, serving as the basis for color change, within the third image frame can be determined based on the second image region information. As an example, the second image region information includes a correspondence between the identifier of the first object image and a third image region within the third image frame, a correspondence between the identifier of the target transparency image and a fourth image region within the third image frame, and a correspondence between the identifier of at least one fused object image and a fifth image region within the third image frame. Based on the second image region information, the fused object image is obtained from within the fifth image region corresponding to the identifier of the target object image. Based on the first image region information, the third image region within which the first object image serving as the basis for color change is located can be determined, and the first object image is obtained from within the third image region. Based on the second image region information, the fourth image region within which the target transparency image is located can be determined, and the target transparency image is obtained from within the fourth image region. The second image region information can be pre-acquired or pre-configured in the second device.

[0108] It should be noted that in some cases, such as when only the first object image needs to be displayed, the third video data can be used to obtain only the first object image. As an example, when the first device generates a third image frame based on the first image area information, the second device obtains the first object image from the first image area of ​​the third image frame based on the first image area information. The first image area information can be pre-acquired by the second device or pre-configured in the second device. As another example, when the first device generates a third image frame based on the second image area information, the second device obtains the first object image from the third image area of ​​the third image frame based on the second image area information, and obtains the target transparency image from the fourth image area of ​​the third image frame. The second image area information can be pre-acquired by the second device or pre-configured in the second device.

[0109] In some possible implementations, after obtaining the target object image, the target object image is displayed. The second device processes each third image frame included in the third video data to obtain the target object image, and plays the target object image obtained by processing the third image frames in the playback order of the third image frames to display the interactive object.

[0110] When the third image frame includes a target transparency image, before displaying the target object image, the transparency information of each pixel included in the target object image is configured based on the transparency information of each pixel provided by the target transparency image. In this way, the target object image with superimposed transparency can be displayed using the target transparency image.

[0111] Based on the video data processing method provided by the above method embodiment, the embodiment of the present disclosure further provides a video data processing device, which will be described below with reference to the accompanying drawings.

[0112] Referring to FIG9 , which is a schematic diagram of the structure of a video data processing device provided by an embodiment of the present disclosure, the video data processing device includes:

[0113] An acquiring unit 901 is configured to acquire first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and a second image frame of each second video data includes a second object image associated with the first object image;

[0114] A fusion unit 902 is configured to fuse the first object image of the first image frame with the second object image of the at least one second image frame to obtain at least one fused object image;

[0115] The generating unit 903 is configured to generate third video data according to the at least one fused object image, wherein a third image frame of the third video data includes the at least one fused object image.

[0116] In a possible implementation, the apparatus is applied to a server, the third image frame of the third video data also includes the first object image, and the apparatus further includes:

[0117] A sending unit is configured to send the third video data to a client, so that the client obtains a target object image based on the at least one fused object image, where the target object image is at least one object image in the at least one second object image.

[0118] In a possible implementation, the sending unit, configured to send the third video data to a client so that the client obtains a target object image based on the at least one fused object image, includes:

[0119] The sending unit is used to send the third video data to the client, so that the client obtains the target object image based on the at least one fused object image through a preset restoration rule, and the preset restoration rule is a restoration rule corresponding to the preset fusion rule.

[0120] In a possible implementation, the fusion unit 902 is configured to fuse the first object image of the first image frame with the second object image of at least one second image frame to obtain at least one fused object image, including:

[0121] The fusion unit 902 is configured to fuse the first object image of the first image frame with the second object image of at least one second image frame based on a preset fusion rule to obtain at least one fused object image.

[0122] In a possible implementation, each fused object image is obtained based on the following steps:

[0123] Acquire a first pixel value of each first pixel point of the first object image and a second pixel value of each second pixel point of the second object image;

[0124] According to a preset fusion rule, the third pixel value of each third pixel of the fused object image is generated by using the first pixel value of each first pixel of the first object image and the second pixel value of each second pixel of the second object image.

[0125] In a possible implementation, the generating unit 903 is configured to generate the third video data according to the at least one fused object image, including:

[0126] The generation unit 903 is used to splice the first object image and the at least one fused object image based on the first image area information to obtain a third image frame of the third video data, and the first image area information is used to indicate the positions of the first object image and the at least one fused object image in the third image frame respectively.

[0127] In a possible implementation, the first image frame further includes a first transparency image, and the second image frame further includes a second transparency image. Before fusing the first object image of the first image frame with the second object image of at least one second image frame, the apparatus further includes:

[0128] The segmentation unit is configured to segment the first image frame to obtain the first object image and the first transparency image; and segment the second image frame to obtain the second object image and the second transparency image.

[0129] In a possible implementation, the generating unit, configured to generate the third video data according to the at least one fused object image, includes:

[0130] The generation unit is used to splice the first object image, the target transparency image and the at least one fused object image based on the second image area information to obtain a third image frame of the third video data, and the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively.

[0131] Based on the video data processing method provided by the above method embodiment, the embodiment of the present disclosure further provides a video data processing device, which will be described below with reference to the accompanying drawings.

[0132] Referring to FIG10 , which is a schematic diagram of the structure of a video data processing device provided by an embodiment of the present disclosure, the video data processing device includes:

[0133] An acquiring unit 1001 is configured to acquire third video data, wherein a third image frame of the third video data includes at least one fused object image; wherein the at least one fused object image is obtained by fusing a first object image included in a first image frame of the first video data with a second object image included in at least one second image frame of the second video data, where the second object image is an object image associated with the first object image;

[0134] The processing unit 1002 is configured to obtain a target object image based on the third video data, where the target object image is at least one object image among the plurality of second object images.

[0135] In a possible implementation, the processing unit 1002 is configured to obtain a target object image based on the third video data, including:

[0136] The processing unit 1002 is configured to obtain the fused object image and the first object image based on the third video data; and obtain a target object image using the fused object image and the first object image.

[0137] In a possible implementation, the processing unit 1002 is configured to obtain a target object image using the fused object image and the first object image, including:

[0138] The processing unit 1002 is configured to process the fused object image and the first object image based on a preset restoration rule to obtain a target object image. The preset restoration rule is a restoration rule corresponding to a preset fusion rule for generating the fused object image.

[0139] In a possible implementation, the processing unit 1002 is configured to process the fused object image and the first object image based on a preset restoration rule to obtain a target object image, including:

[0140] The processing unit 1002 is used to obtain the fourth pixel value of each fourth pixel point of the target object image by using the first pixel value of each first pixel point of the first object image and the third pixel value of each third pixel point of the fused object image in accordance with the preset restoration rule.

[0141] In a possible implementation, the processing unit 1002 is configured to obtain the fused object image and the first object image based on the third video data, including:

[0142] The processing unit 1002 is configured to obtain the fused object image and the first object image based on the third video data in response to obtaining a playback instruction.

[0143] In one possible implementation, the playback instruction includes a target object image identifier, where the target object image identifier is at least one of the identifiers of the at least one fused object image. The processing unit 1002, configured to obtain the fused object image and the first object image based on the third video data, includes:

[0144] The processing unit 1002 is used to obtain, based on the first image area information, a fused object image included in the second image area corresponding to the target object image identifier and a first object image included in the first image area corresponding to the identifier of the first object image in the third video data, wherein the first image area information is used to indicate the positions of the first object image and the at least one fused object image in the third image frame, respectively.

[0145] In one possible implementation, the third image frame includes a target transparency image, the playback instruction includes a target object image identifier, and the target object image identifier is at least one of the identifiers of the at least one fused object image. The processing unit 1002, configured to obtain the fused object image and the first object image based on the third video data, includes:

[0146] The processing unit 1002 is used to obtain, based on the second image area information, the fused object image, the first object image and the target transparency image included in the fifth image area corresponding to the target object image identifier in the third video data, and the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively. Based on a video data processing method provided by the above method embodiment, the present disclosure also provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the one or more programs are executed by the one or more processors, the one or more processors implement the video data processing method as described in any of the above embodiments.

[0147] Reference is now made to FIG11 , which illustrates a schematic diagram of the structure of an electronic device 1100 suitable for implementing an embodiment of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable Android devices), PMPs (Portable Media Players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital televisions (televisions), desktop computers, and the like. The electronic device illustrated in FIG11 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0148] As shown in FIG11 , the electronic device 1100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage device 1108 into a random access memory (RAM) 1103. Various programs and data required for the operation of the electronic device 1100 are also stored in the RAM 1103. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0149] Typically, the following devices may be connected to the I / O interface 1105: an input device 1108 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1109. The communication device 1109 may allow the electronic device 1100 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 11 illustrates the electronic device 1100 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0150] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1109, or installed from the storage device 1108, or installed from the ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0151] The electronic device provided by the embodiment of the present disclosure and the video data processing method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0152] Based on a video data processing method provided in the above method embodiment, an embodiment of the present disclosure provides a computer storage medium on which a computer program is stored, wherein when the program is executed by a processor, the video data processing method as described in any of the above embodiments is implemented.

[0153] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0154] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0155] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0156] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the video data processing method.

[0157] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0159] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. The name of a unit / module does not, in some cases, limit the unit itself. For example, a voice data acquisition module may also be described as a "data acquisition module."

[0160] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0161] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0162] According to one or more embodiments of the present disclosure, [Example 1] provides a video data processing method, the method comprising:

[0163] Acquire first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and a second image frame of each second video data includes a second object image associated with the first object image;

[0164] fusing the first object image of the first image frame with the second object image of the at least one second image frame to obtain at least one fused object image;

[0165] A third video data is generated according to the at least one fused object image, and a third image frame of the third video data includes the at least one fused object image.

[0166] According to one or more embodiments of the present disclosure, [Example 2] provides a video data processing method, which is applied to a server, wherein the third image frame of the third video data also includes the first object image, and the method further includes:

[0167] The third video data is sent to a client, so that the client obtains a target object image based on the at least one fused object image, where the target object image is at least one object image in the at least one second object image.

[0168] According to one or more embodiments of the present disclosure, [Example 3] provides a video data processing method, wherein the method of sending the third video data to a client so that the client obtains a target object image based on the at least one fused object image includes:

[0169] The third video data is sent to a client, so that the client obtains a target object image based on the at least one fused object image by a preset restoration rule, where the preset restoration rule is a restoration rule corresponding to the preset fusion rule.

[0170] According to one or more embodiments of the present disclosure, [Example 4] provides a video data processing method, wherein the method of fusing a first object image of a first image frame with a second object image of at least one second image frame to obtain at least one fused object image includes:

[0171] Based on a preset fusion rule, the first object image of the first image frame is fused with the second object image of at least one second image frame to obtain at least one fused object image.

[0172] According to one or more embodiments of the present disclosure, [Example 5] provides a video data processing method, wherein each fused object image is obtained based on the following steps:

[0173] Acquire a first pixel value of each first pixel point of the first object image and a second pixel value of each second pixel point of the second object image;

[0174] According to a preset fusion rule, the third pixel value of each third pixel of the fused object image is generated by using the first pixel value of each first pixel of the first object image and the second pixel value of each second pixel of the second object image.

[0175] According to one or more embodiments of the present disclosure, [Example 6] provides a video data processing method, wherein generating third video data based on the at least one fused object image includes:

[0176] Based on the first image area information, the first object image and the at least one fused object image are spliced ​​to obtain a third image frame of the third video data, and the first image area information is used to indicate the positions of the first object image and the at least one fused object image in the third image frame respectively.

[0177] According to one or more embodiments of the present disclosure, [Example 7] provides a video data processing method, wherein the first image frame further includes a first transparency image, and the second image frame further includes a second transparency image. Before fusing the first object image of the first image frame with the second object image of at least one second image frame, the method further includes:

[0178] Segmenting the first image frame to obtain the first object image and the first transparency image;

[0179] The second image frame is segmented to obtain the second object image and the second transparency image.

[0180] According to one or more embodiments of the present disclosure, [Example 8] provides a video data processing method, wherein generating third video data based on the at least one fused object image includes:

[0181] Based on the second image area information, the first object image, the target transparency image and the at least one fused object image are spliced ​​to obtain a third image frame of the third video data, and the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively.

[0182] According to one or more embodiments of the present disclosure, [Example 9] provides a video data processing method, the method comprising:

[0183] Acquiring third video data, wherein a third image frame of the third video data includes at least one fused object image; wherein the at least one fused object image is obtained by fusing a first object image included in a first image frame of the first video data with a second object image included in at least one second image frame of the second video data, wherein the second object image is an object image associated with the first object image;

[0184] A target object image is obtained based on the third video data, where the target object image is at least one object image in the at least one second object image.

[0185] According to one or more embodiments of the present disclosure, [Example 10] provides a video data processing method, wherein obtaining a target object image based on the third video data includes:

[0186] obtaining the fused object image and the first object image based on the third video data;

[0187] A target object image is obtained by using the fused object image and the first object image.

[0188] According to one or more embodiments of the present disclosure, [Example 11] provides a video data processing method, wherein the method of obtaining a target object image by using the fused object image and the first object image includes:

[0189] The fused object image and the first object image are processed based on a preset restoration rule to obtain a target object image, wherein the preset restoration rule is a restoration rule corresponding to a preset fusion rule for generating the fused object image.

[0190] According to one or more embodiments of the present disclosure, [Example 12] provides a video data processing method, wherein the method processes the fused object image and the first object image based on a preset restoration rule to obtain a target object image, including:

[0191] According to the preset restoration rule, the fourth pixel value of each fourth pixel point of the target object image is obtained by using the first pixel value of each first pixel point of the first object image and the third pixel value of each third pixel point of the fused object image.

[0192] According to one or more embodiments of the present disclosure, [Example 13] provides a video data processing method, wherein obtaining a target object image based on the third video data includes:

[0193] In response to obtaining a playback instruction, the fused object image and the first object image are obtained based on the third video data.

[0194] According to one or more embodiments of the present disclosure, [Example 14] provides a video data processing method, wherein the playback instruction includes a target object image identifier, the target object image identifier being at least one of the identifiers of the at least one fused object image, and obtaining the fused object image and the first object image based on the third video data, including:

[0195] Based on the first image area information, a fused object image included in the second image area corresponding to the target object image identifier and a first object image included in the first image area corresponding to the identifier of the first object image in the third video data are obtained, wherein the first image area information is used to indicate the positions of the first object image and the at least one fused object image in the third image frame, respectively.

[0196] According to one or more embodiments of the present disclosure, [Example 15] provides a video data processing method, wherein the third image frame includes a target transparency image, the playback instruction includes a target object image identifier, and the target object image identifier is at least one of the identifiers of the at least one fused object image. Obtaining the fused object image and the first object image based on the third video data includes:

[0197] Based on the second image area information, the fifth image area corresponding to the target object image identifier in the third video data is obtained, including the fused object image, the first object image and the target transparency image, and the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively.

[0198] According to one or more embodiments of the present disclosure, [Example 16] provides a video data processing device, the device including:

[0199] an acquiring unit, configured to acquire first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and each second image frame of the second video data includes a second object image associated with the first object image;

[0200] a fusion unit, configured to fuse the first object image of the first image frame with the second object image of the at least one second image frame to obtain at least one fused object image;

[0201] A generating unit is configured to generate third video data according to the at least one fused object image, wherein a third image frame of the third video data includes the at least one fused object image.

[0202] According to one or more embodiments of the present disclosure, [Example 17] provides a video data processing device, which is applied to a server. The third image frame of the third video data also includes the first object image. The device further includes:

[0203] A sending unit is configured to send the third video data to a client, so that the client obtains a target object image based on the at least one fused object image, where the target object image is at least one object image in the at least one second object image.

[0204] According to one or more embodiments of the present disclosure, [Example 18] provides a video data processing device, wherein the sending unit is configured to send the third video data to a client so that the client obtains a target object image based on the at least one fused object image, including:

[0205] The sending unit is used to send the third video data to the client, so that the client obtains the target object image based on the at least one fused object image through a preset restoration rule, and the preset restoration rule is a restoration rule corresponding to the preset fusion rule.

[0206] According to one or more embodiments of the present disclosure, [Example 19] provides a video data processing device, wherein the fusion unit is configured to fuse a first object image of the first image frame with a second object image of at least one second image frame to obtain at least one fused object image, including:

[0207] The fusion unit is configured to fuse the first object image of the first image frame with the second object image of at least one second image frame based on a preset fusion rule to obtain at least one fused object image.

[0208] According to one or more embodiments of the present disclosure, [Example 20] provides a video data processing device, wherein each fused object image is obtained based on the following steps:

[0209] Acquire a first pixel value of each first pixel point of the first object image and a second pixel value of each second pixel point of the second object image;

[0210] According to a preset fusion rule, the third pixel value of each third pixel of the fused object image is generated by using the first pixel value of each first pixel of the first object image and the second pixel value of each second pixel of the second object image.

[0211] According to one or more embodiments of the present disclosure, [Example 21] provides a video data processing device, wherein the generating unit is configured to generate third video data based on the at least one fused object image, including:

[0212] The generation unit is used to splice the first object image and the at least one fused object image based on the first image area information to obtain a third image frame of the third video data, wherein the first image area information is used to indicate the positions of the first object image and the at least one fused object image in the third image frame respectively.

[0213] According to one or more embodiments of the present disclosure, [Example 22] provides a video data processing device, wherein the first image frame further includes a first transparency image, and the second image frame further includes a second transparency image. Before fusing the first object image of the first image frame with the second object image of at least one second image frame, the device further includes:

[0214] The segmentation unit is configured to segment the first image frame to obtain the first object image and the first transparency image; and segment the second image frame to obtain the second object image and the second transparency image.

[0215] According to one or more embodiments of the present disclosure, [Example 23] provides a video data processing device, wherein the generating unit is configured to generate third video data based on the at least one fused object image, including:

[0216] The generation unit is used to splice the first object image, the target transparency image and the at least one fused object image based on the second image area information to obtain a third image frame of the third video data, and the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively.

[0217] According to one or more embodiments of the present disclosure, [Example 24] provides a video data processing device, the device comprising:

[0218] an acquiring unit, configured to acquire third video data, wherein a third image frame of the third video data includes at least one fused object image; wherein the at least one fused object image is obtained by fusing a first object image included in a first image frame of the first video data with a second object image included in at least one second image frame of the second video data, wherein the second object image is an object image associated with the first object image;

[0219] A processing unit is configured to obtain a target object image based on the third video data, where the target object image is at least one object image among the plurality of second object images.

[0220] According to one or more embodiments of the present disclosure, [Example 25] provides a video data processing device, wherein the processing unit is configured to obtain a target object image based on the third video data, including:

[0221] The processing unit is configured to obtain the fused object image and the first object image based on the third video data; and obtain a target object image using the fused object image and the first object image.

[0222] According to one or more embodiments of the present disclosure, [Example 26] provides a video data processing device, wherein the processing unit is configured to obtain a target object image using the fused object image and the first object image, including:

[0223] The processing unit is configured to process the fused object image and the first object image based on a preset restoration rule to obtain a target object image, wherein the preset restoration rule is a restoration rule corresponding to a preset fusion rule for generating the fused object image.

[0224] According to one or more embodiments of the present disclosure, [Example 27] provides a video data processing device, wherein the processing unit is configured to process the fused object image and the first object image based on a preset restoration rule to obtain a target object image, including:

[0225] The processing unit is used to obtain the fourth pixel value of each fourth pixel point of the target object image by using the first pixel value of each first pixel point of the first object image and the third pixel value of each third pixel point of the fused object image in accordance with the preset restoration rule.

[0226] According to one or more embodiments of the present disclosure, [Example 28] provides a video data processing device, wherein the processing unit is configured to obtain the fused object image and the first object image based on the third video data, including:

[0227] The processing unit is configured to obtain the fused object image and the first object image based on the third video data in response to obtaining a playback instruction.

[0228] According to one or more embodiments of the present disclosure, [Example 29] provides a video data processing device, wherein the playback instruction includes a target object image identifier, the target object image identifier being at least one of the identifiers of the at least one fused object image, and the processing unit, configured to obtain the fused object image and the first object image based on the third video data, includes:

[0229] The processing unit is used to obtain, in the third video data, a fused object image included in the second image area corresponding to the target object image identifier and a first object image included in the first image area corresponding to the identifier of the first object image based on the first image area information, wherein the first image area information is used to indicate the positions of the first object image and the at least one fused object image in the third image frame, respectively.

[0230] According to one or more embodiments of the present disclosure, [Example 30] provides a video data processing device, wherein the third image frame includes a target transparency image, the playback instruction includes a target object image identifier, and the target object image identifier is at least one of the identifiers of the at least one fused object image. The processing unit, configured to obtain the fused object image and the first object image based on the third video data, includes:

[0231] The processing unit is used to obtain, based on the second image area information, the fifth image area corresponding to the target object image identifier in the third video data, including the fused object image, the first object image and the target transparency image, wherein the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively.

[0232] According to one or more embodiments of the present disclosure, [Example 31] provides an electronic device, including:

[0233] one or more processors;

[0234] a storage device having one or more programs stored thereon,

[0235] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in [Example 1] to [Example 8], or any of the methods described in [Example 9] to [Example 15].

[0236] According to one or more embodiments of the present disclosure, [Example 32] provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, it implements any method as described in [Example 1]-[Example 8], or any method as described in [Example 9]-[Example 15].

[0237] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.

[0238] It should be understood that in the present disclosure, "at least one (item)" means one or at least one, and "at least one" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or at least one.

[0239] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0240] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0241] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present disclosure. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments shown herein, but is intended to be construed in the widest manner consistent with the principles and novel features disclosed herein.

Claims

1. A video data processing method, include: Acquire first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and a second image frame of each second video data includes a second object image associated with the first object image; Fusing the first object image of the first image frame with the second object image of the at least one second image frame respectively to obtain at least one fused object image; A third video data is generated according to the at least one fused object image, and a third image frame of the third video data includes the at least one fused object image.

2. The method according to claim 1, in, The method is applied to a server, the third image frame of the third video data also includes the first object image, and the method further includes: The third video data is sent to a client, so that the client obtains a target object image based on the at least one fused object image, where the target object image is at least one object image in the at least one second object image.

3. The method according to claim 2, in, The sending the third video data to the client so that the client obtains the target object image based on the at least one fused object image includes: The third video data is sent to the client, so that the client obtains the target object image based on the at least one fused object image by a preset restoration rule, where the preset restoration rule is a restoration rule corresponding to the preset fusion rule.

4. The method according to any one of claims 1 to 3, in, The step of fusing the first object image of the first image frame with the second object image of at least one second image frame to obtain at least one fused object image comprises: Based on a preset fusion rule, the first object image of the first image frame is fused with the second object image of at least one second image frame to obtain at least one fused object image.

5. The method according to claim 4, in, Each fused object image is obtained based on the following steps: Acquire a first pixel value of each first pixel point of the first object image and a second pixel value of each second pixel point of the second object image; According to a preset fusion rule, the third pixel value of each third pixel of the fused object image is generated by using the first pixel value of each first pixel of the first object image and the second pixel value of each second pixel of the second object image.

6. The method according to any one of claims 1 to 5, in, The generating the third video data according to the at least one fused object image comprises: Based on the first image area information, the first object image and the at least one fused object image are spliced ​​to obtain a third image frame of the third video data, and the first image area information is used to indicate the positions of the first object image and the at least one fused object image in the third image frame respectively.

7. The method according to claim 1, in, The first image frame further includes a first transparency image, the second image frame further includes a second transparency image, and before fusing the first object image of the first image frame with the second object image of at least one second image frame, the method further includes: Segmenting the first image frame to obtain the first object image and the first transparency image; The second image frame is segmented to obtain the second object image and the second transparency image.

8. The method according to claim 7, in, The generating the third video data according to the at least one fused object image comprises: Based on the second image area information, the first object image, the target transparency image and the at least one fused object image are spliced ​​to obtain a third image frame of the third video data, and the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively.

9. A method for processing video data, the method include: Acquire third video data, wherein a third image frame of the third video data includes at least one fused object image; wherein the at least one fused object image is obtained by fusing a first object image included in a first image frame of the first video data with a second object image included in at least one second image frame of the second video data, and the second object image is an object image associated with the first object image; A target object image is obtained based on the third video data, and the target object image is at least one at least one object image among the second object images.

10. The method according to claim 9, in, The obtaining a target object image based on the third video data comprises: Based on the third video data, obtaining the fused object image and the first object image; A target object image is obtained by using the fused object image and the first object image.

11. The method according to claim 10, in, The step of obtaining a target object image by using the fused object image and the first object image comprises: The fused object image and the first object image are processed based on a preset restoration rule to obtain a target object image, wherein the preset restoration rule is a restoration rule corresponding to a preset fusion rule for generating the fused object image.

12. The method according to claim 11, in, The step of processing the fused object image and the first object image based on a preset restoration rule to obtain a target object image includes: According to the preset restoration rule, the fourth pixel value of each fourth pixel point of the target object image is obtained by using the first pixel value of each first pixel point of the first object image and the third pixel value of each third pixel point of the fused object image.

13. The method according to claim 10, in, The obtaining the fused object image and the first object image based on the third video data includes: In response to obtaining the playback instruction, the fused object image and the first object image are obtained based on the third video data.

14. The method according to claim 13, in, The playing instruction includes a target object image identifier, the target object image identifier is at least one of the identifiers of the at least one fused object image, and obtaining the fused object image and the first object image based on the third video data includes: Based on the first image area information, a fused object image included in the second image area corresponding to the target object image identifier and a first object image included in the first image area corresponding to the identifier of the first object image in the third video data are obtained, wherein the first image area information is used to indicate positions of the first object image and the at least one fused object image in the third image frame, respectively.

15. The method according to claim 13, in, The third image frame includes a target transparency image, the play instruction includes a target object image identifier, the target object image identifier is at least one of the identifiers of the at least one fused object image, and obtaining the fused object image and the first object image based on the third video data includes: Based on the second image area information, the fifth image area corresponding to the target object image identifier in the third video data is obtained, including the fused object image, the first object image and the target transparency image, and the second image area information is used to indicate the positions of the first object image, the at least one fused object image and the target transparency image in the third image frame respectively.

16. A video data processing device, include: an acquisition unit, configured to acquire first video data and at least one second video data, wherein a first image frame of the first video data includes a first object image, and a second image frame of each second video data includes a second object image associated with the first object image; a fusion unit, configured to fuse the first object image of the first image frame with the second object image of the at least one second image frame to obtain at least one fused object image; A generating unit is configured to generate third video data according to the at least one fused object image, wherein a third image frame of the third video data includes the at least one fused object image.

17. A video data processing device, the device include: an acquisition unit, configured to acquire third video data, wherein a third image frame of the third video data includes at least one fused object image; wherein the at least one fused object image is obtained by fusing a first object image included in a first image frame of the first video data with a second object image included in at least one second image frame of the second video data, and the second object image is an object image associated with the first object image; A processing unit is used to obtain a target object image based on the third video data, where the target object image is at least one object image among the plurality of second object images.

18. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8, or the method according to any one of claims 9 to 15.

19. A computer readable medium, in, A computer program is stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 8 or any one of claims 9 to 15 is implemented.

Citation Information

Patent Citations

  • Method for cooperative acquisition of multi-target videos under different resolutions by variable-focus array camera

    CN101720027A

  • Color mixing method and system, computer equipment and storage medium

    CN109903347A

  • Optical flow-based gigapixel video alignment method and device, and medium

    CN111932594A

  • Video processing method and device, equipment and storage medium

    CN113852757A

  • Video karaoke system

    US20070122786A1