Image processing method and device, storage medium and electronic equipment

By using preset linked lists to store target parameters in image processing and directly modifying the linked list node pointer, the problem of low image processing efficiency in the prior art is solved, and efficient image processing and visual effect improvement is achieved.

CN119295343AInactive Publication Date: 2025-01-10GUANGZHOU YINGFENG NETWORK TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411232702.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2025-01-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art has low efficiency in image processing, resulting in low image processing efficiency and cannot effectively improve the aesthetics and realistic effects of the image.

Method used

By obtaining the target parameters configured for the processing effect required for the image to be processed, determine the target node in the preset linked list, call the target code and execute it, and directly modify the linked list node pointer to add or delete the processing effect to avoid reconstructing the image processing flow.

Benefits of technology

It greatly improves image processing efficiency, can adjust processing parameters according to different device parameters and real-time status, and generate images with better visual effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119295343A_ABST
    Figure CN119295343A_ABST
Patent Text Reader

Abstract

According to the image processing method and device, the storage medium and the electronic equipment provided by the invention, the target parameter configured for the processing effect required by the to-be-processed image can be acquired, the node for storing the target parameter is determined in the preset linked list to serve as the target node, and the target node is stored in the to-be-processed image. And calling a target code used for realizing a processing effect corresponding to the target node, transmitting the target parameter stored in the target node to the target code, and executing the target parameter so as to perform image processing on the to-be-processed image and obtain a processed image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an image processing method, device, storage medium and electronic device. Background Art

[0002] At present, in order to improve the presentation effect of the picture when executing services such as gaming services and animation production services, the images used can be processed to make the processed images more beautiful and realistic. For example, the images can be processed by color correction, dynamic blur, etc.

[0003] During the image processing, the image can be adjusted accordingly to obtain an image with better visual effects. For example, a color correction process can be added to the image to enhance the color saturation of the image. For another example, the dynamic blur effect of the image can be deleted to improve the clarity of the image.

[0004] However, the efficiency of adjusting the image using the existing technology is low, resulting in low image processing efficiency. Summary of the invention

[0005] This specification provides an image processing method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides an image processing method, including:

[0008] Obtaining target parameters configured for the processing effect required for the image to be processed;

[0009] Determine a node for storing the target parameter in a preset linked list as a target node, wherein target parameters corresponding to different processing effects are respectively stored in different nodes of the preset linked list;

[0010] The target code for realizing the processing effect corresponding to the target node is called, and the target parameter stored in the target node is passed to the target code and executed, so as to perform image processing on the image to be processed and obtain a processed image.

[0011] Optionally, the step of obtaining target parameters configured for a processing effect required for the image to be processed specifically includes:

[0012] Obtaining target parameters configured for each processing effect required for the image to be processed;

[0013] The step of determining a node for storing the target parameter in a preset linked list as a target node specifically includes:

[0014] For each target parameter configured for a processing effect, a node for storing the target parameter configured for the processing effect is determined in a preset linked list as a target node corresponding to the processing effect;

[0015] The step of calling the target code for realizing the processing effect corresponding to the target node, and passing the target parameter stored in the target node to the target code and executing it to perform image processing on the image to be processed specifically includes:

[0016] For each target node, a target code for realizing a processing effect corresponding to the target node is called, and a target parameter stored in the target node is passed to the target code corresponding to the target node and executed, so as to perform image processing on the image to be processed.

[0017] Optionally, for each target node, calling a target code for realizing a processing effect corresponding to the target node, and passing a target parameter stored in the target node to a target code corresponding to the target node and executing the target code to perform image processing on the image to be processed to obtain a processed image, specifically includes:

[0018] For each target node, the target code for implementing the processing effect corresponding to the target node is called, and the target parameters stored in the target node are passed to the target code corresponding to the target node and executed to obtain an intermediate rendered image processed based on the target parameters corresponding to the target node, and based on the access order of each target node, the target code for implementing the processing effect corresponding to the next target node located at the target node is called, and the target parameters stored in the next target node are passed to the target code corresponding to the next target node to process the intermediate rendered image until the last target node in the access order is passed to obtain a processed image corresponding to the image to be processed.

[0019] Optionally, the method further comprises:

[0020] receiving an evaluation instruction for the processed image;

[0021] According to the evaluation instruction, the processed image is evaluated to perform business execution according to the obtained evaluation result.

[0022] Optionally, the step of evaluating the processed image according to the evaluation instruction and performing a service according to the obtained evaluation result specifically includes:

[0023] According to the evaluation instruction, an adjustment operation is performed on at least one node in the preset linked list storing the target parameter to obtain an adjusted linked list, wherein the adjustment operation includes: deleting at least one of the nodes in the preset linked list storing the target parameter, adding additional nodes storing new target parameters in the preset linked list, and modifying the target parameters stored in at least some of the nodes in the preset linked list storing the target parameter;

[0024] Based on the parameters configured for the image to be processed and stored in the adjusted linked list, the image to be processed is processed to obtain a reference image;

[0025] An evaluation result for the image to be processed is determined according to the reference image, so as to perform a service according to the evaluation result.

[0026] Optionally, before the step of calling the target code for implementing the processing effect corresponding to the target node, the method further includes:

[0027] Determining device parameters corresponding to a device that displays the image to be processed;

[0028] According to the device parameters, adjusting at least part of the target parameters stored in the target node in the preset linked list to obtain an adjusted linked list;

[0029] The step of calling the target code for realizing the processing effect corresponding to the target node, and passing the target parameter stored in the target node to the target code and executing it, so as to perform image processing on the image to be processed and obtain the processed image, specifically includes:

[0030] The target code of the processing effect corresponding to the target node contained in the adjusted linked list is called, and the target parameter stored in the target node contained in the adjusted linked list is passed to the called target code and executed, so as to perform image processing on the image to be processed to obtain a processed image.

[0031] Optionally, before the step of calling the target code for implementing the processing effect corresponding to the target node, the method further includes:

[0032] Determining device parameters corresponding to a device that displays the image to be processed;

[0033] Determining, according to the target parameter, a replacement parameter for replacing the target parameter under the device condition corresponding to the device parameter;

[0034] Storing the replacement parameter in a target node in a preset linked list;

[0035] The step of calling the target code for realizing the processing effect corresponding to the target node, and passing the target parameter stored in the target node to the target code and executing it, so as to perform image processing on the image to be processed and obtain the processed image, specifically includes:

[0036] Calling a target code for implementing a processing effect corresponding to the target node, and reading the stored target parameter and the replacement parameter from the target node;

[0037] According to the real-time device status information of the device, the selected parameters are determined from the target parameters and the replacement parameters, and the selected parameters are passed to the target code for execution, so as to perform image processing on the image to be processed and obtain a processed image.

[0038] This specification provides an image processing device, including:

[0039] Acquisition module: used for acquiring target parameters configured for the processing effect required for the image to be processed;

[0040] A determination module is used to determine a node for storing the target parameter in a preset linked list as a target node, wherein target parameters corresponding to different processing effects are respectively stored in different nodes of the preset linked list;

[0041] Processing module: used to call the target code for realizing the processing effect corresponding to the target node, and pass the target parameters stored in the target node to the target code for execution, so as to perform image processing on the image to be processed and obtain a processed image.

[0042] This specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned image processing method is implemented.

[0043] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the image processing method is implemented when the processor executes the program.

[0044] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0045] The image processing method provided in the present specification can obtain target parameters configured for the processing effects required for the image to be processed, determine a node for storing the target parameters in a preset linked list as the target node, call a target code for implementing the processing effect corresponding to the target node, and pass the target parameters stored in the target node to the target code and execute it, so as to perform image processing on the image to be processed and obtain a processed image.

[0046] It can be seen from this that in the process of image processing using the above method, the target parameters configured for the processing effects required for the image to be processed can be stored in the nodes of the linked list, and the specified processing effects can be added or deleted by directly modifying the pointer of the corresponding node in the linked list to adjust the image without rebuilding the entire image processing process, thereby greatly improving the image processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0048] Figure 1 A flowchart of an image processing method provided in this specification;

[0049] Figure 2 A schematic diagram of an image processing flow provided in this specification;

[0050] Figure 3 A schematic diagram of an image processing flow provided in this specification;

[0051] Figure 4 A schematic diagram of an image processing device provided in this specification;

[0052] Figure 5 A method corresponding to the Figure 1 Schematic block diagram of an electronic device. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0054] At present, in order to improve the presentation effect of the picture when executing businesses such as game business and animation production business, the images used can be processed to make the processed images more beautiful and realistic. For example, the image can be processed by color correction, dynamic blur and the like. In the process of image processing, the image can be adjusted accordingly to obtain an image with better visual effect. For example, a color correction process can be added to the image to enhance the color saturation of the image. For another example, the dynamic blur effect of the image can be deleted to improve the clarity of the image. However, the efficiency of adjusting the image using the existing technology is low, resulting in low image processing efficiency.

[0055] Therefore, this specification provides an image processing method, which can effectively solve the problems in the prior art.

[0056] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0057] Figure 1 A flowchart of an image processing method provided in this specification includes the following steps:

[0058] S101: Obtain target parameters configured for a processing effect required for an image to be processed.

[0059] The execution subject of the image processing method involved in this specification can be a terminal device such as a desktop computer, a laptop computer, etc., or a client installed in the terminal device, or a server. The image processing method in the embodiment of this specification is described below by taking the server as the execution subject as an example.

[0060] In this specification, the server can obtain an image to be processed and perform image processing on the obtained image to be processed, so that the image to be processed can achieve a corresponding processing effect, for example, the image to be processed can be subjected to color correction processing, dynamic blur processing, depth of field processing, etc. Among them, the image to be processed can be an image that needs to be processed in services such as game services and animation services.

[0061] In the process of performing image processing on the image to be processed, the server may first obtain target parameters configured for the processing effect required for the image to be processed. The target parameters are data that can characterize the intensity information of the image processing, the area information of the image processing, etc., such as the blur intensity of the dynamic blur processing, the blur trajectory length, the color tone of the color correction processing, etc.

[0062] In actual application, the server may display a visual interface for managers to select target parameters. Managers may select target parameters through the visual interface, thereby obtaining target parameters configured for the processing effects required for the image to be processed.

[0063] S102: Determine a node for storing the target parameter in a preset linked list as a target node, wherein target parameters corresponding to different processing effects are respectively stored in different nodes of the preset linked list.

[0064] S103: calling a target code for realizing a processing effect corresponding to the target node, and passing a target parameter stored in the target node to the target code for execution, so as to perform image processing on the image to be processed and obtain a processed image.

[0065] In this specification, a preset linked list may be used to store the target parameters. First, a node for storing the target parameters may be determined in the preset linked list and used as the target node. Furthermore, the target parameters corresponding to different processing effects may be stored in different nodes of the preset linked list.

[0066] Furthermore, the server can call the target code for implementing the processing effect corresponding to the target node, and pass the target parameters stored in the target node to the target code for execution to perform image processing on the image to be processed, thereby obtaining a processed image that can implement the processing effect corresponding to the target node.

[0067] In addition, in actual application, it is often necessary to achieve multiple processing effects for the image to be processed, for example, to achieve dynamic blur effect and depth of field effect for the image to be processed. In this specification, in order to achieve multiple processing effects for the image to be processed, the server can first obtain the target parameters configured for each processing effect required for the image to be processed. The target parameters required to achieve different processing effects are often different, and accordingly, the target codes required to achieve different processing effects are also often different. Different target codes can be set according to different processing effects to facilitate subsequent image processing.

[0068] Furthermore, the server may store the target parameters of each processing effect in different nodes of a preset linked list. Specifically, for the target parameters configured for the processing effect, the server may first determine the node for storing the target parameters configured for the processing effect in the preset linked list as the target node corresponding to the processing effect, so as to store the target parameters of the processing effect in the corresponding target node. For example, the blur intensity and blur trajectory length corresponding to the dynamic blur effect may be stored in node A, and the hue and contrast corresponding to the color correction effect may be stored in node B.

[0069] Furthermore, for each target node, a target code for realizing a processing effect corresponding to the target node may be called, and the target parameters stored in the target node may be passed to the target code corresponding to the target node and executed to perform image processing on the image to be processed.

[0070] Specifically, for each target node, the target code for implementing the processing effect corresponding to the target node can be called, and the target parameters stored in the target node are passed to the target code corresponding to the target node and executed, thereby obtaining an intermediate rendered image processed based on the target parameters corresponding to the target node.

[0071] Furthermore, based on the access order of each target node, the target code for implementing the corresponding processing effect of the target node next to the target node can be called, and the target parameter stored in the target node next to the target node can be passed to its corresponding target code to process the intermediate rendering image until the last target node in the access order is passed to obtain the processed image corresponding to the image to be processed. The access order of each target node refers to the front-to-back order of each node in the preset linked list.

[0072] In order to further explain the above process, the following will be explained in the form of a legend. For details, please refer to the following Figure 2 .

[0073] Figure 2 This is a schematic diagram of an image processing flow provided in this manual.

[0074] Depend on Figure 2 It can be seen that the preset linked list contains three target nodes, target node A stores the target parameters configured for the color correction effect, target node B stores the target parameters configured for the dynamic blur effect, and target node C stores the target parameters configured for the depth of field effect. Target node A is the head node, target node B is the successor node of target node A, and target node C is the successor node of target node B.

[0075] During the image processing process, the server can first call the target code for implementing the color correction effect based on the access order of each target node (target node A--target node B--target node C), and pass the target parameters configured for the color correction effect stored in target node A to the target code and execute it to obtain the intermediate rendered image after color correction processing. Then, the target code for implementing the dynamic blur effect can be called, and the target parameters configured for the dynamic blur effect stored in target node B can be passed to the target code and executed to perform dynamic blur processing on the intermediate rendered image after color correction processing, thereby obtaining the intermediate rendered image after color correction processing and dynamic blur processing. Finally, the target code for implementing the depth of field effect can be called, and the target parameters configured for the depth of field effect stored in target node C can be passed to the target code and executed to perform depth of field processing on the intermediate rendered image after color correction processing and dynamic blur processing, thereby obtaining the processed image after color correction processing, dynamic blur processing and depth of field processing.

[0076] In addition, in this specification, the processed image can also be evaluated, for example, by deleting part of the processing effect corresponding to the processed image, adding part of the processing effect to the processed image, modifying at least part of the existing processing effect of the processed image, etc. Then, according to the evaluation result, an image with better visual effect can be determined for business execution.

[0077] Specifically, the server may first receive an evaluation instruction for the processed image, wherein the evaluation instruction may represent adjustment information of the processing effect corresponding to the processed image. For example, in practical applications, the server may provide a visual interface to the management personnel, and the management personnel may input the corresponding evaluation instruction through the visual interface, so that the server may receive the corresponding evaluation instruction.

[0078] Furthermore, the server may perform an adjustment operation on at least one node storing the target parameter in the preset linked list corresponding to the processed image according to the evaluation instruction, thereby obtaining an adjusted linked list. For example, when the evaluation instruction is to delete part of the processing effect corresponding to the processed image, the target parameter stored in the corresponding part of the nodes storing the target parameter in the preset linked list may be deleted, thereby obtaining an adjusted linked list.

[0079] For another example, when the evaluation instruction is to add some processing effects to the processed image, the target parameters stored in the node for storing new target parameters can be additionally added to the preset linked list corresponding to the processed image, thereby obtaining an adjusted linked list.

[0080] For another example, when the evaluation instruction is to modify at least part of the existing processing effect of the processed image, the target parameters stored in the corresponding at least part of the nodes storing the target parameters in the preset linked list can be modified to obtain the adjusted linked list.

[0081] Furthermore, the server can process the image to be processed based on the parameters configured for the image to be processed stored in the adjusted linked list, thereby obtaining a reference image. The server can determine the evaluation result for the image to be processed based on the reference image, and perform business according to the evaluation result.

[0082] For example, by adjusting the blur intensity corresponding to the processed image to 0.5, a reference image is obtained, and then the processed image and the reference image can be compared at the visual effect level, so that the evaluation result can be obtained as "After adjusting the blur intensity of the processed image to 0.5, the clarity is also high while having a blur effect, and the visual effect is better." The image with better visual effect can then be applied to businesses such as gaming and animation production.

[0083] In actual application, when performing image processing, you can also refer to the device parameters of the device that displays the image to be processed to make corresponding adjustments to generate images with higher visual effects within the processing capability of the device. The device parameters can reflect the performance of the device, and the device parameters include CPU model, GPU model, memory capacity, etc.

[0084] Specifically, the server may first determine the device parameters corresponding to the device displaying the image to be processed, and then adjust at least part of the target parameters stored in the target node in the preset linked list according to the determined device parameters, thereby obtaining an adjusted linked list.

[0085] When the device performance reflected by the device parameters is high, the target parameters can be appropriately adjusted in the direction of making the visual effect of the image better. For example, when the device performance reflected by the device parameters of the device displaying the image to be processed is high, the color accuracy, color saturation and other parameters configured for the color correction effect stored in the target node can be appropriately increased.

[0086] Alternatively, when the device performance reflected by the device parameters is low, the target parameters can be appropriately adjusted down according to the device performance reflected by the device parameters to prevent the device from being overloaded. For example, when the device performance reflected by the device parameters of the device displaying the image to be processed is low, the color accuracy, color saturation and other parameters configured for the color correction effect stored in the target node can be appropriately reduced.

[0087] Then, the server can call the target code corresponding to the processing effect of the target node contained in the adjusted linked list, and pass the target parameters stored in the target node contained in the adjusted linked list to the called target code and execute it to perform image processing on the image to be processed to obtain a processed image.

[0088] Of course, in addition to adjusting the target parameters stored in the target node according to the device parameters, the target parameters may also be adjusted with reference to the real-time device status information of the device.

[0089] Specifically, after determining the device parameters corresponding to the device displaying the image to be processed, the server can determine the replacement parameters used to replace the target parameters under the device conditions corresponding to the device parameters according to the target parameters stored in the target node. The replacement parameters can refer to the parameters that can make the visual effect of the image better under the device conditions corresponding to the device parameters. Then, the determined replacement parameters can be stored in the target node. For example, the sharpening amount configured for the color correction effect is 5, and the color saturation is 3. Correspondingly, under the device conditions corresponding to the device parameters, the corresponding replacement sharpening amount can be 7, and the replacement color saturation can be 6.

[0090] Then, the server can call the target code for implementing the processing effect corresponding to the target node, and read the stored target parameters and replacement parameters from the target node, and determine the selected parameters from the read target parameters and replacement parameters according to the real-time device status information of the device (real-time GPU utilization, real-time CPU utilization, etc.), and pass the selected parameters to the target code for implementing the processing effect corresponding to the target node for execution, so as to perform image processing on the image to be processed and obtain a processed image.

[0091] For example, if the real-time device state of the device is poor (such as low GPU utilization), the target parameters can be selected from the read target parameters and replacement parameters, and the target parameters can be passed to the corresponding target code and executed. Conversely, if the real-time device state of the device is better, the replacement parameters can be selected from the read target parameters and replacement parameters, and the replacement parameters can be passed to the corresponding target code and executed.

[0092] In order to further explain the above process, the following will be explained in the form of a legend. For details, please refer to the following Figure 3 .

[0093] Figure 3 This is a schematic diagram of an image processing flow provided in this manual.

[0094] Depend on Figure 3It can be seen that the preset linked list contains two target nodes, target node A stores the target parameters configured for the color correction effect and the corresponding replacement parameters under the device conditions of the device displaying the image to be processed, and target node B stores the target parameters configured for the dynamic blur effect and the corresponding replacement parameters under the device conditions of the device displaying the image to be processed. The server can perform image processing based on the access order of each target node (target node A--target node B). When executing the color correction operation corresponding to target node A, if the current device state is better (such as high GPU utilization), the replacement parameters can be selected from the read target parameters and replacement parameters and passed to the target code for realizing the color correction effect and executed to obtain the intermediate rendered image processed based on the replacement parameters. Correspondingly, when executing the dynamic blur operation corresponding to target node B, if the current device state is poor (such as low GPU utilization), the target parameters can be selected from the read target parameters and replacement parameters and passed to the target code for realizing the dynamic blur effect and executed to obtain the processed image processed based on the replacement target parameters.

[0095] Of course, the preset linked list used in this specification can be a single linked list, a double linked list, etc., and this specification does not limit it here.

[0096] It can be seen from this that in the process of image processing using the above method, the target parameters configured for the processing effects required for the image to be processed can be stored in the nodes of the linked list, and the specified processing effects can be added or deleted by directly modifying the pointer of the corresponding node in the linked list to adjust the image without rebuilding the entire image processing process, thereby greatly improving the image processing efficiency.

[0097] In addition, in the above method, the target parameters can also be adjusted accordingly by referring to the device parameters of the device displaying the image to be processed and the real-time device status information of the device, so as to determine the parameters within the processing capacity of the device and which can make the visual effect of the image to be processed better, and process the image to be processed based on the parameters, thereby greatly improving the effect of image processing.

[0098] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding image processing device, such as Figure 4 shown.

[0099] Figure 4 A schematic diagram of an image processing device provided in this specification includes:

[0100] Acquisition module 401: used to acquire target parameters configured for the processing effect required for the image to be processed;

[0101] Determining module 402: used to determine a node for storing the target parameter in a preset linked list as a target node, wherein target parameters corresponding to different processing effects are respectively stored in different nodes of the preset linked list;

[0102] Processing module 403: used to call the target code for realizing the processing effect corresponding to the target node, and pass the target parameters stored in the target node to the target code for execution, so as to perform image processing on the image to be processed and obtain a processed image.

[0103] Optionally, the acquisition module 401 is specifically used to: acquire target parameters configured for each processing effect required for the image to be processed; the determination module 402 is specifically used to: for the target parameters configured for each processing effect, determine in a preset linked list a node for storing the target parameters configured for the processing effect as the target node corresponding to the processing effect; the processing module 403 is specifically used to: for each target node, call a target code for implementing the processing effect corresponding to the target node, and pass the target parameters stored in the target node to the target code corresponding to the target node and execute it, so as to perform image processing on the image to be processed.

[0104] Optionally, the processing module 403 is specifically used to: for each target node, call the target code used to implement the processing effect corresponding to the target node, and pass the target parameter stored in the target node to the target code corresponding to the target node and execute it to obtain an intermediate rendered image processed based on the target parameter corresponding to the target node, and based on the access order of each target node, call the target code used to implement the processing effect corresponding to the next target node located at the target node, and pass the target parameter stored in the next target node to the target code corresponding to the next target node to process the intermediate rendered image until the last target node in the access order is passed to obtain a processed image corresponding to the image to be processed.

[0105] Optionally, the method further includes: an evaluation module 404;

[0106] The evaluation module 404 is specifically used for: receiving an evaluation instruction for the processed image; and evaluating the processed image according to the evaluation instruction, so as to perform a service according to the obtained evaluation result.

[0107] Optionally, the evaluation module 404 is specifically used to: perform an adjustment operation on at least one node in the preset linked list storing target parameters according to the evaluation instruction to obtain an adjusted linked list, the adjustment operation including: deleting some of the nodes in the preset linked list storing target parameters, adding additional nodes storing new target parameters in the preset linked list, and modifying at least one of the target parameters stored in at least some of the nodes in the preset linked list storing target parameters; based on the parameters configured for the image to be processed stored in the adjusted linked list, process the image to be processed to obtain a reference image; based on the reference image, determine an evaluation result for the image to be processed, so as to perform business execution based on the evaluation result.

[0108] Optionally, the method further includes: an adjustment module 405;

[0109] The adjustment module 405 is specifically used to: determine the device parameters corresponding to the device that displays the image to be processed; according to the device parameters, adjust at least part of the target parameters stored in the target node in the preset linked list to obtain an adjusted linked list; the processing module 403 is specifically used to: call the target code corresponding to the processing effect of the target node contained in the adjusted linked list, and pass the target parameters stored in the target node contained in the adjusted linked list to the called target code and execute it, so as to perform image processing on the image to be processed and obtain a processed image.

[0110] Optionally, the method further includes: replacing module 406;

[0111] The replacement module 406 is specifically used to determine the device parameters corresponding to the device that displays the image to be processed; determine the replacement parameters used to replace the target parameters under the device conditions corresponding to the device parameters according to the target parameters; and store the replacement parameters in the target node in the preset linked list; the processing module 403 is specifically used to: call the target code used to achieve the processing effect corresponding to the target node, and read the stored target parameters and the replacement parameters from the target node; determine the selected parameters from the target parameters and the replacement parameters according to the real-time device status information of the device, and pass the selected parameters to the target code for execution, so as to perform image processing on the image to be processed and obtain a processed image.

[0112] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 The image processing method shown.

[0113] This manual also provides Figure 5 The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The image processing method shown.

[0114] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0115] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0116] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

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

[0118] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0119] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0120] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0123] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0124] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0125] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0126] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0127] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0128] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0129] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0130] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. An image processing method, characterized in that: include: Obtaining target parameters configured for the processing effect required for the image to be processed; Determine a node for storing the target parameter in a preset linked list as a target node, wherein target parameters corresponding to different processing effects are respectively stored in different nodes of the preset linked list; The target code for realizing the processing effect corresponding to the target node is called, and the target parameter stored in the target node is passed to the target code and executed, so as to perform image processing on the image to be processed and obtain a processed image.

2. The method according to claim 1, characterized in that The step of obtaining target parameters configured for the processing effect required for the image to be processed specifically includes: Obtaining target parameters configured for each processing effect required for the image to be processed; The step of determining a node for storing the target parameter in a preset linked list as a target node specifically includes: For each target parameter configured for a processing effect, a node for storing the target parameter configured for the processing effect is determined in a preset linked list as a target node corresponding to the processing effect; The step of calling the target code for realizing the processing effect corresponding to the target node, and passing the target parameter stored in the target node to the target code and executing it to perform image processing on the image to be processed specifically includes: For each target node, a target code for realizing a processing effect corresponding to the target node is called, and a target parameter stored in the target node is passed to the target code corresponding to the target node and executed, so as to perform image processing on the image to be processed.

3. The method according to claim 2, characterized in that The step of calling, for each target node, a target code for realizing a processing effect corresponding to the target node, and passing a target parameter stored in the target node to a target code corresponding to the target node and executing the target code to perform image processing on the image to be processed to obtain a processed image specifically includes: For each target node, the target code for implementing the processing effect corresponding to the target node is called, and the target parameters stored in the target node are passed to the target code corresponding to the target node and executed to obtain an intermediate rendered image processed based on the target parameters corresponding to the target node, and based on the access order of each target node, the target code for implementing the processing effect corresponding to the next target node located at the target node is called, and the target parameters stored in the next target node are passed to the target code corresponding to the next target node to process the intermediate rendered image until the last target node in the access order is passed to obtain a processed image corresponding to the image to be processed.

4. The method according to claim 1, characterized in that The method further comprises: receiving an evaluation instruction for the processed image; According to the evaluation instruction, the processed image is evaluated to perform business execution according to the obtained evaluation result.

5. The method according to claim 4, characterized in that The step of evaluating the processed image according to the evaluation instruction and performing business execution according to the obtained evaluation result specifically includes: According to the evaluation instruction, an adjustment operation is performed on at least one node in the preset linked list storing the target parameter to obtain an adjusted linked list, wherein the adjustment operation includes: deleting at least one of the nodes in the preset linked list storing the target parameter, adding additional nodes storing new target parameters in the preset linked list, and modifying the target parameters stored in at least some of the nodes in the preset linked list storing the target parameter; Based on the parameters configured for the image to be processed and stored in the adjusted linked list, the image to be processed is processed to obtain a reference image; An evaluation result for the image to be processed is determined according to the reference image, so as to perform a service according to the evaluation result.

6. The method according to claim 1, characterized in that Before the step of calling the target code for implementing the processing effect corresponding to the target node, the method further includes: Determining device parameters corresponding to a device that displays the image to be processed; According to the device parameters, adjusting at least part of the target parameters stored in the target node in the preset linked list to obtain an adjusted linked list; The step of calling the target code for realizing the processing effect corresponding to the target node, and passing the target parameter stored in the target node to the target code and executing it, so as to perform image processing on the image to be processed and obtain the processed image, specifically includes: The target code of the processing effect corresponding to the target node contained in the adjusted linked list is called, and the target parameter stored in the target node contained in the adjusted linked list is passed to the called target code and executed, so as to perform image processing on the image to be processed to obtain a processed image.

7. The method according to claim 1, characterized in that Before the step of calling the target code for implementing the processing effect corresponding to the target node, the method further includes: Determining device parameters corresponding to a device that displays the image to be processed; Determining, according to the target parameter, a replacement parameter for replacing the target parameter under the device condition corresponding to the device parameter; Storing the replacement parameter in a target node in a preset linked list; The step of calling the target code for realizing the processing effect corresponding to the target node, and passing the target parameter stored in the target node to the target code and executing it, so as to perform image processing on the image to be processed and obtain the processed image, specifically includes: Calling a target code for implementing a processing effect corresponding to the target node, and reading the stored target parameter and the replacement parameter from the target node; According to the real-time device status information of the device, the selected parameters are determined from the target parameters and the replacement parameters, and the selected parameters are passed to the target code for execution, so as to perform image processing on the image to be processed and obtain a processed image.

8. An image processing device, characterized in that: include: Acquisition module: used for acquiring target parameters configured for the processing effect required for the image to be processed; A determination module is used to determine a node for storing the target parameter in a preset linked list as a target node, wherein target parameters corresponding to different processing effects are respectively stored in different nodes of the preset linked list; Processing module: used to call the target code for realizing the processing effect corresponding to the target node, and pass the target parameters stored in the target node to the target code for execution, so as to perform image processing on the image to be processed and obtain a processed image.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for generating special effect video

    CN108769562A

  • Image special effect processing method and device and computer readable storage medium

    CN108986017A

  • Image processing method, electronic equipment and readable storage medium

    CN110930467A

  • Multi-view video monitoring system building method and electronic equipment

    CN115514940A

  • Data processing method, data processing device and computer readable storage medium

    CN116128704A