Video fusion method and device, equipment, storage medium and computer program product
By obtaining the action information of the target object in the video and matching it to the action effect of the virtual scene, the problem of poor fusion effect in the digital fusion solution is solved, and the natural interaction and complete integration of the target object and the virtual space are achieved.
Patent Information
- Application Number
- CN202410705549.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-06
Smart Images

Figure CN118612362A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual scene interaction technology, and in particular to a video fusion method, device, equipment, storage medium and computer program product. Background Art
[0002] The current technical solution for digital fusion includes the following steps: circling a certain area in a designated virtual space (or a digital scene), deducting a protagonist or a target object from the original video scene or a green screen, scaling the protagonist or the target object by a certain ratio, and placing the scaled character or target object in front of a certain circled area in the virtual space (or a digital scene).
[0003] However, the above digital fusion scheme can only fuse the person or target object into the specified area, and the person or target object may be cut off and only half of it appears in the digital scene, or there may be no interaction between the person or target object and the digital scene (for example, there is a big tree next to the person, and after fusion, the person is in front and the big tree is behind, and there is no interaction between them). In summary, the existing digital fusion scheme has the problem of poor fusion effect. Summary of the invention
[0004] The embodiments of the present invention provide a video fusion method, apparatus, device, storage medium and computer program product to solve the problem that the existing digital fusion solution has poor fusion effect.
[0005] The present invention provides a video fusion method, comprising:
[0006] Get the action information of the target object in the video;
[0007] Acquiring, according to the action information, an action effect of the target object in a digital scene matching the video;
[0008] According to the action effect, the target object is fused into the digital scene to obtain a first fused video.
[0009] Optionally, obtaining action information of a target object in a video includes:
[0010] Identify the target object in the video and obtain Euler angle information corresponding to each joint of the target object;
[0011] The motion information of the target object is obtained according to the Euler angle information corresponding to each joint.
[0012] Optionally, according to the action effect, the target object is fused into the digital scene to obtain a first fused video, including:
[0013] According to the action effect, obtaining an action script corresponding to the action effect;
[0014] integrating the target object and the action script into the digital scene;
[0015] When the target object triggers the action effect, the corresponding action script is executed to obtain the first fused video.
[0016] Optionally, when the target object triggers the action effect, executing the corresponding action script to obtain the first fused video includes:
[0017] Acquire the position information of the target object in the digital scene;
[0018] Determine, according to the position information and the action effect, an action area in the digital scene where the target object triggers the action effect;
[0019] When the target object triggers the action effect, the corresponding action script is executed in the action area to obtain the first fused video.
[0020] Optionally, before obtaining the action effect of the target object in the digital scene matching the video according to the action information, the method further includes:
[0021] Obtaining scene keywords of scenes in the video and weight values corresponding to the scene keywords;
[0022] According to the scene keyword, obtaining at least one first digital scene matching the scene keyword and a matching value between the first digital scene and the scene keyword in a scene library, wherein the scene library includes a plurality of digital scenes, a scene keyword corresponding to each digital scene, and a matching value between each digital scene and the scene keyword;
[0023] For each of the first digital scenes, obtaining a degree of matching between the first digital scene and the scene in the video according to the scene keyword, the weight value corresponding to the scene keyword, and the matching value corresponding to the scene keyword;
[0024] The first digital scene with the highest matching degree is used as the digital scene matching the video.
[0025] The embodiment of the present invention further provides a video fusion device, including:
[0026] A first acquisition module is used to acquire the action information of the target object in the video;
[0027] A second acquisition module, configured to acquire, according to the action information, an action effect of the target object in a digital scene matching the video;
[0028] The first processing module is used to fuse the target object into the digital scene according to the action effect to obtain a first fused video.
[0029] An embodiment of the present invention also provides a video fusion device, comprising: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in the video fusion method described in any one of the above.
[0030] An embodiment of the present invention further provides a video fusion device, including: a processor;
[0031] The processor is used to obtain action information of a target object in a video; obtain an action effect of the target object in a digital scene matching the video according to the action information; and, according to the action effect, fuse the target object into the digital scene to obtain a first fused video.
[0032] An embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the steps in the video fusion method described above are implemented.
[0033] An embodiment of the present invention further provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of any one of the above-described video fusion methods.
[0034] The beneficial effects of the present invention are:
[0035] The video fusion method provided by the scheme of the present invention obtains the action information of the target object in the video, obtains the action effect of the target object in the digital scene matching the video according to the action information, fuses the target object into the digital scene, determines whether the target object is suitable for a specified area in the digital scene according to the action effect, enables the target object to interact with the digital scene, and avoids the problem of partial truncation or occlusion of the target object, thereby improving the fusion effect of the target object in the digital scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0037] Figure 1 is a flow chart of a video fusion method provided by an embodiment of the present invention;
[0038] Figure 2 is a schematic diagram of joints of a target object provided by an embodiment of the present invention;
[0039] Figure 3 is a specific flow chart of the video fusion method provided by an embodiment of the present invention;
[0040] Figure 4 is a structural schematic diagram of a video fusion device provided by an embodiment of the present invention;
[0041] Figure 5 It is one of the structural schematic diagrams of the video fusion device provided by the embodiment of the present invention;
[0042] Figure 6 This is the second structural schematic diagram of the video fusion device provided in the embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] See also Figure 1 , Figure 1 is a flow chart of a video fusion method provided by an embodiment of the present invention. Figure 1 As shown, the following steps are included:
[0045] Step 101: Obtain action information of a target object in a video.
[0046] In this step, a video input by a user is first obtained, and the video can also be understood as at least one continuous picture. Then, a cutout technique is used to cut out a target object in the video.
[0047] The target object may be a person or an animal, and the number of target objects is not limited.
[0048] The motion information of the target object includes motion information of the joints of the target object, or the motion information of the target object is obtained by identifying based on the motion information of the joints of the target object.
[0049] Step 102: Acquire the action effect of the target object in the digital scene matching the video according to the action information.
[0050] Among them, action effects include static actions, dynamic actions and preset actions.
[0051] In this step, the action effect of the target object is obtained by analyzing the action information of the target object. Static effect can be understood as generated when the action information of the target object indicates that the target object has not moved or the action amplitude is small, and dynamic effect can be understood as generated when the action information of the target object indicates that the target object's body sends an action. Preset action is generated when the target object has preset action information, such as making a phone call and eating. Under different preset actions, the action information can be predicted in advance.
[0052] The digital scene that matches the video is the scene to be fused. In order to ensure the fusion effect, the digital scene that matches the video can be understood as the digital scene that best matches the video scene.
[0053] Step 103: According to the action effect, the target object is fused into the digital scene to obtain a first fused video.
[0054] In this step, based on the action effect and the specific scene of the digital scene, it can be determined whether the target object is suitable for integration into the digital scene or integrated into the specified area of the digital scene, and based on the action effect, the target object is integrated into the digital scene so that the target object interacts with the digital scene and avoids the problem of partial truncation or occlusion of the target object, thereby improving the integration effect of the target object in the digital scene. This solves the problem that some artists do not know how to synthesize photos or video scenes into digital scenes without any discord.
[0055] In an optional embodiment, before obtaining the action effect of the target object in the digital scene matching the video according to the action information, the method further includes:
[0056] Obtain scene keywords of the scene in the video (also referred to as the video scene) and weight values corresponding to the scene keywords. Specifically, using artificial intelligence generated content (AIGC) technology, obtain keywords of the video scene and weight values corresponding to the keywords. Specifically, using AIGC technology to analyze the video, picture or audio in the video input by the user, obtain the corresponding scene keyword k(n) and the weight value corresponding to each scene keyword is q(n), wherein the sum of all weight values is 100.
[0057] For example, a user inputs a video and uses AIGC technology to generate four scene keywords, namely outdoor, lively, lonely, and overtime, and the weights of these four scene keywords are 20, 40, 20, and 20, respectively.
[0058] According to the scene keywords and the weight values corresponding to the scene keywords, a digital scene matching the video scene is obtained. That is, these scene keywords are several evaluation dimensions for subsequent matching digital scenes, and the weight values corresponding to the scene keywords are also used to determine the most matching digital scene.
[0059] Further, according to the scene keywords and the weight values corresponding to the scene keywords, a digital scene matching the video scene is obtained, including:
[0060] According to the scene keyword, at least one first digital scene matching the scene keyword and the matching value between the first digital scene and the scene keyword are obtained in the scene library, wherein the scene library includes multiple digital scenes, scene keywords corresponding to each digital scene, and the matching value between each digital scene and the scene keyword. Specifically, the scene library pre-stores multiple digital scenes, and also stores the scene keywords corresponding to each digital scene and the matching value between each digital scene and the corresponding scene keyword. After obtaining the scene keyword of the above-mentioned video scene, the scene keyword of the video scene is input into the scene library. The scene library can search for at least one first digital scene according to the scene keyword of the video scene. The specific search method can be that the scene in the scene library that matches all the scene keywords of the video scene is used as the first digital scene, or the scene in the scene library that matches a certain proportion of the scene keywords in the scene keywords of the video scene is used as the first digital scene. After obtaining the first digital scene, the matching value between the first digital scene and the scene keyword of the video scene is obtained in the scene library, wherein the matching value is greater than 0 and less than 1.
[0061] Exemplarily, a user inputs a video and uses AIGC technology to generate four scene keywords, namely outdoor, lively, lonely, and overtime, and the weights of these four scene keywords are 20, 40, 20, and 20, respectively. In the scene library, a schematic table of the first digital scene obtained by matching is shown in Table 1 below.
[0062] Table 1 Schematic table of the first digital scene
[0063] Scene ID Scene keywords (p) Matching value (m) 1 summer 0.2 1 alone 0.3 1 outdoor 0.95 2 alone 0.4 2 outdoor 0.8 2 work overtime 0.9 2 Concert 0.4
[0064] Among them, "1" in the scene (Identity, ID) represents a first digital scene, and "2" in the scene ID represents another first digital scene. The scene keywords corresponding to the first digital scene represented by "1" include summer, loneliness, and outdoors, and the scene keywords corresponding to the first digital scene represented by "2" include loneliness, outdoors, overtime, and concert.
[0065] For each of the first digital scenes, the degree of matching between the first digital scene and the scene in the video (or video scene) is obtained based on the scene keyword, the weight value corresponding to the scene keyword and the matching value corresponding to the scene keyword. Specifically, for each first digital scene, the scene keyword corresponding to each first digital scene is traversed to obtain the matching value corresponding to the scene keyword of the video scene, and the matching value corresponding to the scene keyword of each video scene is multiplied and added with the weight value corresponding to the scene keyword of the corresponding video scene to obtain the degree of matching between the first digital scene and the video scene.
[0066] For example, for the four scene keywords of the video scene, outdoor, lively, lonely, and overtime, the weight values of the four scene keywords are 20, 40, 20, and 20, respectively. The matching degree between the first digital scene represented by "1" and the video scene and the matching degree between the first digital scene represented by "2" and the video scene are calculated respectively.
[0067] "1" indicates the matching degree between the first digital scene and the video scene:
[0068] f(1)=20*0.95+0+20*0.3+0=25
[0069] "2" indicates the matching degree between the first digital scene and the video scene:
[0070] f(2)=20*0.8+0+20*0.4+20*0.9=42
[0071] The first digital scene with the highest matching degree is taken as the digital scene matching the video. Exemplarily, the matching degree between the first digital scene represented by "1" and the video scene is 25, and the matching degree between the first digital scene represented by "2" and the video scene is 42, then the first digital scene represented by "2" is taken as the digital scene matching the video scene.
[0072] In an optional embodiment, obtaining the action information of the target object in the video scene includes:
[0073] The target object in the video is identified to obtain the Euler angle information corresponding to each joint of the target object. The target object is a person as an example. Figure 2 As shown, it includes the neck joint, shoulder joint, wrist joint, elbow joint, hip joint, hand joint, knee joint, and ankle joint, where the letters "R" and "L" indicate the left and right joints. Figure 2 Only one of the bilaterally symmetrical joints is shown. The action of each joint is represented by Euler angle information (α, β, θ).
[0074] According to the Euler angle information corresponding to each joint, the motion information of the target object is obtained, that is, the Euler angle information (α, β, θ) of each joint constitutes the motion information of the target object.
[0075] Further, obtaining the action effect of the target object in the digital scene according to the action information includes:
[0076] According to the action information of each joint, the action effect of the target object in the digital scene and the action scope of the target object are obtained. For example, according to A(α, β, θ)<& / |>BL(α, β, θ) (which can be understood as the Euler angle information of the neck joint and / or the Euler angle information of the left shoulder joint), it is determined that the action effect of the target object is a static action, and the scope of the static action is the scene position corresponding to any joint (represented by the scope "1"). Or, for example, according to A(α, β, θ)<& / |>BL(α, β, θ) (which can be understood as the Euler angle information of the neck joint and / or the Euler angle information of the left shoulder joint) the target object is determined. The action effect of the object is a dynamic action, that is, when α, β, and θ have an action range, such as moving between 90° and 180°, the target object is considered to be in dynamic action, and the scope of the dynamic action is the scene position corresponding to |DR, BR|<& / |> (which can be understood as acting on the elbow joint and / or shoulder joint) (indicated by scope "2"). For another example, the action effect of the target object is determined to be a preset action (making a phone call or eating) based on the Euler angle information of the preset joints, and its scope is the scene position corresponding to |DR, BR|<& / |> (which can be understood as based on the elbow joint and / or shoulder joint) (indicated by scope "3").
[0077] The action scope can be understood as the area where the action effect is performed on which joint or part of the target object and interacts with the digital scene, or the area where the target object triggers the action interaction effect.
[0078] In an optional embodiment, according to the action effect, the target object is merged into the digital scene to obtain a first fused video, including:
[0079] According to the action effect, an action script corresponding to the action effect is obtained. Specifically, different action scripts correspond to different action effects. The action script corresponding to the static action is the animation corresponding to the digital scene, the action script corresponding to the dynamic action is the script Script1 corresponding to the dynamic action, and the action script of the preset action is the action script Script2 corresponding to the preset action.
[0080] Merging the target object and the action script into the digital scene can be understood as pre-embedding the corresponding action script in the digital scene and merging the target object into a certain position of the digital scene;
[0081] When the target object triggers the action effect, the corresponding action script is executed to obtain the first fused video, that is, when the target object performs the action effect or a part of the target object interacts with the digital scene according to the posture corresponding to the action effect, the corresponding action script is triggered to realize the interaction between the target object and the digital scene in the fused video. Specifically, when the action effect is a static effect, the corresponding action scope "1" is executed, and the animation corresponding to the digital scene is executed. When the action effect is a dynamic effect, the corresponding action scope "2" is executed, that is, the target object touches the scene position corresponding to the action scope "2" through the part between the two joints of the action, and the corresponding action script Script1 is executed. When the action effect is a preset action, that is, the target object is performing a preset action, and the execution part of the preset action touches the scene position corresponding to the action scope "3", the corresponding action script Script2 is executed.
[0082] That is, further, when the target object triggers the action effect, the corresponding action script is executed to obtain the first fused video, including:
[0083] Acquire the position information of the target object in the digital scene, wherein the position information may be preset, such as a predetermined center position or edge position of the digital scene;
[0084] Determine, according to the position information and the action effect, an action area (also referred to as an action scope) where the target object in the digital scene triggers the action effect. Specifically, after determining the position information, according to the action effect, it can be determined which position in the digital scene the action will act on after the target object performs the action;
[0085] Specifically, a variety of scopes are embedded in the digital scene. The scope types are point scope, line segment scope, straight line scope, finite surface scope, plane scope, curved surface scope, etc. Among them, the point scope is represented by (x, y, z), which is the only action point in space, the line segment scope is represented by (x1, y1, z1) and (x2, y2, z2), which are the two ends of the line segment, and the straight line scope is represented by (x1, y1, z1) and (x2, y2 ,z2) are any two points on the straight line, the finite surface scope is represented by Ax+By+Cz+D=0, (x1,y1,z1)(x2,y2,z2)(x3,y3,z3) are the three ends of the finite surface, the plane scope is represented by Ax+By+Cz+D=0, which are any three points of the finite surface (x1,y1,z1)(x2,y2,z2)(x3,y3,z3), and the surface scope is represented by an equation.
[0086] Among them, all the above coordinates are points in the rectangular coordinate system of the 3D space established with the lower left corner of the digital scene as the coordinate origin.
[0087] When the target object triggers the action effect, the corresponding action script is executed in the action area to obtain the first fused video, that is, the position where the target object appears in the digital scene is matched and the action script is triggered.
[0088] The first fused video obtained in the above manner makes the fusion of the target object and the digital scene more natural.
[0089] Furthermore, the method further comprises:
[0090] Obtaining weather information and / or time information corresponding to the video scene, that is, recognizing the image and / or audio of the video scene to obtain weather information and / or time information, such as weather information indicating sunny or rainy day, and time information indicating morning or evening or a certain time point;
[0091] Generate a special effect script according to the weather information and / or time information, the special effect script including a weather script and / or a time script;
[0092] The special effects script is executed in the first fused video to obtain a second fused video.
[0093] For example, if the time information of the video scene is identified as evening, the time script generated is to dim the scene color and turn on the lights in the scene; or, if the time information of the video scene is identified as five o'clock in the evening, the time script generated is to dim the scene color and turn on the lights in the scene; or, if the video scene is identified as a rainy day, the weather script is raining outdoors.
[0094] This step can also be understood as pre-embedding action scripts and special effects scripts in the digital scene, and the action scripts and special effects scripts are executed synchronously to directly generate a fused video.
[0095] Combine the following Figure 3 , specifically describe the specific process of the video fusion method provided by the embodiment of the present invention:
[0096] Get the video or picture input by the user, cut out the target object in the video or picture, match the appropriate digital scene according to the video scene, obtain the action scope of the target object according to the action effect of the target object and the position information of the target object in the digital scene, fuse the target object and the digital scene according to the action effect and action scope, and output the fused video.
[0097] The video fusion method provided by the embodiment of the present invention can cut out a target object in a picture or a video into a digital scene, so as to achieve a good fusion effect and a harmonious effect.
[0098] like Figure 4 As shown, the embodiment of the present invention further provides a video fusion device, including:
[0099] The first acquisition module 401 is used to acquire the action information of the target object in the video;
[0100] A second acquisition module 402 is used to acquire the action effect of the target object in the digital scene matching the video according to the action information;
[0101] The first processing module 403 is used to fuse the target object into the digital scene according to the action effect to obtain a first fused video.
[0102] Optionally, the first acquisition module 401 includes:
[0103] An identification unit, used to identify the target object in the video and obtain Euler angle information corresponding to each joint of the target object;
[0104] The first processing unit is used to obtain the motion information of the target object according to the Euler angle information corresponding to each joint.
[0105] Optionally, the second acquisition module 402 includes:
[0106] A first acquisition unit, configured to acquire an action script corresponding to the action effect according to the action effect;
[0107] A first processing unit, configured to merge the target object and the action script into the digital scene;
[0108] The second processing unit is used to execute the corresponding action script when the target object triggers the action effect to obtain the first fused video.
[0109] Optionally, the second processing unit is specifically configured to:
[0110] Acquire the position information of the target object in the digital scene;
[0111] Determine, according to the position information and the action effect, an action area in the digital scene where the target object triggers the action effect;
[0112] When the target object triggers the action effect, the corresponding action script is executed in the action area to obtain the first fused video.
[0113] Optionally, the device further comprises:
[0114] A third acquisition module is used to obtain scene keywords of scenes in the video and weight values corresponding to the scene keywords;
[0115] a second processing module, configured to obtain, according to the scene keyword, at least one first digital scene matching the scene keyword and a matching value between the first digital scene and the scene keyword in a scene library, wherein the scene library includes a plurality of digital scenes, a scene keyword corresponding to each digital scene, and a matching value between each digital scene and the scene keyword;
[0116] A third processing module is used to obtain, for each of the first digital scenes, a matching degree between the first digital scene and the scene in the video according to the scene keyword, the weight value corresponding to the scene keyword and the matching value corresponding to the scene keyword;
[0117] The fourth processing module is configured to use the first digital scene with the highest matching degree as a digital scene matching the video.
[0118] It should be noted that the video fusion device provided in the embodiment of the present invention is a device capable of executing the above-mentioned video fusion method. All embodiments of the above-mentioned video fusion method are applicable to the device and can achieve the same or similar technical effects. The implementation principles and technical effects are similar, and this embodiment will not be repeated here.
[0119] like Figure 5 As shown, the embodiment of the present invention further provides a video fusion device, including a processor 501;
[0120] The processor 501 is configured to:
[0121] Get the action information of the target object in the video;
[0122] Acquiring, according to the action information, an action effect of the target object in a digital scene matching the video;
[0123] According to the action effect, the target object is fused into the digital scene to obtain a first fused video.
[0124] Optionally, the processor 501 is specifically configured to:
[0125] Identify the target object in the video and obtain Euler angle information corresponding to each joint of the target object;
[0126] The motion information of the target object is obtained according to the Euler angle information corresponding to each joint.
[0127] Optionally, the processor 501 is specifically configured to:
[0128] According to the action effect, obtaining an action script corresponding to the action effect;
[0129] integrating the target object and the action script into the digital scene;
[0130] When the target object triggers the action effect, the corresponding action script is executed to obtain the first fused video.
[0131] Optionally, the processor 501 is specifically configured to:
[0132] Acquire the position information of the target object in the digital scene;
[0133] Determine, according to the position information and the action effect, an action area in the digital scene where the target object triggers the action effect;
[0134] When the target object triggers the action effect, the corresponding action script is executed in the action area to obtain the first fused video.
[0135] Optionally, the processor 501 is further configured to:
[0136] Obtaining scene keywords of scenes in the video and weight values corresponding to the scene keywords;
[0137] According to the scene keyword, obtaining at least one first digital scene matching the scene keyword and a matching value between the first digital scene and the scene keyword in a scene library, wherein the scene library includes a plurality of digital scenes, a scene keyword corresponding to each digital scene, and a matching value between each digital scene and the scene keyword;
[0138] For each of the first digital scenes, obtaining a degree of matching between the first digital scene and the scene in the video according to the scene keyword, the weight value corresponding to the scene keyword, and the matching value corresponding to the scene keyword;
[0139] The first digital scene with the highest matching degree is used as the digital scene matching the video.
[0140] It should be noted that the video fusion device provided in the embodiment of the present invention is a device capable of executing the above-mentioned video fusion method, and all embodiments of the above-mentioned video fusion method are applicable to the device and can achieve the same or similar technical effects.
[0141] like Figure 6 As shown, an embodiment of the present invention provides a video fusion device, including: a transceiver 610, a memory 620, a bus interface, a processor 600, and a computer program stored in the memory 620 and executable on the processor 600; the processor 600 is used to read the program in the memory 620, and the transceiver 610 is used to receive and send data under the control of the processor 600.
[0142] The processor 600 executes the following processes:
[0143] Get the action information of the target object in the video;
[0144] Acquiring, according to the action information, an action effect of the target object in a digital scene matching the video;
[0145] According to the action effect, the target object is fused into the digital scene to obtain a first fused video.
[0146] Optionally, the processor 600 is configured to:
[0147] Identify the target object in the video and obtain Euler angle information corresponding to each joint of the target object;
[0148] The motion information of the target object is obtained according to the Euler angle information corresponding to each joint.
[0149] Optionally, the processor 600 is configured to:
[0150] According to the action effect, obtaining an action script corresponding to the action effect;
[0151] integrating the target object and the action script into the digital scene;
[0152] When the target object triggers the action effect, the corresponding action script is executed to obtain the first fused video.
[0153] Optionally, the processor 600 is specifically configured to:
[0154] Acquire the position information of the target object in the digital scene;
[0155] Determine, according to the position information and the action effect, an action area in the digital scene where the target object triggers the action effect;
[0156] When the target object triggers the action effect, the corresponding action script is executed in the action area to obtain the first fused video.
[0157] Optionally, the processor 600 is further configured to:
[0158] Obtaining scene keywords of scenes in the video and weight values corresponding to the scene keywords;
[0159] According to the scene keyword, obtaining at least one first digital scene matching the scene keyword and a matching value between the first digital scene and the scene keyword in a scene library, wherein the scene library includes a plurality of digital scenes, a scene keyword corresponding to each digital scene, and a matching value between each digital scene and the scene keyword;
[0160] For each of the first digital scenes, obtaining a degree of matching between the first digital scene and the scene in the video according to the scene keyword, the weight value corresponding to the scene keyword, and the matching value corresponding to the scene keyword;
[0161] The first digital scene with the highest matching degree is used as the digital scene matching the video.
[0162] Among them, Figure 6 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 600 and memory represented by memory 620. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides a user interface 630. The transceiver 610 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 may store data used by the processor 600 when performing operations.
[0163] The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 can store data used by the processor 600 when performing operations.
[0164] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing relevant hardware through a computer program, wherein the computer program includes instructions for executing part or all of the steps of the above method; and the computer program may be stored in a readable storage medium, and the storage medium may be any form of storage medium.
[0165] In addition, a specific embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the above-mentioned video fusion method are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0166] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0167] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0168] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0169] A specific embodiment of the present invention further provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0170] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A video fusion method, It is characterized in that include: Get the action information of the target object in the video; Acquiring, according to the action information, an action effect of the target object in a digital scene matching the video; According to the action effect, the target object is fused into the digital scene to obtain a first fused video.
2. The method according to claim 1, It is characterized in that Get the action information of the target object in the video, including: Identify the target object in the video and obtain Euler angle information corresponding to each joint of the target object; The motion information of the target object is obtained according to the Euler angle information corresponding to each joint.
3. The method according to claim 1, It is characterized in that According to the action effect, the target object is fused into the digital scene to obtain a first fused video, including: According to the action effect, obtaining an action script corresponding to the action effect; integrating the target object and the action script into the digital scene; When the target object triggers the action effect, the corresponding action script is executed to obtain the first fused video.
4. The method according to claim 3, It is characterized in that When the target object triggers the action effect, executing the corresponding action script to obtain the first fused video includes: Acquire the position information of the target object in the digital scene; Determine, according to the position information and the action effect, an action area in the digital scene where the target object triggers the action effect; When the target object triggers the action effect, the corresponding action script is executed in the action area to obtain the first fused video.
5. The method according to claim 1, It is characterized in that Before obtaining the action effect of the target object in the digital scene matching the video according to the action information, the method further includes: Obtaining scene keywords of scenes in the video and weight values corresponding to the scene keywords; According to the scene keyword, obtaining at least one first digital scene matching the scene keyword and a matching value between the first digital scene and the scene keyword in a scene library, wherein the scene library includes a plurality of digital scenes, a scene keyword corresponding to each digital scene, and a matching value between each digital scene and the scene keyword; For each of the first digital scenes, obtaining a degree of matching between the first digital scene and the scene in the video according to the scene keyword, the weight value corresponding to the scene keyword, and the matching value corresponding to the scene keyword; The first digital scene with the highest matching degree is used as the digital scene matching the video.
6. A video fusion device, It is characterized in that include: A first acquisition module is used to acquire the action information of the target object in the video; A second acquisition module, configured to acquire, according to the action information, an action effect of the target object in a digital scene matching the video; The first processing module is used to fuse the target object into the digital scene according to the action effect to obtain a first fused video.
7. A video fusion device, include: A transceiver, a memory, a processor and a computer program stored in the memory and executable on the processor; wherein the processor is used to read the program in the memory to implement the steps in the video fusion method as described in any one of claims 1 to 5.
8. A video fusion device, It is characterized in that include: processor; The processor is used to obtain the action information of the target object in the video; According to the action information, the action effect of the target object in the digital scene matching the video is obtained; and according to the action effect, the target object is fused into the digital scene to obtain a first fused video.
9. A computer-readable storage medium for storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps in the video fusion method according to any one of claims 1 to 5 are implemented.
10. A computer program product, It is characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the video fusion method according to any one of claims 1 to 5.
