Image processing method, device and storage medium

By presetting the enable function and buffer number in the terminal, the problems of memory waste and inefficiency during image processing are solved, and efficient image processing and memory management are achieved.

CN114612287BActive Publication Date: 2025-04-01BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210272582.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2025-04-01
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

When performing image processing in a terminal, the prior art requires pre-allocating memory, resulting in memory waste, and additional time is required for each processing, affecting efficiency.

Method used

By setting the enable function in advance, the target task that needs to be image-processed on the image data to be processed is determined, and the appropriate number of buffers is determined based on the total number of tasks, and then image processing is performed.

Benefits of technology

It ensures that the terminal memory is not wasted during image processing, improves processing efficiency, and improves the terminal's usage performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114612287B_ABST
    Figure CN114612287B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an image processing method, device and storage medium. The image processing method is applied to a terminal, and the method includes: obtaining image data to be processed; calling the enabling function of each image processing task in the image processing task queue, and determining the target image processing task that needs to perform image processing on the image data to be processed according to the enabling function of each image processing task, wherein each image processing task has a sequential dependency relationship, and the enabling function is a pre-set function used to determine whether image processing is required for the image data to be processed; according to the total number of the target image processing tasks, determining the number of buffers that matches the total number; and performing image processing on the image data to be processed according to the memory size corresponding to the number of buffers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In a terminal, when processing images generated by applications such as camera, a large amount of terminal memory will be occupied. In order to save terminal memory to the maximum extent, the terminal memory may not be pre-allocated during image processing. Instead, the memory may be applied for in a timely manner and released immediately after use. Although this method can save terminal memory to the maximum extent, each time an image is processed, additional image processing time is required, which affects image processing efficiency. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides an image processing method, device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method, which is applied to a terminal, and the method includes:

[0005] Obtain image data to be processed;

[0006] Calling an enable function of each image processing task in the image processing task queue, and determining a target image processing task that needs to perform image processing on the image data to be processed according to the enable function of each image processing task, wherein each image processing task has a sequential dependency relationship, and the enable function is a pre-set function used to determine whether image processing needs to be performed on the image data to be processed;

[0007] According to the total number of the target image processing tasks, determining the number of buffers matching the total number;

[0008] Image processing is performed on the image data to be processed according to the memory size corresponding to the buffer quantity.

[0009] Optionally, after determining the target image processing task that requires performing image processing on the image data to be processed, the method further includes:

[0010] The target image processing task and the execution order of the target image processing task in the image processing task queue are stored to obtain a target image processing task data set.

[0011] Optionally, the method further comprises:

[0012] After the image data to be processed is input into the current target image processing task, reading from the target image processing task data set whether there is a next target image processing task after the current target image processing task;

[0013] If it exists, then after the current target image processing task completes the corresponding image processing task, the current target image processing task is controlled to pass the output processing result to the next target image processing task, so that the input processing result can be processed by the next target image processing task, and so on, until the last target image processing task completes the corresponding image processing task and outputs the corresponding processing result.

[0014] Optionally, the method further comprises:

[0015] If not, after the current target image processing task completes the image processing task, the current target image processing task is controlled to output the processing result.

[0016] Optionally, whether the next target image processing task exists in the target image processing task data set is read through the current target image processing task.

[0017] According to a second aspect of an embodiment of the present disclosure, there is provided an image processing device, applied to a terminal, the device comprising:

[0018] An acquisition module, used for acquiring image data to be processed;

[0019] A first determination module is used to call the enabling function of each image processing task in the image processing task queue, and determine the target image processing task that needs to perform image processing on the image data to be processed according to the enabling function of each image processing task, wherein each of the image processing tasks has a sequential dependency relationship, and the enabling function is a pre-set function used to determine whether image processing needs to be performed on the image data to be processed;

[0020] A second determining module is used to determine the number of buffers matching the total number according to the total number of the target image processing tasks;

[0021] The processing module is used to perform image processing on the image data to be processed according to the memory size corresponding to the buffer quantity.

[0022] Optionally, the first determining module is further configured to:

[0023] After determining the target image processing task that needs to perform image processing on the image data to be processed, the target image processing task and the execution order of the target image processing task in the image processing task queue are stored to obtain a target image processing task data set.

[0024] Optionally, the processing module is further used for:

[0025] After the image data to be processed is input into the current target image processing task, reading from the target image processing task data set whether there is a next target image processing task after the current target image processing task;

[0026] If it exists, then after the current target image processing task completes the corresponding image processing task, the current target image processing task is controlled to pass the output processing result to the next target image processing task, so that the input processing result can be processed by the next target image processing task, and so on, until the last target image processing task completes the corresponding image processing task and outputs the corresponding processing result.

[0027] Optionally, the processing module is further used for:

[0028] If not, after the current target image processing task completes the image processing task, the current target image processing task is controlled to output the processing result.

[0029] Optionally, whether the next target image processing task exists in the target image processing task data set is read through the current target image processing task.

[0030] According to a third aspect of an embodiment of the present disclosure, there is provided an image processing apparatus, including:

[0031] processor;

[0032] a memory for storing processor-executable instructions;

[0033] The processor is configured to: implement the steps of the image processing method provided in the first aspect of the present disclosure.

[0034] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the image processing method provided in the first aspect of the present disclosure are implemented.

[0035] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: since an enabling function for determining whether it is necessary to perform image processing on the image data to be processed is pre-set, by calling the enabling function of each image processing task in the image processing task queue, the target image processing task that needs to perform image processing on the image data to be processed is determined according to the enabling function of each image processing task, and then according to the total number of target image processing tasks, the number of buffers that matches the total number can be determined, thereby obtaining the appropriate memory required for processing the image to be processed, ensuring that the terminal's memory is not wasted when processing the image data, and being able to ensure the efficiency of image processing and improve the terminal's performance.

[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0038] Figure 1 The figure is a flowchart of an image processing method according to an exemplary embodiment.

[0039] Figure 2 The figure is a flowchart of an image processing method according to an exemplary embodiment.

[0040] Figure 3 The figure is a schematic diagram of an image processing flow chart showing an image processing method of the present disclosure according to an exemplary embodiment.

[0041] Figure 4 is a block diagram of an image processing apparatus according to an exemplary embodiment.

[0042] Figure 5 The invention is a block diagram of a device for image processing according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0044] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.

[0045] Figure 1 is a flowchart of an image processing method according to an exemplary embodiment. Figure 1 As shown, the image processing method is used in a terminal and includes the following steps.

[0046] In step S11, image data to be processed is obtained.

[0047] In step S12, the enabling function of each image processing task in the image processing task queue is called, and according to the enabling function of each image processing task, a target image processing task that needs to perform image processing on the image data to be processed is determined.

[0048] Among them, the image processing tasks (ie, image algorithms) in the image processing task queue have sequential dependencies.

[0049] Currently, when performing image processing in a terminal, it is necessary to sequentially input the image data to be processed into the image processing tasks included in the image processing task queue, and after the image is processed by the image processing tasks having a sequential dependency relationship, the image processing results are output.

[0050] For example, the image processing tasks with sequential dependencies included in the image processing task queue are image processing tasks A, B, C and D. The image to be processed actually needs to perform image processing tasks A and D. The image to be processed needs to be input into image processing task A according to the sequential dependency of ABCD. Image processing task A performs image processing on the image to be processed, and then the processing result output from image processing task A is input into image processing task B. Image processing task B does not process the input processing result, but directly outputs the input processing result to image processing task C. Image processing task C does not process the input processing result, but directly outputs the input processing result to image processing task D. Image processing task D performs image processing on the input processing result and outputs the processed result.

[0051] Furthermore, in the related technology, when image processing task A processes the image to be processed, it first applies for the number of buffers from the terminal. Image processing task A processes the image to be processed based on the buffer obtained by the application, and so on. Before each image processing task processes the image to be processed, it is necessary to apply for a buffer from the terminal, which affects the image processing efficiency.

[0052] Furthermore, in order not to waste the memory of the terminal and to ensure the efficiency of image processing, the present disclosure can pre-set an enabling function for determining whether image processing is required for the image data to be processed. Through the enabling function of each image processing task, it can be determined whether image processing is required for the image to be processed, and then the target image processing task that needs to perform image processing on the image data to be processed is determined.

[0053] In step S13, according to the total number of target image processing tasks, the number of buffers matching the total number is determined.

[0054] In the present disclosure, after determining the target image processing tasks in the image processing task queue that need to perform image processing on the image data to be processed, the number of buffers matching the total number is determined according to the total number of the target image processing tasks.

[0055] Then, the image to be processed is processed according to the memory size corresponding to the number of buffers, which can ensure that the memory allocated to the image to be processed is appropriate and suitable, ensuring the efficiency of image processing without wasting terminal memory.

[0056] In step S14, image processing is performed on the image data to be processed according to the memory size corresponding to the buffer quantity.

[0057] In an exemplary embodiment of the present disclosure, since an enabling function for determining whether it is necessary to perform image processing on the image data to be processed is pre-set, by calling the enabling function of each image processing task in the image processing task queue, the target image processing task that needs to perform image processing on the image data to be processed is determined according to the enabling function of each image processing task, and then according to the total number of target image processing tasks, the number of buffers that matches the total number can be determined, thereby obtaining the appropriate memory required for processing the image to be processed, ensuring that the terminal's memory is not wasted when processing the image data, and ensuring the efficiency of image processing, thereby improving the terminal's usage performance.

[0058] Figure 2 is a flowchart of an image processing method according to an exemplary embodiment. Figure 2 As shown, the image processing method is used in a terminal and includes the following steps.

[0059] In step S21, image data to be processed is obtained.

[0060] In step S22, the enabling function of each image processing task in the image processing task queue is called, and according to the enabling function of each image processing task, a target image processing task that needs to perform image processing on the image data to be processed is determined.

[0061] In step S23, the target image processing task and the execution order of the target image processing task in the image processing task queue are stored to obtain a target image processing task data set.

[0062] In step S24, the number of buffers matching the total number is determined according to the total number of target image processing tasks.

[0063] In step S25, image processing is performed on the image data to be processed according to the memory size corresponding to the buffer quantity.

[0064] The target image processing task data set is stored in a data structure of std::bitset, for example.

[0065] At present, the process of terminal image processing is to sequentially input the image data to be processed into the image processing tasks included in the image processing task queue, and after the image is processed by the image processing tasks with sequential dependency, the image processing results are output.

[0066] In the present disclosure, in order to optimize the image processing process, reduce the ineffective transmission of image data to be processed in image processing tasks, and improve image processing efficiency, after the image data to be processed is input into the current target image processing task, it is read from the target image processing task data set whether there is a next target image processing task after the current target image processing task. If so, after the current target image processing task completes the execution of the corresponding image processing task, the current target image processing task is controlled to pass the output processing result to the next target image processing task, so that the input processing result can be processed by the next target image processing task, and so on, until the last target image processing task completes the execution of the corresponding image processing task and outputs the corresponding processing result.

[0067] If it does not exist, after the current target image processing task completes the image processing task, the current target image processing task is controlled to output the processing result.

[0068] Among them, whether there is a next target image processing task in the target image processing task data set can be read through the current target image processing task.

[0069] Figure 3 The figure is a schematic diagram of an image processing flow chart showing an image processing method of the present disclosure according to an exemplary embodiment.

[0070] exist Figure 3In the figure, the image processing tasks included in the image processing task queue are image processing tasks A, B, C and D, and the sequential dependency of the image processing tasks is ABCD. By calling the enable function of each image processing task in the image processing task queue, according to the enable function of each image processing task, the target image processing task that needs to perform image processing on the image data to be processed, that is, image processing task A and image processing task B, is determined. According to the number of the two target image processing tasks, the number of buffers matching the number is obtained, and the memory size corresponding to the number of buffers is obtained, which is recorded as buffer1. The image to be processed is input into image processing task A, which reads the next target image processing task in the target image processing task data set and the execution order of the target image processing tasks in the image processing task queue, and obtains that the next target image processing task is B. Thereafter, image processing task A performs image processing on the image to be processed through buffer1, and after image processing task A completes the execution of the corresponding image processing task, the processing result output from image processing task A is input into image processing task B, and image processing task B reads the next target image processing task in the target image processing task data set and the execution order of the target image processing tasks in the image processing task queue, and obtains that there is no next target image processing task. After image processing task B performs image processing on the input processing result through buffer1, it does not continue to pass the processing result output by image processing task B through image processing task C and image processing task D, but directly outputs the processed result.

[0071] In an exemplary embodiment of the present disclosure, by calling the enable function of each image processing task in the image processing task queue, according to the enable function of each image processing task, after determining the target image processing task that needs to perform image processing on the image data to be processed, the target image processing task and the execution order of the target image processing task in the image processing task queue are stored to obtain a target image processing task data set. Then, after the image data to be processed is input into the current target image processing task, it is read from the target image processing task data set whether there is a next target image processing task after the current target image processing task. If there is, the current target image processing task can be controlled to pass the output processing result to the next target image processing task, so that the next target image processing task can perform image processing on the input processing result, thereby reducing the invalid transmission of the image data to be processed in the image processing task and improving the image processing efficiency.

[0072] Figure 4It is a block diagram of an image processing device 400 according to an exemplary embodiment. The image processing device is applied to a terminal, and the image processing device includes: an acquisition module 401, a first determination module 402, a second determination module 403 and a processing module 404.

[0073] Wherein, the acquisition module 401 is used to acquire the image data to be processed;

[0074] A first determination module 402 is used to call the enabling function of each image processing task in the image processing task queue, and determine the target image processing task that needs to perform image processing on the image data to be processed according to the enabling function of each image processing task, wherein each image processing task has a sequential dependency relationship, and the enabling function is a pre-set function used to determine whether image processing needs to be performed on the image data to be processed;

[0075] A second determination module 403 is used to determine the number of buffers matching the total number according to the total number of target image processing tasks;

[0076] The processing module 404 is used to perform image processing on the image data to be processed according to the memory size corresponding to the buffer quantity.

[0077] Optionally, the first determining 402 module is further configured to:

[0078] After determining the target image processing task that needs to perform image processing on the image data to be processed, the target image processing task and the execution order of the target image processing task in the image processing task queue are stored to obtain a target image processing task data set.

[0079] Optionally, the processing module 404 is further configured to:

[0080] After the image data to be processed is input into the current target image processing task, reading from the target image processing task data set whether there is a next target image processing task after the current target image processing task;

[0081] If it exists, then after the current target image processing task completes the corresponding image processing task, the current target image processing task is controlled to pass the output processing result to the next target image processing task, so that the input processing result can be processed by the next target image processing task, and so on, until the last target image processing task completes the corresponding image processing task and outputs the corresponding processing result.

[0082] Optionally, the processing module 404 is further configured to:

[0083] If not, after the current target image processing task completes the image processing task, the current target image processing task is controlled to output the processing result.

[0084] Optionally, whether the next target image processing task exists in the target image processing task data set is read through the current target image processing task.

[0085] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0086] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the image processing method provided by the present disclosure are implemented.

[0087] Figure 5 8 is a block diagram of an apparatus 800 for image processing according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0088] Reference Figure 5 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0089] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned image processing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0090] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0091] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0092] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0093] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0094] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0095] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0096] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0097] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned image processing method.

[0098] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to complete the above-mentioned image processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0099] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned image processing method when executed by the programmable device.

[0100] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0101] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An image processing method, characterized in that: Applied to a terminal, the method comprises: Obtain image data to be processed; Calling the enabling function of each image processing task in the image processing task queue, and determining the target image processing task that needs to perform image processing on the image data to be processed according to the enabling function of each image processing task, wherein there is a sequential dependency relationship between each image processing task, the enabling function is a pre-set function used to determine whether image processing needs to be performed on the image data to be processed, and the sequential dependency relationship is used to indicate the execution order of every two image processing tasks; According to the total number of the target image processing tasks, determining the number of buffers matching the total number; Image processing is performed on the image data to be processed according to the memory size corresponding to the buffer quantity.

2. The method according to claim 1, characterized in that After determining the target image processing task that needs to perform image processing on the image data to be processed, the method further includes: The target image processing task and the execution order of the target image processing task in the image processing task queue are stored to obtain a target image processing task data set.

3. The method according to claim 2, characterized in that The method further comprises: After the image data to be processed is input into the current target image processing task, reading from the target image processing task data set whether there is a next target image processing task after the current target image processing task; If it exists, then after the current target image processing task completes the corresponding image processing task, the current target image processing task is controlled to pass the output processing result to the next target image processing task, so that the input processing result can be processed by the next target image processing task, and so on, until the last target image processing task completes the corresponding image processing task and outputs the corresponding processing result.

4. The method according to claim 3, characterized in that: The method further comprises: If not, after the current target image processing task completes the image processing task, the current target image processing task is controlled to output the processing result.

5. The method according to claim 3 or 4, characterized in that: The current target image processing task is used to read whether the next target image processing task exists in the target image processing task data set.

6. An image processing device, characterized in that: Applied to a terminal, the device comprises: An acquisition module, used for acquiring image data to be processed; A first determination module is used to call the enabling function of each image processing task in the image processing task queue, and determine the target image processing task that needs to perform image processing on the image data to be processed according to the enabling function of each image processing task, wherein there is a sequential dependency relationship between each image processing task, the enabling function is a pre-set function used to determine whether image processing needs to be performed on the image data to be processed, and the sequential dependency relationship is used to indicate the execution order of every two image processing tasks; A second determining module is used to determine the number of buffers matching the total number according to the total number of the target image processing tasks; The processing module is used to perform image processing on the image data to be processed according to the memory size corresponding to the buffer quantity.

7. The device according to claim 6, characterized in that The first determining module is further used for: After determining the target image processing task that needs to perform image processing on the image data to be processed, the target image processing task and the execution order of the target image processing task in the image processing task queue are stored to obtain a target image processing task data set.

8. The device according to claim 7, characterized in that The processing module is also used for: After the image data to be processed is input into the current target image processing task, reading from the target image processing task data set whether there is a next target image processing task after the current target image processing task; If it exists, then after the current target image processing task completes the corresponding image processing task, the current target image processing task is controlled to pass the output processing result to the next target image processing task, so that the input processing result can be processed by the next target image processing task, and so on, until the last target image processing task completes the corresponding image processing task and outputs the corresponding processing result.

9. An image processing device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the steps of the method described in any one of claims 1 to 5.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Task execution method and device, storage medium and program product

    CN113806048A