Image processing method and device, electronic equipment, storage medium and program product
By adding a filter image conversion node to the image editing interface and directly converting it to a preset format, the cumbersome filter image processing problem in existing technologies is solved, achieving efficient image processing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, filter image processing requires cumbersome operations with various external tools, resulting in low efficiency and difficulty in meeting the needs of large-scale image processing.
An image processing method and apparatus are provided, which simplify the operation process by displaying an image editing interface and adding a filter image conversion node, and directly convert a first filter image into a second filter image in a preset format.
It enables a visual presentation of filter image processing, reduces the difficulty of operation, improves processing efficiency, and simplifies operation steps.
Smart Images

Figure CN121785504A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to computer application technology, and more particularly to an image processing method, apparatus, electronic device, storage medium, and program product. Background Technology
[0002] In image processing and video production, special effects are highly favored by users. Special effects can be created using special effects creation tools. These tools can be used to create filter effects, which can then be applied to images and / or videos to achieve filtered results.
[0003] In related technologies, when applying filter effects to images, filter image resources in specific formats are used. Many common filter image resources are in the form of Look-Up Tables (LUTs), which cannot be directly applied to images to achieve filter effects. Multiple external tools are typically required to convert the LUT format. Furthermore, if the resulting filter effect is poor, further adjustments to the filter image resource are needed using external tools. This method of image processing requires users to be proficient in using multiple external tools, making it extremely cumbersome, time-consuming, and inefficient, and unsuitable for processing large batches of images. Summary of the Invention
[0004] This disclosure provides an image processing method, apparatus, electronic device, storage medium, and program product to visualize the filter image processing process. Furthermore, it allows for the conversion of a first filter image to be processed into a second filter image in a preset format through simple interactive operations, simplifying the operation steps of the filter image processing process and reducing its operational difficulty.
[0005] In a first aspect, embodiments of this disclosure provide an image processing method, the method comprising:
[0006] Display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node;
[0007] In response to an identifier trigger operation for the node identifier corresponding to the filter image conversion node, the filter image conversion node is added to the image editing interface;
[0008] In response to an image setting operation for the filter image conversion node, a first filter image is obtained and converted into a second filter image of a preset format through the filter image conversion node.
[0009] Secondly, embodiments of this disclosure also provide an image processing apparatus, the apparatus comprising:
[0010] An editing interface display module is used to display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node;
[0011] The conversion node adding module is used to add the filter image conversion node to the image editing interface in response to an identifier trigger operation for the node identifier corresponding to the filter image conversion node;
[0012] The filter image generation module is used to respond to the image setting operation for the filter image conversion node, obtain the set first filter image, and convert the first filter image into a second filter image of a preset format through the filter image conversion node.
[0013] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0014] One or more processors;
[0015] Storage device for storing one or more programs.
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the image processing method as described in any of the embodiments of this disclosure.
[0017] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the image processing method as described in any of the embodiments of this disclosure.
[0018] Fifthly, this disclosure also provides a computer program product, which includes a computer program that, when executed by a processor, implements the image processing method described in any embodiment of the present invention.
[0019] The technical solution of this disclosure, by displaying an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node, can visualize the filter image processing process, facilitating subsequent image processing operations; furthermore, in response to an identifier trigger operation on the node identifier corresponding to the filter image conversion node, the filter image conversion node is added to the image editing interface. Filter image conversion nodes can be added to the image editing interface through simple interactive operations, reducing the operational difficulty of the filter image processing process and supporting the execution of filters within a visualized image editing interface. The image processing flow further includes: responding to image setting operations for the filter image conversion node, acquiring the set first filter image, and converting the first filter image into a second filter image of a preset format through the filter image conversion node. This solves the technical problems of cumbersome and complex operation, time-consuming and laborious operation, and low efficiency in related technologies. It realizes the visualization of the filter image processing process, and the first filter image to be processed can be converted into a second filter image of a preset format through simple interactive operation. This simplifies the operation steps of the filter image processing process, reduces the operation difficulty of the filter image processing process, and thus improves the processing efficiency of filter effects. Attached Figure Description
[0020] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 This is a schematic flowchart of an image processing method provided in an embodiment of the present disclosure;
[0022] Figure 2 This is a schematic diagram illustrating the effect of a filter image conversion node provided in an embodiment of the present disclosure;
[0023] Figure 3 This is a schematic diagram illustrating the effect of an image upload node provided in an embodiment of this disclosure;
[0024] Figure 4 This is a schematic flowchart of another image processing method provided in an embodiment of the present disclosure;
[0025] Figure 5 This is a schematic flowchart of another image processing method provided in an embodiment of the present disclosure;
[0026] Figure 6 This is a schematic diagram of the structure of an image processing apparatus provided in an embodiment of the present disclosure;
[0027] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0033] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0034] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0039] Figure 1 This is a flowchart illustrating an image processing method provided in an embodiment of the present disclosure. This embodiment is applicable to converting a non-preset format filter image into a preset format filter image. The method can be executed by an image processing device, which can be implemented in software and / or hardware, optionally through an electronic device, such as a mobile terminal, PC, or server. Figure 1 As shown, the method in this embodiment may specifically include:
[0040] S110. Display the image editing interface, wherein the image editing interface includes at least one node identifier corresponding to the image editing node, and the image editing node includes a filter image conversion node.
[0041] The image editing interface can be a visual interface presented to the user for image editing and / or displaying screen content. The image editing interface can be understood as a visual interface that supports users in editing images through visual editing nodes. In this embodiment, the image editing interface can provide users with an intuitive and easy-to-understand image editing interface, allowing them to construct image editing logic by dragging and / or placing editing nodes. The image editing interface includes at least one node identifier corresponding to an image editing node. An image editing node can be understood as a visual component applied in a graphical editing environment, which can be used to perform image editing operations. Image editing nodes can be dragged and connected, allowing users to construct complete image editing logic. The node identifier can be information used to identify the image editing node. The node identifier can be any form of information, optionally including text, numbers, English letters, or graphics. The image editing node can include various editing nodes capable of performing image editing operations, optionally including filter image conversion nodes. A filter image conversion node can be a visual component used to perform filter image conversion. In other words, a first filter image to be processed can be converted into a second filter image that meets the filter image requirements based on the filter image conversion node.
[0042] In this embodiment, an image editing operation can be pre-set to trigger the display of an image editing interface. Upon detecting an image editing operation, in response to the operation, an image editing interface is displayed. This interface may include at least one node identifier corresponding to an image editing node, and the included image editing nodes may include filter image conversion nodes. Furthermore, corresponding image editing nodes can be added to the image editing interface based on the node identifiers displayed therein, allowing image editing based on the added nodes. The image editing operation can be understood as an operation that triggers the execution of subsequent image editing processes. Optionally, the image editing operation may include at least one of the following: triggering a preset image editing control; receiving a preset image editing instruction; receiving audio information including trigger keywords associated with the image editing operation, etc.
[0043] As an optional implementation of this disclosure, at least one image editing operation can be predetermined, which may include a filter image conversion operation. Then, an image editing node corresponding to each image editing operation can be determined, and this image editing node may include a filter image conversion node. Next, a node identifier corresponding to each image editing node can be determined and associated with the image editing node for storage. Further, if a trigger operation on a preset image editing control is detected, it is determined that an image editing operation has been detected. Then, in response to the image editing operation, an image editing interface is displayed. Further, at least one predetermined node identifier corresponding to the image editing node can be obtained and displayed in the image editing interface.
[0044] S120. In response to the identifier trigger operation for the node identifier corresponding to the filter image conversion node, add the filter image conversion node to the image editing interface.
[0045] In this embodiment of the disclosure, there are various ways to add and display image editing nodes in the image editing interface. In order to facilitate operation and reduce the difficulty of operation, the image editing nodes to be added to the image editing interface can be determined by the identification selection method.
[0046] In this context, an identifier triggering operation can be understood as an operation applied to a node identifier to put the node identifier into a triggered state. An identifier triggering operation can be an operation that triggers the selection of a node identifier. Optionally, an identifier triggering operation includes, but is not limited to, at least one of the following: click operation (including single click and multiple clicks), long press operation, touch operation, and swipe operation.
[0047] In this embodiment of the disclosure, when at least one node identifier corresponding to an image editing node is displayed in the image editing interface, a trigger operation can be input for the displayed node identifier to add the image editing node corresponding to the triggered node identifier to the image editing interface. Furthermore, upon detecting an identifier trigger operation for the node identifier corresponding to a filter image conversion node, in response to the identifier trigger operation, the filter image conversion node is added to the image editing interface so that image editing can be performed in the image editing interface based on the added filter image conversion node.
[0048] In this embodiment, the method of displaying at least one node identifier corresponding to an image editing node and the added image editing interface based on the image editing interface can include various approaches. To improve the clarity of the displayed information and enhance the navigation and scalability of the interface, the image editing interface can be divided into multiple areas, each of which can be used to display different information. Optionally, the image editing interface can include an identifier display area and a visual editing area. The identifier display area can be used to display at least one node identifier corresponding to an image editing node. The identifier display area can be displayed in any form within the image editing interface, optionally including a menu list, navigation bar, and / or pop-up window. The visual editing area can be used to display the added image editing node and perform visual image editing based on the added image editing interface. The visual editing area can be any interface area in the image editing interface other than the identifier display area.
[0049] As an optional implementation of this embodiment, when an image editing operation is detected, an image editing interface is displayed in response to the image editing operation. The image editing interface displays an identifier display area including node identifiers corresponding to at least one image editing node. An identifier trigger operation can be input for any node identifier displayed in the identifier display area to select the corresponding node identifier. Further, when an identifier trigger operation is detected for a node identifier corresponding to a filter image conversion node, the filter image conversion node is acquired in response to the identifier trigger operation, and the acquired filter image conversion node is added to the visual editing area of the image editing interface so that image editing can be performed in the visual editing area based on the added filter image conversion node.
[0050] S130. In response to an image setting operation for a filter image conversion node, obtain the set first filter image, and convert the first filter image into a second filter image of a preset format through the filter image conversion node.
[0051] The image setting operation can be understood as an operation used to set the image to be edited. Optionally, the image setting operation may include an image upload operation and / or an image drag-and-drop operation. In this embodiment, the filter image conversion node can be an editing node used to perform the filter image conversion operation. The image setting operation for the filter image conversion node may include an image setting operation directly applied to the filter image conversion node, or an image setting operation applied to an image upload node associated with the filter image conversion node, etc. The first filter image may be a filter image to be edited. The first filter image may be an image capable of performing filter processing on any image. The first filter image may be an image obtained after processing using a look-up table (LUT) technique, in which the image has undergone specific adjustments in terms of color, contrast, saturation, exposure, etc., to achieve a specific visual effect. It can be understood that an LUT is essentially a data table that defines the mapping between input data (usually color values) and output data (modified color values). When performing image processing on the image to be processed based on the first filter image, the color value conversion of the image to be processed can be achieved through a preset color mapping table contained in the first filter image. In other words, color correction or stylization effects can be achieved by reading the color values in the first filter image and replacing the color values in the image to be processed with the colors defined in the first filter image. The first filter image can be a filter image of any format, optionally PNG or JPG, etc. The second filter image can be a filter image that meets the requirements of the filter image. The preset format can be any image format, optionally RGB, etc.
[0052] In the embodiments of this disclosure, the method of obtaining the set first filter image can include multiple methods, including directly applying the filter image conversion node to obtain the first filter image, or applying the image upload node connected to the filter image conversion node to obtain the first filter image, etc. These multiple acquisition methods will be described in detail below.
[0053] One method of acquisition is as follows: the filter image conversion node includes a conversion image setting item; in response to an image setting operation for the filter image conversion node, the first filter image to be set is acquired, including: in response to an image setting operation for the conversion image setting item of the filter image conversion node, the first filter image to be set is acquired.
[0054] The image settings option can be an entry point for supporting user input of image settings. Optionally, image settings operations may include image identifier selection, image identifier editing, image storage path selection, and / or image storage path editing.
[0055] In this embodiment, an image setting operation can be input to the conversion image setting item included in the filter image conversion node. Then, upon detecting an image setting operation for the conversion image setting item, the first filter image can be obtained based on the image setting operation. The advantage of this setup is that it achieves the effect of directly obtaining the first filter image based on the filter image conversion node, enhancing the convenience of setting the first filter image, reducing the operational difficulty of the filter image setting process, and thus improving the conversion efficiency of the filter image.
[0056] As an optional implementation of this embodiment, when an image identifier display operation for the image conversion settings is detected, at least one image identifier corresponding to a candidate filter image can be displayed based on the image identifier display area of the image conversion settings. Furthermore, when an image identifier selection operation for any image identifier is detected, the candidate filter image corresponding to the selected image identifier can be obtained, the candidate filter image can be used as the first filter image, and the selected image identifier can be displayed based on the image conversion settings.
[0057] As another optional implementation of this disclosure, conversion image settings can be pre-set on the filter image conversion node. Furthermore, when an image path editing operation is detected for the conversion image settings, the conversion image settings can be set to an editable state, meaning that an image path can be entered in the conversion image settings. Further, when a path editing completion operation is detected, the image path entered in the conversion image settings can be obtained, and a corresponding filter image can be obtained based on that image path, using the obtained filter image as the first filter image.
[0058] For example, Figure 2 This is a schematic diagram illustrating the effect of a filter image conversion node provided in an embodiment of this disclosure. Figure 2 As shown, the filter image conversion node 21 includes a conversion image settings item 211. When an image setting operation is detected for the conversion image settings item 211, a first filter image can be obtained and the image identifier of the first filter image can be displayed in the conversion image settings item 211.
[0059] Another approach is that the image editing node includes an image upload node; in response to an image setting operation for the filter image conversion node, the first filter image is obtained, including: if the image upload node includes a storage path setting item, in response to a storage path setting operation for the storage path setting item of the image upload node, the image stored under the set storage path is obtained as the first filter image.
[0060] The image upload node can be a visual component used to perform image upload operations. The storage path settings item can be understood as an entry point allowing users to set image storage paths. The storage path setting operation can be understood as setting the image storage path. Optionally, the storage path setting operation can include storage path selection and / or storage path editing operations. The storage path can be understood as the location where image files are stored in the computer system. In other words, the required image can be located based on the storage path.
[0061] It should be noted that the image upload node can be an editing node added to the image editing interface and can be connected to the filter image conversion node.
[0062] In this embodiment, the node identifier displayed in the image editing interface may include a node identifier corresponding to the image upload node. Further, upon detecting an identifier trigger operation on the node identifier corresponding to the image upload node, in response to the identifier trigger operation, the image upload node is added to the image editing interface. The added image upload node may include a pre-set storage path setting. Further, a storage path setting operation can be input for the storage path setting item of the image upload node. Then, in response to the storage path setting operation, the set storage path is determined, and the corresponding image is obtained according to the storage path. Furthermore, the obtained image can be used as the first filter image.
[0063] As an optional implementation of this embodiment, when an image upload node is added to the image editing interface, and the added image upload node includes a storage path setting item, a path display operation can be input for the storage path setting item. Furthermore, at least one candidate storage path can be displayed based on the path display area of the storage path setting item. Further, when a path selection operation for any candidate storage path is detected, the selected candidate storage path can be determined and used as the set storage path. Then, the corresponding image can be obtained based on this storage path. Finally, the obtained image can be used as the first filter image.
[0064] As another optional implementation of this disclosure, when an image upload node is added to the image editing interface, and the added image upload node includes a storage path setting item, a storage path editing operation can be input for the storage path setting item. That is, the image storage path to be edited can be input in the storage path setting item based on the storage path editing operation. Further, when a storage path editing operation for the storage path setting item is detected, the storage path setting item can be set to an editable state, and a storage path can be input in the storage path setting item. When an editing completion operation is detected, the storage path input in the storage path setting item can be obtained, and this storage path can be used as the set storage path. Then, the corresponding image can be obtained based on this storage path. Furthermore, the obtained image can be used as the first filter image.
[0065] Another approach is to respond to an image selection operation and an image drag operation that drags the selected image to the target node area of the image upload node, identify the dragged image as the first filter image, and associate the first filter image with the image upload node for display.
[0066] The image selection operation can be applied to any image to change it from an unselected state to a selected state. In this embodiment, at least one candidate filter image can be displayed. Then, an image selection operation can be input for the displayed at least one filter image. Optionally, the candidate filter image can be displayed based on an image editing interface, or it can be displayed based on an image display interface different from the image editing interface; this embodiment does not specifically limit this. The image selection operation can include any operation applied to the candidate image, optionally including, but not limited to, at least one of click operations (including single clicks and multiple clicks), long press operations, and touch operations. The target node region can be a node action region associated with the image upload node. The target node region can be a node editing region capable of establishing an association with the image upload node. Optionally, the target node region can be an editing region capable of automatically establishing an association with the image upload node; or, the target node region can also be an editing region establishing an association with the image upload node based on a node connection operation. The target node region can be an editing region constructed with the image upload node as the center and a preset distance as the radius. Image dragging can specifically involve selecting an image, dragging it to a preset position without releasing the selection, and then releasing the selection.
[0067] In this embodiment of the disclosure, at least one candidate filter image is displayed. Further, if an image selection operation is detected for any candidate filter image, the selected image can be determined based on the image selection operation. Further, an image drag operation can be input for the selected image to drag the selected image to the target node area of the image upload node. When the selected image is dragged to the target node area, this image can be used as the first filter image, and an image node can be generated based on the first filter image. This image node is then connected to the image upload node to associate and display the first filter image with the image upload node.
[0068] In this embodiment of the disclosure, when a first filter image is obtained, the first filter image can be converted into a second filter image of a preset format through a filter image conversion node.
[0069] Optionally, converting the first filter image into a second filter image of a preset format via the filter image conversion node includes: parsing the first filter image into a third filter image of a preset format and creating a filter grid image of a second format via the filter image conversion node, writing the pixel colors in the third filter image into the filter grid image, and obtaining the second filter image.
[0070] The third filter image can be a filter image obtained by parsing the first filter image and in a preset format. The second format can be a filter image file format capable of performing filter processing. The second format can be any image format, optionally, the CUBE format. The filter grid image can be a grid image capable of storing the colors of filter pixels. The filter grid image can be a blank image composed of multiple uniform grid regions.
[0071] As an optional implementation of this embodiment, when acquiring a first filter image, a preset format can be set based on the filter image conversion node. Further, the filter image conversion node is executed to parse the first filter image into a third filter image of the preset format based on the filter image conversion node and the preset format, and the image size of the third filter image is obtained. Then, a filter network image of the second format can be created based on the obtained image size. Further, the pixel color of each pixel in the third filter image can be read, and the read pixel color can be written into the corresponding pixel in the filter network image according to the pixel mapping relationship. Then, the filter network image with the pixel colors written can be used as the second filter image. The advantage of this setup is that it achieves the effect of converting a non-preset format filter image into a preset format filter image based on the filter image conversion node, simplifying the operation steps of the filter image processing process and reducing the operational difficulty of the filter image processing process.
[0072] For example, Figure 3 This is a schematic diagram illustrating the effect of an image upload node provided in an embodiment of this disclosure. Figure 3 As shown, the image upload node 31 includes a storage path setting item 311 and an upload control 312. Upon detecting a storage path setting operation on the storage path setting item 311, the storage path of the first filter image can be set based on the storage path setting item 311, and the set storage path is displayed in the storage path setting item 311. Furthermore, upon detecting a trigger operation on the upload control, the filter image under that path can be retrieved according to the set storage path, and the retrieved filter image is used as the first filter image 313, which is then displayed in the image upload node 31. Furthermore, the image upload node 31 can be connected to the filter image conversion node 21. Furthermore, upon detecting a node operation on the filter image conversion node 21, the first filter image 313 can be obtained from the image upload node 31 based on the filter image conversion node 21. Furthermore, the first filter image can be converted into a second filter image of a preset format using the filter image conversion node 21.
[0073] The technical solution of this disclosure, by displaying an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node, can visualize the filter image processing process, facilitating subsequent image processing operations; furthermore, in response to an identifier trigger operation on the node identifier corresponding to the filter image conversion node, the filter image conversion node is added to the image editing interface. Filter image conversion nodes can be added to the image editing interface through simple interactive operations, reducing the operational difficulty of the filter image processing process and supporting the execution of filters within a visualized image editing interface. The image processing flow further includes: responding to image setting operations for the filter image conversion node, acquiring the set first filter image, and converting the first filter image into a second filter image of a preset format through the filter image conversion node. This solves the technical problems of cumbersome and complex operation, time-consuming and labor-intensive operation, and low efficiency in related technologies. It realizes the visualization of the filter image processing process, and the first filter image to be processed can be converted into a second filter image of a preset format through simple interactive operation. This simplifies the operation steps of the filter image processing process, reduces the operation difficulty of the filter image processing process, and thus improves the application efficiency of filter effects.
[0074] Figure 4This is a flowchart illustrating another image processing method provided in this embodiment. Based on the above embodiments, after converting the first filter image into a second filter image of a preset format through a filter image conversion node, this embodiment further includes: determining a filter image identifier corresponding to the second filter image, storing the second filter image in a target storage space using the filter image identifier, and updating the filter image identifier of the second filter image to the filter identifier list. For detailed implementation, please refer to the description of this embodiment. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here. Figure 4 As shown, the method in this embodiment may specifically include:
[0075] S210. Display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node.
[0076] S220, In response to the identifier triggering operation for the node identifier corresponding to the filter image conversion node, add the filter image conversion node to the image editing interface.
[0077] S230, In response to an image setting operation for a filter image conversion node, obtain the set first filter image, and convert the first filter image into a second filter image of a preset format through the filter image conversion node.
[0078] S240. Determine the filter image identifier corresponding to the second filter image, store the second filter image in the target storage space using the filter image identifier, and update the filter image identifier of the second filter image to the filter identifier list.
[0079] The filter image identifier can be information used to identify the filter image. The filter image identifier can be any form of information, optionally including text, numbers, English letters, or graphics. The target storage space can be storage space associated with the relevant application software, that is, storage space accessible by the relevant application software. For example, the target storage space can be an image library in the application software or a local terminal photo album. The filter identifier list can be understood as a collection used to store filter image identifiers. The filter identifier list includes filter image identifiers corresponding to candidate filter images in a preset format. Candidate filter images can be filter images to be selected for filter processing operations. Candidate filter images can include filter images converted through filter image conversion nodes and / or filter images converted through other image conversion methods. It should be noted that after updating the filter image identifier of the second filter image to the filter image identifier list, the candidate filter images included in the filter image identifier list also include the second filter image. It should also be noted that the filter image identifiers included in the filter image identifier list can be sorted according to a preset identifier sorting standard. The preset sorting standard can be any sorting standard, such as sorting based on the label update time or sorting based on the label name of the filter image.
[0080] In this embodiment of the disclosure, determining the filter image identifier corresponding to the second filter image may include at least two methods. Optionally, the filter image identifier of the first filter image corresponding to the second filter image is obtained, and the filter image identifier is used as the filter image identifier corresponding to the second filter image; or, in response to the identifier editing operation, the edited filter image identifier is determined based on the identifier editing operation, and the edited filter image identifier is used as the filter image identifier corresponding to the second filter image, etc.
[0081] As an optional implementation of this embodiment, the filter image conversion node may include a filter image storage item, and an image identifier editing operation may be input to the filter image storage item. Furthermore, upon detecting an image identifier editing operation on the filter image storage item, the edited image identifier is determined based on the image identifier editing operation. Furthermore, when a second filter image of a preset format is obtained through the filter image conversion node, the edited image identifier can be used as the filter image identifier corresponding to the second filter image. Further, the second filter image can be stored in a target storage space using the filter image identifier, so that the second filter image and the filter image identifier are associated and stored in the target storage space. Moreover, the filter image identifier of the second filter image can be updated in the filter identifier list.
[0082] In this embodiment of the disclosure, after storing the second filter image in the target storage space and updating the filter image identifier to the filter identifier list, the filter image identifier of the candidate filter image to be filtered can be determined based on the filter identifier list. Then, the corresponding candidate filter can be retrieved from the target storage space based on the selected filter image identifier, and filter processing can be performed based on the retrieved candidate filter image.
[0083] It should be noted that there are multiple ways to apply candidate filter images. To facilitate operation, reduce the difficulty of operation, and make the filter application logic visual, candidate filter images can be applied by adding image editing nodes associated with filter application operations in the image editing interface.
[0084] Optionally, the image editing node includes a filter image application node, which includes an application image setting item and a filter image setting item. After updating the filter image identifier of the second filter image to the filter identifier list, the method further includes: obtaining the image to be processed in response to an image setting operation on the application image setting item of the filter image application node; and displaying the filter identifier list in response to an image setting operation on the filter image setting item of the filter image application node. In response to an identifier trigger operation on a filter image identifier in the filter identifier list, the target filter image in the candidate filter images is determined according to the triggered filter image identifier, and the image to be processed is filtered using the target filter image to obtain a filter effect image. The advantage of this setting is that it realizes the visualization of the filter image application process, and the target filter image to be applied can be determined through simple interactive operations, so that the target filter image can be used to filter the image to be processed. That is, it realizes the effect of applying the applicable filter image to the image to be processed in the image editing interface, thereby improving the efficiency of filter processing.
[0085] The filter image application node can be a visual component for performing filter image application operations. The application image settings item can be an entry point for users to set images to be filtered. Image setting operations for the application image settings item can be any operation applied to the application image settings item, optionally including image upload operations and / or image retrieval operations, etc. The image to be processed can be an image to be filtered. The image to be processed can be any image that needs filtering; optionally, it can be an image obtained after processing based on the special effects processing node; or, the original image without any special effects processing; or, a pre-set template image, etc. The special effects processing node can be a visual component for performing special effects processing operations. Optionally, special effects processing operations can include operations such as generating target data through a data processing model and / or generating target data through a data processing algorithm, etc. The data processing model can be a pre-trained deep learning model deployed on the server for performing special effects data processing to generate target data. The data processing model can include multiple models capable of performing special effects processing on data to generate target data, optionally including at least one of image processing models, image generation models, and dialogue generation models.
[0086] The filter image settings can be an entry point for users to set the filter image to perform filter processing operations. The target filter image can be the candidate filter image corresponding to the triggered filter image identifier. The filter effect image can be an image that applies a filter to the image to be processed based on the target filter image, so that the processed image to be processed presents a filter effect corresponding to the target filter image.
[0087] In this embodiment of the disclosure, the display method of the filter identifier list can include a variety of methods. Optionally, it can be displayed in the form of a drop-down list in the identifier display area of the filter image settings; or, it can be displayed in the form of a pop-up window in the image editing interface; or, it can be displayed in the form of a side menu bar in the image editing interface, etc.
[0088] As an optional implementation of this embodiment, the image editing interface may include a special effects processing node, which can be connected to the application image settings of the filter image application node. Furthermore, when an image setting operation is detected for the application image settings, the special effects image output by the special effects processing node can be obtained based on the filter image application node, and this special effects image can be used as the image to be processed. Also, when an image setting operation is detected for the filter image settings of the filter image application node, a filter identifier list can be obtained and displayed in a drop-down list in the identifier display area of the filter image settings. The displayed filter identifier list includes at least one filter image identifier corresponding to a candidate filter image. Further, when an identifier trigger operation is detected for any filter image identifier in the filter identifier list, the candidate filter image corresponding to the triggered filter image identifier can be used as the target filter image, and the target filter image can be retrieved from the target storage space based on the triggered filter image identifier. Further, the filter image application node can perform filter processing on the image to be processed based on the target filter image, and the processed image to be processed can be used as the filter effect image.
[0089] In practical applications, when applying a filter to an image using a target filter image, the resulting filter effect image may have an excessively low or high degree of filter processing, thus failing to meet the preset filter processing requirements.
[0090] To address the above issues, in this embodiment of the disclosure, the filter image application node further includes a filter intensity setting item; after displaying the image editing interface, it further includes: in response to a filter intensity setting operation for the filter intensity setting item of the filter image application node, obtaining the set filter intensity parameter. The advantage of this setting is that it enables customized settings of the filter intensity, enhances the flexibility of the filter processing, and, by setting the filter intensity parameter, improves the adaptability between the filter effect and the user.
[0091] The filter intensity setting can be understood as an entry point for users to adjust filter intensity parameters. The filter intensity setting operation can be understood as the operation used to set the filter intensity parameters. Optionally, the filter intensity setting operation may include filter intensity parameter selection and / or filter intensity parameter editing operations. Filter intensity parameters can be numerical values used to adjust the filter intensity or effect during filter processing. During filter processing, the image to be processed is finely adjusted based on the filter intensity parameters to achieve the desired filter effect.
[0092] As an optional implementation of this disclosure, when a filter level setting operation is detected for a filter level setting item applied to a filter image node, at least one candidate filter level parameter is displayed. Furthermore, when a parameter triggering operation for any filter level parameter is detected, that filter level parameter can be used as the set filter level parameter.
[0093] As another optional implementation of this disclosure, when a filter level setting operation is detected for a filter level setting item applied to a filter image node, the filter level setting item can be adjusted to an editable input state, and a filter level parameter can be input into the filter level setting item based on the filter level editing operation. Furthermore, when an editing completion operation is detected, the filter level parameter input into the filter level setting item can be obtained, and this parameter can be used as the set filter level parameter.
[0094] In this embodiment of the disclosure, once a pre-set filter degree parameter is obtained, the image to be processed can be filtered based on the filter degree parameter and the target filter image.
[0095] Optionally, the image to be processed is filtered using a target filter image, including: filtering the image to be processed using a set filter degree parameter and a target filter image.
[0096] As an optional implementation of this embodiment, given the set filter intensity parameters and the target filter image, filter processing can be performed on the image to be processed based on the target filter image, and the filter processing intensity and / or filter processing effect can be adjusted according to the set filter intensity parameters. This allows for the acquisition of a filter effect image that meets the desired filter effect. The advantage of this approach is that it enables customized adjustment of the filter effect, thereby enhancing the flexibility of the filter processing process and achieving the effect of obtaining filter effect images tailored to different users based on the same target filter image.
[0097] The technical solution of this disclosure, after converting a first filter image into a second filter image of a preset format through a filter image conversion node, determines the filter image identifier corresponding to the second filter image, stores the second filter image in the target storage space using the filter image identifier, and updates the filter image identifier of the second filter image to the filter identifier list. This achieves the effect of storing the converted filter image and updating the filter image identifier to the preset identifier list through simple interactive operations, simplifying the filter image storage steps and the filter identifier update steps, thereby enhancing the ease of use of filter images and improving the application efficiency of filter images.
[0098] Figure 5This is a schematic flowchart illustrating another image processing method provided in this embodiment. Based on the above embodiments, the technical solution of this embodiment generates a first filter image before acquiring the set first filter image. Then, image processing can be performed based on the generated first filter image. Detailed implementation methods can be found in the description of this embodiment. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here. Figure 5 As shown, the method in this embodiment may specifically include:
[0099] S310, In response to a filter effect adjustment operation on a standard filter image, a filter effect editing interface is displayed, wherein the filter effect editing interface displays filter parameter settings and a template image.
[0100] The standard filter image can be understood as a pre-generated filter image with a standard format containing at least one filter effect or color. For example, the standard filter image can be an 8×8 filter grid, a 512×512 pixel filter color chart in PNG or JPG format. In this embodiment, to simplify the generation process of the first filter image and reduce the operational difficulty of the first filter image generation process, a standard filter image can be used to generate the first filter image; that is, the first filter image that meets the requirements is obtained by adjusting the filter effect of the standard filter image. The filter effect adjustment operation can be understood as an operation used to adjust the filter effect of the filter image. The filter effect adjustment operation can be any operation applied to the standard filter image; optionally, it can be a click operation (including single or double clicks) applied to the standard filter image; or, it can be a selection operation of filter effect editing items applied to the standard filter image, etc. The filter effect editing interface can be a visual interface presented to the user for editing and / or presenting filter effects. The filter parameter settings can be understood as the user's entry point for adjusting filter parameters. These settings can include options corresponding to various filter parameters, optionally including at least one of the following: color balance, color temperature, hue, saturation, exposure, and contrast. The template image can be a pre-set image used to display the effect of filter parameter adjustments. It should be noted that, to more clearly and intuitively compare the effect of the standard filter image before and after adjustment based on the template image, the template image displayed in the filter effect interface can be an image obtained by applying the standard filter image to any image; that is, the template image can present the filter effect corresponding to the standard filter image. In other words, the template image displayed in the filter effect editing interface can be a filter effect image corresponding to the standard filter image.
[0101] In this embodiment of the disclosure, a standard filter image can be acquired and displayed on an image editing interface. Furthermore, upon detecting a filter effect adjustment operation on the standard filter image, in response to the filter effect adjustment operation, a filter effect editing interface is displayed. This filter effect editing interface can display filter parameter settings and a template image corresponding to the standard filter image.
[0102] As an optional implementation of this embodiment, when a standard filter image is displayed on an image editing interface, an image trigger operation can be input for the standard filter image. Furthermore, upon detecting an image trigger operation for the standard filter image, a filter effect adjustment operation is determined to have been detected. Then, in response to the filter effect adjustment operation, a filter effect editing interface is displayed.
[0103] S320, In response to the parameter setting operation for the filter parameter setting item, apply the set target filter parameters to the template image to obtain the image filter effect of the template image.
[0104] The parameter setting operation can be understood as the operation of setting filter parameters based on filter parameter setting items. Optionally, the parameter setting operation may include parameter selection, parameter editing, and / or parameter adjustment operations. It should be noted that filter parameter setting items can be used to display filter parameters. If no parameter setting operation is input for a filter parameter setting item, the filter parameters displayed can be filter parameters associated with standard filter parameters. The target filter parameter can be the filter parameter obtained after setting parameters for the filter parameter setting item. The target filter parameter can include filter parameters corresponding to at least one filter parameter setting item.
[0105] In this embodiment of the disclosure, when the filter effect editing interface includes filter parameter settings, parameter setting operations can be input for the filter parameter settings to adjust the filter effect corresponding to the standard filter image. Furthermore, the target filter parameters can be determined based on the parameter setting operations. Further, the set target filter parameters can be applied to the template image to obtain the image filter effect of the template image.
[0106] As an optional implementation of this disclosure, when a parameter setting operation for a filter parameter setting item is detected, at least one candidate filter parameter can be displayed. Furthermore, when a parameter selection operation for a candidate filter parameter is detected, the selected candidate filter parameter can be used as the filter parameter corresponding to the filter parameter setting item, and this filter parameter can be displayed in the filter parameter setting item. Furthermore, when a setting completion operation is detected, the filter parameters displayed in the filter parameter setting item can be obtained, and these filter parameters can be used as the target filter parameters for setting.
[0107] As another optional implementation of this disclosure, the filter parameter settings displayed in the filter effect editing interface can be in the form of an adjustment axis control. In this case, the parameter corresponding to the point where the pointer on the adjustment axis stops is the filter parameter corresponding to the standard filter parameter. Further, the pointer on the adjustment axis can be controlled to move along the adjustment axis based on an input device, and the parameter corresponding to the point where the pointer stops on the adjustment axis can be used as the filter parameter corresponding to the filter parameter settings. Further, when a setting completion operation is detected, the filter parameters corresponding to the pointer in the filter parameter settings can be obtained, and these filter parameters can be used as the target filter parameters for setting.
[0108] S330, in response to the effect determination operation for image filter effect, generate a first filter image based on the target filter parameters and the standard filter image.
[0109] The effect confirmation operation can be used to confirm the filter effect of the image displayed on the interface. Optionally, the effect confirmation operation can include at least one of the following: triggering a preset effect confirmation control; receiving a preset effect confirmation instruction; receiving audio information including trigger keywords associated with the effect confirmation operation, etc.
[0110] In this embodiment of the disclosure, upon detecting an effect determination operation for an image filter effect, the system responds to the effect determination operation and obtains target filter parameters corresponding to the image filter effect. Furthermore, a standard filter image can be adjusted based on the target filter parameters, and the adjusted filter image can be used as the first filter image.
[0111] S340. Display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node.
[0112] S350, In response to the identifier trigger operation for the node identifier corresponding to the filter image conversion node, add the filter image conversion node to the image editing interface.
[0113] S360, in response to an image setting operation for a filter image conversion node, obtains a set first filter image, and converts the first filter image into a second filter image of a preset format through the filter image conversion node.
[0114] It should be noted that, in this embodiment, if the filter effect corresponding to the obtained second filter image does not meet the preset filter effect requirements, the first filter image corresponding to the second filter image can be used as the standard filter image, and steps S310-S330 can be executed to adjust the filter effect of the standard filter image and obtain the adjusted first filter image. Furthermore, the adjusted first filter image can be converted into a second filter image of a preset format through a filter image conversion node.
[0115] The technical solution of this disclosure, in response to a filter effect adjustment operation on a standard filter image, displays a filter effect editing interface, which includes filter parameter settings and a template image. Further, in response to a parameter setting operation on the filter parameter settings, the set target filter parameters are applied to the template image to obtain the image filter effect of the template image. Further, in response to an effect determination operation on the image filter effect, a first filter image is generated based on the target filter parameters and the standard filter image. This achieves filter effect adjustment on the standard filter image to obtain the effect of the first filter image to be converted. The process of generating and converting filter images is integrated into the same tool, improving the convenience and efficiency of filter image processing, and enhancing the filter image processing experience.
[0116] Figure 6 This is a schematic diagram of the structure of an image processing apparatus provided in an embodiment of the present disclosure, as shown below. Figure 6 As shown, the device includes: an editing interface display module 410, a conversion node adding module 420, and a filter image generation module 430.
[0117] The editing interface display module 410 is used to display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node; the conversion node adding module 420 is used to add the filter image conversion node to the image editing interface in response to an identifier trigger operation for the node identifier corresponding to the filter image conversion node; the filter image generating module 430 is used to obtain a set first filter image in response to an image setting operation for the filter image conversion node, and convert the first filter image into a second filter image of a preset format through the filter image conversion node.
[0118] The technical solution of this embodiment displays an image editing interface through an editing interface display module 410. The image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node. This allows for a visual representation of the filter image processing process, facilitating subsequent image processing operations. Furthermore, the conversion node adding module 420, in response to an identifier trigger operation on the node identifier corresponding to the filter image conversion node, adds the filter image conversion node to the image editing interface. This allows for the addition of filter image conversion nodes through simple interactive operations, reducing the operational difficulty of the filter image processing process and supporting a visualized image editing interface. The filter image processing flow is executed in the middle; further, the filter image generation module 430 responds to the image setting operation for the filter image conversion node, obtains the set first filter image, and converts the first filter image into a second filter image of a preset format through the filter image conversion node. This solves the technical problems of cumbersome and complicated operation, time-consuming and laborious and inefficient image processing methods in related technologies, realizes the visualization of the filter image processing process, and can convert the first filter image to be processed into a second filter image of a preset format through simple interactive operation, simplifying the operation steps of the filter image processing process, reducing the operation difficulty of the filter image processing process, and thus improving the processing efficiency of filter effects.
[0119] Optionally, based on any of the above-mentioned optional technical solutions, the device further includes: an image storage module. The image storage module is configured to, after the first filter image is converted into a second filter image of a preset format through the filter image conversion node, determine a filter image identifier corresponding to the second filter image, store the second filter image in a target storage space using the filter image identifier, and update the filter image identifier of the second filter image to a filter identifier list, wherein the filter identifier list includes filter image identifiers corresponding to candidate filter images of the target format.
[0120] Based on any of the above optional technical solutions, optionally, the image editing node includes a filter image application node, the filter image application node includes an application image setting item and a filter image setting item; the device further includes: an image acquisition module and a filter processing module. The image acquisition module is configured to, after updating the filter image identifier of the second filter image to the filter identifier list, acquire an image to be processed in response to an image setting operation for the application image setting item of the filter image application node; and, in response to an image setting operation for the filter image setting item of the filter image application node, display the filter identifier list; the filter processing module is configured to, in response to an identifier trigger operation for a filter image identifier in the filter identifier list, determine a target filter image among the candidate filter images based on the triggered filter image identifier, and perform filter processing on the image to be processed using the target filter image to obtain a filter effect image.
[0121] Optionally, based on any of the above-mentioned optional technical solutions, the filter image application node further includes a filter intensity setting item; the device further includes a filter intensity setting module. The filter intensity setting module is used to obtain set filter intensity parameters in response to a filter intensity image setting operation for the filter intensity setting item of the filter image application node after the image editing interface is displayed; the filter processing module is specifically used to perform filter processing on the image to be processed using the set filter intensity parameters and the target filter image.
[0122] Optionally, based on any of the above-mentioned optional technical solutions, the filter image conversion node includes a conversion image setting item; the filter image generation module 430 includes an image setting unit. The image setting module is used to obtain a set first filter image in response to an image setting operation on the conversion image setting item of the filter image conversion node.
[0123] Based on any of the above optional technical solutions, optionally, the image editing node includes an image upload node; the filter image generation module 430 includes: a storage path setting unit or an image dragging unit. The storage path setting unit is used, when the image upload node includes a storage path setting item, in response to a storage path setting operation for the storage path setting item of the image upload node, to obtain an image stored under a set storage path as a first filter image; or, the image dragging unit is used, in response to an image selection operation and an image dragging operation where the selected image is dragged to a target node area of the image upload node, to determine the dragged image as the first filter image and associate the first filter image with the image upload node for display.
[0124] Optionally, based on any of the above-mentioned optional technical solutions, the filter image generation module 430 includes a filter image generation unit. The filter image generation unit is used to parse the first filter image into a third filter image of a preset format and create a filter grid image of a second format through the filter image conversion node, and write the pixel colors of the third filter image into the filter grid image to obtain a second filter image.
[0125] Optionally, based on any of the above-mentioned optional technical solutions, the device further includes: a filter editing interface display module, a filter parameter determination module, and a first filter image determination module. The filter editing interface display module is used to display a filter effect editing interface in response to a filter effect adjustment operation on a standard filter image before acquiring the set first filter image. The filter effect editing interface displays filter parameter settings and a template image. The filter parameter determination module is used to apply the set target filter parameters to the template image in response to a parameter setting operation on the filter parameter settings to obtain an image filter effect for the template image. The first filter image determination module is used to generate a first filter image based on the target filter parameters and the standard filter image in response to an effect determination operation on the image filter effect.
[0126] The image processing apparatus provided in this disclosure can execute the image processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.
[0127] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0128] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 7 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 7 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0129] like Figure 7 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.
[0130] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0131] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0132] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0133] The electronic device provided in this embodiment and the image processing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0134] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the image processing method provided in the above embodiments.
[0135] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0136] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0137] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0138] The aforementioned computer-readable medium carries one or more programs. When the electronic device executes the aforementioned one or more programs, the electronic device causes the electronic device to: display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node; in response to an identifier triggering operation for the node identifier corresponding to the filter image conversion node, add the filter image conversion node to the image editing interface; and in response to an image setting operation for the filter image conversion node, acquire a set first filter image, and convert the first filter image into a second filter image of a preset format through the filter image conversion node.
[0139] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0140] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0141] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The names of the units are not necessarily limiting in certain circumstances; for example, the editing interface display module can also be described as a "module for displaying an image editing interface".
[0142] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0143] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0144] According to one or more embodiments of this disclosure, [Example 1] provides an image processing method, comprising: displaying an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, the image editing node including a filter image conversion node; in response to an identifier triggering operation for the node identifier corresponding to the filter image conversion node, adding the filter image conversion node to the image editing interface; in response to an image setting operation for the filter image conversion node, acquiring a set first filter image, and converting the first filter image into a second filter image of a preset format through the filter image conversion node.
[0145] According to one or more embodiments of this disclosure, [Example 2] provides the method of Example 1, which further includes: optionally, after converting the first filter image into a second filter image of a preset format through the filter image conversion node, the method further includes: determining a filter image identifier corresponding to the second filter image, storing the second filter image in a target storage space using the filter image identifier, and updating the filter image identifier of the second filter image to a filter identifier list, wherein the filter identifier list includes filter image identifiers corresponding to candidate filter images of the target format.
[0146] According to one or more embodiments of this disclosure, [Example 3] provides the method of Example 2, further comprising: optionally, the image editing node includes a filter image application node, the filter image application node including an application image setting item and a filter image setting item; after updating the filter image identifier of the second filter image to the filter identifier list, further comprising: in response to an image setting operation for the application image setting item of the filter image application node, obtaining an image to be processed; and, in response to an image setting operation for the filter image setting item of the filter image application node, displaying the filter identifier list; in response to an identifier triggering operation for the filter image identifier in the filter identifier list, determining a target filter image among the candidate filter images according to the triggered filter image identifier, and performing filter processing on the image to be processed through the target filter image to obtain a filter effect image.
[0147] According to one or more embodiments of this disclosure, [Example 4] provides the method of Example 3, further comprising: optionally, the filter image application node further comprising a filter degree setting item; after displaying the image editing interface, further comprising: in response to a filter degree image setting operation for the filter degree setting item of the filter image application node, obtaining a set filter degree parameter; the step of performing filter processing on the image to be processed through the target filter image comprises: performing filter processing on the image to be processed through the set filter degree parameter and the target filter image.
[0148] According to one or more embodiments of this disclosure, Example 5 provides the method of Example 1, which further includes: optionally, the filter image conversion node includes a conversion image setting item; the step of obtaining the set first filter image in response to an image setting operation for the filter image conversion node includes: obtaining the set first filter image in response to an image setting operation for the conversion image setting item of the filter image conversion node.
[0149] According to one or more embodiments of this disclosure, Example Six provides the method of Example One, further comprising: optionally, the image editing node includes an image upload node; the step of obtaining the set first filter image in response to an image setting operation for the filter image conversion node includes: when the image upload node includes a storage path setting item, in response to a storage path setting operation for the storage path setting item of the image upload node, obtaining an image stored under the set storage path as the first filter image; or, in response to an image selection operation and an image dragging operation of dragging the selected image to the target node area of the image upload node, determining the dragged image as the first filter image, and displaying the first filter image associated with the image upload node.
[0150] According to one or more embodiments of this disclosure, Example 7 provides the method of Example 1, which further includes: Optionally, converting the first filter image into a second filter image of a preset format through the filter image conversion node includes: parsing the first filter image into a third filter image of a preset format and creating a filter grid image of a second format through the filter image conversion node, writing the pixel colors in the third filter image into the filter grid image, and obtaining the second filter image.
[0151] According to one or more embodiments of this disclosure, Example 8 provides the method of Example 1, which further includes: optionally, before obtaining the set first filter image, the method further includes: in response to a filter effect adjustment operation for a standard filter image, displaying a filter effect editing interface, wherein the filter effect editing interface displays filter parameter settings and a template image; in response to a parameter setting operation for the filter parameter settings, applying the set target filter parameters to the template image to obtain an image filter effect for the template image; and in response to an effect determination operation for the image filter effect, generating a first filter image based on the target filter parameters and the standard filter image.
[0152] According to one or more embodiments of this disclosure, [Example Nine] provides an image processing apparatus, comprising: an editing interface display module for displaying an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node; a conversion node adding module for adding the filter image conversion node to the image editing interface in response to an identifier triggering operation for the node identifier corresponding to the filter image conversion node; and a filter image generating module for acquiring a set first filter image in response to an image setting operation for the filter image conversion node, and converting the first filter image into a second filter image of a preset format through the filter image conversion node.
[0153] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0154] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0155] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An image processing method, characterized in that, include: Display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node; In response to an identifier trigger operation for the node identifier corresponding to the filter image conversion node, the filter image conversion node is added to the image editing interface; In response to an image setting operation for the filter image conversion node, a first filter image is obtained and converted into a second filter image of a preset format through the filter image conversion node.
2. The image processing method according to claim 1, characterized in that, After converting the first filter image into a second filter image of a preset format through the filter image conversion node, the method further includes: A filter image identifier corresponding to the second filter image is determined, the second filter image is stored in the target storage space using the filter image identifier, and the filter image identifier of the second filter image is updated to the filter identifier list, wherein the filter identifier list includes filter image identifiers corresponding to the candidate filter images of the preset format.
3. The image processing method according to claim 2, characterized in that, The image editing node includes a filter image application node, which includes application image settings and filter image settings. After updating the filter image identifier of the second filter image to the filter identifier list, the method further includes: In response to an image setting operation on the application image settings item of the filter image application node, an image to be processed is acquired; and in response to an image setting operation on the filter image settings item of the filter image application node, the filter identifier list is displayed. In response to an identifier triggering operation for a filter image identifier in the filter identifier list, a target filter image is determined from the candidate filter images based on the triggered filter image identifier, and the image to be processed is processed using the target filter image to obtain a filter effect image.
4. The image processing method according to claim 3, characterized in that, The filter image application node also includes filter intensity settings; Following the display of the image editing interface, the following is also included: In response to a filter degree setting operation for the filter degree setting item of the filter image application node, the set filter degree parameter is obtained; The step of applying a filter to the image to be processed using the target filter image includes: The image to be processed is filtered by setting the filter intensity parameters and the target filter image.
5. The image processing method according to claim 1, characterized in that, The filter image conversion node includes conversion image settings; the step of obtaining the set first filter image in response to the image setting operation for the filter image conversion node includes: In response to the image setting operation of the conversion image settings item for the filter image conversion node, the first filter image is obtained.
6. The image processing method according to claim 1, characterized in that, The image editing node includes an image upload node; the step of obtaining the set first filter image in response to the image setting operation for the filter image conversion node includes: If the image upload node includes a storage path setting, in response to a storage path setting operation for the storage path setting of the image upload node, the image stored under the set storage path is obtained as the first filter image; or, In response to an image selection operation and an image drag operation that drags the selected image to the target node area of the image upload node, the dragged image is identified as the first filter image, and the first filter image is associated with and displayed with the image upload node.
7. The image processing method according to claim 1, characterized in that, The step of converting the first filter image into a second filter image of a preset format through the filter image conversion node includes: The filter image conversion node parses the first filter image into a third filter image of a preset format and creates a filter grid image of a second format. The pixel colors in the third filter image are written into the filter grid image to obtain the second filter image.
8. The image processing method according to claim 1, characterized in that, Before acquiring the first filter image set, the following is also included: In response to a filter effect adjustment operation on a standard filter image, a filter effect editing interface is displayed, wherein the filter effect editing interface displays filter parameter settings and a template image; In response to the parameter setting operation for the filter parameter setting item, the set target filter parameters are applied to the template image to obtain the image filter effect of the template image; In response to the effect determination operation for image filter effect, a first filter image is generated based on the target filter parameters and the standard filter image.
9. An image processing apparatus, characterized in that, include: An editing interface display module is used to display an image editing interface, wherein the image editing interface includes at least one node identifier corresponding to an image editing node, and the image editing node includes a filter image conversion node; The conversion node adding module is used to add the filter image conversion node to the image editing interface in response to an identifier trigger operation for the node identifier corresponding to the filter image conversion node; The filter image generation module is used to respond to the image setting operation for the filter image conversion node, obtain the set first filter image, and convert the first filter image into a second filter image of a preset format through the filter image conversion node.
10. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the image processing method as described in any one of claims 1-8.
11. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the image processing method as described in any one of claims 1-8.
12. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the image processing method according to any one of claims 1-8.