Multimedia resource processing method and apparatus, device, and storage medium
By receiving light source addition operations in multimedia resource processing technology and displaying virtual light sources on video editing pages, the problem of difficulty in improving the video and picture display effects in the prior art is solved, and richer interactive functions and better user experience are achieved.
Patent Information
- Application Number
- PCT/CN2024/121963
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-28
- Filing Date
- 2024-09-27
- Publication Date
- 2025-04-03
AI Technical Summary
Existing multimedia resource processing technology is difficult to meet users' diverse needs for video and picture interaction functions, especially in lighting processing, which is difficult to improve the display effect of video and picture.
A multimedia resource processing method is provided. By receiving a light source addition operation for the target processed image, a target process image with a virtual light source is displayed on the video clip page, and the light source parameter adjustment is supported, including light source type, color, intensity, depth and display position.
The function of adding virtual light sources to the target processing image on the video editing page is realized, which improves the image display effect, meets users' diverse needs for interactive functions, and improves the user's editing experience.
Smart Images

Figure CN2024121963_03042025_PF_FP_ABST
Abstract
Description
Multimedia resource processing method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed on September 28, 2023, with application number 202311277448.3 and invention name “A multimedia resource processing method, device, equipment and storage medium”. The entire contents of the application are incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to the field of data processing, and in particular to a multimedia resource processing method, apparatus, device, and storage medium. Background Art
[0004] With the continuous improvement of multimedia resource processing technology, people's demands for interactive functions supported by multimedia resource editing tools are becoming more and more diverse, such as lighting processing of videos and pictures to improve the display effects of videos and pictures.
[0005] Summary of the Invention
[0006] In order to solve the above technical problems, the embodiments of the present disclosure provide a multimedia resource processing method.
[0007] In a first aspect, the present disclosure provides a method for processing multimedia resources, the method comprising:
[0008] receiving a light source adding operation for a target processing image; wherein the target processing image includes one or more frames of images;
[0009] The target processed image with the first virtual light source is displayed on a video clip page; wherein, the first virtual light source is generated based on the light source adding operation, a video track is displayed on the video clip page, and the target processed image corresponds to all or part of the image frames in the video track.
[0010] In an optional embodiment, after displaying the target processed image with the first virtual light source on the video clip page, the method further includes:
[0011] Displaying a light source parameter adjustment panel on the video clip page;
[0012] In response to a parameter adjustment operation on the light source parameter adjustment panel for the first virtual light source, a display effect of the first virtual light source is updated.
[0013] In an optional embodiment, the adjustable parameters displayed on the light source parameter adjustment panel include light source action objects, and the light source action objects include at least one of a human object, a background object, and a panoramic object. In response to a parameter adjustment operation for the first virtual light source on the light source parameter adjustment panel, updating the display effect of the first virtual light source includes:
[0014] In response to a parameter adjustment operation on the light source parameter adjustment panel for the light source action object, identifying a target light source action object on the target processing object;
[0015] The display effect of the first virtual light source acting on the target light source action object on the target processed image is displayed.
[0016] In an optional embodiment, the adjustable parameters displayed on the light source parameter adjustment panel include at least one of the following:
[0017] Light source type, light source color information, light source intensity, light source depth, and light source display position; wherein the light source type includes a point light source type and / or a parallel light type.
[0018] In an optional implementation, the receiving of a light source adding operation for a target processed image includes:
[0019] A trigger operation of selecting the first virtual light source from a plurality of predefined virtual light sources for a target processing image is received; wherein the predefined virtual light source carries preset light source parameters.
[0020] In an optional implementation, the receiving of a light source adding operation for a target processed image includes:
[0021] A custom light source operation for a target processed image is received; wherein the custom light source operation is used to trigger adjustment of initial parameters of the first virtual light source.
[0022] In an optional embodiment, displaying the target processed image with the first virtual light source on the video clip page includes:
[0023] The target processed image with at least two virtual light sources is displayed on the video clip page; wherein the at least two virtual light sources include the first virtual light source.
[0024] In an optional implementation, the method further includes:
[0025] In response to the removal operation on the first virtual light source, the first virtual light source is removed from the target processing image.
[0026] In an optional implementation, the method further includes:
[0027] In response to a drag operation performed within the display area of the first virtual light source, the first virtual light source is displayed along a drag track corresponding to the drag operation.
[0028] In an optional implementation, the method further includes:
[0029] In response to a first effect contrast operation on the target processed image, hiding the first virtual light source on the target processed image;
[0030] In response to a second effect contrast operation on the target processing image, the first virtual light source on the target processing image is redisplayed.
[0031] In an optional implementation, the method further includes:
[0032] In response to the light source setting completion operation for the target processed image, a result video is generated based on the target processed image with the first virtual light source acting on it; wherein the result video includes the target processed image with the first virtual light source acting on it.
[0033] In an optional embodiment, the target processing image includes a first target image and a second target image, and the receiving a light source adding operation for the target processing image includes:
[0034] receiving an operation of adding a second virtual light source to the first target image, and receiving an operation of adding a third virtual light source to the second target image;
[0035] Accordingly, the method further includes:
[0036] Based on the first target image, the second target image, the second virtual light source and the third virtual light source, virtual light sources corresponding to the image frames in the target video segment are generated; wherein the target video segment includes image frames between the first target image and the second target image.
[0037] In a second aspect, the present disclosure provides a multimedia resource processing device, the device comprising:
[0038] A receiving module, configured to receive a light source adding operation for a target processing image; wherein the target processing image includes one or more frames of images;
[0039] A display module is used to display the target processed image with the first virtual light source on a video clip page; wherein, a video track is displayed on the video clip page, and the target processed image corresponds to all or part of the image frames in the video track.
[0040] In a third aspect, the present disclosure provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a terminal device, the terminal device implements the above method.
[0041] In a fourth aspect, the present disclosure provides a multimedia resource processing device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method when executing the computer program.
[0042] In a fifth aspect, the present disclosure provides a computer program product, which includes a computer program / instructions, and the computer program / instructions implement the above method when executed by a processor.
[0043] The technical solution provided by the embodiments of the present disclosure has at least the following advantages compared with the prior art:
[0044] An embodiment of the present disclosure provides a multimedia resource processing method. First, a light source adding operation for a target processing image is received, wherein the target processing image includes one or more frames of images, and the target processing image with a first virtual light source is displayed on a video clip page, wherein the first virtual light source is generated based on the light source adding operation. A video track is displayed on the video clip page, and the target processing image corresponds to all or part of the image frames in the video track. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0046] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0047] FIG1 is a flowchart of a multimedia resource processing method provided by an embodiment of the present disclosure;
[0048] FIG2 is a schematic diagram of a video editing page provided by an embodiment of the present disclosure;
[0049] FIG3 is a schematic diagram of a video editing page provided by an embodiment of the present disclosure;
[0050] FIG4 is a schematic diagram of a video editing page provided by an embodiment of the present disclosure;
[0051] FIG5 is a schematic diagram of a video editing page provided by an embodiment of the present disclosure;
[0052] FIG6 is a schematic diagram of another video editing page provided by an embodiment of the present disclosure;
[0053] FIG7 is a schematic structural diagram of a multimedia resource processing device provided by an embodiment of the present disclosure;
[0054] FIG8 is a schematic structural diagram of a multimedia resource processing device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0055] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.
[0056] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0057] With the continuous improvement of multimedia resource processing technology, people's demands for interactive functions supported by multimedia resource editing tools are becoming more and more diverse, such as lighting processing of videos and pictures to improve the display effects of videos and pictures.
[0058] Therefore, how to enrich multimedia resource processing related functions to improve user experience is a technical problem that needs to be solved urgently.
[0059] To this end, in the multimedia resource processing method provided by the embodiment of the present disclosure, first, a light source addition operation for a target processing image is received, wherein the target processing image includes one or more frames of images, and the target processing image with a first virtual light source is displayed on a video editing page, wherein the first virtual light source is generated based on the light source addition operation, and a video track is displayed on the video editing page, and the target processing image corresponds to all or part of the image frames in the video track. It can be seen that the embodiment of the present disclosure can support the function of adding a virtual light source to the target processing image on the video editing page to improve the display effect of the target processing image, thereby improving the user's editing experience.
[0060] Based on this, an embodiment of the present disclosure provides a multimedia resource processing method. Referring to FIG1 , which is a flowchart of a multimedia resource processing method provided by an embodiment of the present disclosure, the method includes:
[0061] S101: Receive a light source adding operation for a target processing image.
[0062] The target processed image includes one or more frames of images.
[0063] The multimedia resource processing method provided by the embodiments of the present disclosure can be applied to a client. For example, the client may include a mobile client deployed on a smart phone, tablet computer, etc. (referred to as a mobile client), and may also include a PC client deployed on a desktop computer (referred to as a PC client).
[0064] In an embodiment of the present disclosure, the target processed image may include one or more frames of images. For example, the target processed image may be one or more frames of images selected in the target video. The light source adding operation for the target processed image is used to add a virtual light source to the target processed image, thereby improving the display effect of the target processed image.
[0065] It should be noted that, in the embodiment of the present disclosure, through the light source adding operation, the user can add multiple virtual light sources to the same target processing image, and there is no restriction on the number of light sources added in the embodiment of the present disclosure.
[0066] S102: Displaying the target processed image with the first virtual light source on a video clip page.
[0067] The first virtual light source is generated based on the light source adding operation, a video track is displayed on the video clip page, and the target processed image corresponds to all or part of the image frames in the video track.
[0068] In the disclosed embodiment, the video editing page is used to support editing operations on multimedia resources such as videos.
[0069] As shown in Figure 2, a video clipping page provided by an embodiment of the present disclosure is shown on the video clipping page, which displays a target processing image 201 and a video track, wherein the target processing image belongs to all or part of the image frames in the video track.
[0070] In the embodiment of the present disclosure, the first virtual light source is a virtual light source added to the target processed image based on a light source adding operation. The first virtual light source may be any virtual light source acting on the target processed image.
[0071] In an embodiment of the present disclosure, a target processed image with a first virtual light source is displayed on a video editing page. When a trigger operation for setting a light source is received, a light source parameter adjustment panel can be pulled up at the bottom of the video editing page. A light source setting control can be preset for the light source setting operation to implement the light source setting operation for the target processed image, as shown in light source setting control 202 on the video editing page in FIG. 2 .
[0072] In the embodiment of the present disclosure, the light source parameter adjustment panel is used to display the light source parameters corresponding to the first virtual light source. The light source parameters may include adjustable parameters and non-adjustable parameters, which can be set based on specific needs.
[0073] In an optional embodiment, the adjustable parameters displayed on the light source parameter adjustment panel may include at least one of the following: light source type, light source color information, light source intensity, light source depth, and light source display position, wherein the light source type includes a point light source type and / or a parallel light type.
[0074] Specifically, for the adjustment of light source color information, the color of the first virtual light source can be adjusted based on the color palette; for the light source intensity and light source depth, the intensity and depth of the virtual light source can be adjusted based on the slider, and the sliding range of the slider can be set based on specific needs; for the light source display position, it can be displayed based on the canvas range, and the default display position is the center position; for the point light source type, the size of the point light source can be adjusted based on the half price of the point light source; in addition, a picture adjustment dial can be set to adjust the overall brightness of the target processed image.
[0075] In another optional embodiment, the adjustable parameters displayed on the light source parameter adjustment panel may also include the light source action object, and the light source action object includes at least one of a human object, a background object, and a panoramic object. When it is detected that the target processing image does not contain a human object, the related light source processing operations for the human object in the light source action object can be set to an unusable state, for example, it can be a grayed-out state, and can also be set to a hidden (not displayed) state.
[0076] FIG3 is a schematic diagram of a video editing page provided by an embodiment of the present disclosure. The video editing page displays a target processing image. At the bottom of the video editing page, a light source parameter adjustment panel 301 is pulled up. The light source parameter adjustment panel 301 displays light source parameters corresponding to a first virtual light source, such as light source type, light source color information, light source intensity, and the object to which the light source acts. By sliding the light source parameter adjustment panel upward, more light source parameters corresponding to the first virtual light source can be displayed.
[0077] By displaying the light source parameters corresponding to the first virtual light source on the light source parameter adjustment panel, more detailed light source settings for the target processing image can be achieved, thereby meeting user needs and improving user experience.
[0078] In the embodiment of the present disclosure, when a parameter adjustment operation for the first virtual light source on the light source parameter adjustment panel is received, the display effect of the first virtual light source is updated.
[0079] Specifically, when a parameter adjustment operation for a light source action object is received on the light source parameter adjustment panel, the target light source action object on the target processing object is identified, and the display effect of the first virtual light source acting on the target light source action object on the target processing image is displayed.
[0080] The parameter adjustment operation for the light source action object may include a triggering operation for the light source action object display area, and may also include a triggering operation for a control corresponding to each light source action object.
[0081] In the embodiment of the present disclosure, the target light source acting object on the target processing object is identified, and the target light source acting object on the target processing object can be identified based on a recognition model.
[0082] In an optional embodiment, corresponding light source action controls are set for the light source action objects including human objects, background objects, and panoramic objects. By triggering the light source action controls, the target light source action object is determined, and then the target light source action object on the target processing object is identified based on the recognition model.
[0083] In the embodiment of the present disclosure, light source parameters are displayed on a light source parameter adjustment panel to support the user in performing light source processing on a target processed image, thereby displaying target processed images with different effects.
[0084] Furthermore, while displaying a processed target image with a first virtual light source on a video editing page, you can also add multiple virtual light sources to support secondary light source processing of the same processed target image. Specifically, by triggering the light source add control to add a second virtual light source on the video editing page, the processed target image with at least two virtual light sources, including the first virtual light source, is displayed on the video editing page.
[0085] Figure 4 shows a schematic diagram of a video editing page provided by an embodiment of the present disclosure. The video editing page displays a target processed image. By triggering the light source addition control 401, a second virtual light source 403 is added to the video editing page. At this point, the virtual light sources acting on the target processed image are the first virtual light source 401 and the second virtual light source 403. A light source parameter addition panel is also displayed, displaying the light source parameters corresponding to the first virtual light source 401. Virtual light sources can be switched using the virtual light source switching operation.
[0086] The disclosed embodiment provides a multimedia resource processing method. First, a light source addition operation is received for a target processing image, wherein the target processing image includes one or more frames of images. The target processing image is displayed on a video editing page with a first virtual light source, wherein the first virtual light source is generated based on the light source addition operation. A video track is displayed on the video editing page, and the target processing image corresponds to all or part of the image frames in the video track. It can be seen that the disclosed embodiment can support the function of adding a virtual light source to the target processing image on the video editing page to improve the display effect of the target processing image, thereby improving the user's editing experience.
[0087] In practical applications, to display target processed images with different effects and meet the image processing needs of different groups of people, different types of virtual light sources are pre-set in the system in the disclosed embodiments. Specifically, these can include basic facial light sources, colored light sources, creative light sources, etc. These virtual light sources carry pre-set light source parameters. Among them, colored light sources are a combination of point light sources and parallel light sources, and creative light sources are a combination of special lighting effects, such as breathing light and firefly light.
[0088] In an optional embodiment, the client receives a light source setting operation for a target processed image, and then displays a light source parameter adjustment panel on a video clip page, wherein the light source parameter adjustment panel displays multiple predefined virtual light sources, wherein the predefined virtual light sources carry pre-set light source parameters, and when the client receives a trigger operation of selecting a first virtual light source from multiple predefined virtual light sources, the display effect of the first virtual light source is updated.
[0089] It should be noted that the user may also perform secondary light source parameter adjustment based on the preset light source parameters carried by the predefined virtual light source to meet the user's own needs.
[0090] In actual applications, in order to further meet user needs and enhance user experience, the implementation of this disclosure also supports user-defined light sources to further meet user needs for image processing.
[0091] Specifically, the client receives a light source setting operation for a target processed image, and then displays a light source parameter adjustment panel on a video clip page, wherein the light source parameter adjustment panel displays a custom virtual light source, receives a custom light source operation for a target processed image, and updates the display effect of the first virtual light source, wherein the custom light source operation is used to trigger adjustment of the initial parameters of the first virtual light source.
[0092] FIG5 is a schematic diagram of a video editing page provided by an embodiment of the present disclosure. The video editing page displays a target processing image. When the client receives a light source setting operation for the target processing image, a light source parameter adjustment panel is displayed on the video editing page. The light source parameter adjustment panel displays multiple predefined virtual light sources, such as 501. The predefined virtual light sources 501 include a first virtual light source 503 and a custom virtual light source display area 502.
[0093] When the client receives a trigger operation to select the first virtual light source 503 from a plurality of predefined virtual light sources, the first virtual light source 503 is displayed on the target processed image, and the display effect of the target processed image under the first virtual light source is updated.
[0094] FIG3 is a schematic diagram of a video editing page provided by an embodiment of the present disclosure. The video editing page displays a light source parameter adjustment panel. When a trigger operation is received for the first virtual light source, the light source parameter adjustment panel displays the pre-set light source parameters of the first virtual light source 503. By triggering the light source parameters of the first virtual light source, secondary light source parameter adjustments can be performed on the target processed image.
[0095] In actual applications, to support the user to remove the first virtual light source, in the embodiment of the present disclosure, a corresponding removal operation is also set for the first virtual light source. Specifically, when the removal operation for the first virtual light source is received, the first virtual light source is removed from the target processed image.
[0096] Among them, the removal operation may include a selection operation based on the first virtual light source, and when a deletion control appears, the removal operation of the first virtual light source is performed; it may also include setting a deletion control on the light source parameter adjustment panel, and performing the removal operation of the first virtual light source by triggering the deletion control on the light source parameter adjustment panel.
[0097] FIG6 is a schematic diagram of a video editing page provided in an embodiment of the present disclosure. The video editing page displays a target processing image, wherein a first virtual light source acts on the target processing image. When a corresponding first virtual light source 602 on the target processing image is selected, a delete control 601 appears. When a remove operation is received for the first virtual light source, the first virtual light source 602 can be removed from the target processing image.
[0098] In addition, in the embodiment of the present disclosure, not only the removal operation of the first virtual light source is supported, but also the dragging operation of the first virtual light source is supported to adjust the position of the first virtual light source.
[0099] Specifically, when a drag operation acting within the display area of the first virtual light source is received, the first virtual light source is displayed along a drag track corresponding to the drag operation.
[0100] In the embodiment of the present disclosure, the dragging operation within the display area of the first virtual light source can be specifically to long press the first virtual light source within the display area of the first virtual light source on the target processing image, and then move the first virtual light source to display the first virtual light source along the corresponding dragging trajectory.
[0101] The embodiment of the present disclosure further supports comparison of effects of the target processed image before and after processing after the processing of the first virtual light source of the target processed image is completed.
[0102] Specifically, when a first effect comparison operation is received for the target processed image, the first virtual light source on the target processed image is hidden; when a second effect comparison operation is received for the target processed image, the first virtual light source on the target processed image is redisplayed.
[0103] Among them, the effect comparison operation can preset a comparison control, and by triggering the comparison control, the corresponding effect diagram is displayed.
[0104] In an optional embodiment, when a trigger operation of a preset contrast control for a target processed image is received, the first virtual light source on the target processed image is hidden; when a second trigger operation of the preset contrast control for the target processed image is received, the first virtual light source on the target processed image is redisplayed.
[0105] In another optional embodiment, when a long press operation of a preset contrast control for a target processed image is received, the first virtual light source on the target processed image is hidden; when the long press operation of the preset contrast control for the target processed image ends, the first virtual light source on the target processed image is redisplayed.
[0106] In actual applications, after the light source setting of the target processed image in the entire video clip is completed, the embodiment of the present disclosure can generate a result video based on the target processed image with completed light source setting and other video image frames to support users to browse the video editing effect as a whole.
[0107] Specifically, when a light source setting completion operation for a target processing image is received, a result video is generated based on the target processing image with the first virtual light source acting on it, wherein the result video includes the target processing image with the first virtual light source acting on it.
[0108] In an embodiment of the present disclosure, the light source setting completion operation may set a light source setting completion control for synthesizing the target processed image and the non-target processed image in the video clip to generate a result video.
[0109] In an optional embodiment, when a trigger operation of the light source setting completion control for the target processing image is received, the target processing image and the non-target processing image in the video clip are synthesized, and the synthesis progress is displayed on the video clip page to show the user the synthesis status and the light source setting application status in real time.
[0110] In the disclosed embodiment, key frames may be set for important target processing images. Specifically, the adjustable parameters of the key frames may include color, position, and other adjustable parameters to highlight the target processing image.
[0111] Specifically, the target processed image includes a first target image and a second target image. When an operation of adding a second virtual light source to the first target image is received, and when an operation of adding a third virtual light source to the second target image is received, virtual light sources corresponding to the image frames in the target video clip are generated based on the first target image, the second target image, the second virtual light source and the third virtual light source, wherein the target video clip includes image frames between the first target image and the second target image.
[0112] By setting keyframes for the target processed image, it is possible to support the focused display of the target video segment, thereby improving the playback effect of the target video segment and enhancing the browsing experience of the viewing users.
[0113] Based on the above method embodiment, the present disclosure further provides a multimedia resource processing device. Referring to FIG7 , which is a schematic structural diagram of a multimedia resource processing device provided in an embodiment of the present disclosure, the device includes:
[0114] The receiving module 701 is configured to receive a light source adding operation for a target processing image, wherein the target processing image includes one or more frames of images;
[0115] The display module 702 is used to display the target processed image with the first virtual light source on the video clip page; wherein, the first virtual light source is generated based on the light source adding operation, a video track is displayed on the video clip page, and the target processed image corresponds to all or part of the image frames in the video track.
[0116] In an optional embodiment, the device further includes:
[0117] A first display module, configured to display a light source parameter adjustment panel on the video clip page;
[0118] An updating module is configured to update a display effect of the first virtual light source in response to a parameter adjustment operation on the light source parameter adjustment panel for the first virtual light source.
[0119] In an optional embodiment, the adjustable parameters displayed on the light source parameter adjustment panel include a light source action object, and the light source action object includes at least one of a person object, a background object, and a panoramic object. The updating module includes:
[0120] an identification module, configured to identify a target light source action object on the target processing object in response to a parameter adjustment operation on the light source parameter adjustment panel for the light source action object;
[0121] The second display module is configured to display a display effect of the first virtual light source acting on the target light source action object on the target processed image.
[0122] In an optional embodiment, the adjustable parameters displayed on the light source parameter adjustment panel include at least one of the following:
[0123] Light source type, light source color information, light source intensity, light source depth, and light source display position; wherein the light source type includes a point light source type and / or a parallel light type.
[0124] In an optional implementation manner, the receiving module is specifically configured to:
[0125] A trigger operation of selecting the first virtual light source from a plurality of predefined virtual light sources for a target processing image is received; wherein the predefined virtual light source carries preset light source parameters.
[0126] In an optional implementation manner, the receiving module is specifically configured to:
[0127] A custom light source operation for a target processed image is received; wherein the custom light source operation is used to trigger adjustment of initial parameters of the first virtual light source.
[0128] In an optional embodiment, the display module is specifically used to:
[0129] The target processed image with at least two virtual light sources is displayed on the video clip page; wherein the at least two virtual light sources include the first virtual light source.
[0130] In an optional embodiment, the device further includes:
[0131] A removing module is configured to remove the first virtual light source from the target processed image in response to a removing operation on the first virtual light source.
[0132] In an optional embodiment, the device further includes:
[0133] The third display module is configured to display the first virtual light source along a dragging track corresponding to the dragging operation in response to a dragging operation performed within the display area of the first virtual light source.
[0134] In an optional embodiment, the device further includes:
[0135] a hiding module, configured to hide the first virtual light source on the target processed image in response to a first effect comparison operation on the target processed image;
[0136] A fourth display module is configured to redisplay the first virtual light source on the target processed image in response to a second effect comparison operation on the target processed image.
[0137] In an optional embodiment, the device further includes:
[0138] The first generating module is used to generate a result video based on the target processed image with the first virtual light source in response to the completion operation of the light source setting for the target processed image; wherein the result video includes the target processed image with the first virtual light source.
[0139] In an optional implementation manner, the target processing image includes a first target image and a second target image, and the receiving module is specifically configured to:
[0140] receiving an operation of adding a second virtual light source to the first target image, and receiving an operation of adding a third virtual light source to the second target image;
[0141] Accordingly, the device further includes:
[0142] The second generation module is used to generate virtual light sources corresponding to the image frames in the target video clip based on the first target image, the second target image, the second virtual light source and the third virtual light source; wherein the target video clip includes the image frames between the first target image and the second target image.
[0143] In the multimedia resource processing device provided by the embodiment of the present disclosure, first, a light source addition operation for a target processing image is received, wherein the target processing image includes one or more frames of images, and the target processing image with a first virtual light source is displayed on a video editing page, wherein the first virtual light source is generated based on the light source addition operation, and a video track is displayed on the video editing page, and the target processing image corresponds to all or part of the image frames in the video track. It can be seen that the embodiment of the present disclosure can support the function of adding a virtual light source to the target processing image on the video editing page to improve the display effect of the target processing image, thereby improving the user's editing experience.
[0144] In addition to the above-mentioned method and apparatus, the embodiments of the present disclosure further provide a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal device, the terminal device implements the multimedia resource processing method described in the embodiments of the present disclosure.
[0145] The embodiments of the present disclosure further provide a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the multimedia resource processing method described in the embodiments of the present disclosure is implemented.
[0146] In addition, the embodiment of the present disclosure further provides a multimedia resource processing device, as shown in FIG8 , which may include:
[0147] Processor 801, memory 802, input device 803, and output device 804. The number of processors 801 in the multimedia resource processing device can be one or more, and Figure 8 uses one processor as an example. In some embodiments of the present disclosure, the processor 801, memory 802, input device 803, and output device 804 can be connected via a bus or other means, wherein Figure 8 uses the bus connection as an example.
[0148] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing of the multimedia resource processing device by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The input device 803 may be used to receive input digital or character information, and to generate signal input related to user settings and function control of the multimedia resource processing device.
[0149] Specifically in this embodiment, the processor 801 will load the executable files corresponding to the processes of one or more applications into the memory 802 according to the following instructions, and the processor 801 will run the applications stored in the memory 802, thereby realizing the various functions of the above-mentioned multimedia resource processing device.
[0150] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any 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 other identical elements in the process, method, article, or device comprising the element.
[0151] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those 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 intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.
Claims
1. A multimedia resource processing method, the method comprising: Receiving a light source adding operation for a target processing image; wherein the target processing image includes one or more frames of images; The target processed image with the first virtual light source is displayed on a video clip page; wherein the first virtual light source is generated based on the light source adding operation, a video track is displayed on the video clip page, and the target processed image corresponds to all or part of the image frames in the video track.
2. The method according to claim 1, wherein after displaying the target processed image with the first virtual light source on the video clip page, the method further comprises: Displaying a light source parameter adjustment panel on the video clip page; In response to a parameter adjustment operation on the light source parameter adjustment panel for the first virtual light source, a display effect of the first virtual light source is updated.
3. The method according to claim 2, wherein the adjustable parameters displayed on the light source parameter adjustment panel include light source action objects, and the light source action objects include at least one of a person object, a background object, and a panoramic object, and the updating of the display effect of the first virtual light source in response to the parameter adjustment operation on the light source parameter adjustment panel for the first virtual light source comprises: In response to a parameter adjustment operation on the light source parameter adjustment panel for the light source action object, identifying a target light source action object on the target processing object; The display effect of the first virtual light source acting on the target light source action object on the target processed image is displayed.
4. The method according to claim 2, wherein the adjustable parameters displayed on the light source parameter adjustment panel include at least one of the following: Light source type, light source color information, light source intensity, light source depth, and light source display position; among which, The light source type includes a point light source type and / or a parallel light type.
5. The method according to claim 1, wherein the receiving a light source adding operation for a target processing image comprises: A trigger operation of selecting the first virtual light source from a plurality of predefined virtual light sources for a target processing image is received; wherein the predefined virtual light source carries pre-set light source parameters.
6. The method according to claim 1, wherein the receiving a light source adding operation for a target processing image comprises: A custom light source operation for a target processed image is received; wherein the custom light source operation is used to trigger adjustment of initial parameters of the first virtual light source.
7. The method according to claim 1, wherein displaying the target processed image with the first virtual light source on the video clip page comprises: The target processed image with at least two virtual light sources acting thereon is displayed on the video clip page; wherein the at least two virtual light sources include the first virtual light source.
8. The method according to claim 1, wherein the method further comprises: In response to a removal operation on the first virtual light source, the first virtual light source is removed from the target processed image.
9. The method according to claim 1, wherein the method further comprises: In response to a drag operation performed within the display area of the first virtual light source, the first virtual light source is displayed along a drag track corresponding to the drag operation.
10. The method according to claim 1, wherein the method further comprises: In response to a first effect contrast operation on the target processed image, hiding the first virtual light source on the target processed image; In response to a second effect contrast operation on the target processed image, the first virtual light source on the target processed image is redisplayed.
11. The method according to claim 1, wherein the method further comprises: In response to the light source setting completion operation for the target processed image, a result video is generated based on the target processed image with the first virtual light source acting on it; wherein the result video includes the target processed image with the first virtual light source acting on it.
12. The method according to claim 1, wherein the target processing image comprises a first target image and a second target image, and the receiving a light source adding operation for the target processing image comprises: receiving an operation of adding a second virtual light source to the first target image, and receiving an operation of adding a third virtual light source to the second target image; Accordingly, the method further includes: Based on the first target image, the second target image, the second virtual light source and the third virtual light source, virtual light sources corresponding to image frames in a target video segment are generated; wherein the target video segment includes image frames between the first target image and the second target image.
13. A multimedia resource processing device, wherein the device comprises: A receiving module, used to receive a light source adding operation for a target processing image; wherein the target processing image includes one or more frames of images; A display module is used to display the target processed image with a first virtual light source on a video clip page; wherein the first virtual light source is generated based on the light source adding operation, a video track is displayed on the video clip page, and the target processed image corresponds to all or part of the image frames in the video track.
14. A computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 12.
15. A multimedia resource processing device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Method and device for image rendering
CN103606182A
Image processing method, terminal and computer readable storage medium
CN107770454A
Electronic device for processing image and method for controlling the same
US20160364602A1
Methods and systems for providing virtual lighting
US20160366323A1
Image processing apparatus, image processing method, and storage medium
US20210329156A1