Image editing method, device and related product

CN123015725APending Publication Date: 2026-10-30BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510495072.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

然而,不同的编辑场景可能具有相同或者相近的图像编辑组件,如常规编辑场景和高级编辑场景中都具有在图像中添加贴纸的组件,预先创建各个编辑场景且各个编辑场景之间相互隔离的方式,导致图像编辑组件重复开发,降低编辑场景的创建效率

Benefits of technology

[0010]在本公开一个或多个实施例中,首先,响应于针对图像的编辑指令,在多个编辑场景中确定图像对应的第一编辑场景,确定用于搭建第一编辑场景的第一图像编辑组件,获取第一图像编辑组件的功能需求信息,然后,获取多个编辑服务的编辑能力,在各个编辑服务的编辑能力中,选取与第一图像编辑组件的功能需求信息相匹配的编辑能力,编辑能力为编辑服务的最小编辑能力单元,最后,基于所选取的编辑能力,创建第一图像编辑组件,基于第一图像编辑组件,搭建第一编辑场景,基于第一编辑场景对图像进行编辑。可见,通过本实施例,能够在对图像进行编辑时,确定用于编辑图像的第一编辑场景,基于多个编辑服务的编辑能力,创建第一编辑场景中的第一图像编辑组件,进而搭建第一编辑场景,基于第一编辑场景对图像进行编辑。与相关技术中的预先创建各个编辑场景且各个编辑场景之间相互隔离的实现方式相比,通过对编辑服务的编辑能力进行最小化并选择合适的编辑能力来创建编辑场景的方式,无需预先创建各个编辑场景并进行隔离,无需重复开发不同编辑场景中的相同图像编辑组件,提高编辑场景的创建效率,有效缓解相关技术中预先创建各个编辑场景且各个编辑场景之间相互隔离所导致的图像编辑组件重复开发,降低编辑场景的创建效率的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123015725A_ABST
    Figure CN123015725A_ABST
Patent Text Reader

Abstract

The embodiment of the present disclosure provides an image editing method, device and related product, wherein the method comprises: in response to an editing instruction for an image, determining a first editing scene corresponding to the image in multiple editing scenes, determining a first image editing component for building the first editing scene, and acquiring function requirement information of the first image editing component; acquiring editing capabilities of multiple editing services, selecting an editing capability matched with the function requirement information of the first image editing component from the editing capabilities of the editing services, wherein the editing capability is a minimum editing capability unit of the editing service; based on the selected editing capability, creating the first image editing component, building the first editing scene based on the first image editing component, and editing the image based on the first editing scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and in particular to an image editing method, apparatus and related products. Background Technology

[0002] In related technologies, users can edit images using image editing applications. These applications offer multiple editing scenarios, such as standard and advanced editing scenarios. In standard editing scenarios, one or more frames of an image to be edited are treated as a whole, and stickers, text, effects, audio, and other editing elements can be added to each frame. In advanced editing scenarios, images and editing elements such as stickers, text, and audio each have their own tracks, allowing for frame-level matching between images and editing elements based on these tracks.

[0003] In related technologies, various editing scenes are pre-created and isolated from each other, and the appropriate editing scene is called according to the user's editing needs. However, different editing scenes may have the same or similar image editing components. For example, both regular and advanced editing scenes have components for adding stickers to images. The method of pre-creating various editing scenes and isolating them from each other leads to the repeated development of image editing components, reducing the efficiency of editing scene creation. Summary of the Invention

[0004] This disclosure provides an image editing method, apparatus, and related products that can alleviate the problem of redundant development of image editing components and reduced efficiency in creating editing scenes caused by the pre-creation of various editing scenes and the isolation between them in related technologies.

[0005] In a first aspect, embodiments of this disclosure provide an image editing method, including: In response to an editing instruction for an image, a first editing scenario corresponding to the image is determined among multiple editing scenarios, a first image editing component for building the first editing scenario is determined, and functional requirement information of the first image editing component is obtained; The editing capabilities of multiple editing services are acquired, and among the editing capabilities of each editing service, the editing capability that matches the functional requirements information of the first image editing component is selected; the editing capability is the smallest editing capability unit of the editing service. Based on the selected editing capabilities, a first image editing component is created; based on the first image editing component, a first editing scene is constructed; and the image is edited based on the first editing scene.

[0006] Secondly, embodiments of this disclosure provide an image editing apparatus, comprising: An information acquisition unit is used to respond to an editing instruction for an image, determine a first editing scenario corresponding to the image among multiple editing scenarios, determine a first image editing component for building the first editing scenario, and acquire functional requirement information of the first image editing component; A capability selection unit is used to acquire the editing capabilities of multiple editing services, and select the editing capability that matches the functional requirements information of the first image editing component from the editing capabilities of each editing service; the editing capability is the smallest editing capability unit of the editing service; An image editing unit is configured to create a first image editing component based on the selected editing capabilities, construct a first editing scene based on the first image editing component, and edit the image based on the first editing scene.

[0007] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor; and a memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the steps of the method described in the first aspect above.

[0008] Fourthly, embodiments of this disclosure provide a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the steps of the method described in the first aspect above.

[0009] Fifthly, embodiments of this disclosure provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect above.

[0010] In one or more embodiments of this disclosure, firstly, in response to an editing instruction for an image, a first editing scene corresponding to the image is determined among multiple editing scenes; a first image editing component for constructing the first editing scene is determined; functional requirement information of the first image editing component is obtained; then, the editing capabilities of multiple editing services are obtained; among the editing capabilities of each editing service, an editing capability matching the functional requirement information of the first image editing component is selected, where the editing capability is the smallest editing capability unit of the editing service; finally, based on the selected editing capability, the first image editing component is created; based on the first image editing component, the first editing scene is constructed; and the image is edited based on the first editing scene. Therefore, through this embodiment, when editing an image, a first editing scene for editing the image can be determined, a first image editing component in the first editing scene can be created based on the editing capabilities of multiple editing services, thereby constructing the first editing scene, and the image can be edited based on the first editing scene. Compared with the implementation method in related technologies that pre-creates each editing scene and isolates them from each other, the method of creating editing scenes by minimizing the editing capabilities of the editing service and selecting appropriate editing capabilities eliminates the need to pre-create and isolate each editing scene, and avoids the repeated development of the same image editing components in different editing scenes. This improves the efficiency of editing scene creation and effectively alleviates the problem of repeated development of image editing components and reduced efficiency of editing scene creation caused by pre-creating and isolating each editing scene in related technologies. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in one or more embodiments or related technologies of this disclosure, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Figure 1a A schematic diagram of a conventional editing scenario provided in an embodiment of this disclosure; Figure 1b A schematic diagram of an advanced editing scenario provided in an embodiment of this disclosure; Figure 2 This is a schematic flowchart of an image editing method provided in an embodiment of the present disclosure; Figure 3 A schematic diagram illustrating the editing capabilities of an editing service provided according to an embodiment of this disclosure; Figure 4 A schematic diagram illustrating the editing capabilities of an image editing component and various editing services provided in an embodiment of this disclosure; Figure 5This is a schematic diagram illustrating image editing according to an embodiment of the present disclosure; Figure 6 This is a schematic diagram illustrating the switching of editing scenes according to an embodiment of the present disclosure; Figure 7 This is a schematic diagram of the structure of an image editing apparatus provided in an embodiment of the present disclosure; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0012] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this disclosure, the technical solutions in one or more embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of the embodiments. Based on one or more embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this disclosure.

[0013] It is understood that before using the technical solutions disclosed in the embodiments of this disclosure, relevant parties should be informed of the type, scope of use, and usage scenarios of the information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and authorization from the relevant parties should be obtained.

[0014] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0015] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0016] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0017] This disclosure provides an image editing method that can alleviate the problem of redundant development of image editing components and reduced efficiency in creating editing scenes caused by the pre-creation of various editing scenes and the isolation between them in related technologies.

[0018] To facilitate understanding of this embodiment, the terms "editing scene," "editing service," "editing element," and "image editing component" will first be explained. An editing scene refers to a scenario in which an image is edited. The images in the various embodiments of this disclosure can be single images, such as static or dynamic images, or video data composed of multiple frames. In one example, the editing scene includes a regular editing scene and an advanced editing scene. Figure 1a This is a schematic diagram of a conventional editing scenario provided in an embodiment of this disclosure. Figure 1b This is a schematic diagram of an advanced editing scenario provided in one embodiment of this disclosure. Figure 1a As shown, in a typical editing scenario, the frame or multiple frames to be edited are treated as a whole, and editing elements such as stickers, text, effects, and audio can be added to each frame. For example... Figure 1b As shown, in advanced editing scenarios, images, stickers, text, audio, and other editing elements each have their own tracks, allowing for frame-level matching between images and editing elements based on these tracks. Of course, editing scenarios can also include image and text editing scenarios, AI (Artificial Intelligence) editing scenarios, and many others; this is not a limitation here.

[0019] Editing services refer to services used for editing images, including but not limited to audio addition services, filter addition services, sticker addition services, text addition services, special effects addition services, beauty enhancement services, picture-in-picture addition services, image cutout services, track services for setting images and editing elements, and image parameter adjustment services such as cropping. Each editing service has its own editing capabilities, and editing services achieve image editing through their own editing capabilities. Taking audio addition services as an example, the editing capability of audio addition services is to add audio to images.

[0020] Editable elements refer to elements added to an image based on editing services, including but not limited to audio, filters, stickers, text, effects, beautification, picture-in-picture, etc. The editing capabilities provided by the editing service allow you to set tracks for images and editable elements, such as tracks for images, audio, text, and stickers.

[0021] Image editing components refer to components provided in the editing interface corresponding to the editing scene, used to implement editing services and capabilities. Image editing components can be user-visible interactive components or automatically loaded, user-invisible components. Examples of visible image editing components include the "sticker" component and the "effects" component, which respectively implement the editing capabilities of adding stickers (adding stickers to images) and adding effects (adding effects to images). An example of a user-invisible image editing component is the audio recommendation component that automatically recommends audio, used to implement the editing capability of adding audio (adding audio to images).

[0022] In summary, each editing scenario has its own editing interface, which provides image editing components for that scenario. These image editing components enable the editing capabilities of the editing services within that scenario. In one example, the editing capabilities include adding editing elements such as text, stickers, and audio to an image.

[0023] Figure 2 Figure 1 shows a flowchart illustrating an image editing method provided in an embodiment of this disclosure. The flowchart includes: Step S202: In response to an editing instruction for an image, determine the first editing scene corresponding to the image among multiple editing scenes, determine the first image editing component for building the first editing scene, and obtain the functional requirement information of the first image editing component; Step S204: Obtain the editing capabilities of multiple editing services, and select the editing capability that matches the functional requirements of the first image editing component from the editing capabilities of each editing service; the editing capability is the smallest editing capability unit of the editing service; Step S206: Based on the selected editing capabilities, create a first image editing component, build a first editing scene based on the first image editing component, and edit the image based on the first editing scene.

[0024] In this embodiment, firstly, in response to an editing instruction for an image, a first editing scene corresponding to the image is determined among multiple editing scenes. A first image editing component for constructing the first editing scene is then determined, and the functional requirements information of the first image editing component is obtained. Next, the editing capabilities of multiple editing services are obtained. Among the editing capabilities of each editing service, the editing capability that matches the functional requirements information of the first image editing component is selected. The editing capability is the smallest editing capability unit of the editing service. Finally, based on the selected editing capability, the first image editing component is created. Based on the first image editing component, the first editing scene is constructed, and the image is edited based on the first editing scene. Therefore, through this embodiment, when editing an image, a first editing scene for editing the image can be determined, a first image editing component in the first editing scene can be created based on the editing capabilities of multiple editing services, and then the first editing scene can be constructed, and the image can be edited based on the first editing scene. Compared with the implementation method in related technologies that pre-creates each editing scene and isolates them from each other, the method of creating editing scenes by minimizing the editing capabilities of the editing service and selecting appropriate editing capabilities eliminates the need to pre-create and isolate each editing scene, and avoids the repeated development of the same image editing components in different editing scenes. This improves the efficiency of editing scene creation and effectively alleviates the problem of repeated development of image editing components and reduced efficiency of editing scene creation caused by pre-creating and isolating each editing scene in related technologies.

[0025] In step S202 above, in response to an editing instruction for an image, a first editing scene corresponding to the image is determined among multiple editing scenes, a first image editing component for building the first editing scene is determined, and functional requirement information of the first image editing component is obtained.

[0026] In this embodiment, editing instructions for an image can be generated based on the user's editing operations on the image. These instructions carry a scene identifier for the editing scenario. Based on this scene identifier, a first editing scenario corresponding to the image is determined from multiple editing scenarios; this scene identifier is the scene identifier of the first editing scenario. For example, if the user selects to perform advanced editing on the image, the first editing scenario is determined to be the advanced editing scenario; if the user selects to perform regular editing on the image, the first editing scenario is determined to be the regular editing scenario.

[0027] In this embodiment, a pre-established association relationship is created between each editing scene and each image editing component. In this association relationship, the image editing component corresponding to the editing scene is the image editing component used to build the editing scene. Based on this association relationship, a first image editing component is determined to build the first editing scene. The number of first image editing components can be one or multiple.

[0028] In this step, functional requirement information for each first image editing component is also obtained. This functional requirement information indicates the function of the first image editing component in the first editing scenario. This function can be understood as which editing services the first image editing component implements in the first editing scenario and which editing capabilities it uses to implement these services. Different editing scenarios may have image editing components with the same identifier, and these same image editing components may implement different editing capabilities of the same editing service in different editing scenarios.

[0029] For example, in regular editing scenarios, there is a "sticker" component, which is used to add text stickers to images. In advanced editing scenarios, there is also a "sticker" component, which is used to add both text stickers and image stickers to images.

[0030] In step S204 above, the editing capabilities of multiple editing services are obtained, and among the editing capabilities of each editing service, the editing capability that matches the functional requirements information of the first image editing component is selected. An editing capability is the smallest editing capability unit of an editing service.

[0031] In this embodiment, the editing capabilities of each predefined editing service are acquired. These predefined editing services include those applied in each editing scenario. The editing capabilities of each editing service applied in each editing scenario are acquired. An editing capability is the smallest indivisible unit of an editing service; it can be understood as the smallest unit of editing capability that an image editing system can implement. This editing capability can also be called an atomic editing capability.

[0032] In one embodiment, the editing capabilities of the editing service are obtained through the following methods: Obtain at least one basic editing capability from the editing service; Based on the smallest editing capability unit that the image editing system can operate for the editing service, the original editing capabilities of the editing service are broken down to obtain the editing capabilities of the editing service.

[0033] In this embodiment, the editing capabilities of each editing service are obtained using the above method. Taking any editing service as an example, at least one original editing capability of the editing service is obtained. The original editing capability is the editing capability of the editing service before it is minimized. For example, for the sticker adding service, the ability to add text stickers in the regular editing scenario is obtained, and the ability to add both text stickers and image stickers in the advanced editing scenario is also obtained. Since the same editing service may have different original editing capabilities in different editing scenarios, for example, the sticker adding service may have the ability to add text stickers in the regular editing scenario and the ability to add both text stickers and image stickers in the advanced editing scenario, therefore, each original editing capability of each editing service in each editing scenario is obtained here.

[0034] Next, based on the minimum editing capability unit that the image editing system can operate for the editing service, the original editing capability of the editing service is broken down to obtain the editing capability of the editing service. The image editing system includes various systems for image editing, such as an image rendering system. For each editing service, the image editing system has a minimum editing capability unit that can operate. For example, for the ability to add text stickers in the sticker adding service, the minimum editing capability unit includes: obtaining the coordinates of the sticker, adding the text sticker at the coordinates, and rendering the screen image after adding the sticker. The minimum editing capability unit is the editing capability unit that the image editing system can implement and cannot be further broken down.

[0035] Based on this, for each editing service, the original editing capabilities of the editing service are broken down according to the smallest editing capability unit that the image editing system can operate on that editing service, thus obtaining the editing capabilities of that editing service. When an editing service has multiple original editing capabilities in various editing scenarios, each original editing capability can be broken down into multiple editing capabilities.

[0036] As can be seen, this embodiment can obtain the original editing capabilities of the editing service. Based on the smallest editing capability unit that the image editing system can run for the editing service, the original editing capabilities of the editing service are decomposed to obtain the editing capabilities of the editing service. Thus, based on the smallest editing capability unit that the image editing system can run for the editing service, each editing capability of the editing service is accurately decomposed.

[0037] In one embodiment, the editing service is applied to at least two target scenarios among multiple editing scenarios. The original editing capabilities of the editing service include the original editing capabilities of the editing service in each target scenario. Based on the smallest editing capability unit that the image editing system can operate on for the editing service, the original editing capabilities of the editing service are decomposed to obtain the editing capabilities of the editing service, including: The original editing capabilities of the editing service in the target scenario are broken down into the smallest editing capability units that the image editing system can operate for the editing service; The editing capabilities of the editing service are obtained by deduplicating the smallest editing capability units obtained from the editing service in each target scenario.

[0038] As mentioned earlier, the same editing service may be applied to multiple editing scenarios, and the same editing service may have different original editing capabilities in different editing scenarios. For example, the sticker adding service may have the ability to add text stickers in a regular editing scenario, and may have the ability to add both text stickers and image stickers in an advanced editing scenario. Therefore, in each editing scenario, we need to determine the target scenarios to which each editing service is applied and obtain the original editing capabilities of each editing service in each target scenario.

[0039] Furthermore, for each editing service, the original editing capabilities of the editing service in each target scenario are broken down into the smallest editing capability units that the image editing system can operate for the editing service. The smallest editing capability units obtained from the breakdown of the editing service in each target scenario are deduplicated to obtain multiple editing capabilities of the editing service.

[0040] Taking the sticker addition service as an example, the target scenarios include regular editing scenarios and advanced editing scenarios. In regular editing scenarios, the sticker addition service has the ability to add text-type stickers, while in advanced editing scenarios, it has the ability to add both text-type and image-type stickers. This embodiment breaks down the ability of the sticker addition service to add text-type stickers in regular editing scenarios into the smallest editing capability units that an image editing system can operate for the sticker addition service, resulting in three minimum editing capability units: obtaining sticker coordinates, adding text-type stickers at the coordinates, and rendering the screen image after adding the sticker. Similarly, the ability of the sticker addition service to add text-type stickers in advanced editing scenarios is also broken down into the smallest editing capability units that an image editing system can operate for the sticker addition service, resulting in three minimum editing capability units: obtaining sticker coordinates, adding text-type stickers at the coordinates, and rendering the screen image after adding the sticker. Finally, the ability of the sticker addition service to add image-type stickers in advanced editing scenarios is also broken down into the smallest editing capability units that an image editing system can operate for the sticker addition service, resulting in three minimum editing capability units: obtaining sticker coordinates, adding image-type stickers at the coordinates, and rendering the screen image after adding the sticker.

[0041] Finally, the smallest editing capability units obtained from the sticker addition service in various target scenarios are deduplicated to obtain multiple editing capabilities of the sticker addition service. The editing capabilities include: obtaining sticker coordinates, adding image stickers at coordinates, adding text stickers at coordinates, and rendering the screen after adding stickers.

[0042] As can be seen, this embodiment also considers the original editing capabilities of the same editing service in various editing scenarios, minimizes these original editing capabilities, and removes duplicates from the minimized results to obtain the non-repeating editing capabilities of the editing service, thereby improving the accuracy of obtaining editing capabilities. The process of minimizing the original editing capabilities can also be called atomizing the original editing capabilities.

[0043] Figure 3 A schematic diagram illustrating the editing capabilities of an editing service provided in one embodiment of this disclosure, as shown below. Figure 3As shown, taking sticker addition service and editing scenarios as two examples, in related technologies, both editing scenarios 1 and 2 require the creation of the original editing capabilities for the sticker addition service. When the original editing capabilities of the sticker addition service are duplicated in different editing scenarios, such as the ability to add text stickers existing in both editing scenarios 1 and 2, it leads to redundant development of the original editing capabilities. This embodiment minimizes and removes duplicates from each original editing capability of the sticker addition service in editing scenarios 1 and 2, obtaining the individual editing capabilities of the sticker addition service. Based on these editing capabilities, sticker components and editing scenarios are created, improving creation efficiency.

[0044] In step S204 above, the editing capability that matches the functional requirements information of the first image editing component is selected from the various editing capabilities of each editing service. In one embodiment, selecting the editing capability that matches the functional requirements information of the first image editing component from the editing capabilities of each editing service includes: Based on the functional requirements of the first image editing component, determine the component functions of the first image editing component; Among the editing capabilities of each editing service, the editing capability used to implement the function of this component is selected as the editing capability that matches the functional requirements information of the first image editing component.

[0045] As mentioned earlier, the functional requirements information of the first image editing component represents its function in the first editing scenario. This function can be understood as which editing services the first image editing component implements and which editing capabilities implement these services in the first editing scenario. Based on this, the component function of the first image editing component in the first editing scenario is determined according to its functional requirements information. Then, among the editing capabilities of each editing service, the editing capabilities used to implement this component function are selected as the editing capabilities that match the functional requirements information of the first image editing component.

[0046] For example, the first image editing component includes a sticker component, and the first editing scenario is an advanced editing scenario. In the advanced editing scenario, the sticker component is used to implement all editing capabilities of various editing services related to stickers. Therefore, all editing capabilities of various editing services related to stickers are obtained as editing capabilities that match the functional requirements information of the first image editing component.

[0047] As can be seen, through this embodiment, the component function of the first image editing component can be determined based on the functional requirements information of the first image editing component. Among the editing capabilities of various editing services, the editing capability used to implement the component function is selected as the editing capability that matches the functional requirements information of the first image editing component. Therefore, it is not necessary to create separate image editing components for each editing scenario. Based on the editing capabilities of the editing service, the matching editing capability can be selected according to the requirements of the image editing component and the image editing component can be generated. This achieves full utilization of the editing capabilities of the editing service and effectively alleviates the problem of repetitive development of image editing components and reduced creation efficiency of editing scenarios in related technologies.

[0048] In step S206 above, a first image editing component is created based on the selected editing capabilities; a first editing scene is built based on the first image editing component; and the image is edited based on the first editing scene. In one embodiment, creating the first image editing component based on the selected editing capabilities includes: Based on the functional requirements of the first image editing component, determine the component functions of the first image editing component and the rules for combining the editing capabilities corresponding to the component functions; Based on the editing capability combination rules corresponding to the component functions, the selected editing capabilities are combined to obtain the component functions of the first image editing component; Based on the component functions of the first image editing component and the interface form of the first image editing component in the first editing scene, a first image editing component is created.

[0049] In this embodiment, as described above, based on the functional requirements information of the first image editing component, the functions of each component of the first image editing component are determined. The first image editing component may have one or more component functions; for example, the "texture" component may have two functions: adding text-type textures and adding image-type textures. Furthermore, based on the functional requirements information of the first image editing component, the editing capability combination rules corresponding to each component function of the first image editing component are determined. The editing capability combination rules corresponding to the component functions are used to indicate how to combine editing capabilities to obtain the component function, such as the combination order in which the editing capabilities are combined to obtain the component function.

[0050] Next, for each component function, firstly, from the selected editing capabilities, the target capabilities used to implement the component function are determined. Based on the editing capability combination rules corresponding to the component function, the target capabilities are combined to obtain the component function of the first image editing component. For example, for the sticker component, from the selected editing capabilities, the target capabilities used to implement each component function of the sticker component are determined. The combination order of the target capabilities is determined according to the editing capability combination rules. Based on this order, the target capabilities are combined to obtain the sticker component's functions of adding text-type stickers and adding image-type stickers.

[0051] Finally, the interface form of the first image editing component in the first editing scene is obtained. When the first image editing component is a visible interactive component, the interface form includes the component color, component size, component display position, etc. When the first image editing component is an invisible component, the interface form is used to indicate that the first image editing component is not visible. Based on the component function of the first image editing component and the interface form of the first image editing component in the first editing scene, the first image editing component is created.

[0052] In one example, the first image editing component includes a visible sticker component and an invisible audio recommendation component that automatically recommends audio. Based on the sticker component's function of "adding text and image stickers" in the first editing scenario and the editing capability combination rules for each function, the selected editing capabilities are combined to obtain the various component functions of the sticker component. The sticker component is generated based on its display position and style in the editing interface and its component functions. Similarly, based on the audio recommendation component's function of "automatically recommending audio" and the corresponding editing capability combination rules, the selected editing capabilities are combined to obtain the audio recommendation component's function. The audio recommendation component is generated based on its invisible nature in the editing interface and its component functions.

[0053] As can be seen, through this embodiment, the selected editing capabilities can be combined to obtain the component functions of the first image editing component, and the first image editing component can be accurately created by taking into account the interface form of the first image editing component, thereby improving the creation efficiency and accuracy of the image editing component.

[0054] Figure 4 A schematic diagram illustrating the editing capabilities of an image editing component and various editing services provided in an embodiment of this disclosure, as shown below. Figure 4 As shown, the image editing components include two types: visible components and logical components. Logical components are invisible, while visible components are those that the user can interact with. Editing services include, but are not limited to, those provided by the editor. Figure 4 The service includes track editing, audio editing, filter editing, special effects editing, sticker editing, and template editing.

[0055] Logic components include, but are not limited to: Figure 4 The illustration is shown in the image. Figure 4 In the logic components, the draft restoration component is used to restore the image's editing draft during the editing process; the next task component is used to enter the next process such as publishing; the edge intelligence component is used to realize the automatic recommendation and addition of audio data based on the capabilities of the audio editing service; and the timing component is used to realize the matching of audio rhythm with the rhythm of image changes based on the capabilities of the audio editing service.

[0056] Interactive components include, but are not limited to: Figure 4 The illustration is shown in the image. Figure 4 In the image, the music panel is used to perform audio-related editing on the image based on the audio editing service; the sticker panel is used to perform sticker-related editing on the image based on the sticker editing service; the effects panel is used to perform effects-related editing on the image based on the effects editing service; and the progress bar is used to adjust the playback of images such as video data.

[0057] Figure 4 The document also illustrates the editing capabilities of various editing services. For example, the sticker editing service includes a sticker adding service, which further breaks down the original editing capability of adding image stickers into various editing capabilities. The sticker adding service also includes various editing capabilities that break down the original editing capability of adding text stickers. Further details on each editing capability are omitted here. Figure 4 In this context, a template refers to a pre-defined template used for editing images, such as a template for changing a user's image to a specified image.

[0058] based on Figure 4 The scenario shown allows for the identification of a first image editing component within the first editing scenario. This first image editing component includes at least one of visible and invisible components. Next, based on the functional requirements of the first image editing component, editing capabilities are selected to implement its functions. Based on the selected editing capabilities, the component functions of the first image editing component are implemented. Finally, based on the component functions and the interface appearance of the first image editing component in the first editing scenario, the first image editing component is created.

[0059] It can be seen that, through Figure 4 The embodiment shown generates a first image editing component by combining editing capabilities. The creation of the first image editing component and the first editing scene is achieved by using the principle of building blocks, which improves the creation efficiency.

[0060] In one scenario, there might be some first-level image editing components whose functions are built-in and do not need to be implemented by minimizing editing capabilities. For such first-level image editing components, the component can be implemented based on its built-in functions.

[0061] In step S206 above, a first editing scene is also constructed based on the first image editing component, and the image is edited based on the first editing scene. In one embodiment, the first image editing component includes a visible component and an invisible component; editing the image based on the first editing scene includes: In response to a trigger command for a visible component in the first editing scene, if the visible component is associated with an invisible component, the component functions of the invisible component and the visible component are invoked. Image editing is performed based on the component functions of invisible components and visible components.

[0062] In one example, suppose the visible component is a music panel, which is associated with an edge intelligence component. When a user triggers the music panel, it invokes various functions of both the music panel and the edge intelligence component. Based on these functions, the image is edited. Both the music panel and edge intelligence component functions rely on the editing capabilities of a music editing service. For example, the music panel's functions could add user-selected audio data to the image, while the edge intelligence component's functions could recommend other suitable audio data to the user.

[0063] In another example, suppose the visible component is a music panel, which is associated with a beat-matching component. When a user triggers the music panel, it invokes various functions of both the music panel and the beat-matching component. Based on these functions, the image is edited. The functions of both the music panel and the beat-matching component are implemented using the editing capabilities of a music editing service. For example, the music panel's functions could add user-selected audio data to the image, and the beat-matching component's functions could match the audio rhythm with the rhythm of changes in the image.

[0064] As can be seen, through this embodiment, the editing capabilities of the editing service can be used to realize the functions of visible and invisible components, and to achieve mutual cooperation between visible and invisible components, thereby improving the efficiency of image editing.

[0065] Figure 5 This is a schematic diagram illustrating image editing according to an embodiment of the present disclosure, such as... Figure 5As shown, in the presence of multiple editing scenarios such as editing scenarios 1 and 2, this embodiment can determine the first editing scenario among multiple editing scenarios, and create the first editing scenario based on the editing capabilities of each editing service. The image is then edited based on the first editing scenario. Compared with the implementation method in related technologies that pre-creates each editing scenario and isolates each editing scenario from each other, it is not necessary to pre-create and isolate each editing scenario, and it is not necessary to repeatedly develop the same image editing components in different editing scenarios, thereby improving the efficiency of editing scenario creation.

[0066] In one embodiment, the above method flow further includes: In response to an image editing scene switching command, determine the second editing scene to which the image is to be switched among multiple editing scenes, determine the second image editing component used to build the second editing scene, and obtain the functional requirements information of the second image editing component; Based on the first image editing component, the functional requirements information of the first image editing component, the second image editing component, and the functional requirements information of the second image editing component, determine the scene adjustment strategy information for adjusting the first editing scene to the second editing scene; Based on the scene adjustment strategy information, the first editing scene is adjusted to obtain the second editing scene, and the image is edited based on the second editing scene.

[0067] In this embodiment, if a user switches from the first editing scene to the second editing scene, for example, from the regular editing scene to the advanced editing scene, the second editing scene to be switched to is determined in a similar manner as before, the second image editing component used to build the second editing scene is determined, and the functional requirements information of the second image editing component is obtained.

[0068] Then, based on the first image editing component, the functional requirements information of the first image editing component, the second image editing component, and the functional requirements information of the second image editing component, scene adjustment strategy information for adjusting the first editing scene to the second editing scene is determined. The scene adjustment strategy information is generated based on the component differences between the first editing scene and the second editing scene, and is used to indicate the specific way to adjust the first editing scene to the second editing scene.

[0069] Finally, based on the scene adjustment strategy information, the first editing scene is adjusted to obtain the second editing scene, and the image is edited based on the second editing scene.

[0070] As can be seen, through this embodiment, when users switch between different editing scenarios, there is no need to create a new editing scenario. They only need to adjust the current editing scenario, which realizes seamless switching between editing scenarios, alleviates the lag when switching editing scenarios, and improves switching efficiency.

[0071] In one embodiment, adjusting the first editing scenario based on scenario adjustment strategy information to obtain a second editing scenario includes: Based on the scenario adjustment strategy information, perform the following operations to adjust the first editing scenario, and then designate the adjusted first editing scenario as the second editing scenario: For a first image editing component that is located in the first editing scene but not in the second editing scene, delete the first image editing component in the first editing scene; For a second image editing component that is located in the second editing scene but not in the first editing scene, add the second image editing component in the first editing scene; For a first image editing component located in a first editing scene and a second editing scene, and whose attribute information differs in the first editing scene and the second editing scene, the attribute information of the first image editing component is adjusted in the first editing scene; For a first image editing component located in a first editing scene and a second editing scene, and whose component functions differ in the first editing scene and the second editing scene, the component functions of the first image editing component are adjusted in the first editing scene.

[0072] In this embodiment, the scene adjustment strategy information includes: deleting the first image editing component from the first editing scene if it is located in the first editing scene but not in the second editing scene; adding the second image editing component from the first editing scene if it is located in the second editing scene but not in the first editing scene; adjusting the attribute information of the first image editing component in the first editing scene if it is located in both the first and second editing scenes and has different attribute information in both scenes; and adjusting the component function of the first image editing component in the first editing scene if it is located in both scenes and has different component functions. Based on this, the above operations are performed according to the scene adjustment strategy information to adjust the first editing scene, and the adjusted first editing scene is determined as the second editing scene.

[0073] Specifically, the component identifier of each first image editing component is compared with the component identifier of each second image editing component. Based on the comparison result, a first image editing component located in the first editing scene but not in the second editing scene is identified and deleted from the first editing scene. Conversely, a second image editing component located in the second editing scene but not in the first editing scene is identified and created and added to the first editing scene by creating the first image editing component. By executing these two strategies, the component identifier of each first image editing component in the first editing scene is made identical to the component identifier of each second image editing component.

[0074] Next, for the first image editing component located in the first editing scene and the second editing scene, and whose attribute information differs in the first editing scene and the second editing scene, the attribute information of the first image editing component is adjusted in the first editing scene. For example, if both the first editing scene and the second editing scene have a sticker adding component, and the component color is different in the first editing scene and the second editing scene, then the color of the component is adjusted in the first editing scene.

[0075] Furthermore, for a first image editing component located in both the first and second editing scenes and whose component functions differ between the two scenes, the component function of the first image editing component is adjusted in the first editing scene. For example, if both the first and second editing scenes have a sticker adding component, but the component function of this component differs between the two scenes, then the component function of this component is adjusted in the first editing scene.

[0076] By performing the above operations, the adjusted first editing scene is obtained, and the adjusted first editing scene is determined as the second editing scene.

[0077] As can be seen, through this embodiment, the first editing scene can be adjusted in the above manner to obtain the second editing scene, realizing seamless switching between editing scenes, alleviating the lag during editing scene switching, and improving switching efficiency.

[0078] In one embodiment, adjusting the attribute information of the first image editing component in a first editing scenario includes: The second image editing component, which has the same component identifier as the first image editing component but different attribute information, is identified as the first target component; In the first editing scenario, the attribute information of the first image editing component is adjusted to the attribute information of the first target component; the attribute information includes at least one of size information, color information, and display position information; The adjusted first image editing component is identified as the first target component.

[0079] In this embodiment, for a first image editing component located in a first editing scene and a second editing scene, and whose attribute information differs in the first and second editing scenes, a second image editing component with the same component identifier but different attribute information is identified; this second component is the first target component. In the first editing scene, the attribute information of the first image editing component is modified to match the attribute information of the first target component. The attribute information includes at least one of size information, color information, and display position information. The modified first image editing component is the first target component.

[0080] As can be seen, through this embodiment, for a first image editing component located in the first editing scene and the second editing scene and with different attribute information in the first editing scene and the second editing scene, a corresponding second image editing component can be obtained by adjusting the attribute information of the first image editing component, thus avoiding the tedious process of regenerating the second image editing component and maximizing the reuse of the image editing component.

[0081] In one embodiment, adjusting the component functionality of the first image editing component in a first editing scenario includes: The second image editing component, which has the same component identifier as the first image editing component but a different component function, is identified as the second target component. Determine the differences in component functions between the first image editing component and the second target component, and select the editing capabilities that match the differences in component functions from the editing capabilities of each editing service; Based on the selected editing capabilities and the first image editing component, a second target component is generated.

[0082] In this embodiment, for a first image editing component located in a first editing scenario and a second editing scenario, and whose component functions differ in the first and second editing scenarios, a second image editing component with the same component identifier but different functions is identified; this component is the second target component. In the first editing scenario, the component function differences between the first image editing component and the second target component are determined. These differences include functions lacking in the first image editing component compared to the second target component. Among the editing capabilities of various editing services, editing capabilities are selected to implement these component function differences. Then, based on the selected editing capabilities, the aforementioned functional differences are implemented. Based on these functional differences and the first image editing component, the second target component is generated. Of course, if the component function differences between the first image editing component and the second target component are too large, the second target component can be regenerated.

[0083] As can be seen, through this embodiment, for a first image editing component located in the first editing scene and the second editing scene and with different component functions in the first editing scene and the second editing scene, a corresponding second image editing component can be obtained by adjusting the component function of the first image editing component, thus avoiding the tedious process of regenerating the second image editing component and maximizing the reuse of the image editing component.

[0084] Figure 6 This is a schematic diagram illustrating the switching of editing scenes according to an embodiment of the present disclosure, such as... Figure 6 As shown, in the presence of multiple editing scenarios, such as editing scenarios 1 and 2, this embodiment enables the generation of a second editing scenario when switching from editing scenario 1 to editing scenario 2 by deleting the first image editing component, adding a second image editing component, and adjusting the attributes and functions of the first image editing component. For example, Figure 6 As illustrated, adjusting the size of the image preview component and adding a music panel allows for efficient switching between editing scenes.

[0085] In summary, this embodiment can effectively alleviate the problem of redundant development of image editing components and reduced efficiency in creating editing scenes caused by pre-creating various editing scenes and isolating them from each other in related technologies. It also enables the reuse of image editing components when switching editing scenes, reducing lag during switching.

[0086] Figure 7 This is a schematic diagram of the structure of an image editing apparatus provided in an embodiment of the present disclosure, as shown below. Figure 7 As shown, the device includes: The information acquisition unit 71 is used to respond to an editing instruction for an image, determine the first editing scene corresponding to the image in multiple editing scenes, determine a first image editing component for building the first editing scene, and acquire the functional requirement information of the first image editing component; The capability selection unit 72 is used to acquire the editing capabilities of multiple editing services, and select the editing capability that matches the functional requirements information of the first image editing component from the editing capabilities of each editing service; the editing capability is the smallest editing capability unit of the editing service; Image editing unit 73 is used to create the first image editing component based on the selected editing capability, build the first editing scene based on the first image editing component, and edit the image based on the first editing scene.

[0087] Optionally, it further includes a minimization unit, configured to: obtain at least one original editing capability of the editing service; and decompose the original editing capability of the editing service according to the minimum editing capability unit that the image editing system can operate for the editing service, to obtain the editing capability of the editing service.

[0088] Optionally, the editing service is applied to at least two target scenarios among the plurality of editing scenarios, and the original editing capability of the editing service includes the original editing capability of the editing service in each of the target scenarios; the minimization unit is specifically used to: decompose the original editing capability of the editing service in the target scenario into the smallest editing capability unit that the image editing system can operate for the editing service; and remove duplicates from the smallest editing capability units obtained by decomposing the editing service in each of the target scenarios to obtain the editing capability of the editing service.

[0089] Optionally, the capability selection unit 72 is specifically configured to: determine the component function of the first image editing component based on the functional requirement information of the first image editing component; and select, from the editing capabilities of each editing service, the editing capability used to implement the component function as the editing capability that matches the functional requirement information of the first image editing component.

[0090] Optionally, the image editing unit 73 is specifically configured to: determine the component function of the first image editing component and the editing capability combination rule corresponding to the component function based on the functional requirement information of the first image editing component; combine the selected editing capabilities according to the editing capability combination rule corresponding to the component function to obtain the component function of the first image editing component; and create the first image editing component based on the component function of the first image editing component and the interface form of the first image editing component in the first editing scenario.

[0091] Optionally, the first image editing component includes a visible component and an invisible component; the image editing unit 73 is specifically configured to: respond to a trigger instruction for the visible component in the first editing scenario, if the visible component is associated with the invisible component, invoke the component functions of the invisible component and the visible component; and edit the image based on the component functions of the invisible component and the visible component.

[0092] Optionally, the above apparatus further includes: a scene switching unit, configured to: in response to an editing scene switching instruction for the image, determine a second editing scene to which the image is to be switched from among the plurality of editing scenes, determine a second image editing component for constructing the second editing scene, and obtain functional requirement information of the second image editing component; determine scene adjustment strategy information for adjusting the first editing scene to the second editing scene based on the first image editing component, the functional requirement information of the first image editing component, the second image editing component, and the functional requirement information of the second image editing component; adjust the first editing scene according to the scene adjustment strategy information to obtain the second editing scene, and edit the image based on the second editing scene.

[0093] Optionally, the scene switching unit is specifically configured to: perform the following operations according to the scene adjustment strategy information: adjust the first editing scene, and determine the adjusted first editing scene as the second editing scene: delete the first image editing component in the first editing scene if it is located in the first editing scene but not in the second editing scene; add the second image editing component in the first editing scene if it is located in the second editing scene but not in the first editing scene; adjust the attribute information of the first image editing component in the first editing scene if it is located in both the first and second editing scenes and has different attribute information in both scenes; and adjust the component function of the first image editing component in the first editing scene if it is located in both the first and second editing scenes and has different component functions in both scenes.

[0094] Optionally, the scene switching unit is further configured to: identify a second image editing component that has the same component identifier as the first image editing component but different attribute information as a first target component; in the first editing scene, adjust the attribute information of the first image editing component to the attribute information of the first target component; the attribute information includes at least one of size information, color information, and display position information; and identify the adjusted first image editing component as the first target component.

[0095] Optionally, the scene switching unit is further configured to: identify a second image editing component that has the same component identifier as the first image editing component but has a different component function as the second target component; determine the component function difference between the first image editing component and the second target component; select an editing capability that matches the component function difference from the editing capabilities of each editing service; and generate the second target component based on the selected editing capability and the first image editing component.

[0096] The image editing apparatus in this embodiment can implement the various processes of the above-described image editing method embodiments and achieve the same effects and functions, which will not be repeated here.

[0097] One embodiment of this disclosure also provides an electronic device. Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, as shown below. Figure 8 As shown, electronic devices can vary considerably due to differences in configuration or performance. They may include one or more processors 801 and memories 802, with the memory 802 storing one or more application programs or data. The memory 802 can be temporary or persistent storage. The application programs stored in the memory 802 may include one or more modules (not shown), each module including a series of computer-executable instructions from the electronic device. Furthermore, the processor 801 may be configured to communicate with the memory 802, executing the series of computer-executable instructions stored in the memory 802 on the electronic device. The electronic device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input or output interfaces 805, one or more keyboards 806, etc.

[0098] In one specific embodiment, the electronic device includes a processor; and a memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the following process: In response to an editing instruction for an image, a first editing scenario corresponding to the image is determined among multiple editing scenarios, a first image editing component for building the first editing scenario is determined, and functional requirement information of the first image editing component is obtained; The editing capabilities of multiple editing services are acquired, and among the editing capabilities of each editing service, the editing capability that matches the functional requirements information of the first image editing component is selected; the editing capability is the smallest editing capability unit of the editing service. Based on the selected editing capabilities, a first image editing component is created; based on the first image editing component, a first editing scene is constructed; and the image is edited based on the first editing scene.

[0099] The electronic device in this embodiment can implement the various processes of the above-described image editing method embodiments and achieve the same effects and functions, which will not be repeated here.

[0100] Another embodiment of this disclosure also provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process: In response to an editing instruction for an image, a first editing scenario corresponding to the image is determined among multiple editing scenarios, a first image editing component for building the first editing scenario is determined, and functional requirement information of the first image editing component is obtained; The editing capabilities of multiple editing services are acquired, and among the editing capabilities of each editing service, the editing capability that matches the functional requirements information of the first image editing component is selected; the editing capability is the smallest editing capability unit of the editing service. Based on the selected editing capabilities, a first image editing component is created; based on the first image editing component, a first editing scene is constructed; and the image is edited based on the first editing scene.

[0101] The computer-readable storage medium in this disclosure embodiment can implement the various processes of the above-described image editing method embodiment and achieve the same effects and functions, which will not be repeated here.

[0102] Another embodiment of this disclosure also provides a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the following process: In response to an editing instruction for an image, a first editing scenario corresponding to the image is determined among multiple editing scenarios, a first image editing component for building the first editing scenario is determined, and functional requirement information of the first image editing component is obtained; The editing capabilities of multiple editing services are acquired, and among the editing capabilities of each editing service, the editing capability that matches the functional requirements information of the first image editing component is selected; the editing capability is the smallest editing capability unit of the editing service. Based on the selected editing capabilities, a first image editing component is created; based on the first image editing component, a first editing scene is constructed; and the image is edited based on the first editing scene.

[0103] The computer program product in this disclosure embodiment can implement the various processes of the above-described image editing method embodiment and achieve the same effects and functions, which will not be repeated here.

[0104] In various embodiments of this disclosure, the computer-readable storage medium includes read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc.

[0105] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using a hardware physical module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must also be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0106] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0107] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0108] For ease of description, the above apparatus is described by dividing it into various functional units. Of course, in implementing the embodiments of this disclosure, the functions of each unit can be implemented in one or more software and / or hardware.

[0109] Those skilled in the art will understand that one or more embodiments of this disclosure can be provided as a method, system, or computer program product. Therefore, one or more embodiments of this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of this disclosure can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0110] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more flowchart illustrations and / or one or more block diagrams.

[0111] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0112] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

[0113] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0114] One or more embodiments of this disclosure can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a particular task or implement a particular abstract data type. One or more embodiments of this disclosure can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can reside in local and remote computer storage media, including storage devices.

[0115] The various embodiments in this disclosure are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0116] The above description is merely an embodiment of this disclosure and is not intended to limit the scope of this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of the claims of this disclosure.

Claims

1. An image editing method, characterized in that, include: In response to an editing instruction for an image, a first editing scenario corresponding to the image is determined among multiple editing scenarios, a first image editing component for building the first editing scenario is determined, and functional requirement information of the first image editing component is obtained; The editing capabilities of multiple editing services are acquired, and among the editing capabilities of each editing service, the editing capability that matches the functional requirements information of the first image editing component is selected; the editing capability is the smallest editing capability unit of the editing service. Based on the selected editing capabilities, a first image editing component is created; based on the first image editing component, a first editing scene is constructed; and the image is edited based on the first editing scene.

2. The method according to claim 1, characterized in that, The method further includes: Obtain at least one original editing capability of the editing service; Based on the smallest editing capability unit that the image editing system can operate for the editing service, the original editing capability of the editing service is broken down to obtain the editing capability of the editing service.

3. The method according to claim 2, characterized in that, The editing service is applied to at least two target scenarios among the multiple editing scenarios, and the original editing capabilities of the editing service include the original editing capabilities of the editing service in each of the target scenarios; the step of decomposing the original editing capabilities of the editing service according to the smallest editing capability unit that the image editing system can run for the editing service to obtain the editing capabilities of the editing service includes: The original editing capabilities of the editing service in the target scene are broken down into the smallest editing capability units that the image editing system can operate for the editing service; The editing capabilities of the editing service are obtained by deduplicating the smallest editing capability units obtained from each of the target scenarios.

4. The method according to claim 1, characterized in that, Selecting the editing capability that matches the functional requirements of the first image editing component from among the editing capabilities of each editing service includes: Based on the functional requirements information of the first image editing component, determine the component functions of the first image editing component; Among the editing capabilities of each of the editing services, the editing capability used to implement the function of the component is selected as the editing capability that matches the functional requirement information of the first image editing component.

5. The method according to claim 1, characterized in that, The creation of the first image editing component based on the selected editing capabilities includes: Based on the functional requirements information of the first image editing component, determine the component functions of the first image editing component and the rules for combining the editing capabilities corresponding to the component functions; According to the editing capability combination rules corresponding to the component functions, the selected editing capabilities are combined to obtain the component functions of the first image editing component; The first image editing component is created based on the component functions of the first image editing component and the interface form of the first image editing component in the first editing scene.

6. The method according to claim 1, characterized in that, The first image editing component includes a visible component and an invisible component; the editing of the image based on the first editing scene includes: In response to a trigger command for the visible component in the first editing scenario, if the visible component is associated with the invisible component, then the component functions of the invisible component and the visible component are invoked. The image is edited based on the component functions of the invisible components and the component functions of the visible components.

7. The method according to claim 1, characterized in that, The method further includes: In response to the editing scene switching instruction for the image, a second editing scene to which the image is to be switched is determined among the plurality of editing scenes, a second image editing component for building the second editing scene is determined, and functional requirement information of the second image editing component is obtained; Based on the first image editing component, the functional requirements information of the first image editing component, the second image editing component, and the functional requirements information of the second image editing component, a scene adjustment strategy information for adjusting the first editing scene to the second editing scene is determined; Based on the scene adjustment strategy information, the first editing scene is adjusted to obtain the second editing scene, and the image is edited based on the second editing scene.

8. The method according to claim 7, characterized in that, The step of adjusting the first editing scenario according to the scenario adjustment strategy information to obtain the second editing scenario includes: Based on the scenario adjustment strategy information, perform the following operations to adjust the first editing scenario, and then determine the adjusted first editing scenario as the second editing scenario: For the first image editing component that is located in the first editing scene but not in the second editing scene, delete the first image editing component in the first editing scene; For the second image editing component that is located in the second editing scene but not in the first editing scene, add the second image editing component to the first editing scene; For the first image editing component located in the first editing scene and the second editing scene, and whose attribute information is different in the first editing scene and the second editing scene, the attribute information of the first image editing component is adjusted in the first editing scene; For the first image editing component located in the first editing scene and the second editing scene, and whose component functions are different in the first editing scene and the second editing scene, the component function of the first image editing component is adjusted in the first editing scene.

9. The method according to claim 8, characterized in that, The step of adjusting the attribute information of the first image editing component in the first editing scenario includes: The second image editing component, which has the same component identifier as the first image editing component but different attribute information, is identified as the first target component; In the first editing scenario, the attribute information of the first image editing component is adjusted to the attribute information of the first target component; the attribute information includes at least one of size information, color information, and display position information; The adjusted first image editing component is identified as the first target component.

10. The method according to claim 8, characterized in that, The adjustment of the component function of the first image editing component in the first editing scenario includes: The second image editing component, which has the same component identifier as the first image editing component but a different component function, is identified as the second target component. Determine the functional differences between the first image editing component and the second target component, and select the editing capabilities that match the functional differences among the editing capabilities of each editing service; The second target component is generated based on the selected editing capabilities and the first image editing component.

11. An image editing device, characterized in that, include: The information acquisition unit is used to respond to an editing instruction for an image, determine the first editing scenario corresponding to the image among multiple editing scenarios, determine a first image editing component for building the first editing scenario, and acquire the functional requirement information of the first image editing component; A capability selection unit is used to acquire the editing capabilities of multiple editing services, and select the editing capability that matches the functional requirements information of the first image editing component from the editing capabilities of each editing service; the editing capability is the smallest editing capability unit of the editing service; An image editing unit is configured to create a first image editing component based on the selected editing capabilities, construct a first editing scene based on the first image editing component, and edit the image based on the first editing scene.

12. An electronic device, characterized in that, include: processor; as well as, A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the steps of the method described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store computer-executable instructions that, when executed by a processor, implement the steps of the method described in any one of claims 1-10.

14. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any one of claims 1-10.