Image processing method and device, equipment and medium

By caching and multiplexing the color configuration information of the image during the image processing, the problem of changing image color characteristics between different devices is solved, and more accurate image processing results and higher processing efficiency are achieved.

CN120032014APending Publication Date: 2025-05-23BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510123320.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

During the image processing process, due to the different color management systems of different devices, the color characteristics of the image data change, resulting in a color shift in the image processing results.

Method used

The color accuracy of the image is maintained by reading and cacheing the color configuration information of the original image in the image loading component and configuring pixel data based on this information when the image is displayed.

Benefits of technology

It effectively avoids the color shift of image processing results, improves the color accuracy of image processing results, and improves the image processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120032014A_ABST
    Figure CN120032014A_ABST
Patent Text Reader

Abstract

The invention provides an image processing method and device, equipment and a medium, and relates to the technical field of image processing, in particular to the technical field of image color configuration. According to the implementation scheme, an image loading assembly is run for a to-be-processed original image, and the image loading assembly is used for loading the original image and caching color configuration information of the original image; in response to the received image display request, reading current pixel data of a current image processing result; reading color configuration information from the cache; and displaying the current image processing result by configuring the current pixel data based on the color configuration information.
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, in particular to the field of image color configuration technology, and specifically to an image processing method, device, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0003] When different devices are used to perform image acquisition, image processing, image display and other operations, the color characteristics of the image data may change because different devices may correspond to different color management systems. In this case, color configuration information is needed to describe the color characteristics of the image to avoid color deviation during data transmission or data processing.

[0004] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0005] The present disclosure provides an image processing method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product.

[0006] According to one aspect of the present disclosure, there is provided an image processing method, comprising: running an image loading component for an original image to be processed, the image loading component being used to load the original image and cache color configuration information of the original image; in response to receiving an image display request, reading current pixel data of a current image processing result; reading the color configuration information from the cache; and displaying the current image processing result by configuring the current pixel data based on the color configuration information.

[0007] According to another aspect of the present disclosure, an image processing device is provided, including: an image loading unit, configured to run an image loading component for an original image to be processed, the image loading component being used to load the original image and cache color configuration information of the original image; a first reading unit, configured to read current pixel data of a current image processing result in response to receiving an image display request; the first reading unit is configured to read the color configuration information from the cache; and a display unit, configured to display the current image processing result by configuring the current pixel data based on the color configuration information.

[0008] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the above-mentioned image processing method.

[0009] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned image processing method.

[0010] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program can implement the above-mentioned image processing method when executed by a processor.

[0011] According to one or more embodiments of the present disclosure, the color configuration information of the original image can be maintained during the image processing process, thereby improving the color accuracy of the image processing result.

[0012] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0014] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an exemplary embodiment of the present disclosure;

[0015] Figure 2A flowchart of an image processing method according to an exemplary embodiment of the present disclosure is shown;

[0016] Figure 3 A schematic diagram showing a flow chart of an image preview process according to an exemplary embodiment of the present disclosure is shown;

[0017] Figure 4 A schematic diagram showing a flow chart of an image processing process according to an exemplary embodiment of the present disclosure is shown;

[0018] Figure 5 A structural block diagram of an image processing device according to an exemplary embodiment of the present disclosure is shown;

[0019] Figure 6 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0021] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0022] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0023] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0024] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1, the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0025] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable the image processing method to be performed.

[0026] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0027] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0028] The user may use client devices 101, 102, 103, 104, 105, and / or 106 to send raw images or configure image processing flows. The client devices may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.

[0029] Client devices 101, 102, 103, 104, 105 and / or 106 may include various categories of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various categories and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. The client device is capable of executing a variety of different applications, such as various Internet-related applications, communication applications (eg, email applications), short message service (SMS) applications, and may use various communication protocols.

[0030] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0031] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0032] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0033] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0034] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0035] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different categories. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.

[0036] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different categories of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0037] Figure 1The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0038] In the related art, a graph structure consisting of multiple functional nodes can be used to represent the image processing process, so that users can customize the image processing flow by configuring each functional node on a graphical user interface, and the image processing process can be reproducible. In this case, the workflow for the original image is usually based on the pixel data of the original image, but the color characteristics of the image are not taken into account, resulting in the loss of the color characteristics of the original image and color deviation of the image processing result.

[0039] Based on this, the present disclosure provides an image processing method. When using an image loading component to obtain the original image to be processed, the function of reading and caching color configuration information is integrated into the image loading component. The color configuration information is cached while loading the image, which facilitates direct reuse of the cached color configuration information when the image is displayed, thereby ensuring the accuracy of the image processing results and improving the image processing efficiency.

[0040] Figure 2 FIG. 2 shows a flow chart of an image processing method 200 according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the method 200 includes:

[0041] Step S210: running an image loading component for the original image to be processed, wherein the image loading component is used to load the original image and cache color configuration information of the original image;

[0042] Step S220, in response to receiving the image display request, reading current pixel data of the current image processing result;

[0043] Step S230, reading the color configuration information from the cache; and

[0044] Step S240: Display the current image processing result by configuring the current pixel data based on the color configuration information.

[0045] By applying the above-mentioned image processing method 200, when using the image loading component to obtain the original image to be processed, the image loading component can be used to directly perform the steps of reading and caching the image color configuration information, that is, the color configuration information can be cached while loading the image, so that the cached color configuration information can be directly reused when an image display request is received, thereby achieving more accurate image display and avoiding color deviation in the image processing results.

[0046] In some examples, an image processing flow can also be built based on an image loading component and multiple image processing components, and then the image loading component and multiple image processing components can be run based on the image processing flow to implement image processing operations. The image processing flow can be represented as a graph structure composed of multiple functional components, based on which the image processing process is described. Specifically, the connection relationship between the various functional components in the graph structure can be used to describe the logical timing of the operation of each functional component. In some examples, the image processing component can include components that can implement various types of image processing functions, such as an image color transformation component, an image background removal component, an image sharpening component, etc.

[0047] In one example, the image processing flow may be composed of an image loading component, an image background removal component, and an image sharpening component connected in sequence. In this case, the components may be sequentially executed based on the image processing flow, and after the image loading component is completed, the loaded original image may be passed to the image background removal component and the image sharpening component for corresponding processing, and when an image display request is received, the color configuration information cached by the image loading component may be used to achieve more accurate image display.

[0048] In some examples, the image processing flow may be built using ComfyUI to achieve customization and reproducibility of the image processing flow.

[0049] In some examples, the color configuration information of the image may be an ICC (International Color Consortium) color profile carried by the original image, which is a standard file format developed by the ICC for maintaining color consistency between different devices and software. The ICC color profile can be used to describe the color characteristics of the device, which includes information required by the color management system. By applying the ICC color profile to display the image, different image display devices can have consistent color representation, so that users can view more accurate image processing results.

[0050] In some examples, an ICC color profile may include a file header, a tag table, color spectrum data, a color space lookup table, and the like. The file header may contain information such as the file version, device category (such as a display, scanner, etc.), and color space type. The tag table may record the tags used in the file and their corresponding values. The color spectrum data is used to describe the color response characteristics of the device. The color space lookup table may describe the mapping relationship from one color space to another color space, based on which color management conversion may be achieved.

[0051] In some examples, the ICC color profile carried by the original image can be the color profile of the device or software used when the original image was created, or it can be a profile for a specific output device (such as a printer, a specific type of display device), so that the image display device can parse the color characteristics of the original image based on this. For example, the image display device can convert the color data of the original image into color data corresponding to one or more standard color spaces based on the color space described by the color configuration information of the original image, and then map the color data corresponding to the standard color space to the color space of the device to ensure that the image presents accurate colors on the image display device. This conversion process ensures the accurate transmission and reproduction of colors between devices.

[0052] In one example, the color configuration information of the original image can record the color space characteristics corresponding to the original image. In this case, by configuring the pixel data to be displayed based on the color configuration information of the original image during the image display process, it can be ensured that the image display result can restore the color characteristics of the original image, so that the user can view more accurate image processing results.

[0053] It should be understood that the above content is merely an example describing the content and usage of the color configuration information of the original image. As long as the color characteristics of the original image can be restored by caching and reusing the color configuration information, the present disclosure does not limit the content and usage of the color configuration information of the image.

[0054] In some examples, the user may trigger an image display request by configuring an image preview component or an image saving component (i.e., a component that outputs, displays, and saves the current image processing result) in the image processing flow, or may directly send an image display request using an image processing user interface.

[0055] According to some embodiments, method 200 further includes: determining a display type based on the image display request, wherein the display type includes image preview or image output display; and determining a target storage address based on the display type, and wherein, in step S240, by configuring the current pixel data based on the color configuration information, displaying the current image processing result includes: encapsulating the current pixel data and the color configuration information into a target image; storing the target image in the target storage address; and accessing the target storage address by calling an image display to display the target image. Thus, it is possible to determine a storage address (for example, temporary storage or permanent storage) according to the image preview / image export saving node operated by the user, uniformly encapsulate and save the pixel data and color configuration information, and then directly display an image with accurate color using an image display that supports a color configuration function.

[0056] In some examples, the image display may be various types of image viewers or image editors that can support the color configuration function. By applying the above technical means, the target image encapsulated with the color configuration information can be viewed directly and conveniently using the image display that can read and use the color configuration information, thereby improving the efficiency and convenience of image display.

[0057] As mentioned above, the user can trigger an image display request by configuring an image preview node or an image output display node in the image processing flow, or can directly send an image display request using the image processing user interface. In this case, the type of image display request can be directly determined based on the user's operation type.

[0058] According to some embodiments, the determining the target storage address based on the display type includes: in response to determining that the display type is an image preview, determining the target storage address from a temporary folder, wherein the data life cycle of the temporary folder does not exceed a time threshold. Thus, the temporary folder with a limited data life cycle can be used to save images for preview, and the timed automatic cleanup function for the temporary folder can be used to save storage space.

[0059] In some examples, when the display type is image output display, the current image processing result can be permanently stored based on a default storage address or a user-configured storage address to facilitate the user to perform further processing or viewing.

[0060] According to some embodiments, method 200 further includes: determining a storage compression level based on the display type, and wherein encapsulating the current pixel data and the color configuration information into a target image includes: encapsulating the current pixel data and the color configuration information into a target image based on the storage compression level. Thus, the storage compression level can be determined according to the image preview / image export saving node operated by the user, so that the quality of the target image (i.e., the image data size) is adapted to the user's needs and hardware resources are reasonably utilized.

[0061] In some examples, the user may also send configuration information for storing compression levels while sending an image display request. For example, the user may directly configure or select the compression level of the target image on the image processing user interface, and then the target image may be compressed and stored based on the user configuration information to meet the user's needs.

[0062] According to some embodiments, the step of determining the storage compression level based on the display type includes: in response to determining that the display type is image preview, determining that the compression rate corresponding to the storage compression level is not less than a compression rate threshold, thereby enabling light compression of images for preview, saving storage space and processing resources.

[0063] In some examples, a lightweight storage compression level corresponding to an image preview request may be preconfigured, that is, a compression method that takes into account both image preview efficiency and image preview effect may be set for the image preview function, thereby satisfying user preview requirements while saving hardware resources.

[0064] According to some embodiments, method 200 further includes: in response to determining that the display type is image output display, returning the target storage address. Thus, the storage address can be returned using the node return value, which facilitates the user to view and use the image processing result.

[0065] Figure 3 FIG. 3 is a flow chart showing an image preview process 300 according to an exemplary embodiment of the present disclosure. Figure 3 As shown, the image preview process 300 includes:

[0066] Step S301, configure temporary file information and compression level. In this step, the target storage address, file prefix and other information can be configured based on the system temporary folder to save the temporary image to be previewed in the temporary folder, and save storage space by using the automatic cleaning function for the temporary folder. In this step, a light compression level can also be set for the temporary image to be previewed to further save storage space and processing resources.

[0067] Step S302, obtaining the storage address of the target image. Based on the configuration of the temporary file information in step S301, the target storage address of the temporary folder can be obtained in this step, and then the temporary image for preview can be stored.

[0068] Step S303: Obtain pixel data of the current image processing result.

[0069] Step S304: pixel data conversion.

[0070] In this example, the image processing flow can be implemented by applying the Python library. In steps S302 to S304, the Pillow library can be used to convert the numpy array format data of the image into an Image object in Pillow.

[0071] Step S305: Acquire additional image information and color configuration information.

[0072] Step S306: encapsulate the target image.

[0073] In the above steps, the additional image information and color configuration information can be passed as parameters into the aforementioned Image object for unified storage.

[0074] Step S307: store and display the target image.

[0075] By storing the target image encapsulated with color configuration information into a temporary folder, the target image can be accessed and displayed using an image viewer, that is, image preview can be achieved while saving storage space by using a temporary folder with a limited data life cycle, thus avoiding long-term occupation of hardware resources by temporary images used for preview.

[0076] Figure 4 FIG. 2 shows a flow chart of an image processing process according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the image processing flow includes an image loading component 410 , an image processing component 420 , an image saving component 430 and an image preview component 440 .

[0077] See also Figure 4 , the operation process of the image loading component 410 includes:

[0078] Step S11, obtaining pixel data.

[0079] Step S12: pixel data conversion.

[0080] As mentioned above, in this example, the image processing flow can be implemented by using the Python library. In this step, the Pillow library can be used to read the image and convert it into the numpy array object format, so that various types of processing operations can be performed based on the numpy array object format. In this example, the A channel value in the RGBA image can be further obtained as mask information.

[0081] Step S13: Obtain color configuration information.

[0082] Step S14: Cache color configuration information.

[0083] The image processing component 420 may include components capable of implementing various types of image processing functions, such as an image color conversion component, an image background removal component, an image sharpening component, and the like.

[0084] The operation process of the image saving component 430 includes:

[0085] Step S31, obtaining the storage address of the target image.

[0086] Step S32: Obtain pixel data.

[0087] Step S32: pixel data conversion.

[0088] Step S34: Acquire additional image information and color configuration information.

[0089] Step S35: encapsulate the target image.

[0090] Step S36: store the target image.

[0091] In this example, the specific implementation of the above steps S31 to S36 is similar to the specific implementation of the above steps S302 to S307, and will not be repeated here.

[0092] The operation process of the image loading component 440 includes:

[0093] Step S41, configuring temporary file information.

[0094] Step S42: configure the storage compression level.

[0095] In some examples, the image loading component 440 can inherit from the image saving component 430, and configure the storage information and storage compression level of the temporary file based on the image saving component 430 to implement the target image encapsulation and storage function, so as to realize compressed storage for the temporary image to be previewed and save storage space.

[0096] According to one aspect of the present disclosure, an image processing device is also provided. Figure 5 FIG. 5 shows a structural block diagram of an image processing apparatus 500 according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the device 500 includes:

[0097] An image loading unit 510 is configured to run an image loading component for an original image to be processed, wherein the image loading component is used to load the original image and cache color configuration information of the original image;

[0098] A first reading unit 520 is configured to read current pixel data of a current image processing result in response to receiving an image display request;

[0099] A first reading unit 530 is configured to read the color configuration information from a buffer; and

[0100] The display unit 540 is configured to display the current image processing result by configuring the current pixel data based on the color configuration information.

[0101] According to some embodiments, the device 500 also includes: a first determination unit, configured to determine a display type based on the image display request, wherein the display type includes image preview or image output display; and a second determination unit, configured to determine a target storage address based on the display type, and wherein the display unit 540 includes: an encapsulation subunit, configured to encapsulate the current pixel data and the color configuration information into a target image; a storage subunit, configured to store the target image into the target storage address; and a display subunit, configured to display the target image by calling an image display to access the target storage address.

[0102] According to some embodiments, the second determining unit is configured to: in response to determining that the display type is an image preview, determine the target storage address from a temporary folder, wherein a data life cycle of the temporary folder does not exceed a time threshold.

[0103] According to some embodiments, the device 500 also includes: a third determination unit configured to determine a storage compression level based on the display type, and wherein the encapsulation subunit is configured to: encapsulate the current pixel data and the color configuration information into a target image based on the storage compression level.

[0104] According to some embodiments, the third determination unit is configured to: in response to determining that the display type is image preview, determine that the compression rate corresponding to the storage compression level is not less than a compression rate threshold.

[0105] According to some embodiments, the apparatus 500 further comprises: a returning unit configured to return the target storage address in response to determining that the display type is image output display.

[0106] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0107] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the above-mentioned image processing method.

[0108] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is further provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned image processing method.

[0109] According to another aspect of the present disclosure, a computer program product is further provided, including a computer program, wherein the computer program implements the above-mentioned image processing method when executed by a processor.

[0110] refer to Figure 6 , a block diagram of an electronic device 600 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0111] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0112] Multiple components in the device 600 are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 can be any type of device that can input information to the device 600. The input unit 606 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 607 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 608 can include but is not limited to a disk, an optical disk. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0113] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as image processing methods. For example, in some embodiments, the image processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the image processing method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the image processing method in any other appropriate manner (e.g., by means of firmware).

[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0116] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0118] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0119] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0120] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0121] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. An image processing method, comprising: Running an image loading component for an original image to be processed, the image loading component being used to load the original image and cache color configuration information of the original image; In response to receiving the image display request, Read the current pixel data of the current image processing result; Reading the color configuration information from the cache; as well as The current image processing result is displayed by configuring the current pixel data based on the color configuration information.

2. The method of claim 1, further comprising: determining a display type based on the image display request, wherein the display type includes image preview or image output display; and determining a target storage address based on the display type, And wherein, configuring the current pixel data based on the color configuration information to display the current image processing result comprises: Encapsulating the current pixel data and the color configuration information into a target image; storing the target image into the target storage address; and The target image is displayed by calling an image display to access the target storage address.

3. The method of claim 2, wherein: The determining of the target storage address based on the display type comprises: In response to determining that the display type is image preview, the target storage address is determined from a temporary folder, wherein a data life cycle of the temporary folder does not exceed a time threshold.

4. The method according to claim 2 or 3, further comprising: determining a storage compression level based on the display type, And wherein, encapsulating the current pixel data and the color configuration information into a target image comprises: Based on the storage compression level, the current pixel data and the color configuration information are packaged into a target image.

5. The method of claim 4, wherein: The determining of the storage compression level based on the display type comprises: In response to determining that the display type is image preview, it is determined that a compression rate corresponding to the storage compression level is not less than a compression rate threshold.

6. The method according to any one of claims 2 to 5, further comprising: In response to determining that the display type is image output display, the target storage address is returned.

7. An image processing device, comprising: An image loading unit is configured to run an image loading component for an original image to be processed, wherein the image loading component is used to load the original image and cache color configuration information of the original image; A first reading unit, configured to read current pixel data of a current image processing result in response to receiving an image display request; A first reading unit, configured to read the color configuration information from a cache; as well as The display unit is configured to display the current image processing result by configuring the current pixel data based on the color configuration information.

8. The apparatus of claim 7, further comprising: A first determining unit is configured to determine a display type based on the image display request, wherein the display type includes image preview or image output display; and a second determining unit, configured to determine a target storage address based on the display type, And wherein, the display unit comprises: A packaging subunit, configured to package the current pixel data and the color configuration information into a target image; a storage subunit, configured to store the target image into the target storage address; and The display subunit is configured to access the target storage address by calling an image display to display the target image.

9. The device of claim 8, wherein: The second determining unit is configured to: In response to determining that the display type is image preview, the target storage address is determined from a temporary folder, wherein a data life cycle of the temporary folder does not exceed a time threshold.

10. The device according to claim 8 or 9, further comprising: a third determining unit, configured to determine a storage compression level based on the display type, And wherein, the encapsulation subunit is configured as: Based on the storage compression level, the current pixel data and the color configuration information are packaged into a target image.

11. The device of claim 10, wherein: The third determining unit is configured to: In response to determining that the display type is image preview, it is determined that a compression rate corresponding to the storage compression level is not less than a compression rate threshold.

12. The apparatus according to any one of claims 8 to 11, further comprising: The returning unit is configured to return the target storage address in response to determining that the display type is image output display.

13. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-6.

15. A computer program product comprising a computer program, wherein: The computer program implements the method according to any one of claims 1 to 6 when executed by a processor.