Image pipeline execution method and device, chip, electronic equipment and storage medium

By adjusting the execution order of the image processing module, the problem of image pipeline processing failure when there is insufficient storage space is solved, and the user experience is improved.

CN119484723AActive Publication Date: 2025-02-18ZHUHAI PANTUM ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411480768.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-18
Estimated Expiration
2044-10-22

AI Technical Summary

Technical Problem

In the prior art, when the storage space is insufficient, if the target image is still processed according to the default image pipeline, it may lead to the inability to read all target images, which will lead to poor user experience.

Method used

By determining whether the system memory supports the default image pipeline configuration, if it is not supported, adjust the execution order of the image processing module and determine the target image pipeline configuration to reduce the system memory usage.

Benefits of technology

By adjusting the execution order of the image processing module, the target image can be reduced in the system memory, so that the target image can be processed in time and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484723A_ABST
    Figure CN119484723A_ABST
Patent Text Reader

Abstract

The invention provides an image pipeline execution method and device, a chip, electronic equipment and a storage medium. The method comprises the steps of judging whether a system memory supports execution of default image pipeline configuration on a target image or not; when the system memory does not support execution of the default image pipeline configuration on the target image, the execution sequence of one or more image processing modules in the default image pipeline configuration is adjusted, and then a target image pipeline is determined; and performing target image pipeline configuration on the target image. It can be understood that when the system memory is insufficient, by adjusting the execution sequence of the image processing module, the occupancy rate of the target image in the system memory is reduced, the target image can be processed in time, and the user experience degree is improved to a certain degree.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image forming technology, and in particular to an image pipeline execution method, device, chip, electronic device and storage medium. Background Art

[0002] When an image forming device performs a scanning operation, it usually first uses the scanning device on the image forming device to obtain the target image; then, the image pipeline is used to perform relevant digital image processing on the obtained target image; finally, the processed target image is archived or copied. Among them, the image pipeline technology refers to the technology of associating image processing modules such as image cropping processing, image scaling processing, and color space conversion in a certain order so as to perform image processing on the target image in sequence.

[0003] Specifically, in the prior art, the image pipeline processes the target image in sequence according to a fixed order of different image processing modules, so that the target image can be archived or copied.

[0004] However, since the memory of the image processing chip that executes the image pipeline configuration is limited, when the storage space is insufficient, if the target image is still processed according to the default image pipeline, it may result in failure to read all the target images, resulting in a poor user experience.

[0005] It should be pointed out that the information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention

[0006] In view of this, the present application provides an image pipeline execution method, device, chip, electronic device and storage medium, so as to solve the problem in the prior art that when the storage space is insufficient, if the target image is still processed according to the default image pipeline, it may result in the inability to read all target images, thereby resulting in a poor user experience.

[0007] In a first aspect, an embodiment of the present application provides an image pipeline execution method, which is executed on an image processing chip, and the method includes:

[0008] Determining whether the system memory supports executing a default image pipeline configuration on the target image, wherein the default image pipeline configuration includes a plurality of image processing modules in a fixed order;

[0009] When the system memory does not support executing the default image pipeline configuration for the target image, adjusting the execution order of one or more of the image processing modules in the default image pipeline configuration, thereby determining the target image pipeline, wherein the system memory occupied by executing the target image pipeline configuration for the target image is less than the system memory occupied by executing the default image pipeline configuration for the target image;

[0010] The target image pipeline configuration is performed on the target image.

[0011] In the embodiment of the present application, it is first determined whether the system memory supports the execution of the default image pipeline configuration for the target image; when the system memory does not support the execution of the default image pipeline configuration for the target image, the execution order of one or more image processing modules in the default image pipeline configuration is adjusted, and then the target image pipeline is determined; finally, the target image pipeline configuration is executed for the target image. It can be understood that when the system memory is insufficient, by adjusting the execution order of the image processing modules, the occupancy rate of the target image in the system memory is reduced, so that the target image can be processed in time, which improves the user experience to a certain extent.

[0012] In a possible implementation, determining whether the system memory supports executing a default image pipeline configuration for the target image includes:

[0013] According to the image parameters corresponding to the target image, it is determined whether the system memory supports the execution of the default image pipeline configuration for the target image, wherein the image parameters corresponding to the target image include: the size of the memory occupied by the target image and the resolution of the target image.

[0014] In this embodiment of the application, based on the size of the memory occupied by the target image and the target image resolution, it is possible to more accurately determine whether the system memory supports the execution of the default image pipeline configuration for the target image, thereby enabling the execution order of the image processing modules to be adjusted in a timely manner, thereby reducing the occupancy rate of the target image in the system memory, allowing the target image to be processed in a timely manner, and improving the user experience to a certain extent.

[0015] In a possible implementation, determining whether the system memory supports executing a default image pipeline configuration for the target image includes:

[0016] In response to a target image format configuration requirement triggered by a user, determining a configuration format of the target image, wherein the configuration format of the target image is a format of the target image after image pipeline configuration;

[0017] According to the configuration format of the target image, it is determined whether the system memory supports executing a default image pipeline configuration for the target image.

[0018] In an embodiment of the present application, in response to a target image format configuration requirement triggered by a user, the configuration format of the target image is determined; based on the configuration format of the target image, it is possible to more accurately determine whether the system memory supports the execution of the default image pipeline configuration for the target image, thereby enabling the execution order of the image processing modules to be adjusted in a timely manner, thereby reducing the occupancy rate of the target image in the system memory, allowing the target image to be processed in a timely manner, and improving the user experience to a certain extent.

[0019] In a possible implementation manner, adjusting the execution order of one or more image processing modules in the default image pipeline configuration to thereby determine the target image pipeline includes:

[0020] Determining whether the default image pipeline configuration includes image space reduction processing, wherein the image space reduction processing is processing that will reduce the storage space of the target image;

[0021] When the default image pipeline configuration includes an image space reduction process, the image processing module corresponding to the image space reduction process in the default image pipeline configuration is advanced to further determine the target image pipeline.

[0022] In an embodiment of the present application, it is first determined whether the default image pipeline configuration includes image space reduction processing; when the default image pipeline configuration includes image space reduction processing, the image processing module corresponding to the image space reduction processing in the default image pipeline configuration is advanced, so that the determined target image pipeline first reduces the occupancy rate of the target image in the system memory, so that the target image can be processed in a timely manner, thereby improving the user experience to a certain extent.

[0023] In a possible implementation, the image space reduction process includes: image cropping process, image reduction process and color to grayscale process.

[0024] In the embodiments of the present application, image cropping, image reduction and color-to-grayscale processing can all reduce the target image's occupancy rate in the system memory, thereby enabling the target image to be processed in a timely manner, thereby improving the user experience to a certain extent.

[0025] In a possible implementation manner, performing the target image pipeline configuration on the target image includes:

[0026] In the process of executing the target image pipeline configuration on the target image, each of the image processing modules in the target image pipeline performs compression processing on the target image before outputting the target image.

[0027] In an embodiment of the present application, before each image processing module in the target image pipeline outputs the target image, compression processing is performed on the target image, which can reduce the memory occupancy of the target image transferred between each image processing module, so that the target image can be processed in a timely manner, thereby improving the user experience to a certain extent.

[0028] In a possible implementation, the method further includes:

[0029] When the system memory supports executing the default image pipeline configuration on the target image, executing the default image pipeline configuration on the target image.

[0030] In an embodiment of the present application, when the system memory supports executing the default image pipeline configuration for the target image, executing the default image pipeline configuration for the target image can ensure that the target image is fully processed to facilitate archiving or copying of the target image, thereby improving the user experience to a certain extent.

[0031] In a possible implementation, executing the default image pipeline configuration on the target image includes:

[0032] Determining whether the target image is a blank page;

[0033] When the target image is not a blank page, the default image pipeline configuration is executed on the target image.

[0034] In an embodiment of the present application, it is first determined whether the target image is a blank page; when the target image is not a blank page, the default image pipeline configuration is executed on the target image, which can avoid the image processing chip from performing invalid operations when the target image is a blank page to a certain extent, thereby improving the user experience to a certain extent.

[0035] In a possible implementation, the method further includes:

[0036] When the target image is a blank page, the default image pipeline configuration function is disabled.

[0037] In an embodiment of the present application, when the target image is a blank page, the default image pipeline configuration function is turned off, which can, to a certain extent, avoid the image processing chip from performing invalid operations when the target image is a blank page, thereby improving the user experience to a certain extent.

[0038] In a second aspect, an embodiment of the present application provides an image pipeline execution device, including:

[0039] A determination module, used to determine whether the system memory supports executing a default image pipeline configuration on a target image, wherein the default image pipeline configuration includes a plurality of image processing modules in a fixed order;

[0040] a target image pipeline determination module, configured to adjust the execution order of one or more image processing modules in the default image pipeline configuration, and further determine the target image pipeline configuration, when the system memory does not support the execution of the default image pipeline configuration for the target image, wherein the system memory occupied by executing the target image pipeline configuration for the target image is less than the system memory occupied by executing the default image pipeline configuration for the target image;

[0041] An execution module is used to execute the target image pipeline configuration on the target image.

[0042] In a third aspect, an embodiment of the present application provides an image processing chip, characterized in that it includes:

[0043] The image processing chip is used to execute the method described in any one of the first aspects.

[0044] In a fourth aspect, an embodiment of the present application provides an electronic device, characterized in that it includes:

[0045] processor;

[0046] Memory;

[0047] And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes any one of the methods described in the first aspect.

[0048] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in the first aspect.

[0049] It can be understood that the image pipeline execution device provided in the second aspect, the image processing chip provided in the third aspect, the electronic device provided in the fourth aspect, and the computer-readable storage medium provided in the fifth aspect are all used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0051] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application.

[0052] Figure 2 A schematic diagram of the working process of an image pipeline provided in this application.

[0053] Figure 3 A flowchart of an image pipeline execution method provided in an embodiment of the present application.

[0054] Figure 4 A schematic diagram of the structure of an image pipeline execution device provided in an embodiment of the present application.

[0055] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0057] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0058] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0059] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0060] An image forming device is a device that forms an image on an imaging medium by the principle of imaging, such as a printer, a copier, a fax machine, a multifunctional image making and copying device, an electrostatic printing device, and any other similar device. In practical applications, image forming devices are increasingly used in office and daily life. For ease of understanding, the following first provides an exemplary description of specific application scenarios.

[0061] See also Figure 1, is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the application scenario includes: image forming device 101. It should be noted that the image forming device described in this article is only an exemplary description and should not be used as a limitation on the scope of protection of this application. For example, the image forming device includes but is not limited to a printer, a copier, a fax machine, a scanner, and a multifunction machine that integrates printing, copying, faxing, scanning and other functions, and its function is to print images or text on an imaging medium.

[0062] Specifically, when an image forming apparatus performs a scanning operation, it usually first uses a scanning device on the image forming apparatus to acquire a target image; then, an image pipeline is used to perform relevant digital image processing on the acquired target image; finally, the processed target image is archived or copied.

[0063] For ease of understanding, let's take a color laser printer as an example. Color laser printers have become the mainstream direction of printer development due to their printing speed and strong color reproduction. There are two key technologies that are crucial in color scanning. One is the ability of the scanning device to obtain images, and the other is the digital image processing technology for the scanned images. The target image through the scanner needs to undergo some image processing operations before compression, storage or copying to enable the image to be archived or copied with the best image quality.

[0064] It should be pointed out that the image pipeline technology refers to a technology that associates image processing modules such as image cropping, image scaling, and color space conversion in a certain order so as to perform image processing on the target image in sequence.

[0065] For easier understanding, see Figure 2 , which is a working schematic diagram of an image pipeline provided by the present application. As shown in the figure, the figure shows an angle detection module 201, a histogram statistics module 202, an image correction module 203, an image correction / cropping and scaling module 204, an image enhancement module 205, an image printing module 206 and an encoding module 207. Among them, the angle detection module 201 is used to obtain the offset angle of the target image; the histogram statistics module 202 is used to determine the distribution of different colors in the target image; the image correction module 203 is used to correct obvious errors in the target image; the image correction / cropping and scaling module 204 is used to correct / crop and scale the target image; the image enhancement module 205 is used to enhance the image quality of the target image; the image printing module 206 is used to print the target image; and the encoding module 207 is used to compress the target module for storage.

[0066] It should be pointed out that Figure 2The image pipeline shown in the figure is only an exemplary description, wherein those skilled in the art may adjust the type and number of image processing modules included in the image pipeline, or adjust the execution order of the image processing modules according to actual needs, and the present application does not impose any specific restrictions on this.

[0067] In the prior art, the image pipeline processes the target image in sequence according to the fixed order of different image processing modules, so that the target image can be archived or copied.

[0068] Of course, in the related art, different pipeline configurations can also be selected according to different target image densities, so as to complete image processing with optimal efficiency.

[0069] However, the above-mentioned related methods only consider the image processing efficiency, but fail to consider that more complex images may be difficult to complete some image processing tasks when the memory space is limited, and thus fail to solve the problem of memory usage efficiency. That is, since the memory of the image processing chip that executes the image pipeline configuration is limited, when the storage space is insufficient, if the target image is still processed according to the default image pipeline, it may result in the inability to read all the target images, which in turn leads to a poor user experience.

[0070] In view of the above problems, in an embodiment of the present application, it is first determined whether the system memory supports the execution of the default image pipeline configuration for the target image; when the system memory does not support the execution of the default image pipeline configuration for the target image, the execution order of one or more image processing modules in the default image pipeline configuration is adjusted, thereby determining the target image pipeline; finally, the target image pipeline configuration is executed for the target image. It can be understood that when the system memory is insufficient, by adjusting the execution order of the image processing modules, the occupancy rate of the target image in the system memory is reduced, so that the target image can be processed in a timely manner, thereby improving the user experience to a certain extent. This is described in detail in conjunction with the specific implementation method below.

[0071] See also Figure 3 , is a flowchart of an image pipeline execution method provided in an embodiment of the present application. The method can be applied to Figure 1 In the application scenario shown, Figure 3 As shown, it mainly includes the following steps.

[0072] Step S301: Determine whether the system memory supports executing the default image pipeline configuration for the target image.

[0073] In practical applications, the target image is first acquired. Specifically, the scanning device in the image forming device acquires the target image by scanning the image. It should be noted that the target image is used to represent one or more images.

[0074] In the embodiment of the present application, after acquiring the target image, the image processing chip first reads the target image, and then determines whether the system memory supports the execution of the default image pipeline configuration for the target image. The default image pipeline configuration includes multiple image processing modules in a fixed order. The system memory is used to represent the storage space of the cached target image corresponding to the image processing chip.

[0075] Specifically, in a possible implementation, it is determined whether the system memory supports the default image pipeline configuration for the target image based on image parameters corresponding to the target image, wherein the image parameters corresponding to the target image include: the size of the memory occupied by the target image and the target image resolution.

[0076] It is understandable that the size of the memory occupied by the target image and the resolution of the target image both represent the space occupied by the target image in the system memory. When the memory occupied by the target image is larger and the resolution of the target image is higher, the target image occupies more system memory, and the default image pipeline may not be able to process the target image.

[0077] In this embodiment of the application, according to the size of the memory occupied by the target image and the resolution of the target image, it is possible to more accurately determine whether the system memory supports the execution of the default image pipeline configuration for the target image, thereby enabling the execution order of the image processing module to be adjusted in a timely manner, thereby reducing the occupancy rate of the target image in the system memory, so that the target image can be processed in a timely manner, and to a certain extent improving the user experience.

[0078] Of course, in a possible implementation, in response to a target image format configuration requirement triggered by a user, a configuration format of the target image is determined; and according to the configuration format of the target image, it is determined whether the system memory supports the execution of the default image pipeline configuration for the target image. The configuration format of the target image is the format of the target image after the image pipeline configuration.

[0079] It can be understood that when the configuration format of the target image is the enlarged format, the system memory occupied by the target image will become larger and larger, and the default image pipeline may not be able to process the target image at this time; similarly, when the configuration format of the target image is the cropped format, the system memory occupied by the target image will become smaller and smaller, and the default image pipeline can process the target image.

[0080] In an embodiment of the present application, based on the configuration format of the target image, it is possible to more accurately determine whether the system memory supports the execution of the default image pipeline configuration for the target image, thereby enabling the execution order of the image processing modules to be adjusted in a timely manner, thereby reducing the occupancy rate of the target image in the system memory, so that the target image can be processed in a timely manner, thereby improving the user experience to a certain extent.

[0081] In a possible implementation, when the system memory supports executing the default image pipeline configuration for the target image, the default image pipeline configuration is executed for the target image. It is understandable that when the system memory supports executing the default image pipeline configuration for the target image, executing the default image pipeline configuration for the target image can ensure that the target image is fully processed, so that the target image can be archived or copied, which improves the user experience to a certain extent.

[0082] In a possible implementation, when the system memory supports executing the default image pipeline configuration for the target image, it is continued to be determined whether the target image is a blank page; when the target image is not a blank page, the default image pipeline configuration is executed for the target image.

[0083] It can be understood that when the target image is a blank page, it means that the content of the scanned target image is empty, and at this time, there is no need to perform image pipeline processing on the target image.

[0084] In an embodiment of the present application, it is first determined whether the target image is a blank page; when the target image is not a blank page, the default image pipeline configuration is executed on the target image, which can avoid the image processing chip from performing invalid operations when the target image is a blank page to a certain extent, thereby improving the user experience to a certain extent.

[0085] In a possible implementation, when the target image is a blank page, the default image pipeline configuration function is turned off, which can avoid the image processing chip performing invalid operations when the target image is a blank page to a certain extent, thereby improving the user experience to a certain extent.

[0086] Step S302: When the system memory does not support executing the default image pipeline configuration for the target image, adjusting the execution order of one or more image processing modules in the default image pipeline configuration, thereby determining the target image pipeline.

[0087] In an embodiment of the present application, when the system memory does not support executing the default image pipeline configuration for the target image, the execution order of one or more image processing modules in the default image pipeline configuration is adjusted to determine the target image pipeline.

[0088] Specifically, in a possible implementation, it is determined whether the default image pipeline configuration includes image space reduction processing; when the default image pipeline configuration includes image space reduction processing, the image processing module corresponding to the image space reduction processing in the default image pipeline configuration is advanced, and then the target image pipeline is determined. The image space reduction processing is a processing that will reduce the storage space of the target image.

[0089] It can be understood that by advancing the image processing module corresponding to the image space reduction processing in the default image pipeline configuration, the determined target image pipeline can first reduce the occupancy rate of the target image in the system memory, so that the target image can be processed in time, thereby improving the user experience to a certain extent.

[0090] Specifically, in a possible implementation, the image space reduction process includes: image cropping, image reduction, and color-to-grayscale processing. Among them, image cropping means cropping off part of the target image, which will reduce the storage space of the target image; image reduction means reducing the area of ​​the target image, which will reduce the storage space of the target image without excessively improving the image quality of the target image; color-to-grayscale processing means converting the color target image into a grayscale image, which will reduce the storage space of the target image.

[0091] Exemplarily, the default image pipeline is to perform angle detection, histogram statistics, image correction, image correction processing, image cropping processing, image scaling processing, image enhancement, and image printing in sequence. When the scanned target image is a color three-channel image and the output target image is required to be a grayscale image, the color-to-grayscale processing is turned on in the image enhancement, and the image enhancement corresponding to the color-to-grayscale processing is advanced to determine the target image pipeline. That is, the target image pipeline is: angle detection, image enhancement corresponding to the color-to-grayscale processing, histogram statistics, image correction, image correction processing, image cropping processing, image scaling processing, other image enhancements, and image printing.

[0092] It should be noted that, since angle detection needs to be processed for the original image obtained after scanning, when the target image pipeline processing includes angle detection, angle detection can be used as the first step of the target image pipeline processing to obtain angle information. Of course, those skilled in the art can also make relevant adjustments to angle detection according to actual needs, so that angle detection can also be performed at other positions in the target image pipeline, and this application does not make specific restrictions on this.

[0093] Similarly, when the scanned target image needs to be cropped, the corresponding target image pipeline is: angle detection, image cropping, histogram statistics, image correction, image correction, image scaling, image enhancement, and image printing. Similarly, the same can be said.

[0094] In the embodiments of the present application, image cropping, image reduction and color-to-grayscale processing can all reduce the target image's occupancy rate in the system memory, thereby enabling the target image to be processed in a timely manner, thereby improving the user experience to a certain extent.

[0095] Of course, in the embodiment of the present application, the image space reduction process may also include other processes, and the present application does not impose any specific restrictions on this.

[0096] Step S303: Execute target image pipeline configuration on the target image.

[0097] In the embodiment of the present application, after the target image pipeline is determined, the target image pipeline configuration is performed on the target image.

[0098] In a possible implementation, during the process of executing the target image pipeline configuration on the target image, each image processing module in the target image pipeline performs compression processing on the target image before outputting the target image.

[0099] Specifically, before the target image pipeline works, the image compression and decompression functions in the image processing modules corresponding to each level of pipeline are turned on. Specifically, the target image is first compressed, and after the image processing module corresponding to the next pipeline receives the compressed target image, the target image is decompressed and other image processing is performed; after the processing is completed, the target image is compressed and output; and so on, until the processing is completed.

[0100] Of course, in a possible implementation, when the system memory does not support the default image pipeline configuration for the target image, the target image may be compressed first, and then it is determined whether the compressed target image can be configured according to the default image pipeline. When the compressed target image can be configured according to the default image pipeline, the target image is controlled to continue to be configured according to the default image pipeline.

[0101] In an embodiment of the present application, before each image processing module in the target image pipeline outputs the target image, compression processing is performed on the target image, which can reduce the memory occupancy of the target image transferred between each image processing module, so that the target image can be processed in a timely manner, thereby improving the user experience to a certain extent.

[0102] Corresponding to the above embodiment, the present application also provides an image pipeline execution device. Figure 4, which is a structural schematic diagram of an image pipeline execution device provided in an embodiment of the present application. As shown in the figure, the figure shows: an image pipeline execution device 400. Among them, the image pipeline execution device 400 includes: a judgment module 401, a target image pipeline determination module 402 and an execution module 403. Among them, the judgment module 401 is used to judge whether the system memory supports the execution of the default image pipeline configuration for the target image; the target image pipeline determination module 402 is used to adjust the execution order of one or more image processing modules in the default image pipeline configuration when the system memory does not support the execution of the default image pipeline configuration for the target image, and then determine the target image pipeline configuration; the execution module 403 is used to execute the target image pipeline configuration for the target image.

[0103] Corresponding to the above embodiments, the present application further provides an image processing chip, which is used to execute the corresponding method in the above embodiments.

[0104] Corresponding to the above embodiment, the present application also provides an electronic device. Figure 5 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device 500 may include: a processor 501, a memory 502, and a communication unit 503. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0105] The communication unit 503 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0106] The processor 501 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 502, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 501 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0107] The memory 502 is used to store the execution instructions of the processor 501. The memory 502 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.

[0108] When the execution instruction in the memory 502 is executed by the processor 501, the electronic device 500 can execute Figure 1 Some or all of the steps in the illustrated embodiments.

[0109] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the simulation scene generation method provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0110] In a specific implementation, the present invention further provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the simulation scene generation method provided by the present invention.

[0111] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0112] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0114] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0115] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. An image pipeline execution method, characterized in that: Executed on an image processing chip, the method includes: Determining whether the system memory supports executing a default image pipeline configuration on the target image, wherein the default image pipeline configuration includes a plurality of image processing modules in a fixed order; When the system memory does not support executing the default image pipeline configuration for the target image, adjusting the execution order of one or more of the image processing modules in the default image pipeline configuration, thereby determining the target image pipeline, wherein the system memory occupied by executing the target image pipeline configuration for the target image is less than the system memory occupied by executing the default image pipeline configuration for the target image; The target image pipeline configuration is performed on the target image.

2. The method according to claim 1, characterized in that The determining whether the system memory supports executing the default image pipeline configuration for the target image includes: According to the image parameters corresponding to the target image, it is determined whether the system memory supports the execution of the default image pipeline configuration for the target image, wherein the image parameters corresponding to the target image include: the size of the memory occupied by the target image and the resolution of the target image.

3. The method according to claim 1, characterized in that The determining whether the system memory supports executing the default image pipeline configuration for the target image includes: In response to a target image format configuration requirement triggered by a user, determining a configuration format of the target image, the configuration format of the target image being a format of the target image after the default image pipeline configuration; According to the configuration format of the target image, it is determined whether the system memory supports executing a default image pipeline configuration for the target image.

4. The method according to claim 1, characterized in that: The step of adjusting the execution order of one or more of the image processing modules in the default image pipeline configuration to thereby determine the target image pipeline includes: Determining whether the default image pipeline configuration includes image space reduction processing, wherein the image space reduction processing is processing for reducing the storage space of the target image; When the default image pipeline configuration includes the image space reduction process, the image processing module corresponding to the image space reduction process in the default image pipeline configuration is advanced to further determine the target image pipeline.

5. The method according to claim 4, characterized in that The image space reduction processing includes: image cropping processing, image reduction processing and color to gray processing.

6. The method according to claim 1, characterized in that The performing the target image pipeline configuration on the target image comprises: In the process of executing the target image pipeline configuration on the target image, each of the image processing modules in the target image pipeline performs compression processing on the target image before outputting the target image.

7. The method according to claim 1, characterized in that Also includes: When the system memory supports executing the default image pipeline configuration on the target image, executing the default image pipeline configuration on the target image.

8. The method according to claim 7, characterized in that Executing the default image pipeline configuration on the target image includes: Determining whether the target image is a blank page; When the target image is not a blank page, the default image pipeline configuration is executed on the target image.

9. An image pipeline execution device, characterized in that: include: A determination module, used to determine whether the system memory supports executing a default image pipeline configuration on a target image, wherein the default image pipeline configuration includes a plurality of image processing modules in a fixed order; a target image pipeline determination module, configured to adjust the execution order of one or more image processing modules in the default image pipeline configuration, and further determine the target image pipeline configuration, when the system memory does not support the execution of the default image pipeline configuration for the target image, wherein the system memory occupied by executing the target image pipeline configuration for the target image is less than the system memory occupied by executing the default image pipeline configuration for the target image; An execution module is used to execute the target image pipeline configuration on the target image.

10. An image processing chip, characterized in that: include: The image processing chip is used to execute the method according to any one of claims 1 to 8.

11. An electronic device, characterized in that: include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 8.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Pipelined image processing engine

    CN101673391A

  • Image procsessing apparatus, image processing method and vehicle control apparatus

    CN107229451A

  • Assembly line configuration method and device, readable storage medium and electronic equipment

    CN112835626A