Color Enhancement Method, Apparatus, Image Forming Device, and Storage Medium

By chunking the color band data and judging based on the number of exposed points and characteristic values, the method of correcting the color channel weight is solved, and the problem of high complexity of image enhancement technology in image forming equipment is achieved, and high-quality image quality improvement is achieved at low cost.

CN114898001BActive Publication Date: 2025-07-18ZHUHAI PANTUM ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210592696.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2025-07-18
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

The image enhancement technology algorithms in existing image forming equipment have high complexity and high cost, resulting in a decrease in image quality, especially when color scanning or copying, which is prone to edge deviation.

Method used

Divide the color band data to be processed into multiple color blocks, count the number of exposure points in each color block, generate an exposure point distribution image, and convert it into a color image in the preset color space. Determine whether it is necessary to enhance the color block position information and feature values, and correct the weight of the color channel to enhance the image.

Benefits of technology

A low-cost image enhancement method is provided, which reduces the complexity of the algorithm and improves the image quality output by the image forming device, especially the image enhancement effect at a specific location or content is significant.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114898001B_ABST
    Figure CN114898001B_ABST
Patent Text Reader

Abstract

The present application relates to a color enhancement method, apparatus, image forming device, and storage medium. The method includes: dividing color band data to be processed into multiple color blocks; counting the number of exposure points of each color channel of each color block in the device color space, and generating an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel; converting the exposure point distribution image into a color image in a preset color space; calculating a color feature value corresponding to the color block according to the color image in the preset color space; judging whether the color block needs to be image-enhanced according to the position information of the color block and / or the color feature value, and if the color block needs to be image-enhanced, correcting the weights of each color channel in the device color space according to the color feature value, and outputting corrected data of each color channel according to the corrected weights of each color channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image formation, and in particular, to a color enhancement method, apparatus, image forming device, and storage medium. Background Art

[0002] Image enhancement refers to emphasizing the overall or local characteristics of an image for a given application scenario, converting an originally unclear image into a clear image, or emphasizing the features of interest and suppressing the uninteresting features, expanding the differences between the features of different objects in the image, improving the image quality and enriching the information volume, thereby increasing the use value of the image. Currently, image enhancement is widely applied in the fields of medical diagnosis, image recognition, remote sensing images, etc.

[0003] The inventors of the present application found in their research that the existing image enhancement technologies involve complex algorithm designs, have a large amount of computation, high requirements for parallel processing, and high requirements for the costs of software and hardware. Therefore, they have not been correspondingly applied in current image forming devices. For example, when performing color scanning or copying, the obtained images usually have edge deviations, reducing the image quality.

[0004] Therefore, for image forming devices, a low-cost image enhancement processing technology is needed. Summary of the Invention

[0005] Embodiments of the present invention provide a color enhancement method, apparatus, and storage medium, which can be applied as a low-cost image enhancement technology in an image forming device, reduce the complexity of the algorithm, and improve the image quality output by the image forming device.

[0006] In a first aspect, the present application provides a color enhancement method, which is applied to an image forming device. The method includes:

[0007] Dividing the color band data to be processed into multiple color blocks;

[0008] Counting the number of exposure points of each color channel of each color block in the device color space, and generating an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel;

[0009] Converting the exposure point distribution image into a color image in a preset color space;

[0010] Calculating a color feature value corresponding to the color block according to the color image in the preset color space;

[0011] Based on the position information of the color block and / or the color feature value, determine whether the color block needs image enhancement. If the color block needs image enhancement, then correct the weights of each color channel in the device color space according to the color feature value, and output the corrected data of each color channel according to the corrected weights of each color channel.

[0012] Combined with the first aspect, in a feasible implementation, before dividing the color band data to be processed into multiple color blocks, it includes: obtaining the color band data in the device color space of the image forming device, and performing binarization processing on the color band data.

[0013] Combined with the first aspect, in a feasible implementation, the device color space of the image forming device includes C, M, Y, and K color channels; the performing binarization processing on the color band data includes: using the Halftone algorithm to perform binarization processing on the color data of the C, M, Y, and K color channels in the color color band data respectively to obtain the binarized data corresponding to each color channel.

[0014] Combined with the first aspect, in a feasible implementation, the counting the number of exposure points of each color block in each color channel in the device color space includes:

[0015] According to the binarized data of each color block in the C, M, Y, and K color channels respectively, determine the corresponding number of exposure points according to the number of pixel points with non-zero pixel values.

[0016] Combined with the first aspect, in a feasible implementation, the converting the exposure point distribution image into a color image in a preset color space includes:

[0017] Convert the exposure point distribution image into a color image in the YCC color space.

[0018] Combined with the first aspect, in a feasible implementation, the calculating the color feature value corresponding to the color block includes:

[0019] Calculate the corresponding color feature value based on the pixel coordinates and pixel values of each pixel point in the color block.

[0020] Combined with the first aspect, in a feasible implementation, the method includes:

[0021] Execute a first judgment according to the position information of the color block to judge whether the color block is in a preset area. When the judgment is yes, correct the weights of each color channel in the device color space according to the color feature value, and output the corrected data of each color channel according to the corrected weights of each color channel.

[0022] In combination with the first aspect, in a feasible implementation manner, the method includes:

[0023] Perform a first determination according to the position information of the color block to determine whether the color block is in a preset area. When the determination is no, perform a second determination according to the color feature value to determine whether the color feature value meets a preset condition. When the determination is yes, correct the weights of each color channel in the device color space according to the color feature value, and output the corrected data of each color channel according to the corrected weights of each color channel.

[0024] In a second aspect, the present application provides a color enhancement device applied to an image forming device, including:

[0025] A segmentation unit for dividing color band data into multiple color blocks;

[0026] An exposure point distribution image calculation unit for counting the number of exposure points of each color channel of each color block in the device color space, and generating an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel;

[0027] A color space conversion unit for converting the exposure point distribution image into a color image in a preset color space;

[0028] A color feature value calculation unit for calculating a color feature value corresponding to the color block according to the color image in the preset color space;

[0029] A determination unit for determining whether the color block needs to be image-enhanced according to the position information and / or the color feature value of the color block; and

[0030] An image enhancement unit for correcting the weights of each color channel in the device color space according to the color feature value when it is determined that the color block needs to be image-enhanced, and outputting the corrected data of each color channel according to the corrected weights of each color channel.

[0031] In combination with the second aspect, in a feasible implementation manner, the device further includes:

[0032] A color band acquisition unit for acquiring color band data in the device color space of the image forming device;

[0033] A binarization processing unit for performing binarization processing on the color color band data.

[0034] In combination with the second aspect, in a feasible implementation manner, the device color space of the image forming device includes C, M, Y, and K color channels;

[0035] The binarization processing unit is configured to perform binarization processing on the color data of the C, M, Y, and K color channels in the color color band data respectively by using the Halftone algorithm, so as to obtain binarized data corresponding to each color channel.

[0036] Combined with the second aspect, in a feasible implementation manner, the exposure point distribution image calculation unit is configured to determine the corresponding number of exposure points according to the number of pixel points with non-zero pixel values based on the binarized data of each color block in the C, M, Y, and K color channels respectively.

[0037] Combined with the second aspect, in a feasible implementation manner, the color space conversion unit is configured to convert the exposure point image into a color image in the YCC color space.

[0038] Combined with the second aspect, in a feasible implementation manner, the color feature value calculation unit is configured to calculate the corresponding color feature value based on the pixel coordinates and pixel values of each pixel point in the color block.

[0039] Combined with the second aspect, in a feasible implementation manner, the judgment unit performs a first judgment according to the position information of the color block to judge whether the color block is in a preset area. When the judgment is yes, the image enhancement unit corrects the weights of each color channel in the device color space according to the color feature value, and outputs the corrected data of each color channel according to the corrected weights of each color channel.

[0040] Combined with the second aspect, in a feasible implementation manner, the judgment unit performs a first judgment according to the position information of the color block to judge whether the color block is in a preset area. When the judgment is no, a second judgment is performed according to the color feature value to judge whether the color feature value meets a preset condition. When the judgment is yes, the image enhancement unit corrects the weights of each color channel in the device color space according to the color feature value, and outputs the corrected data of each color channel according to the corrected weights of each color channel.

[0041] In a third aspect, the present application provides an image forming device, including the color enhancement device described in the second aspect above.

[0042] In a fourth aspect, the present application provides a computer-readable storage medium, where the storage medium includes a stored program, and when the program runs, it controls the device where the storage medium is located to execute the color enhancement method described in the first aspect above.

[0043] The color enhancement method and device provided by the embodiments of the present application divide color band data into multiple color blocks, count the number of exposure points in each color channel of each color block, generate a corresponding exposure point distribution image, convert the exposure point distribution image into a color image in a preset color space, calculate the color feature value corresponding to the color block according to the color image in the preset color space, and determine whether image enhancement is required according to the position information and / or color feature value of the color block. When the determination is yes, the image color at a specific preset position can be enhanced, or the image that meets specific content can be enhanced. Therefore, a simple and efficient image enhancement method is provided, which can be applied to image forming devices, reduce the complexity of the algorithm, and improve the image quality of the output of the image forming device. Description of the Drawings

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0045] Figure 1a It is a flowchart of an image processing process;

[0046] Figure 1b It is a flowchart of the image processing involved in the embodiments of the present application;

[0047] Figure 2a It is a flowchart of a color enhancement method provided by the embodiments of the present application;

[0048] Figure 2b It is a flowchart of the color enhancement method in another embodiment of the present application;

[0049] Figure 2c It is a schematic diagram of generating an exposure point distribution image in the embodiments of the present application;

[0050] Figure 3 It is a flowchart of the color enhancement method in another embodiment of the present application;

[0051] Figure 4a It is a functional block diagram of a color enhancement device provided by an embodiment of the present application;

[0052] Figure 4b It is a functional block diagram of a color enhancement device provided by another embodiment of the present application;

[0053] Figure 5 It is a schematic diagram of the structure of a device provided by the embodiments of the present application. Detailed Embodiments

[0054] To better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0055] It should be clear that the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative work belong to the scope of protection of the present invention.

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

[0057] It should be understood that the term "and / or" used herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.

[0058] It should be understood that although the terms first, second, third, etc. may be used to describe terminals in the embodiments of the present invention, these terminals should not be limited to these terms. These terms are only used to distinguish the terminals from each other. For example, without departing from the scope of the embodiments of the present invention, the first terminal may also be referred to as the second terminal, and similarly, the second terminal may also be referred to as the first terminal.

[0059] Depending on the context, the word "if" as used herein can be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".

[0060] See Figure 1a , which is a schematic flowchart of an image processing method.

[0061] Figure 1aThe image processing method in the example can be applied to an image forming apparatus. An image forming apparatus is a device having at least one function related to image formation, and may include, but is not limited to: a printing function, a scanning function, a copying function, and a fax function. For example: a single-function printer: an image forming apparatus having only a printing function; a multi-function printer: an image forming apparatus having printing, copying, scanning, and / or fax functions, and may also have a selectively set number of paper trays; a digital multi-function peripheral (MFP): based on a copying function, standard or optional with printing, scanning, and fax functions, using digital principles, outputting documents by laser printing, capable of editing images and texts as needed, having a large-capacity paper tray, high memory, a large hard disk, strong network support, and multi-task parallel processing capabilities.

[0062] An image forming apparatus can process an image in a Pipeline data processing model, and can convert an original color image into data for the image processing engine of the image forming apparatus to perform operations.

[0063] Figure 1a The image processing method in

[0064] S101a, input an original color image.

[0065] Specifically, the original color image may include multi-bit data in various common color spaces, such as color data with an 8-bit color depth in the common RGB color space.

[0066] S102a, perform color edge removal processing.

[0067] S103a, perform neutral gray adjustment processing.

[0068] Specifically, in the operation of image formation, the color of the text area is usually neutral gray.

[0069] S104a, perform color space conversion.

[0070] Specifically, convert the color space of the original color image into the device color space of the device for the image processing engine of the device to perform image formation operations. The device color space of the image forming apparatus may have four color channels: C (cyan), M (magenta), Y (yellow), and K (black).

[0071] S105a, output image data.

[0072] Specifically, output the color data of the four color channels to the image processing engine of the image forming apparatus to perform operations.

[0073] Due to the limitations of software and hardware conditions, the use of the above image processing method in an image forming apparatus can improve the processing efficiency. However, when performing color edge removal processing and neutral gray scale adjustment processing, it is possible to reduce the color information at certain positions, such as the logo part around the text area. The above method does not emphasize the characteristics of the text area either. Therefore, it is necessary to make improvements.

[0074] The color enhancement method according to an embodiment of the present application can be applied in Figure 1b the flow shown, and is preferably applied to an image forming apparatus with limited software and hardware conditions. By adding color enhancement processing at the end of the Pipeline processing model, the color characteristics of specific positions and areas of interest can be highlighted, the quality of the output image can be improved, and at the same time, the algorithm complexity is not increased, and the requirements for software and hardware are not high.

[0075] Figure 1b In [reference], the shown image processing method includes:

[0076] S101b, input an original color image;

[0077] S102b, perform color edge removal processing;

[0078] S103b, perform neutral gray scale adjustment processing;

[0079] S104b, convert the color space to a device color space;

[0080] S105b, perform color enhancement processing;

[0081] S106b, output the image after color enhancement processing.

[0082] The embodiment of the present application provides a color enhancement processing method, which can be applied in Figure 1b the flow of the image processing method in [reference], to improve the quality of the output image, and at the same time, the processing process is simple and efficient.

[0083] As shown in Figure 2a , it is the color enhancement method in an embodiment of the present application.

[0084] The color enhancement method in the embodiment of the present application includes:

[0085] S21, divide the color band data to be processed into multiple color blocks;

[0086] S22, count the number of exposure points of each color channel of each color block in the device color space, and generate an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel;

[0087] S23, convert the exposure point distribution image into a color image in a preset color space;

[0088] S24. Calculate the color feature value corresponding to the color block according to the color image in the preset color space.

[0089] S25. Determine whether the color block needs image enhancement according to the position information of the color block and / or the color feature value. If the color block needs image enhancement, correct the weights of each color channel in the device color space according to the color feature value, and output the corrected data of each color channel according to the corrected weights of each color channel.

[0090] The color enhancement method provided by the embodiment of the present application divides the color band data to be processed into multiple color blocks, counts the number of exposure points of each color channel of each color block, generates a corresponding exposure point distribution image, converts the exposure point distribution image into a color image in the preset color space, calculates the color feature value corresponding to the color block according to the color image in the preset color space, determines whether image enhancement is required according to the position information of the color block and / or the color feature value, and when the determination is yes, can enhance the image color at a specific preset position or enhance the image that meets specific content. Therefore, a simple and efficient image enhancement method is provided, which can be applied to an image forming device, reduce the complexity of the algorithm, and improve the image quality output by the image forming device.

[0091] Next, in some more detailed embodiments of the present application, the color enhancement method provided by the present application will be described.

[0092] Such as Figure 2b , which is the color enhancement method in another embodiment of the present application.

[0093] Before steps S21 - S25, the color enhancement method in this embodiment further includes:

[0094] S20. Obtain the color band data in the device color space of the image forming device, and perform binarization processing on the color band data.

[0095] Specifically, the image forming device may be devices such as printers and scanners. The device color space of the image forming device has multiple color channels. For example, the device color space of an image forming device taking a printer as an example includes C, M, Y, and K color channels.

[0096] The image forming apparatus processes image data in a pipeline processing model. At the end of the model processing, the color band data of the image forming apparatus is obtained and binarized. The binarization algorithm can be, but is not limited to, the Halftone algorithm. The technical solution of this application performs color detection and enhancement processing after the Halftone binarization processing, reducing the memory required for detection; at the same time, since it is at the very end of the image processing pipeline, the detection and enhancement processing can be implemented in the same software and hardware module, reducing the requirements for system control time and lowering the complexity of implementing the technical solution.

[0097] S21, dividing the binarized color band data into multiple color blocks;

[0098] Specifically, in the solution of this application, the binarized color band is evenly divided into multiple identical color blocks according to the height information. Each color block necessarily carries its own position information. In this way, dividing the color band data into multiple identical color blocks can further more accurately locate the area that requires color enhancement processing.

[0099] S22, counting the number of exposure points of each color block in each color channel in the device color space, and generating an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel;

[0100] Specifically, in this application, after using the Halftone algorithm to binarize the color data of the C, M, Y, and K color channels in the color color band data respectively, the binarized data corresponding to each color channel is obtained. The data after binarization can contain information with a color depth of 1 bit, that is, it contains 0 and 1.

[0101] In this step, according to the binarized data of each color block in the C, M, Y, and K color channels, the corresponding number of exposure points is determined according to the number of pixel points with non-zero pixel values.

[0102] In this step, the exposure point distribution is statistically transformed, so that the binarized data is converted into 8-bit pixel data (0-255) that can be processed according to the statistical distribution characteristics. For Figure 2c example, assume that the data after binarization in a certain color channel has 15 black dots. So the gray value of this area after conversion is 15. Then the corresponding 8-bit pixel data is 00001111. Because the image after the previous halftone binarization only has two pixel values, 0 and 1, that is, only white and black, and cannot represent colors. Therefore, by converting it into the corresponding exposure point distribution image, it can be known which colors are covered by the corresponding exposure points, that is, it can be known the color distribution corresponding to these exposure points through this exposure point distribution image.

[0103] S23. Convert the exposure point distribution image into a color image in a preset color space;

[0104] Specifically, in one embodiment, the exposure point distribution image can be converted into a color image in the YCC color space.

[0105] In this step, since the YCC space image has only two color channels, Cb and Cr, that is, blue and red, converting the exposure point distribution image into a YCC space image and converting the four color channels of CMYK into two color channels can determine whether enhancement processing is required with fewer variables and facilitate weight calculation and conversion during subsequent enhancement processing. Obviously, calculating with two color channels is simpler than with four color channels. For example, for YCC, only two variables, Cr and Cb, need to be calculated, while for CMYK, the conversion between four variables, C, M, Y, and K, needs to be calculated.

[0106] S24. Calculate the color feature value corresponding to the color block according to the color image in the preset color space;

[0107] S25. Judge whether the color block needs image enhancement according to the position information of the color block and / or the color feature value. If so, correct the weights of each color channel in the device color space according to the color feature value, and output the corrected data of each color channel according to the corrected weights of each color channel.

[0108] The color enhancement method provided in the embodiment of the present application above obtains the color ribbon data in the device color space of the image forming device, performs binarization processing, simplifies the amount of data to be processed, then divides the binarized color ribbon data into multiple color blocks, counts the number of exposure points of each color channel of each color block, generates a corresponding exposure point distribution image, converts the exposure point distribution image into a color image in a preset color space, calculates the color feature value corresponding to the color block according to the color image in the preset color space, judges whether image enhancement is required according to the position information of the color block and / or the color feature value. When the judgment is yes, the image color at a specific preset position can be enhanced, or the image meeting specific content can be enhanced. Therefore, a simple and efficient image enhancement method is provided, which can be applied to an image forming device, reduce the complexity of the algorithm, and improve the image quality output by the image forming device.

[0109] Next, in a more specific embodiment, the flow diagram of the color enhancement method will be described in conjunction with Figure 3 , illustrate the flow diagram of the color enhancement method.

[0110] A color enhancement method includes:

[0111] S301. Obtain the color color band data in the device color space of the image forming device, and perform binarization processing on the color color band data.

[0112] Specifically, in the image forming operation of the image forming device, instead of processing the entire page, the data is processed in data blocks section by section in the page data, and each section of data is the color color band data (Band).

[0113] In the embodiment of the present application, the device color space of the image forming device includes C, M, Y, and K color channels, and the color color band data correspondingly includes data of each color channel, and each color channel can be data with a multi-bit color depth.

[0114] In this embodiment, the Halftone algorithm is used to perform binarization processing on the color data of the C, M, Y, and K color channels in the color color band data respectively, to obtain the binarized data corresponding to each color channel. The data after binarization processing can include information with a 1-bit color depth, that is, it includes 0 and 1.

[0115] S302. Divide the binarized color color band data into multiple color blocks.

[0116] Specifically, in this step, the binarized color color band data is divided into multiple color blocks of equal size according to the height of the color color band data, that is, the height of the color color band is an integer multiple of the number of color blocks. Dividing the color color band into multiple color blocks can further perform more accurate positioning processing.

[0117] S303. Count the number of exposure points of each color block in each color channel in the device color space, and generate an exposure point distribution image corresponding to the color block based on the number of exposure points of each color channel.

[0118] Specifically, according to the binarized data of each color block in the C, M, Y, and K color channels, the corresponding number of exposure points is determined according to the number of pixel points with non-zero pixel values.

[0119] Here, taking the C (cyan) channel as an example, according to the binarized data, if the pixel value of the pixel point is 1, the number of exposure points needs to be accumulated.

[0120] Then, based on the number of exposure points in each color channel, an exposure point distribution image corresponding to the color block is generated, that is, the exposure point distribution image includes the number of exposure points of each pixel point in the color block in each color channel.

[0121] S304. Convert the exposure point distribution image into a color image in a preset color space.

[0122] Specifically, the exposure point distribution image can be converted into a color image in the YCC color space.

[0123] The YCC color space image includes two color parameters, Cr (blue) and Cb (red). By converting the exposure point distribution image into a YCC color space image, it can be understood that the YCC space image has only two color channels, Cb and Cr, that is, blue and red. Converting the four color channels of C, M, Y, and K into two color channels of Cr and Cb reduces the number of variable parameters and the complexity rate of calculation and conversion between parameters. At the same time, it is also convenient for calculating the weight adjustment of each color channel during subsequent color enhancement.

[0124] S304, calculate the color feature value corresponding to the color block.

[0125] Specifically, in the embodiment of the present application, the corresponding color feature value is calculated based on the pixel coordinates and pixel values of each pixel point in the color block, that is, the color feature value includes the color information and coordinate information of the pixel point.

[0126] S305, perform a first judgment to determine whether the color block is in a preset area.

[0127] Specifically, it can be determined whether the color block is in a preset area according to the coordinates of the pixel points in the color block. The preset area in the embodiment of the present application can be, but is not limited to, the layout position area of the Logo, etc.

[0128] If the judgment is yes, execute S306 - S307; if not, execute S308.

[0129] In one implementable manner, the image data is obtained and saved by scanning the image, such as the color information, position information, etc. of the image in the preset area of the entire image. In another implementable manner, page templates of various types and sizes are stored in the image forming device. Through panel settings, the plane coordinate axis or the space coordinate axis can be set based on the template to represent any area.

[0130] It can be understood that the color block image data is obtained, and based on this image data, it is judged whether there is a part belonging to the preset area, or the color block image data is obtained, and based on this image data, the corresponding color feature value is calculated to determine whether it belongs to the preset area (that is, to determine whether image enhancement processing needs to be performed). If there is image data belonging to the preset area in the color block, execute steps S306 - S307, otherwise execute step S308.

[0131] S306, correct the weights of each color channel in the color space according to the color feature value.

[0132] Specifically, compare the calculated color feature values with the preset first target color feature values, and determine whether image enhancement processing is required based on the difference between the calculated color feature values and the first target color feature values. In the case where image enhancement processing is required, adjust the weights of each color channel. The first target color feature values can be related to the colors of the preset Logo graphics. The adjusted weights of each color channel can be used as correction factors for the data of each color channel.

[0133] S307. Output the corrected data of each color channel according to the corrected weights of each color channel.

[0134] Specifically, re-correct the data of each color channel according to the adjusted weights of each color channel, which can strengthen the color information of parts in the preset positions such as Logos and improve the image quality.

[0135] S308. Perform a second judgment. According to the calculated color feature values, determine whether the color feature values meet the preset conditions.

[0136] Specifically, according to whether the color feature values meet the preset conditions, it can be determined whether the color block is an area of interest, such as a text area.

[0137] Compare the color feature values with the preset second target color feature values, so as to know whether the color block is located in the area of interest. Taking the text area as an example, the second target color feature value is the feature value corresponding to neutral gray. When the calculated color feature value is within the range of neutral gray, it can be determined that the color block is in the text area of interest and color enhancement of the text area is required. If the judgment is no, no enhancement is required. That is, when the second judgment is yes, execute S309 and S310; if no, execute S311.

[0138] S309. Correct the weights of each color channel in the color space according to the color feature values.

[0139] Specifically, compare the calculated color feature values with the preset second target color feature values, and adjust the weights of each color channel based on the difference between the calculated color feature values and the second target color feature values. The second target color feature values can be related to the color features of the preset text area. The adjusted weights of each color channel can be used as correction factors for the data of each color channel.

[0140] S310. Output the corrected data of each color channel according to the corrected weights of each color channel.

[0141] Specifically, by re - correcting the data of each color channel according to the adjusted weights of each color channel, the color information of the text part can be enhanced, and the image quality can be improved.

[0142] S311, output the data of each color channel.

[0143] Specifically, when both the first judgment and the second judgment are negative, directly output the color data of the C, M, Y, and K color channels in the device color space, without color enhancement, and it can be directly processed by the image processing engine.

[0144] The color enhancement method provided by the embodiments of the present invention divides the image to be processed into color blocks, counts the number of exposure points of each color channel in each color block, generates a corresponding exposure point distribution image, converts the exposure point distribution image into a color image in a preset color space, calculates the color feature value corresponding to the color block according to the color image in the preset color space, and determines whether image enhancement is required according to the position information and / or color feature value of the color block. When the judgment is yes, the image color at a specific preset position can be enhanced, or the image that meets specific content can be enhanced, realizing the precise positioning of image enhancement; in addition, on the one hand, only the area that needs to be enhanced needs to be enhanced, which can reduce the system resources consumed by image enhancement; on the other hand, it avoids over - enhancing the area that does not need to be enhanced and reduces the image quality; at the same time, the color enhancement method provided by the embodiments of the present invention performs image enhancement processing on the area that needs to be enhanced, improving the image quality.

[0145] On the other hand of the embodiments of the present application, a color enhancement device is also provided.

[0146] Such as Figure 4a , a color enhancement device 400 includes:

[0147] A segmentation unit 403, configured to divide the color band data into multiple color blocks;

[0148] An exposure point distribution image calculation unit 404, configured to count the number of exposure points of each color channel of each color block in the device color space, and generate an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel;

[0149] A color space conversion unit 405, configured to convert the exposure point distribution image into a color image in a preset color space;

[0150] A color feature value calculation unit 406, configured to calculate the color feature value corresponding to the color block according to the color image in the preset color space;

[0151] A determination unit 407, configured to determine whether image enhancement is required for the color block according to the position information of the color block and / or the color feature value; and

[0152] An image enhancement unit 408, configured to, when it is determined that the color block requires image enhancement, correct the weights of the respective color channels in the device color space according to the color feature value, and output the corrected respective color channel data according to the corrected weights of the respective color channels.

[0153] Another embodiment of the present application further provides a color enhancement device.

[0154] Figure 4b The color enhancement device is schematically shown.

[0155] The color enhancement device in this embodiment includes:

[0156] A color band acquisition unit 401, configured to acquire color color band data in the device color space of the image forming device;

[0157] A binarization processing unit 402, configured to perform binarization processing on the color color band data;

[0158] A segmentation unit 403, configured to divide the binarized color color band data into a plurality of color blocks;

[0159] An exposure point distribution image calculation unit 404, configured to count the number of exposure points of each color block in the respective color channels in the device color space, and generate an exposure point distribution image corresponding to the color block according to the number of exposure points of the respective color channels;

[0160] A color space conversion unit 405, configured to convert the exposure point distribution image into a color image in a preset color space;

[0161] A color feature value calculation unit 406, configured to calculate the color feature value corresponding to the color block according to the color image in the preset color space;

[0162] A determination unit 407, configured to determine whether the color block needs to be image-enhanced according to the position information of the color block and / or the color feature value; and

[0163] An image enhancement unit 408, configured to, when the determination is yes, correct the weights of the respective color channels in the device color space according to the color feature value, and output the corrected respective color channel data according to the corrected weights of the respective color channels.

[0164] The color enhancement device provided in the embodiment of the present application obtains the color color band data in the device color space of the image forming device, and performs binarization processing, which simplifies the amount of data to be processed. Then, the binarized color color band data is divided into multiple color blocks, the number of exposure points in each color channel of each color block is counted, and the corresponding exposure point distribution image is generated. The exposure point distribution image is converted into a color image in a preset color space. According to the color image in the preset color space, the color feature value corresponding to the color block is calculated. According to the position information and / or color feature value of the color block, it is determined whether image enhancement is required. When the determination is yes, the image color at a specific preset position can be enhanced, or the image that conforms to specific content can be enhanced. Therefore, a simple and efficient image enhancement method is provided, which can be applied to the image forming device, reducing the complexity of the algorithm and improving the image quality output by the image forming device.

[0165] The color enhancement device in the embodiment of the present application can be implemented in the image forming device in the form of hardware or software, and enables the image forming device to implement the color enhancement method in the foregoing embodiment. The specific method flow will not be repeated here.

[0166] On the other hand, the embodiment of the present application also provides a corresponding storage medium, which can store a computer program. When the computer device executes the computer program, the foregoing color enhancement method can be implemented.

[0167] Figure 5 It is a schematic diagram of a computer device provided in the embodiment of the present application. As Figure 5 shown, the computer device 500 in this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory and executable on the processor 501. When the processor 501 executes the computer program 503, the color enhancement method in the embodiment is implemented. To avoid repetition, it will not be elaborated here one by one. Alternatively, when the computer program is executed by the processor 501, the functions of each model / unit in the color enhancement device in the embodiment are implemented. To avoid repetition, it will not be elaborated here one by one.

[0168] The computer device 500 can be a single computer device or a computing device such as a cloud computer device. The computer device may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art can understand that Figure 5 this is only an example of the computer device 500, and does not constitute a limitation on the computer device 500. It may include more or fewer components than shown in the figure, or combine some components, or different components. For example, the computer device may also include input / output devices, network access devices, buses, etc.

[0169] The so-called processor 501 may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0170] The memory 502 may be an internal storage unit of the computer device 500, such as the hard disk or memory of the computer device 500. The memory 502 may also be an external storage device of the imaging device 500, such as a plug-in hard disk equipped on the computer device 500, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Further, the memory 502 may also include both the internal storage unit of the computer device 500 and the external storage device. The memory 502 is used to store computer programs and other programs and data required by the computer device. The memory 502 may also be used to temporarily store data that has been output or is to be output.

[0171] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

[0172] In several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above division of units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other may be through some interfaces, and the indirect couplings or communication connections of devices or units may be in electrical, mechanical, or other forms.

[0173] The integrated unit implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium and include several instructions for causing a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a processor to execute some steps of the methods in the various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

[0174] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the scope of protection of the present invention.

Claims

1. A color enhancement method applied to an image forming apparatus, characterized in that, The method includes: Dividing the color band data to be processed into multiple color blocks; Counting the number of exposure points of each color channel of each color block in the device color space, and generating an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel; Converting the exposure point distribution image into a color image in a preset color space; Calculating a color feature value corresponding to the color block according to the color image in the preset color space; Judging whether the color block needs image enhancement according to the position information of the color block and / or the color feature value. If the color block needs image enhancement, correcting the weights of each color channel in the device color space according to the color feature value, and outputting corrected data of each color channel according to the corrected weights of each color channel.

2. The color enhancement method according to claim 1, wherein Before dividing the color band data to be processed into multiple color blocks, it includes: obtaining color band data in the device color space of an image forming device, and performing binarization processing on the color band data.

3. The color enhancement method according to claim 2, wherein The device color space of the image forming device includes C, M, Y, and K color channels; the binarization processing on the color band data includes: respectively performing binarization processing on the color data of the C, M, Y, and K color channels in the color band data by using the Halftone algorithm to obtain binarized data corresponding to each color channel.

4. The color enhancement method according to claim 3, wherein The counting of the number of exposure points of each color channel of each color block in the device color space includes: According to the binarized data of each color block in the C, M, Y, and K color channels respectively, determining the corresponding number of exposure points according to the number of pixel points with non-zero pixel values.

5. The color enhancement method according to claim 1, wherein, The converting of the exposure point distribution image into a color image in a preset color space includes: Converting the exposure point distribution image into a color image in the YCC color space.

6. The color enhancement method according to claim 1, characterized in that, The calculating of the color feature value corresponding to the color block includes: Calculating a corresponding color feature value based on the pixel coordinates and / or pixel values of each pixel point in the color block.

7. The color enhancement method according to claim 1, wherein The method includes: Performing a first judgment according to the position information of the color block to judge whether the color block is in a preset area. When the judgment is yes, correcting the weights of each color channel in the device color space according to the color feature value, and outputting corrected data of each color channel according to the corrected weights of each color channel.

8. The color enhancement method according to claim 1, wherein The method includes: Performing a first judgment according to the position information of the color block to judge whether the color block is in a preset area. When the judgment is no, performing a second judgment according to the color feature value to judge whether the color feature value meets a preset condition. When the judgment is yes, correcting the weights of each color channel in the device color space according to the color feature value, and outputting corrected data of each color channel according to the corrected weights of each color channel.

9. A color enhancement device is applied to an image forming apparatus, characterized in that, It includes: A segmentation unit for dividing color band data into multiple color blocks; An exposure point distribution image calculation unit, configured to count the number of exposure points of each color block in each color channel in the device color space, and generate an exposure point distribution image corresponding to the color block according to the number of exposure points of each color channel; A color space conversion unit, configured to convert the exposure point distribution image into a color image in a preset color space; A color feature value calculation unit, configured to calculate a color feature value corresponding to the color block according to the color image in the preset color space; A judgment unit, configured to judge whether the color block needs image enhancement according to the position information of the color block and / or the color feature value; And An image enhancement unit, configured to, when it is judged that the color block needs image enhancement, correct the weights of each color channel in the device color space according to the color feature value, and output corrected data of each color channel according to the corrected weights of each color channel.

10. The color enhancement device according to claim 9, characterized in that, The device further includes: A color band acquisition unit, configured to acquire color band data in the device color space of the image forming device; A binarization processing unit, configured to perform binarization processing on the color band data.

11. The color enhancement device according to claim 10, characterized in that, The device color space of the image forming device includes C, M, Y, and K color channels; The binarization processing unit is configured to perform binarization processing on the color data of the C, M, Y, and K color channels in the color band data respectively by using a Halftone algorithm to obtain binarized data corresponding to each color channel.

12. The color enhancement device according to claim 11, wherein The exposure point distribution image calculation unit is configured to determine the corresponding number of exposure points according to the number of pixel points with non-zero pixel values according to the binarized data of each color block in the C, M, Y, and K color channels respectively.

13. The color enhancement device according to claim 9, wherein, The color space conversion unit is configured to convert the exposure point distribution image into a color image in the YCC color space.

14. The color enhancement device according to claim 13, wherein The color feature value calculation unit is configured to calculate a corresponding color feature value based on the pixel coordinates and pixel values of each pixel point in the color block.

15. The color enhancement device according to claim 9, characterized in that, The judgment unit performs a first judgment according to the position information of the color block to judge whether the color block is in a preset area. When the judgment is yes, the image enhancement unit corrects the weights of each color channel in the device color space according to the color feature value, and outputs corrected data of each color channel according to the corrected weights of each color channel.

16. The color enhancement device according to claim 9, wherein The judgment unit performs a first judgment according to the position information of the color block to judge whether the color block is in a preset area. When the judgment is no, a second judgment is performed according to the color feature value to judge whether the color feature value meets a preset condition. When the judgment is yes, the image enhancement unit corrects the weights of each color channel in the device color space according to the color feature value, and outputs corrected data of each color channel according to the corrected weights of each color channel.

17. A computer-readable storage medium, characterized in that, The storage medium includes a stored program, which controls the device where the storage medium is located to execute the color enhancement method according to any one of claims 1 to 8 when the program runs.

Citation Information

Patent Citations

  • Image processing method and device, electronic device and computer readable storage medium

    CN109636753A

  • Image processing method and device, image forming device and storage medium

    CN111935364A