Document color adjustment method and apparatus

By obtaining the color values ​​of the printing paper and the document, calculating the color difference and making adjustments, the problem of blurry printing results was solved, achieving a clear and visible printing effect and improving the user experience.

CN116048434BActive Publication Date: 2026-07-03ZHUHAI PANTUM ELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHUHAI PANTUM ELECTRONICS CO LTD
Filing Date
2022-11-30
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

When the background color of the printing paper is similar to the color of the printed document during printing or copying, the printed result becomes blurry, making it difficult for users to identify the content.

Method used

By obtaining the color values ​​of the printing paper and the printed document, it is determined whether they are a single color. The color difference is calculated and normalized to determine the color value to be adjusted. The color of the printed document is then replaced to improve contrast or to use complementary colors for printing.

Benefits of technology

This makes the printed document clearly visible relative to the printing paper, improving the user experience, especially when the paper background is not white.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116048434B_ABST
    Figure CN116048434B_ABST
Patent Text Reader

Abstract

This invention relates to the field of computer technology, and more particularly to a method and apparatus for adjusting document colors. First, the background color value of the printing paper and the document color value of the printed document are obtained. Then, based on the background color value and the document color value, it is determined whether the printing paper and the printed document are both a single color. If at least one of the printing paper and the printed document is not a single color, an adjustment color value for the printed document is determined based on the color difference between the background color value and the document color value. The document color value is then replaced with the adjustment color value, and the printing operation is performed. By replacing the color of the printed document, the adjusted printed document becomes clearly visible relative to the printing paper, facilitating user reading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for adjusting document colors. Background Technology

[0002] When a user makes a color copy or prints a document, if the background color of the paper is similar to the color of the document, the printed result will be blurry. As the similarity between the two colors increases, the user may even be unable to distinguish the printed content. For example, when the document is yellow and the paper is white, the printed content is relatively clear; however, when the document is yellow and the paper is light yellow, the printed content is blurry and difficult to read.

[0003] In existing technologies, users can select one of three basic levels—lighter, normal, and darker—to adjust the color of printed documents. However, this method can only change the density of the ink and cannot effectively solve the aforementioned problem. Summary of the Invention

[0004] This invention provides a method and apparatus for adjusting the color of a printed document. By replacing the color of the printed document, the adjusted printed document becomes clearly visible relative to the printing paper, thus improving the user experience.

[0005] In a first aspect, embodiments of the present invention provide a method for adjusting the color of a printed document, the method being applied to an image forming device, comprising:

[0006] Get the background color value of the printing paper and the document color value of the printed document;

[0007] Determine whether the printing paper and the printed document are both a single color based on the background color value and the document color value;

[0008] If at least one of the printing paper and the printed document is not a single color, the adjusted color value of the printed document is determined based on the color difference between the background color value and the document color value.

[0009] Replace the document color value with the adjusted color value and perform the print operation.

[0010] In one embodiment, determining whether the printing paper and the printed document are both a single color based on the background color value and the document color value includes:

[0011] Determine the first variance of the background color values ​​and the second variance of the document color values;

[0012] If both the first variance and the second variance are less than the first threshold, then it is determined that both the printing paper and the printed document are a single color.

[0013] In one embodiment, determining the adjustment color value of the printed document based on the color difference between the background color value and the document color value includes:

[0014] Determine the first color range in which the document's color value falls;

[0015] Determine the second color interval in which the difference between the background color value and the document color value lies;

[0016] The color difference is normalized based on the first color range and the second color range to obtain the adjusted color value.

[0017] In one embodiment, the step of normalizing the color difference based on the first color range and the second color range to obtain the adjusted color value includes:

[0018] According to the formula Determine the adjusted color value, where a is the color difference, b is the adjusted color value, and C... max C is the maximum value of the first color range. min A is the minimum value of the first color range. max A is the maximum value of the second color range. min It is the minimum value of the second color range.

[0019] In one embodiment, the method further includes:

[0020] If both the printing paper and the printed document are a single color, then determine the complementary color value that is complementary to the background color value;

[0021] Replace the document color values ​​with the complementary color values ​​and perform the print operation.

[0022] In one embodiment, the method further includes:

[0023] If both the printing paper and the printed document are a single color, then determine a number of contrasting color values ​​whose color contrast with the background color value is greater than a second threshold.

[0024] Replace the document color value with any of the contrasting color values ​​and perform the print operation.

[0025] In one embodiment, before obtaining the background color value of the printing paper and the document color value of the printed document, the method further includes:

[0026] After detecting that the automatic color adjustment mode has been activated, the printing paper and the printed document are scanned to obtain the corresponding background color value and document color value.

[0027] Store the background color value and the document color value.

[0028] In one embodiment, the method further includes: setting a startup option for the automatic color adjustment mode on a control panel, and starting the automatic color adjustment mode when the startup option is detected to be triggered.

[0029] Secondly, embodiments of the present invention provide a document color adjustment device, the device being deployed in an image forming apparatus, comprising:

[0030] The acquisition module is used to acquire the background color value of the printing paper and the document color value of the printed document;

[0031] The judgment module is used to determine whether the printing paper and the printed document are both a single color based on the background color value and the document color value;

[0032] The determination module is used to determine the adjustment color value of the printed document based on the color difference between the background color value and the document color value if at least one of the printing paper and the printed document is not a single color.

[0033] The processing module is used to replace the document color value with the adjusted color value and perform a printing operation.

[0034] In one embodiment, determining whether the printing paper and the printed document are both a single color based on the background color value and the document color value includes:

[0035] Determine the first variance of the background color values ​​and the second variance of the document color values;

[0036] If both the first variance and the second variance are less than the first threshold, then it is determined that both the printing paper and the printed document are a single color.

[0037] In one embodiment, determining the adjustment color value of the printed document based on the color difference between the background color value and the document color value includes:

[0038] Determine the first color range in which the document's color value falls;

[0039] Determine the second color interval in which the difference between the background color value and the document color value lies;

[0040] The color difference is normalized based on the first color range and the second color range to obtain the adjusted color value.

[0041] In one embodiment, the step of normalizing the color difference based on the first color range and the second color range to obtain the adjusted color value includes:

[0042] According to the formula Determine the adjusted color value, where a is the color difference, b is the adjusted color value, and C... max C is the maximum value of the first color range. min A is the minimum value of the first color range. max A is the maximum value of the second color range. min It is the minimum value of the second color range.

[0043] In one embodiment, the determining module is further configured to, if both the printing paper and the printed document are a single color, determine a complementary color value that is complementary to the background color value; replace the document color value with the complementary color value and perform a printing operation.

[0044] In one embodiment, the determining module is further configured to, if both the printing paper and the printed document are a single color, determine a plurality of contrasting color values ​​whose color contrast with the background color value is greater than a second threshold; replace the document color value with any one of the contrasting color values ​​and perform a printing operation.

[0045] In one embodiment, the device further includes: a scanning module;

[0046] Before obtaining the background color value of the printing paper and the document color value of the printed document,

[0047] The scanning module is also used to scan the printing paper and the printed document after detecting that the automatic color adjustment mode has been activated, to obtain the corresponding background color value and document color value; and to store the background color value and the document color value.

[0048] In one embodiment, the device further includes: a startup module, configured to set a startup option for the automatic color adjustment mode on a control panel, and to start the automatic color adjustment mode when the startup option is detected to be triggered.

[0049] Thirdly, embodiments of the present invention provide an electronic device, including:

[0050] At least one processor, and

[0051] At least one memory communicatively connected to the processor, wherein:

[0052] The processor, running programs stored in the memory, is able to execute the methods provided in the first aspect.

[0053] Fourthly, embodiments of the present invention provide a computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed, implement the method provided in the first aspect.

[0054] In this embodiment of the invention, the background color value of the printing paper and the document color value of the printed document are first obtained. Then, it is determined whether the printing paper and the printed document are both a single color based on the background color value and the document color value. If at least one of the printing paper and the printed document is not a single color, an adjustment color value for the printed document is determined based on the color difference between the background color value and the document color value. The document color value is then replaced with the adjustment color value, and the printing operation is performed. By replacing the color of the printed document, the adjusted printed document is made clearly visible relative to the printing paper, improving the user experience. Especially when the background color of the printing paper is not white, the problem of unclear document content is more likely to occur because the color of the printed document is similar to the background color of the paper. This embodiment of the invention achieves a more significant improvement. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 A flowchart illustrating a document color adjustment method provided in an embodiment of the present invention;

[0057] Figure 2 A flowchart illustrating another document color adjustment method provided in an embodiment of the present invention;

[0058] Figure 3 This is a schematic diagram illustrating a document color adjustment method provided in an embodiment of the present invention;

[0059] Figure 4 A schematic diagram illustrating another document color adjustment method provided in an embodiment of the present invention;

[0060] Figure 5 This is a schematic diagram of the structure of a document color adjustment device provided in an embodiment of the present invention;

[0061] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

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

[0063] It should be understood that the described embodiments are merely some, not all, of the embodiments in this specification. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without inventive effort are within the scope of protection of this specification.

[0064] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0065] To address the problem that printed documents and printing paper often have similar colors, making it difficult for users to distinguish the content of the printed documents, this invention provides a document color adjustment method. By replacing the colors of the printed document, the adjusted printed document becomes clearly visible relative to the printing paper, making it easier for users to read.

[0066] Figure 1 This is a flowchart illustrating a document color adjustment method provided in an embodiment of the present invention. This method can be applied to image forming devices such as printers or copiers. Figure 1 As shown, the method may include:

[0067] Step 101: Obtain the background color value of the printing paper and the document color value of the printed document.

[0068] In this embodiment of the invention, the printed document can be a document used in printing, copying, or other imaging scenarios. The printed document can be in any form, such as text, images, or tables. The printing paper can be any paper available for printing, copying, or other imaging scenarios. The image forming device obtains the background color value of the printing paper by pre-setting the color information of commonly used colored printing papers or by scanning blank printing paper. The document color value of the printed document can be sent by a host device connected to the image forming device. In this embodiment of the invention, the document color value and background color value can be represented in various ways, such as the RGB color space, where each point is composed of three colors: R (red), G (blue), and B (green). The color value of each color ranges from 0 to 255. If the printing paper is a single color, the background color value can be represented by a uniform set of three values. Optionally, the image forming device can also choose other ways to represent colors, such as the hue (H), saturation (S), and value (V) color spaces or other available color spaces.

[0069] Step 102: Determine whether the printing paper and the printed document are both a single color based on the background color value and the document color value.

[0070] Image forming equipment can make a judgment based on the specific values ​​of the background color value and the document color value.

[0071] In one embodiment, the image forming apparatus may first determine a first variance of the background color value and a second variance of the document color value. If both the first and second variances are less than a first threshold, it can be determined that the printing paper and the printed document are both a single color. Optionally, the image forming apparatus may also choose other determination methods, such as making a determination based on the standard deviation or extreme values ​​of the background color value and the document color value.

[0072] Step 103: If at least one of the printing paper and the printed document is not a single color, then the adjustment color value of the printed document is determined based on the color difference between the background color value and the document color value.

[0073] In one embodiment, the image forming apparatus can first determine a first color interval in which the document's color values ​​lie, then determine a second color interval in which the difference between the background color value and the document's color values ​​lies, and then normalize the color difference based on the first and second color intervals to obtain an adjusted color value. Specifically, the image forming apparatus can use a formula... Determine the color adjustment values, where a is the color difference, b is the adjusted color value, and C is the color value. max C is the maximum value of the first color range. min A is the minimum value of the first color interval. max A is the maximum value in the second color range. min This is the minimum value in the second color interval. Based on the normalization process performed using the above formula, the difference between the background color value and the document color value is adjusted to the first color interval where the document color value falls, resulting in the adjusted color value. Therefore, when a document is printed or copied using the adjusted color value, the color of the document content and the printed paper will be clearly different for the user, making it easy to identify.

[0074] Step 104: Replace the document color values ​​with the adjusted color values ​​and perform the print operation.

[0075] After the above processing, the adjusted color value is significantly different from the background color value. After the image forming device replaces the document color value with the adjusted color value and performs the printing operation, the printed document is clearly visible relative to the printing paper and is easily identifiable by the user.

[0076] In one embodiment, if both the printing paper and the printed document are a single color, the image forming device can directly determine the complementary color value of the background color, then replace the document color value with the complementary color value and perform the printing operation. Since the two complementary colors have a significant difference, printing the document using the complementary color value results in a clearer printout. Furthermore, compared to the aforementioned method of determining the adjusted color value of the printed document based on the color difference between the background color value and the document color value, this method omits the calculation step, making the adjustment process more convenient, improving processing speed, and reducing storage space.

[0077] In one embodiment, if both the printing paper and the printed document are a single color, the image forming device can further determine multiple contrasting color values ​​whose color contrast with the background color value is greater than a second threshold. Then, the document color value is replaced with any one of the contrasting color values, and the printing operation is performed. The difference between two colors with high contrast is more obvious; printing with the contrasting color value as the document's color will still result in a clear printed document. The second threshold can be flexibly set according to actual conditions. Similarly, directly replacing the document color value with the contrasting color value simplifies the color adjustment process, improves processing speed, and reduces storage space.

[0078] In this embodiment of the invention, the image forming device can obtain a clearly visible printed document through the above process, making it easy for users to read.

[0079] Figure 2 A flowchart illustrating another document color adjustment method provided in an embodiment of the present invention. Figure 2 As shown, the method may include:

[0080] Step 201: After detecting the automatic color adjustment command, enter the automatic color adjustment mode.

[0081] In practical applications, the image forming apparatus can have an option to activate the automatic color adjustment mode on its control panel. When the user clicks this option, it triggers the corresponding automatic color adjustment command, putting the image forming apparatus into automatic color adjustment mode. Once in automatic color adjustment mode, the image forming apparatus automatically adjusts the colors of the printed document. Optionally, the image forming apparatus can adjust the colors of the printed document before each printing operation, or it can determine whether color adjustment is needed based on the specific differences between the printed document and the printing paper. For example, it can first determine the contrast between the background color value and the document color value; if the contrast is low, then the color adjustment process is executed.

[0082] Step 202: Obtain the background color value and save it.

[0083] After entering the automatic color adjustment mode, the image forming device can first obtain and save the background color value of the printing paper. The acquisition method can include: scanning the printing paper to obtain the background color value, or obtaining the background color value from the system according to the user's settings.

[0084] Step 203: After detecting the print command, obtain the document color value.

[0085] Upon detecting a print command, the image forming device can obtain the printable document and its color values ​​from the print job sent by the host device.

[0086] Step 204: Determine whether the printing paper and the printed document are both a single color.

[0087] If it is determined that both the printing paper and the printed document are a single color, proceed to step 205 or step 206; otherwise, proceed to step 207.

[0088] Step 205: Replace the document color values ​​with complementary color values.

[0089] Step 206: Replace the document color value with any of the contrasting color values.

[0090] Step 207: Replace the document color values ​​with the adjustment color values.

[0091] The steps for determining complementary color values, contrasting color values, and adjustment color values ​​can be found in [reference needed]. Figure 1 Description in the method flowchart.

[0092] Step 208: Perform the printing operation.

[0093] After the above steps, the colors of the document printed by the image forming device are significantly different from the colors of the printing paper, making it easier for users to read.

[0094] In one specific embodiment, the background color value of the printing paper can be (R,G,B)=(252,213,181), and the printed document is “XY”, with document color values ​​of X(R,G,B)=(255,204,102) and Y(R,G,B)=(182,221,232), respectively. The value range of each color channel is 0-255. When calculating and adjusting the color values, the image forming device subtracts the background color value from the document color value, and the color difference is X(R,G,B)=(3,-9,-79) and Y(R,G,B)=(-70,8,51), and then calculates the difference according to the formula. Calculate and adjust the color value. (C) min and C max C represents the minimum and maximum values ​​of the document's color values ​​within their respective color ranges. min C is 0max For 255, A min and A max These are the minimum and maximum values ​​of the color difference within the respective color intervals, A. min -255, A max It is 255. Where X(R,3) means that the R value (red color channel value) of X is 3, and it will be described in the same way below.

[0095]

[0096] The color values ​​were adjusted to X(R,G,B)=(129,123,88) and Y(R,G,B)=(93,132,153), while the background color value was (R,G,B)=(252,213,181). There is a significant difference between the adjusted color values ​​and the background color values. The printed result should look like this. Figure 3 As shown, 301 represents the print effect before color adjustment. The paper is white, and the printed document (XY) is similar in color to the paper but not a single color. The "X" is slightly lighter, and the "Y" is darker, which affects the user's viewing experience. 302 represents the print effect after color adjustment. Since the printed document is not a single color, the adjustment method involves replacing the document's color values ​​with the adjusted color values. In real-world scenarios, because each character in the printed document has its own determined adjustment color value, the adjusted "XY" are usually different colors. If both the document color value and the background color value are single colors, the adjusted print effect would look like... Figure 4 As shown, 401 represents the print result before color adjustment, and 402 represents the print result after color adjustment. It can be seen that the printed document differs significantly in color from the printed paper, making it easy to read.

[0097] The above describes the method for adjusting the color of printed documents according to an embodiment of the present invention, taking the printing process as an example. This method can also be applied to other working scenarios of photocopying or image forming equipment.

[0098] Figure 5 This is a schematic diagram of a document color adjustment device provided in an embodiment of the present invention. This device can be deployed in an image forming device, such as… Figure 5 As shown, it may include: an acquisition module 510, a judgment module 520, a determination module 530, and a processing module 540.

[0099] The acquisition module 510 is used to acquire the background color value of the printing paper and the document color value of the printed document.

[0100] The judgment module 520 is used to determine whether the printing paper and the printed document are both a single color based on the background color value and the document color value.

[0101] The determination module 530 is used to determine the adjustment color value of the printed document based on the color difference between the background color value and the document color value if at least one of the printing paper and the printed document is not a single color.

[0102] Processing module 540 is used to replace the document color values ​​with the adjusted color values ​​and perform the printing operation.

[0103] In one embodiment, when determining whether the printing paper and the printed document are both a single color, the specific process of the determination module 520 may include: determining a first variance of the background color value and a second variance of the document color value; if both the first variance and the second variance are less than a first threshold, then it is determined that the printing paper and the printed document are both a single color.

[0104] In one embodiment, the process of determining the adjusted color value by the determining module 530 may include: determining a first color interval in which the document color value lies, determining a second color interval in which the difference between the background color value and the document color value lies, and normalizing the color difference based on the first and second color intervals to obtain the adjusted color value. Specifically, the determining module 530 may use a formula... Determine the color adjustment value. Where 'a' is the color difference, 'b' is the adjusted color value, and 'C' is the color value. max C is the maximum value of the first color range. min A is the minimum value of the first color interval. max A is the maximum value in the second color range. min It is the minimum value of the second color range.

[0105] In one embodiment, if both the printing paper and the printed document are a single color, the determining module 530 can further determine a complementary color value that is complementary to the background color value, then replace the document color value with the complementary color value and perform the printing operation. Alternatively, the determining module 530 can determine multiple contrasting color values ​​that have a color contrast greater than a second threshold with the background color value, then replace the document color value with any of the contrasting color values ​​and perform the printing operation.

[0106] In one embodiment, the device may include a scanning module, which scans the printed paper and the printed document after detecting that the automatic color adjustment mode has been activated, obtains the corresponding background color value and document color value, and then stores the background color value and document color value.

[0107] In one embodiment, the device may further include: a startup module, configured to set a startup option for the automatic color adjustment mode on a control panel, and to start the automatic color adjustment mode when the startup option is detected to be triggered.

[0108] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 6 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0109] like Figure 6 As shown, the electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 610, memory 630, and communication bus 640 connecting different system components (including memory 630 and processor 610).

[0110] Communication bus 640 represents one or more of several bus architectures, including a memory bus or memory controller, peripheral bus, graphics acceleration port, processor, or local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MAC) buses, Enhanced ISA buses, Video Electronics Standards Association (VESA) local buses, and Peripheral Component Interconnect (PCI) buses.

[0111] Electronic devices typically include a variety of computer-readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, and removable and non-removable media.

[0112] Memory 630 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Although Figure 6Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media). In these cases, each drive may be connected to the communication bus 640 via one or more data media interfaces. The memory 630 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0113] A program / utility having a set (at least one) of program modules can be stored in memory 630. Such program modules include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules typically perform the functions and / or methods described in the embodiments of the present invention.

[0114] The electronic device can also communicate with one or more external devices, one or more devices that enable a user to interact with the electronic device, or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network interface card, modem, etc.). This communication can be performed through communication interface 620. Furthermore, the electronic device can also communicate through a network adapter (…). Figure 6 (Not shown) communicates with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN), and / or public networks, such as the Internet). The aforementioned network adapter can communicate with other modules of the electronic device via the communication bus 640. It should be understood that, although... Figure 6 Not shown, other hardware and / or software modules can be used in conjunction with electronic devices, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Drives; hereinafter referred to as RAID) systems, tape drives, and data backup storage systems.

[0115] The processor 610 executes various functional applications and data processing by running programs stored in the memory 630, such as implementing the document color adjustment method provided in the embodiments of the present invention.

[0116] This invention also provides a computer-readable storage medium storing computer instructions that cause the computer to execute the document color adjustment method provided in this invention.

[0117] The aforementioned computer-readable storage medium may be any combination of one or more computer-readable media. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in connection with an instruction execution system, apparatus, or device.

[0118] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0119] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0120] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0121] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0122] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of the invention pertain.

[0123] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0124] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0125] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for adjusting the color of a document, characterized in that, The method is applied to an image forming apparatus, including: Get the background color value of the printing paper and the document color value of the printed document; Determine whether the printing paper and the printed document are both a single color based on the background color value and the document color value; If at least one of the printing paper and the printed document is not a single color, the adjusted color value of the printed document is determined based on the color difference between the background color value and the document color value. Replace the document color values ​​with the adjusted color values ​​and then perform the print operation; Determining the adjustment color value of the printed document based on the color difference between the background color value and the document color value includes: Determine the first color range in which the document's color value falls; Determine the second color interval in which the difference between the background color value and the document color value lies; The difference between the background color value and the document color value is adjusted to the first color range based on the first color range and the second color range to obtain the adjusted color value.

2. The method according to claim 1, characterized in that, The step of determining whether the printing paper and the printed document are both a single color based on the background color value and the document color value includes: Determine the first variance of the background color values ​​and the second variance of the document color values; If both the first variance and the second variance are less than the first threshold, then it is determined that both the printing paper and the printed document are a single color.

3. The method according to claim 1, characterized in that, The difference between the background color value and the document color value is adjusted to the first color range based on the first color range and the second color range to obtain the adjusted color value, including: According to the formula The adjusted color value is determined, where a is the color difference and b is the adjusted color value. This is the maximum value in the first color range. The minimum value in the first color range. This is the maximum value in the second color range. It is the minimum value of the second color range.

4. The method according to claim 1, characterized in that, The method further includes: If both the printing paper and the printed document are a single color, then determine the complementary color value that is complementary to the background color value; Replace the document color values ​​with the complementary color values ​​and perform the print operation.

5. The method according to claim 1, characterized in that, The method further includes: If both the printing paper and the printed document are a single color, then determine a number of contrasting color values ​​whose color contrast with the background color value is greater than a second threshold. Replace the document color value with any of the contrasting color values ​​and perform the print operation.

6. The method according to claim 1, characterized in that, Before obtaining the background color value of the printing paper and the document color value of the printed document, the method further includes: After detecting that the automatic color adjustment mode has been activated, the printing paper and the printed document are scanned to obtain the corresponding background color value and document color value. Store the background color value and the document color value.

7. The method according to claim 6, characterized in that, The method further includes: Set the startup option for the automatic color adjustment mode on the control panel. When the startup option is detected to be triggered, the automatic color adjustment mode is activated.

8. A document color adjustment device, characterized in that, The apparatus is deployed in an image forming device and includes: The acquisition module is used to acquire the background color value of the printing paper and the document color value of the printed document; The judgment module is used to determine whether the printing paper and the printed document are both a single color based on the background color value and the document color value; The determination module is used to determine the adjustment color value of the printed document based on the color difference between the background color value and the document color value if at least one of the printing paper and the printed document is not a single color. The processing module is used to replace the document color value with the adjusted color value and perform a printing operation; The determining module is specifically used to determine the first color range in which the document color value is located; Determine the second color interval in which the difference between the background color value and the document color value lies; The difference between the background color value and the document color value is adjusted to the first color range based on the first color range and the second color range to obtain the adjusted color value.

9. The apparatus according to claim 8, characterized in that, The step of determining whether the printing paper and the printed document are both a single color based on the background color value and the document color value includes: Determine the first variance of the background color values ​​and the second variance of the document color values; If both the first variance and the second variance are less than the first threshold, then it is determined that both the printing paper and the printed document are a single color.

10. The apparatus according to claim 8, characterized in that, Based on the first color range and the second color range, the difference between the background color value and the document color value is adjusted to the first color range to obtain the adjusted color value. Obtaining the adjusted color value includes: According to the formula The adjusted color value is determined, where a is the color difference and b is the adjusted color value. This is the maximum value in the first color range. The minimum value in the first color range. This is the maximum value in the second color range. It is the minimum value of the second color range.

11. The apparatus according to claim 8, characterized in that, The determining module is further configured to, if both the printing paper and the printed document are a single color, determine a complementary color value that is complementary to the background color value; replace the document color value with the complementary color value and perform the printing operation.

12. The apparatus according to claim 8, characterized in that, The determining module is further configured to, if both the printing paper and the printed document are a single color, determine a plurality of contrasting color values ​​whose color contrast with the background color value is greater than a second threshold; replace the document color value with any one of the contrasting color values ​​and perform a printing operation.

13. The apparatus according to claim 8, characterized in that, The device further includes: a scanning module; Before obtaining the background color value of the printing paper and the document color value of the printed document, The scanning module is also used to scan the printing paper and the printed document after detecting that the automatic color adjustment mode has been activated, to obtain the corresponding background color value and document color value; and to store the background color value and the document color value.

14. The apparatus according to claim 13, characterized in that, The device further includes: The startup module is used to set the startup option for the automatic color adjustment mode on the control panel. When the startup option is detected to be triggered, the automatic color adjustment mode is started.

15. An electronic device, characterized in that, include: At least one processor, and At least one memory communicatively connected to the processor, wherein: The processor, by running a program stored in the memory, is capable of performing the method according to any one of claims 1-7.

16. A computer-readable storage medium storing computer instructions thereon, characterized in that, When the computer instructions are executed, they implement the method described in any one of claims 1-7.