Method and apparatus for creating workflow, and device and storage medium

By adding canvas nodes to the node connection graph and using configuration controls to determine layout information, the problem of custom layout in traditional image workflows is solved, improving editing and image processing efficiency.

WO2026007765A1PCT designated stage Publication Date: 2026-01-08BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/103311
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-30
Filing Date
2025-06-25
Publication Date
2026-01-08

AI Technical Summary

Technical Problem

In the traditional image workflow creation process, users find it difficult to effectively customize the layout of images, resulting in low workflow editing efficiency.

Method used

By responding to editing operations, nodes associated with the canvas configuration are added to the node connection graph, and configuration controls are used to determine canvas configuration information, including the layout of elements in the canvas, thereby creating a target workflow to output image processing results.

Benefits of technology

It improves the editing efficiency of the target workflow and enhances the efficiency of image processing, supporting the management of the layout of elements in the canvas according to the desired style.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025103311_08012026_PF_FP_ABST
    Figure CN2025103311_08012026_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure relate to a method and apparatus for creating a workflow, and a device and a storage medium. The method provided herein comprises: in response to a received editing operation, adding to a node connection graph a first node associated with a canvas configuration; determining canvas configuration information by means of a group of configuration controls associated with the first node, wherein the canvas configuration information at least indicates the layout of a group of elements in a canvas, the group of elements comprises a first element, the first element is configured by means of referencing a second node associated with the first node; and on the basis of the node connection graph, creating a target workflow, wherein the first node in the target workflow is configured to output an image processing result on the basis of the canvas configuration information. In this way, the embodiments of the present disclosure can improve the efficiency of using a workflow to process an image.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for creating workflow

[0001] The present application claims priority to the Chinese patent application No. 202410870014.2, filed on June 30, 2024, entitled “Method, device, equipment and storage medium for creating workflow”, the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The example embodiments of the present disclosure generally relate to the field of computer, and in particular, to a method, device, equipment and computer readable storage medium for creating workflow. BACKGROUND

[0003] With the development of computer technology, people can create and publish various types of applications through some platforms. In the development process of the application, the creation and management of workflow is an important task. For example, a user can realize the automatic processing flow of an image by defining a workflow (also referred to as an image flow) for image processing. SUMMARY

[0004] In a first aspect of the present disclosure, a method for creating a workflow is provided. The method comprises: in response to a received editing operation, adding a first node associated with a canvas configuration to a node connection graph; determining, via a set of configuration controls associated with the first node, canvas configuration information, the canvas configuration information at least indicating a layout of a set of elements in a canvas, the set of elements including a first element, the first element being configured by referencing a second node associated with the first node; and based on the node connection graph, creating a target workflow, the first node in the target workflow being configured to output an image processing result based on the canvas configuration information.

[0005] In a second aspect of the present disclosure, a device for creating a workflow is provided. The device comprises: an adding module configured to, in response to a received editing operation, add a first node associated with a canvas configuration to a node connection graph; a determining module configured to, via a set of configuration controls associated with the first node, determine canvas configuration information, the canvas configuration information at least indicating a layout of a set of elements in a canvas, the set of elements including a first element, the first element being configured by referencing a second node associated with the first node; and a creating module configured to, based on the node connection graph, create a target workflow, the first node in the target workflow being configured to output an image processing result based on the canvas configuration information.

[0006] In a third aspect of the disclosure, an electronic device is provided. The device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. The instructions, when executed by the at least one processor, cause the device to perform the method of the first aspect.

[0007] In a fourth aspect of the disclosure, a computer-readable storage medium is provided. The computer-readable storage medium has stored thereon computer-executable instructions that are executable by a processor to implement the method of the first aspect.

[0008] In a fifth aspect of the disclosure, a computer program product is provided. The computer program product is tangibly stored in a computer storage medium and includes computer- executable instructions that, when executed by a device, cause the device to perform to implement the method of the first aspect.

[0009] It is to be understood that the details set forth herein are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0010] The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent by describing in detail some embodiments thereof with reference to the annexed drawings in which:

[0011] FIG. 1 illustrates a schematic diagram of an example environment in which embodiments according to the present disclosure can be implemented;

[0012] FIG. 2 illustrates a flowchart of an example process of creating a workflow according to some embodiments of the present disclosure;

[0013] FIGS. 3A to 3C illustrate example interfaces according to some embodiments of the present disclosure;

[0014] FIG. 4 illustrates a schematic structural block diagram of an example apparatus for creating a workflow according to some embodiments of the present disclosure; and

[0015] FIG. 5 illustrates a block diagram of an electronic device capable of implementing a number of embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein; rather, these embodiments are provided so that the present disclosure will be thoroughly and completely understood. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0017] It should be noted that the titles of any sections / sub-sections provided herein are not limiting. Various embodiments are described throughout this document and any type of embodiment can be included under any section / sub-section. Furthermore, embodiments described in any section / sub-section can be combined with any other embodiments described in the same section / sub-section and / or different section / sub-section in any manner.

[0018] In the description of embodiments of the present disclosure, the term "includes" and its derivatives, such as "including," should be understood in an open, inclusive sense, that is, "including, but not limited to." The term "based on" should be understood as "based at least in part on." The term "one embodiment" or "an embodiment" should be understood as "at least one embodiment." The term "some embodiments" should be understood as "at least some embodiments." Other explicitly and implicitly recited definitions can also be found below. The terms "first," "second," and the like can refer to different or identical objects. Other explicit and implicit definitions can also be found below.

[0019] Data of users, acquisition and / or use of data, etc. can be involved in embodiments of the present disclosure. These aspects all comply with corresponding laws and regulations and relevant provisions. In embodiments of the present disclosure, all collection, acquisition, processing, processing, forwarding, use, etc. of data are performed on the premise that users are aware of and confirm. Accordingly, when implementing embodiments of the present disclosure, the type of data or information that can be involved, the range of use, the scenario of use, etc. should be informed to users and authorized by users in a proper manner according to relevant laws and regulations. The specific informing and / or authorization manner can vary according to actual situations and application scenarios, and the scope of the present disclosure is not limited in this respect.

[0020] In the present specification and embodiments, if personal information processing is involved, it will be processed on the premise of legality (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and only within the prescribed or agreed range. Users refuse to process personal information other than the necessary information required for basic functions, which will not affect the user's use of basic functions.

[0021] Traditionally, a user can quickly create a workflow by configuring different processing nodes in the workflow, for example. For example, a user can implement an automated processing flow for images by creating a workflow for image processing. However, in the traditional image workflow creation process, it is difficult for the user to effectively customize the layout of images.

[0022] Embodiments of the present disclosure propose a scheme for creating a workflow. According to the scheme, in response to a received editing operation, a first node associated with a canvas configuration is added to a node connection graph; via a set of configuration controls associated with the first node, canvas configuration information is determined, the canvas configuration information at least indicating a layout of a set of elements in a canvas, the set of elements including a first element, the first element being configured by referencing a second node associated with the first node; and based on the node connection graph, a target workflow is created, a first node in the target workflow being configured to output an image processing result based on the canvas configuration information.

[0023] In this way, embodiments of the present disclosure can support adding a canvas node in a workflow to manage the layout of elements in a canvas according to a desired style, thereby improving the editing efficiency of the target workflow and improving the efficiency of the target workflow in processing images.

[0024] Various example implementations of the scheme are described in further detail below in conjunction with the accompanying drawings.

[0025] Example Environment

[0026] FIG. 1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG. 1, the example environment 100 can include an electronic device 110.

[0027] In this example environment 100, the electronic device 110 can be running an application 120 that supports interface interaction. The application 120 can be any suitable type of application for interface interaction, examples of which can include but are not limited to a development application or other suitable application that supports workflow creation. A user 140 can interact with the application 120 via the electronic device 110 and / or its attached devices.

[0028] In the environment 100 of FIG. 1, if the application 120 is in an active state, the electronic device 110 can present an interface 150 for supporting the creation of a workflow via the application 120.

[0029] In some embodiments, the electronic device 110 communicates with the server 130 to enable provisioning of services of the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, a tablet computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a palmtop computer, a portable gaming terminal, a VR / AR device, a Personal Communication System (PCS) terminal, a personal navigation device, a Personal Digital Assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a game device, or any combination thereof, including an accessory or peripheral device for the foregoing, or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface to a user (such as “wearable” circuitry, etc.).

[0030] The server 130 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and basic cloud computing services such as big data and artificial intelligence platforms. The server 130 may, for example, include a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 can provide background services for the application 120 in the electronic device 110 that supports a virtual scene.

[0031] A communication connection can be established between the server 130 and the electronic device 110. The communication connection can be established by wired or wireless means. The communication connection can include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, and the like, and embodiments of the present disclosure are not limited in this regard. In embodiments of the present disclosure, the server 130 and the electronic device 110 can implement signaling interaction through the communication connection therebetween.

[0032] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only, and do not imply any limitation on the scope of the present disclosure.

[0033] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.

[0034] Example process

[0035] FIG. 2 illustrates a flowchart of a process 200 of creating a workflow, according to some embodiments of the present disclosure. In the context of the present disclosure, “creating a workflow” can include various forms, for example, a new workflow can be created using the example process 200, or an existing workflow can be opened and edited using an editing interface as introduced below. The process 200 can be implemented at the electronic device 110. The process 200 is described below with reference to FIG. 1.

[0036] As shown in FIG. 2, at block 210, in response to the received editing operation, the electronic device 110 adds a first node associated with a canvas configuration to the node connection graph.

[0037] The process 200 is described below with reference to FIG. 3A. FIG. 3A illustrates an example editing interface 300A, according to some embodiments of the present disclosure.

[0038] As shown in FIG. 3A, the interface 300A can be a node editing interface for creating a workflow (also referred to as an image flow) for image processing. As shown, the electronic device 110 can present a plurality of interface elements corresponding to a plurality of node types in the interface 300A, for example, interface element 305-1 to interface element 305-6. As examples, the interface element 305-1 can be used to add an image generation node, the interface element 305-2 can be used for an image reference node, the interface element 305-3 can be used to add a matting node, the interface element 305-4 can be used to add a background replacement node, the interface element 305-5 can be used to add a canvas node, and the interface element 305-6 can be used to add an adjustment node. The above nodes can also be collectively referred to as image processing nodes.

[0039] In some embodiments, in addition to the above specific nodes, embodiments of the present disclosure can also support the addition of other appropriate types of nodes. For example, the electronic device 110 can support a user to add an already created other image flow as a single processing node to the node connection graph.

[0040] As an example, the electronic device 110 can receive a user selection of the interface element 305-4 to add a first node 315 to the node connection graph. The first node 315 is also referred to as a canvas node, for configuring canvas information in an image processing process.

[0041] At block 220, the electronic device 110 determines, via a set of configuration controls associated with the first node, canvas configuration information, the canvas configuration information indicating at least a layout of a set of elements in a canvas, the set of elements including a first element, the first element being configured by referencing a second node associated with the first node.

[0042] As shown in Figure 3A, in the node connection diagram, the first node 315 may include one or more preceding nodes. Such preceding nodes may include nodes directly connected to the first node 315, such as the second node 310. Alternatively, preceding nodes may also include other nodes that are not directly connected to the first node 315 but have a connection path with it.

[0043] Additionally, in the node connection graph, the first node 315 may also include one or more subsequent nodes, such as the third node 320. As an example, the image processing result of the image processing node of the first node 315 can be used as input to the third node 320. It should be understood that the first node 315 may also be, for example, the last node in the workflow.

[0044] The following section will describe in detail the specific configuration process of the canvas nodes, referring to Figures 3B and 3C.

[0045] Figure 3B shows the configuration window 300B of the first node 315. As shown in Figure 3B, the configuration window 300B may include a set of configuration controls, such as configuration control 335, configuration control 340, and configuration control 355.

[0046] In some embodiments, as shown in FIG3B, the configuration control 335 can set canvas size information, such as canvas scale and size. Alternatively, the configuration control 335 can also set the canvas background style, such as background color and background pattern.

[0047] In some embodiments, as shown in FIG3B, the configuration control 340 can be used to obtain element configuration information 345 to configure one or more elements (also referred to as canvas elements) to be added to the canvas. Taking FIG3B as an example, the element configuration information 345 can indicate three canvas elements 348-1, 348-2 and 348-3 (referred to individually or collectively as canvas element 348).

[0048] In some embodiments, as shown in FIG3B, element configuration information 345 may indicate the type of canvas element 348. For example, canvas element 348-1 is a text element, canvas element 348-2 is an image element, and canvas element 348-3 is a shape element.

[0049] Additionally, element configuration information 345 can also indicate the content of each canvas element 348. In some embodiments, configuration control 340 can allow a user to configure canvas element 348-1 or canvas element 348-2 by referencing a node associated with the first node 315. In some embodiments, the node associated with the first node 315 may include a preceding node of the first node 315 in the node connection graph, such as a second node 310. Such a preceding node may not be directly connected to the first node 315.

[0050] As shown in FIG. 3B, the electronic device 110 can configure the content of the canvas element 348-1 to reference the data “TEXT1” in “node 1” and can configure the content of the canvas element 348-2 to reference the data “IMAGE1” in “node 1” through the configuration control 340.

[0051] Further, for the canvas element 348-3, the electronic device 110 can support the user to configure the specific type of the shape, e.g., a circle.

[0052] In some embodiments, the element configuration information 345 can further indicate the display mode of the canvas element 348-1 and the canvas element 348-2. For example, taking the canvas element 348-2 as an example, the element configuration information 345 can indicate that the corresponding area in the canvas is filled with the image “IMAGE1” in “node 1”.

[0053] In some embodiments, as shown in FIG. 3B, the configuration window 300B further includes a canvas editing control 350. Further, in response to the canvas elements 348 being configured in the configuration control 340, the electronic device 110 can add the indication elements corresponding to the configured canvas elements 348 in the canvas editing control 350.

[0054] For example, the indication element 360-1 can correspond to the configured canvas element 348-1, the indication element 360-2 can correspond to the canvas element 348-2, and the indication element 360-3 can correspond to the canvas element 348-3.

[0055] In some embodiments, for the canvas elements configured by referencing other nodes (e.g., the canvas element 348-1 or the canvas element 348-2), the corresponding indication elements (e.g., the indication element 360-1 or the indication element 360-2) can include identifiers to indicate that the content of the elements is sourced from referencing other nodes.

[0056] Further, the electronic device 110 can determine the layout of the corresponding canvas elements 380 in the canvas of the first node 315 based on the layout information of the indication elements 360 in the canvas editing control 350.

[0057] In some embodiments, such layout information can include, but is not limited to, the position, size, orientation, etc. of the indication elements 360 in the canvas editing control 350.

[0058] Additionally, the electronic device 110 can also receive an editing operation for the indication element 360 to adjust the layout information of the indication element 360 in the canvas editing control 350. For example, the user can drag the indication element 360 to adjust the position, and can adjust the size, orientation, etc. of the indication element 360 through appropriate editing operations.

[0059] In some embodiments, the electronic device 110 can also determine the style information of the indication element 360 via the canvas editing control 359. Such style information may, for example, include the font style of the text, the style of the image, the line style of the graph, etc. Further, the electronic device 110 can determine the display style of the corresponding canvas element 348 in the canvas based on the configured style information.

[0060] In some embodiments, as shown in FIG. 3B, the electronic device 110 can also provide a control 355 to support providing a canvas editing area with a larger size. As shown in FIG. 3C, the electronic device 110 can present a window 300C as shown in FIG. 3C based on the selection of the control 355.

[0061] As shown in FIG. 3C, the window 300C may, for example, provide a canvas editing area 375 with a larger size, and can also provide one or more editing controls 370. Such editing controls 370 may, for example, include controls for adding one or more input elements to the canvas editing area 375.

[0062] In some embodiments, the electronic device 110 can receive an element adding operation via the canvas editing control. For example, the electronic device 110 can add a text element 370 in the canvas editing area 375 based on the user’s selection of a text editing control.

[0063] In the processing of the first node 315, such text element 370 is added to the image output result of the first node 315 according to its layout and style in the canvas editing area 375.

[0064] As an example, the user may, for example, add appropriate elements such as text elements, image elements, shape elements, hand-drawn elements, etc. through the editing controls 370, and can edit the layout and / or style of these elements in the canvas through a similar process.

[0065] Further, the electronic device 110 can determine the layout information and / or style information of the elements in the canvas of the first node 315 based on the canvas editing control 350. This enables the first node 315 to output the corresponding image processing result based on such configuration information.

[0066] As an example, referring to FIG. 3C, in the process of the first node 315, the first node 315 can obtain the data "TEXT1" and "IMAGE1" defined in the second node 310, and can fill the indication elements 360-1 and 360-2 to determine the elements to be presented in the canvas.

[0067] Further, the first node 315 can generate the image processing result of the first node 315 by adding the configured element(s) on the configured canvas.

[0068] At block 230, the electronic device 110 creates a target workflow based on the node connection graph.

[0069] Continuing to refer to FIG. 3A, in some embodiments, after the editing of the node connection graph is completed, the electronic device 110 can trigger a corresponding debugging process based on the control 325, for example.

[0070] In some embodiments, to improve the efficiency of debugging, the electronic device 110 can also present a management interface (e.g., a debugging interface) of the target workflow in the execution process (e.g., the debugging process) of the target workflow.

[0071] Further, the electronic device 110 can display a node window corresponding to each processing node in the target workflow. Further, the electronic device 110 can also display the image processing result output by the image processing node in the node window corresponding to the image processing node. For example, the electronic device 110 can display a preview of the image generated by each image processing node in the node window to facilitate the user to debug and manage the execution of the workflow.

[0072] Additionally, the electronic device 110 can also create and publish a corresponding target workflow based on the triggering of the control 330. As an example, the electronic device 110 can create a corresponding target workflow based on the configuration information of each node in the node connection graph and the connection between the nodes, etc. Such a target workflow can be published or shared to other users, for example.

[0073] In some embodiments, such a target workflow can be independently published, or can trigger the creation and / or publication of an application based on the target workflow, such as a bot or an agent.

[0074] Based on the above-described processes, embodiments of the present disclosure can support the addition of a canvas node in the workflow to manage the layout of each element in the canvas according to the desired style, thereby improving the editing efficiency of the target workflow and improving the efficiency of the target workflow in processing images.

[0075] Example apparatuses and devices

[0076] Embodiments of the present disclosure also provide a corresponding apparatus for implementing the above method or process. FIG. 4 shows a schematic structural block diagram of an example apparatus 400 for creating a workflow, according to certain embodiments of the present disclosure. The apparatus 400 can be implemented as or included in the electronic device 110. Various modules / components in the apparatus 400 can be implemented by hardware, software, firmware, or any combination thereof.

[0077] As shown in FIG. 4, the apparatus 400 includes an adding module 410 configured to add, in response to a received editing operation, a first node associated with a canvas configuration to a node connection graph; a determining module 420 configured to determine, via a set of configuration controls associated with the first node, canvas configuration information, the canvas configuration information indicating at least a layout of a set of elements in a canvas, the set of elements including a first element, the first element being configured by referencing a second node associated with the first node; and a creating module 430 configured to create, based on the node connection graph, a target workflow, the first node in the target workflow being configured to output an image processing result based on the canvas configuration information.

[0078] In some embodiments, the canvas configuration information further indicates at least one of: size information of the canvas; background style of the canvas.

[0079] In some embodiments, the set of configuration controls includes a canvas editing control, and the determining module 420 is further configured to: in response to the first element being configured in the first node, add, in the canvas editing control, a first indication element corresponding to the first element; and determine, based on layout information of the first indication element in the canvas editing control, the layout of the first element in the canvas.

[0080] In some embodiments, the apparatus 400 further includes an adjusting module configured to, in response to receiving an editing operation for the first indication element, adjust the layout information of the first indication element in the canvas editing control.

[0081] In some embodiments, the apparatus 400 further includes a style determining module configured to determine, via the canvas editing control, style information of the first indication element; and determine, based on the style information, a display style of the first element in the canvas.

[0082] In some embodiments, the determining module 420 is further configured to: receive, via the canvas editing control, an element adding operation; and based on adding, via the element adding operation, a third element to the canvas editing control, the third element being included in the image processing result output by the first node, the third element including at least one of a text element, a graphic element, and an image element.

[0083] In some embodiments, the set of configuration controls comprises an element configuration control, and the determining module 420 is further configured to: acquire, via the element configuration control, element configuration information, the element configuration information being indicative of a set of elements associated with the first node.

[0084] In some embodiments, the element configuration information is indicative of at least one of: identification information of the element; source information of the element; and display mode of the element.

[0085] In some embodiments, the set of elements further comprises a second element input via the canvas editing control.

[0086] In some embodiments, the target workflow comprises at least one image processing node, the at least one image processing node comprising the first node, and the apparatus 400 further comprises a preview module configured to: in response to the target workflow being executed, display a target interface of the target workflow, the target node comprising at least one node window corresponding to the at least one image processing node; and display, in the at least one node window, image processing results output by the at least one image processing node respectively.

[0087] FIG. 5 illustrates a block diagram of an electronic device 500 in which one or more embodiments of the disclosure can be implemented. It should be understood that the electronic device 500 illustrated in FIG. 5 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 500 illustrated in FIG. 5 can be used to implement the electronic device 110 of FIG. 1.

[0088] As shown in FIG. 5, the electronic device 500 is in the form of a general electronic device. The components of the electronic device 500 can include, but are not limited to, one or more processors 510 or processing units, a memory 520, a storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. The processor 510 can be an actual or virtual processor and is capable of performing various processing according to programs stored in the memory 520. In a multi-processor system, multiple processors perform computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 500.

[0089] The electronic device 500 typically includes a plurality of computer storage media. Such media can be any available media that is accessible by the electronic device 500 and includes both volatile and nonvolatile media, removable and non-removable media. The memory 520 can be volatile (such as register, cache, RAM), non-volatile (such as ROM, EEPROM, flash memory), or some combination of the two. The storage device 530 can be a removable or non-removable media, and can include machine-readable media, such as flash drives, magnetic disks, or any other media that can be used to store information and / or data and that can be accessed by the electronic device 500.

[0090] The electronic device 500 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5, a disk drive for reading from or writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk (e.g., a CD-ROM) can be provided. In such instances, each drive can be connected to the bus (not shown) by one or more data media interfaces. The memory 520 can include a computer program product 525 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.

[0091] The communication unit 540 enables communication with other electronic devices over communication media. Additionally, the functionality of the components of the electronic device 500 can be implemented in a single computing cluster or a plurality of computer machines capable of communication over a communication connection. Thus, the electronic device 500 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network nodes.

[0092] The input device 550 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 560 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 can also communicate with one or more external devices (not shown) such as a storage device, a display device, etc. through the communication unit 540, as needed, one or more devices that enable a user to interact with the electronic device 500, or any devices (e.g., a network card, a modem, etc.) that enable the electronic device 500 to communicate with one or more other electronic devices. Such communication can be carried out via an input / output (I / O) interface (not shown).

[0093] According to an example implementation of the present disclosure, a computer readable storage medium is provided having computer executable instructions stored thereon, where the computer executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided that is tangibly stored on a non-transitory computer readable medium and includes computer executable instructions, where the computer executable instructions are executed by a processor to implement the method described above.

[0094] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0095] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, 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 / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include a non-transitory computer readable storage medium. The instructions stored on the computer readable storage medium can be used to program a computer, a programmable data processing apparatus, and / or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0096] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0097] The computer program product of the present disclosure can have a signal including said computer program. This signal can be electronic, electromagnetic, optical, or any other suitable type of signal. Such a signal can be provided through a communication connection, such as electrical wiring, optical fiber, wireless interface, etc. Examples of computer program products include computer program implemented on a personal computer, server, or other networked device. A non-transitory computer readable medium, such as a floppy disk, CD-ROM, DVD-ROM, Blu-ray Disc, hard disk, or memory stick, can also be used to implement the present disclosure. The computer program product of the present disclosure can also be provided as a service to download and use the computer program over a network, such as the Internet.

[0098] Having described several implementations of the present disclosure, it will be clear to those skilled in the art that many modifications, additions, and substitutions are possible without departing from the scope and spirit of the described implementations. Many modifications and variations of the present disclosure are possible in light of the above teachings. It is, therefore, to be understood that within the scope of the appended claims, the present disclosure can be practiced otherwise than as specifically described. While the present disclosure has been described with reference to the implementation figures, it will be understood by those skilled in the art that various changes can be made and equivalents can be substituted for elements thereof without departing from the scope of the present disclosure. In addition, many modifications can be made to adapt to a particular situation and the teachings of the present disclosure to a specific implementation, without departing from the central novel teachings of the application. The implementation(s) illustrated and described herein are meant only to serve as examples. Departures in form and detail are within the scope of the disclosure. Therefore, one skilled in the art can restructure the implementation(s) as needed, while still adhering to the principles of the present disclosure.

Claims

1. A method of creating a workflow, comprising: adding, in response to a received editing operation, a first node associated with a canvas configuration to a node connection graph; determining, via a set of configuration controls associated with the first node, canvas configuration information, the canvas configuration information indicating at least a layout of a set of elements in a canvas, the set of elements including a first element, the first element being configured by referencing a second node associated with the first node; and creating, based on the node connection graph, a target workflow, the first node in the target workflow being configured to output an image processing result based on the canvas configuration information.

2. The method of claim 1, wherein the canvas configuration information further indicates at least one of: dimension information of the canvas; background style of the canvas.

3. The method of claim 1, wherein the set of configuration controls includes a canvas editing control, and determining, via a set of configuration controls associated with the first node, canvas configuration information comprises: adding, in response to the first element being configured in the first node, a first indication element corresponding to the first element in the canvas editing control; and determining, based on layout information of the first indication element in the canvas editing control, the layout of the first element in the canvas.

4. The method of claim 3, further comprising: adjusting, in response to receiving an editing operation for the first indication element, the layout information of the first indication element in the canvas editing control.

5. The method of claim 3, further comprising: determining, via the canvas editing control, style information of the first indication element; and determining, based on the style information, a display style of the first element in the canvas.

6. The method of claim 3, wherein determining, via a set of configuration controls associated with the first node, canvas configuration information comprises: receiving, via the canvas editing control, an element adding operation; and based on adding, via the element adding operation, a third element to the canvas editing control, causing the third element to be included in the image processing result output by the first node, the third element including at least one of a text element, a graphic element, and an image element.

7. The method of claim 1, wherein the set of configuration controls includes an element configuration control, and determining, via a set of configuration controls associated with the first node, canvas configuration information comprises: obtaining, via the element configuration control, element configuration information, the element configuration information indicating the set of elements associated with the first node.

8. The method of claim 7, wherein the element configuration information indicates at least one of: identification information of an element; source information of an element; display mode of an element.

9. The method of claim 3, wherein the set of elements further includes a second element input via the canvas editing control.

10. The method of claim 1, wherein the target workflow comprises at least one image processing node, the at least one image processing node comprising the first node, the method further comprising: in response to the target workflow being executed, displaying a target interface of the target workflow, the target nodes comprising at least one node window corresponding to the at least one image processing node; and displaying, in the at least one node window, image processing results respectively output by the at least one image processing node.

11. An apparatus for creating a workflow, comprising: an adding module configured to, in response to a received editing operation, add, to a node connection graph, a first node associated with a canvas configuration; a determining module configured to determine, via a set of configuration controls associated with the first node, canvas configuration information, the canvas configuration information indicating at least a layout of a set of elements in a canvas, the set of elements comprising a first element, the first element being configured by referencing a second node associated with the first node; and a creating module configured to create, based on the node connection graph, a target workflow, the first node in the target workflow being configured to output image processing results based on the canvas configuration information.

12. An electronic device, comprising: at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions, when executed by the at least one processor, cause the electronic device to perform the method of any of claims 1-10.

13. A computer-readable storage medium having computer-executable instructions stored thereon that are executable by a processor to implement the method of any of claims 1-10.

14. A computer program product tangibly stored in a computer storage medium and comprising computer-executable instructions that, when executed by a device, cause the device to perform the method of any of claims 1-10.

Citation Information

Patent Citations

  • Data processing method, device and system

    CN110941467A

  • Workflow construction method and device, computer equipment and storage medium

    CN111667199A

  • Process node layout method and device for canvas, storage medium and terminal

    CN118152053A

  • Batch drawing method and device based on stable diffusion model, medium and equipment

    CN118192865A

  • Information processing method and system

    US20130263143A1