Scanning correction method and device, equipment and storage medium
By scanning the correction areas of different brightness and performing compensation correction processing, the problem of inconsistent image formation effects between different image forming devices is solved, and the scanning consistency and user experience between devices are improved.
Patent Information
- Application Number
- CN202411095977.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-03
AI Technical Summary
The photosensitive components of different image forming equipment have inconsistent image formation effects due to different production processes, resulting in poor consistency in the results of users scanning between multiple devices and unable to meet user needs.
By scanning correction areas with different brightnesses, image information is obtained, initial pixel value and preset standard pixel value are determined, scan compensation information is calculated based on this information, and the scanned image is subjected to compensation correction processing to make up for the difference in optical characteristics of the photosensitive member.
The consistency of scanning results between different image forming devices is improved, the user's experience of the image forming device is improved, and the difference between the image information after compensation is reduced.
Smart Images

Figure CN119071401A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image forming technology, and in particular to a scanning correction method, device, equipment and storage medium. Background Art
[0002] Image forming devices such as printers, copiers, scanners or multifunction machines that integrate printing, copying and scanning functions usually have a scanning function to convert scanned documents into images. When the user issues a scanning job instruction, the image forming device will scan the scanned document in the current scanning job through a photosensitive component (such as CCD—Charge Coup led Device, charge coupled device; or CIS—Contact Image Sensor, contact image sensor) according to the currently set scanning parameters to obtain a scanned image.
[0003] Due to the inconsistency of the photosensitive characteristics of different photosensitive components caused by the production process, the image forming effects of different image forming devices vary greatly. When users use multiple image forming devices to scan images, there is a problem of poor consistency in the scanning results, which cannot meet the needs of users. Summary of the invention
[0004] In view of this, the present application provides a scanning correction method, device, equipment and storage medium to help solve the problem of poor scanning consistency of different image forming devices in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a scanning correction method, including: scanning a first correction area of different brightness to obtain first image information of the first correction area of different brightness; determining an initial pixel value corresponding to the first correction area of different brightness based on the first image information; determining scanning compensation information based on a preset standard pixel value and the initial pixel value; and performing compensation correction processing on the second image information obtained by scanning based on the scanning compensation information.
[0006] In a possible implementation manner of the first aspect, scanning the first correction area with different brightness to obtain the first image information with different brightness includes:
[0007] The first calibration area is scanned under different preset light intensity parameters to obtain first image information of the first calibration area with different brightness.
[0008] In a possible implementation manner of the first aspect, the light intensity parameter includes an exposure factor of the light source.
[0009] In a possible implementation manner of the first aspect, the first correction area includes a plurality of grayscale sub-areas, and different grayscale sub-areas have different grayscales;
[0010] Scanning the first correction area with different brightness to obtain the first image information of the first correction area with different brightness includes:
[0011] Scan multiple grayscale sub-regions of the first correction region to obtain first image information of the first correction region with different brightness.
[0012] In a possible implementation manner of the first aspect, determining the scanning compensation information based on the preset standard pixel value and the initial pixel value includes:
[0013] Based on a preset standard pixel value and the initial pixel value, determining a scanning compensation value corresponding to the initial pixel value;
[0014] Based on the initial pixel value and the corresponding scanning compensation value, obtaining scanning compensation function information;
[0015] The performing compensation correction processing on the scanned second image information based on the scanning compensation information comprises:
[0016] Determine a compensation value for each pixel in the scanned second image information based on the scan compensation function information;
[0017] Based on the compensation value of each pixel in the second image information, compensation correction is performed on the pixel value of each pixel in the second image information.
[0018] In a possible implementation manner of the first aspect, determining the scanning compensation information based on the preset standard pixel value and the initial pixel value includes:
[0019] Based on a preset standard pixel value and the initial pixel value, determining a scanning compensation value corresponding to the initial pixel value;
[0020] Based on the scanning compensation value corresponding to the initial pixel value, a preset interpolation algorithm is used to determine scanning compensation values of other pixel values; wherein the other pixel values are other pixel values within a preset pixel range except the initial pixel value;
[0021] The performing compensation correction processing on the scanned second image information based on the scanning compensation information comprises:
[0022] Determining a compensation value for each pixel in the scanned second image information based on the scanning compensation value corresponding to the initial pixel value and the scanning compensation values of other pixel values;
[0023] Based on the compensation value of each pixel in the second image information, compensation correction is performed on the pixel value of each pixel in the second image information.
[0024] In a possible implementation manner of the first aspect, the minimum pixel value in the preset pixel range is 0, and the maximum pixel value is 255.
[0025] In a possible implementation manner of the first aspect, determining the initial pixel values corresponding to the first correction areas with different brightness based on the first image information includes:
[0026] Based on the first image information, calculating a pixel mean of at least two reference pixels in the first image information;
[0027] The pixel average of the at least two reference pixels is used as the initial pixel value corresponding to the first correction area with different brightness.
[0028] In a possible implementation manner of the first aspect, before scanning the first correction areas with different brightness to obtain first image information of the first correction areas with different brightness, the method further includes:
[0029] Scanning the second correction area to obtain third image information of the second correction area;
[0030] An initial scan correction process is performed based on the third image information.
[0031] In a possible implementation manner of the first aspect, the initial scanning correction process includes: at least one of: lighting correction processing, AFE correction processing, shading correction processing, and tone correction processing.
[0032] In a possible implementation manner of the first aspect, the first aspect further includes:
[0033] Performing color correction and / or first image enhancement processing on the second image information after the compensation correction to obtain fourth image information;
[0034] The fourth image information is output.
[0035] In a possible implementation manner of the first aspect, the first aspect further includes:
[0036] Performing color correction and / or first image enhancement processing on the second image information after the compensation correction to obtain fourth image information;
[0037] Performing target processing on the fourth image information to obtain fifth image information; wherein the target processing includes: at least one of color conversion processing, second image enhancement processing, and Halftone correction processing;
[0038] The fifth image information is subjected to image forming processing.
[0039] In a second aspect, an embodiment of the present application provides an image forming device, including:
[0040] A scanning module, used for scanning first correction areas of different brightness to obtain first image information of the first correction areas of different brightness;
[0041] A processing module, configured to determine initial pixel values corresponding to first correction areas of different brightness based on the first image information;
[0042] The processing module is further used to determine scanning compensation information based on a preset standard pixel value and the initial pixel value;
[0043] The correction module is used to perform compensation correction processing on the second image information obtained by scanning based on the scanning compensation information.
[0044] In a third aspect, an embodiment of the present application provides an image forming device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the image forming device is triggered to execute any one of the methods described in the first aspect.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any method described in the first aspect.
[0046] By adopting the scheme provided by the embodiment of the present application, the first correction area of different brightness is scanned to obtain the first image information of the first correction area of different brightness; the initial pixel value corresponding to the first correction area of different brightness is determined based on the first image information; the preset standard pixel value corresponding to the first correction area of different brightness is obtained, and the scanning compensation information is determined based on the preset standard pixel value and the initial pixel value; the second image information obtained by scanning is compensated and corrected based on the scanning compensation information. In this way, by obtaining the initial pixel value and the preset standard pixel value corresponding to the first correction area of different brightness, the scanning compensation information can be determined; the second image information obtained by scanning is compensated and corrected by the scanning compensation information to reduce the difference between the data in the second image information and the preset standard pixel value, so that the second image information after compensation and correction can make up for the difference in the optical characteristics of the photosensitive component. In other words, different image forming devices can compensate and correct the second image information after scanning through the above method, so that the difference in the optical characteristics of the photosensitive component can be compensated, the difference between the second image information after compensation and correction is reduced, and the consistency between the second image information after compensation and correction is improved, that is, the consistency of the second image information scanned between different image forming devices can be improved, and the user experience of the image forming device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0048] Figure 1 A schematic diagram of an application scenario of a scanning correction method provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of a flow chart of a scanning correction method provided in an embodiment of the present application;
[0050] Figure 3 An exemplary schematic diagram of a scanning correction method provided in an embodiment of the present application;
[0051] Figure 4a An exemplary schematic diagram of another scanning correction method provided in an embodiment of the present application;
[0052] Figure 4b An exemplary schematic diagram of another scanning correction method provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of a flow chart of another scanning correction method provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of a flow chart of another scanning correction method provided in an embodiment of the present application;
[0055] Figure 7 A schematic diagram of a flow chart of another scanning correction method provided in an embodiment of the present application;
[0056] Figure 8 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application;
[0057] Fig. 9 A schematic diagram of the structure of another image forming device provided in an embodiment of the present application;
[0058] Fig.10 A schematic diagram of the structure of another image forming device provided in an embodiment of the present application;
[0059] Fig.11 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0061] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0062] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0063] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0064] See also Figure 1 , is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 An image forming device 100 is shown in FIG. 1 , and the scanning correction method provided in the embodiment of the present application can be applied to the image forming device 100. It can be understood that Figure 1 The above is only an exemplary description, and the embodiment of the present application does not limit the specific form of the image forming device 100. For example, the image forming device 100 includes but is not limited to a printer, a copier, a fax machine, a scanner, and a multifunctional peripheral that performs the above functions in a single device. The image forming device 100 includes a light source, a photosensitive component, etc., so that when the image forming device 100 is scanning, the light source irradiates light onto the target to be scanned, and the target to be scanned generates reflected light. The photosensitive component in the image forming device 100 collects the emitted light and generates electrical signals of different sizes according to the intensity of the emitted light, and converts the electrical signal into a digital signal, thereby generating image information.
[0065] In actual use, there are differences in optical properties between the photosensitive components in different image forming devices, resulting in large differences in the image forming effects of different image forming devices. Usually, the image forming device needs to perform scanning correction before image formation. At present, some technologies use the scanning correction method of the image forming device to scan a pure white correction image to obtain correction data, and correct the image scanned by the image forming device based on the correction data. However, the correction data obtained by the above method is relatively simple, and the image formation effects after correction of different image forming devices vary greatly. When the user uses multiple image forming devices to scan images, there is still a problem of poor consistency in the scanning results, which cannot meet the needs of users.
[0066] In view of the above problems, the embodiment of the present application provides a scanning correction method, device and storage medium, the method specifically comprises: scanning a first correction area of different brightness to obtain first image information of the first correction area of different brightness; determining the initial pixel value corresponding to the first correction area of different brightness based on the first image information; obtaining the preset standard pixel value corresponding to the first correction area of different brightness, and determining the scanning compensation information based on the preset standard pixel value and the initial pixel value; performing compensation correction processing on the scanned second image information based on the scanning compensation information. In this way, by obtaining the initial pixel value and the preset standard pixel value corresponding to the first correction area of different brightness, the scanning compensation information can be determined; the second image information obtained by scanning is compensated and corrected by the scanning compensation information to reduce the difference between the data in the second image information and the preset standard pixel value, so that the compensated and corrected second image information can make up for the difference in the optical characteristics of the photosensitive component. In other words, different image forming devices can perform compensation correction on the scanned second image information through the above method, so that the difference in the optical characteristics of the photosensitive component can be made up, the difference between the compensated and corrected second image information can be reduced, and the consistency between the compensated and corrected second image information can be improved, that is, the consistency of the second image information scanned between different image forming devices can be improved, and the user experience of the image forming device can be improved. The details are described below.
[0067] See also Figure 2 , is a flow chart of a scanning correction method provided in an embodiment of the present application. Figure 2 As shown, the method includes:
[0068] Step S201 : Scan first correction areas of different brightness to obtain first image information of the first correction areas of different brightness.
[0069] In an embodiment of the present application, in order to compensate for the difference in optical properties of the photosensitive components, it is necessary to compensate the scanned image to improve the consistency of the compensated image information. Before compensating the image information, the image forming device needs to first obtain the scanning compensation information. In order to obtain the scanning compensation information, the image forming device can scan the first correction area of different brightness to obtain the first image information of the first correction area of different brightness. That is, the image forming device can convert the different brightness information of the first correction area into the first image information. The first correction areas of different brightness have different degrees of absorption of light, so the intensity of the reflected emitted light is also different. The image forming device can generate different first image information based on the reflected light reflected by the first correction areas of different brightness collected. In this way, the image forming device can obtain the scanning compensation information based on the first image information of the first correction areas of different brightness obtained.
[0070] In some embodiments, the first calibration area itself has only one brightness. In order to scan the first calibration area with different brightness, the light intensity parameter of the light source irradiating the first calibration area can be adjusted to change the brightness of the first calibration area. That is, scanning the first calibration area with different brightness to obtain the first image information with different brightness includes:
[0071] The first calibration area is scanned under different preset light intensity parameters to obtain first image information of the first calibration area with different brightness.
[0072] Among them, the light intensity parameter is a parameter related to light intensity.
[0073] That is to say, when scanning the first correction area, the light source is required to irradiate the light on the first correction area. Therefore, the intensity of the light irradiated to the first correction area can be adjusted by adjusting the light intensity parameters of the light source, so that the brightness of the first correction area can be adjusted. In this way, when scanning the first correction area, the brightness of the reflected light scanned and received by the image forming device is different under different light intensity parameters, and the first image information of the first correction area with different brightness can be obtained. In an embodiment of the present application, different light intensity parameters can be set in advance. By adjusting the light intensity parameters to different pre-set values, the brightness of the light source irradiating the first correction area is different. In this way, the light reflected by the first correction area is different, that is, first correction areas with different brightness are obtained. By scanning first correction areas with different brightness, first image information of the first correction areas with different brightness is obtained.
[0074] In some embodiments, the light intensity parameter includes an exposure coefficient of the light source. That is, by adjusting the exposure coefficient of the light source, the light intensity of the light source can be adjusted. When a light source with different light intensities is irradiated on the first calibration area, a first calibration area with different brightness can be obtained. By scanning the first calibration area with different brightness, the first image information of the first calibration area with different brightness can be obtained. For example, the exposure coefficient of the light source can be pre-set to 100%, 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10% and 0%, respectively. In this way, the exposure coefficient of the light source can be adjusted to 100%, so that the first calibration area of the first brightness can be obtained. By scanning the first calibration area when the exposure coefficient is adjusted to 100%, the first image information of the first calibration area under the first brightness can be obtained. Similarly, the exposure coefficient of the light source can be adjusted to 90%, so that the first calibration area of the second brightness can be obtained. By scanning the first calibration area when the exposure coefficient is adjusted to 90%, the first image information of the first calibration area under the second brightness can be obtained. Similarly, the exposure factor of the light source can be adjusted to 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10% and 0%. In this way, the first correction area of other brightness can be obtained, and the first image information of the first correction area under other brightness can be obtained by scanning the first correction area when the exposure factor is adjusted to 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10% and 0%.
[0075] In some embodiments, the exposure coefficient of the light source includes at least one of the exposure time of the light source and the exposure quantity of the light source. That is, the light intensity of the light source can be adjusted by changing the exposure time of the light source and the exposure quantity of the light source, thereby adjusting the brightness of the first calibration area. Of course, the exposure coefficient of the light source can also be other parameters, which are not limited in this application.
[0076] It should be noted that the above-mentioned light intensity parameter may also be other parameters, such as a luminous flux parameter or a brightness parameter of a light source, etc., and this application does not impose any limitation on this.
[0077] In other embodiments, the first calibration area includes a plurality of sub-areas of different brightness, so that different sub-areas of the first calibration area can be scanned under the light intensity parameters of the same light source, and first image information of the first calibration area of different brightness can be obtained. That is, the first calibration area includes a plurality of grayscale sub-areas, and the grayscales of different grayscale sub-areas are different. The above-mentioned scanning of the first calibration area of different brightness to obtain the first image information of the first calibration area of different brightness includes: scanning the plurality of grayscale sub-areas of the first calibration area to obtain the first image information of the first calibration area of different brightness.
[0078] In an embodiment of the present application, the first correction area includes a plurality of grayscale sub-areas, and the grayscales of different grayscale sub-areas are different. In this way, different grayscale sub-areas have different abilities to absorb light, and the light intensities reflected by different grayscale sub-areas are different. In this way, different grayscale sub-areas in the first correction area can be scanned, and different grayscale sub-areas reflect different light intensities during scanning, so that different image information can be obtained according to the received reflected light intensity. That is, the first image information of the first correction area with different brightness can be obtained. In some embodiments, different grayscale sub-areas of the first correction area can be scanned in a single scanning process, so that the first image information obtained contains image information corresponding to different grayscale sub-areas. In other embodiments, different grayscale sub-areas can also be scanned separately, that is, only one grayscale sub-area of the first correction area is scanned each time, and the scanning of multiple grayscale sub-areas of the first correction area is completed by multiple scanning. In this way, the first image information can be obtained for each grayscale sub-area.
[0079] For example, the first correction area includes eight grayscale sub-areas, namely, the first grayscale sub-area, the second grayscale sub-area, the third grayscale sub-area, the fourth grayscale sub-area, the fifth grayscale sub-area, the sixth grayscale sub-area, the seventh grayscale sub-area and the eighth grayscale sub-area. Among them, the grayscales of the first grayscale sub-area, the second grayscale sub-area, the third grayscale sub-area, the fourth grayscale sub-area, the fifth grayscale sub-area, the sixth grayscale sub-area, the seventh grayscale sub-area and the eighth grayscale sub-area decrease in sequence. By scanning the eight grayscale sub-areas in the first correction area respectively, the first image information corresponding to the eight grayscale sub-areas can be obtained, that is, eight first image information can be obtained.
[0080] Step S202: determining initial pixel values corresponding to first correction areas of different brightness based on the first image information.
[0081] In an embodiment of the present application, after obtaining the first image information of the first correction area of different brightness, the initial pixel value corresponding to the first correction area of different brightness can be calculated and output according to the first image information. In some embodiments, for the first image information of the first correction area of each brightness, the pixel value of the pixel at the preset target position in the first image information can be used as the initial pixel value corresponding to the first correction area of the brightness. For example, the pixel value of the pixel at the center position in the first image information can be used as the initial pixel value corresponding to the first correction area of the brightness. In this way, the initial pixel value corresponding to the first correction area of different brightness can be obtained.
[0082] In some other embodiments, in order to improve the accuracy of the initial pixel value, the initial pixel value is determined by the pixel values of multiple pixels in the first image information. The above-mentioned initial pixel values corresponding to the first correction areas of different brightness are determined based on the first image information, including:
[0083] Based on the first image information, a pixel average of at least two reference pixels in the first image information is calculated; and the pixel average of the at least two reference pixels is used as an initial pixel value corresponding to a first correction area of different brightness.
[0084] That is, in the first image information of the first correction area of different brightness, for the first image information of the first correction area of each brightness, in the first image information, at least two pixels at the preset target position in the first image information are used as reference pixels, the pixel average of at least two reference pixels in the first image information is calculated, and the pixel average of at least two reference pixels is used as the initial pixel value corresponding to the first correction area of the brightness. For example, according to the resolution, there are generally 10 rows to 50 rows of pixels in the first grayscale sub-area of the first correction area, and the preset target position is the middle 10 rows of pixels in the first image information. At this time, after obtaining the first image information, the middle 10 rows of pixels in the first image information can be used as reference pixels, the pixel average of the reference pixels is calculated, and the average is used as the initial pixel value corresponding to the first correction area of the brightness. In this way, the initial pixel values corresponding to the first correction area of different brightness can be obtained by the above method. Due to the optical differences of the photosensitive components between different image forming devices, the initial image pixel values obtained by different image forming devices under the same conditions may be different. For example, the initial values corresponding to the first correction areas of different brightness can be calculated for image forming device 1, image forming device 2 and image forming device 3. Refer to Table 1 and Figure 3 As shown, if the exposure coefficients of the light sources are preset to be 100%, 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10% and 0%, respectively, the first correction area can be scanned in the image forming device 1, the image forming device 2 and the image forming device 3 according to the preset exposure coefficients of the light sources, and the first image information corresponding to the first correction areas of different brightness of the image forming device 1, the image forming device 2 and the image forming device 3 can be obtained. For each first image information, the pixel mean of the reference pixel point at the preset target position can be calculated to obtain the initial pixel value. Refer to Table 1 and Figure 3 , the initial pixel values corresponding to the exposure coefficients of 100%, 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10% and 0% are obtained for image forming device 1, image forming device 2 and image forming device 3 respectively.
[0085] Table 1
[0086]
[0087]
[0088] Due to the optical differences in the photosensitive components of image forming device 1, image forming device 2 and image forming device 3, there is a situation where the initial pixel values of image forming device 1, image forming device 2 and image forming device 3 are different under the same exposure coefficient, resulting in large differences in the image forming effects of image forming device 1, image forming device 2 and image forming device 3 and poor consistency.
[0089] Alternatively, if the first correction area is divided into 8 grayscale sub-areas, namely the first grayscale sub-area, the second grayscale sub-area, the third grayscale sub-area, the fourth grayscale sub-area, the fifth grayscale sub-area, the sixth grayscale sub-area, the seventh grayscale sub-area and the eighth grayscale sub-area. Among them, one grayscale sub-area corresponds to one grayscale value, different grayscale sub-areas correspond to different grayscale values, and the grayscales between the first grayscale sub-area, the second grayscale sub-area, the third grayscale sub-area, the fourth grayscale sub-area, the fifth grayscale sub-area, the sixth grayscale sub-area, the seventh grayscale sub-area and the eighth grayscale sub-area decrease in sequence. In the image forming device 1, the image forming device 2 and the image forming device 3, the first correction area is scanned according to the exposure coefficient of the preset light source to obtain the first image information corresponding to the first correction area of different brightness of the image forming device 1, the image forming device 2 and the image forming device 3. For each first image information, the pixel mean of the reference pixel point at the preset target position can be calculated to obtain the initial pixel value. Refer to Table 2, Figure 4a and Figure 4b , initial pixel values corresponding to the first grayscale sub-region, the second grayscale sub-region, the third grayscale sub-region, the fourth grayscale sub-region, the fifth grayscale sub-region, the sixth grayscale sub-region, the seventh grayscale sub-region and the eighth grayscale sub-region are obtained for image forming device 1, image forming device 2 and image forming device 3 respectively.
[0090] Table 2
[0091]
[0092] Due to the optical differences in the photosensitive components of image forming device 1, image forming device 2 and image forming device 3, there are different initial pixel values corresponding to the same grayscale sub-areas of image forming device 1, image forming device 2 and image forming device 3, resulting in large differences in the image forming effects of image forming device 1, image forming device 2 and image forming device 3 and poor consistency.
[0093] Step S203: determining scanning compensation information based on the preset standard pixel value and the initial pixel value.
[0094] In an embodiment of the present application, in order to improve the consistency between different image forming devices, a standard pixel value can be pre-set, and different image forming devices all determine the scanning compensation information based on the standard pixel value. Usually, the preset standard pixel value is determined based on the scanning image standard tested multiple times during the research and development stage of the image forming device manufacturer. When pre-setting the standard pixel value, the standard pixel value can be pre-set for the first correction areas of different brightnesses, so that the standard pixel value can be obtained for the first correction area of each brightness. After calculating the initial pixel value corresponding to the first correction area of different brightness, for each first correction area of each brightness, the compensation value corresponding to the first correction area of the brightness is determined according to the initial value corresponding to the first correction area of the brightness and the pre-standard pixel value, and then the compensation value corresponding to the first correction area of different brightness can be obtained, and the scanning compensation information is calculated and determined based on the compensation value corresponding to the first correction area of different brightness.
[0095] In some embodiments, determining scanning compensation information based on a preset standard pixel value and an initial pixel value includes:
[0096] Based on the preset standard pixel value and the initial pixel value, a scanning compensation value corresponding to the initial pixel value is determined; based on the initial pixel value and the corresponding scanning compensation value, scanning compensation function information is obtained.
[0097] That is, after obtaining the initial pixel value and the preset standard pixel value corresponding to the first correction area of different brightness, the difference between the initial pixel value corresponding to the first correction area of each brightness and the corresponding preset standard pixel value can be calculated, and the scanning compensation value corresponding to the initial pixel value can be determined based on the difference. For example, the difference can be directly used as the scanning compensation value corresponding to the initial pixel value. After calculating the scanning compensation values corresponding to different initial pixel values, the scanning compensation function information can be determined based on the different initial pixel values and the corresponding scanning compensation values. For example, the scanning compensation function can be a LUT function. After determining the LUT coefficients in the LUT function based on the different initial pixel values and the corresponding scanning compensation values, the compensation information of other pixel values can be calculated based on the LUT function. In other words, the curve relationship between the pixel value and the corresponding scanning compensation value can be determined based on the different initial pixel values and the corresponding scanning compensation values, and then the scanning compensation values corresponding to other pixel values can be determined based on the curve relationship.
[0098] In order to reduce the complexity of subsequent image compensation, the compensation value corresponding to each pixel value within the preset pixel range may also be directly determined. That is, in other embodiments, determining the scanning compensation information based on the preset standard pixel value and the initial pixel value includes: determining the scanning compensation value corresponding to the initial pixel value based on the preset standard pixel value and the initial pixel value; and determining the scanning compensation values of other pixel values using a preset interpolation algorithm based on the scanning compensation value corresponding to the initial pixel value.
[0099] Among them, other pixel values are other pixel values within a preset pixel range except the initial pixel value.
[0100] In the embodiment of the present application, after obtaining the initial pixel values and preset standard pixel values corresponding to the first correction areas of different brightness, the difference between the initial pixel values corresponding to the first correction area of each brightness and the corresponding preset standard pixel value can be calculated, and the scanning compensation value corresponding to the initial pixel value can be determined according to the difference. After determining the scanning compensation values corresponding to different initial pixel values, the preset interpolation algorithm can be used to calculate the scanning compensation values corresponding to other pixel values within the preset pixel range.
[0101] The preset interpolation algorithm may be nearest neighbor interpolation, or may be bilinear interpolation, or may be bicubic interpolation, or other interpolation algorithms, and this application does not impose any limitation on this.
[0102] The preset pixel range may be pre-set, and the range of pixel values of the scanning compensation value corresponding to each pixel value within it needs to be determined. In some embodiments, in order to further reduce the complexity of subsequent image compensation, the minimum pixel value in the preset pixel range is 0 and the maximum pixel value is 255. That is, it is necessary to calculate the scanning compensation values corresponding to other pixel values in the pixel range of 0 to 255 except the initial pixel value using a preset interpolation algorithm based on the scanning compensation values corresponding to different initial pixel values. For example, the initial pixel values are 208, 180, 150, 130, 110, 58, 34, and 5, respectively. Based on the preset standard pixel values, the scanning compensation values corresponding to the initial pixel values 208, 180, 150, 130, 110, 58, 34, and 5 can be calculated respectively. In the pixel range of 0 to 255, the scanning compensation values corresponding to the other pixel values except 208, 180, 150, 130, 110, 58, 34, 5 in the pixel range of 0 to 255 can be calculated by using a preset interpolation algorithm according to the initial pixel values 208, 180, 150, 130, 110, 58, 34, 5 and the scanning compensation values corresponding to the initial pixel values. Each pixel value in the preset pixel range and its corresponding scanning compensation value are used as scanning compensation information.
[0103] Step S204: performing compensation correction processing on the scanned second image information based on the scanning compensation information.
[0104] In an embodiment of the present application, after the scanning compensation information is determined, when the second image information is obtained by scanning, the scanned second image can be an image captured during the formal scanning operation. In order to reduce the difference in the optical properties of the photosensitive component, the scanning compensation information can be used to compensate and correct the second image information so as to reduce the difference between the pixel value of the second image information after compensation and correction and the preset standard pixel value, thereby improving the color uniformity of the second image information and improving the image quality of the image formed.
[0105] Since the scanning compensation information can be either compensation function information or compensation value, the following compensation correction processing method for the second image information is different according to the form of the scanning compensation information. When the scanning compensation information is scanning compensation function information, the above compensation correction processing for the scanned second image information based on the scanning compensation information includes:
[0106] Based on the scanning compensation function information, a compensation value of each pixel point in the scanned second image information is determined; based on the compensation value of each pixel point in the second image information, a compensation correction is performed on the pixel value of each pixel point in the second image information.
[0107] That is, after obtaining the scanning compensation function information, if the second image information is scanned, the compensation value of each pixel in the second image information can be calculated according to the scanning compensation function information. After calculating the compensation value of each pixel, each pixel in the second image information can be compensated and corrected according to the corresponding compensation value.
[0108] When the scanning compensation information is a compensation value corresponding to each pixel value within a preset pixel range, the compensation correction processing of the scanned second image information based on the scanning compensation information includes:
[0109] Based on the scanning compensation value corresponding to the initial pixel value and the scanning compensation values of other pixel values, the compensation value of each pixel point in the scanned second image information is determined; based on the compensation value of each pixel point in the second image information, the pixel value of each pixel point in the second image information is compensated and corrected.
[0110] That is, after obtaining the scanning compensation value of each pixel value within the preset pixel range, if the second image information is scanned, the scanning compensation value of each pixel point in the second image information can be determined based on the scanning compensation value of each pixel value within the preset pixel range, that is, the scanning compensation value corresponding to the initial pixel value and the scanning compensation value of other pixel values. When the preset pixel range is 0 to 255, the input image data with the preset pixel range of 0 to 255 is 8 bits. Since the pixel value of each pixel in the image information is within the range of 0 to 255, the scanning compensation value of each pixel point in the second image information can be found in the scanning compensation value of each pixel value in the preset pixel range, and then the pixel value of each pixel point in the second image information can be compensated and corrected based on the compensation value of each pixel point in the second image information.
[0111] When the preset pixel range is not 0 to 255, the input image data whose preset pixel range is not 0 to 255 is data greater than 8 bits, such as 10 bits and 16 bits. For the first pixel whose pixel value is within the preset pixel range in the second image information, the scanning compensation value of the first pixel can be determined according to the scanning compensation value of each pixel value within the preset pixel range. For the second pixel whose pixel value is not within the preset pixel range in the second image information, scanning compensation may not be performed, and at this time, the scanning compensation value may be determined to be 0. Alternatively, since the difference in pixel values between adjacent pixels in the second image information is small, the scanning compensation value of the adjacent pixel of the second pixel may be determined as the scanning compensation value of the second pixel. When there are at least two adjacent pixel points at the second pixel point, and at least two adjacent pixel points have obtained scanning compensation values, the average of the scanning compensation values of at least two adjacent pixel points may be used as the scanning compensation value of the second pixel point. Of course, any one of the scanning compensation values of at least two adjacent pixel points may also be used as the scanning compensation value of the second pixel point. Alternatively, the scanning compensation value of the second pixel point is determined in other ways, and the present application does not limit this.
[0112] In this way, after determining the scanning compensation value of each pixel in the second image information, compensation correction can be performed on each pixel of the second image information according to the scanning compensation value of each pixel to improve the color uniformity of the second image information and improve the image quality of the image formed.
[0113] As a possible implementation, Figure 5 As shown, before the above step S201, the above method further includes:
[0114] Step S205: Scan the second correction area to obtain third image information of the second correction area.
[0115] Step S206: Perform initial scanning correction processing based on the third image information.
[0116] In the embodiment of the present application, in order to ensure that step S201 is executed when the image forming device is in a normal working state, an initial scanning correction process can be performed before executing step S201, so that the photosensitive components of the image forming device are in a normal working state, so as to improve the accuracy of obtaining the scanning compensation information. The image forming device can scan the second correction area to obtain the third image information of the second correction area. After obtaining the third image information, the scanning parameters of the image forming device can be subjected to an initial scanning correction process according to the third image information to ensure the accuracy of subsequent scanning of the image forming device.
[0117] In some embodiments, the initial scanning correction process includes at least one of: lighting correction process, AFE (Ana logFront-End, analog front end) correction process, shading correction process, and tone correction process. Among them, through the lighting correction process, the exposure time of the RGB three-color light source during scanning in the image forming device can be adjusted so that the color difference between the three RGB colors of the scanned image meets the preset conditions, so that the output image has no obvious color deviation. In the image forming device, the current of the RGB three-color light source in the photosensitive component is constant, so the light energy of the R / G / B three-color light output by the RGB three-color light source can be adjusted by adjusting the exposure time.
[0118] AFE correction processing includes offset correction and gain correction, which eliminates the influence of hardware dark current. Through AFE correction, the dark and bright levels of the image are separated, thereby expanding the gradation range of the image.
[0119] Shading correction processing can compensate for the differences between photosensitive components and make the output image meet the visual requirements of the human eye.
[0120] The tone correction process can correct the grayscale of the image information scanned by the image forming device to ensure the grayscale accuracy and quality of the scanned image.
[0121] In this way, after completing the initial scanning correction process, the image forming apparatus can use the parameters after the initial scanning correction to perform the above steps S201 to S204 to improve the accuracy of the scanning compensation information.
[0122] As a possible implementation, Figure 6 As shown, the above method also includes:
[0123] Step S207: Perform color correction and / or first image enhancement processing on the second image information after compensation correction to obtain fourth image information.
[0124] That is, when the image information needs to be initially scanned, it is necessary to first perform scanning compensation correction on the scanned second image information using the scanning compensation information. In order to further improve the image quality, before outputting the scanned image information, it is also necessary to perform color correction and / or first image enhancement processing on the compensated second image information. Due to the scanning conditions of the image forming device and other reasons, the scanned second image information may have color deviation. In order to improve the image formation quality, after performing scanning compensation correction on the second image information, color correction may be performed on the compensated second image information, for example, color balance adjustment and exposure parameter adjustment may be performed on the second image information. And / or the first image enhancement processing may be performed on the compensated second image information, for example, contrast adjustment and gray value adjustment may be performed on the second image information. The second image information after color correction and / or image enhancement processing is used as the fourth image information.
[0125] Step S208: output fourth image information.
[0126] That is, after the fourth image information is formed by scanning, the fourth image information can be output to the user as a scanning result.
[0127] As a possible implementation, Figure 7 As shown, the above method also includes:
[0128] Step S209: perform color correction and / or first image enhancement processing on the second image information after compensation correction to obtain fourth image information.
[0129] For details, please refer to step S207 and no further details will be given here.
[0130] Step S210: perform target processing on the fourth image information to obtain fifth image information.
[0131] The target processing includes at least one of: color conversion processing, second image enhancement processing, and Halftone correction processing.
[0132] In an embodiment of the present application, when it is necessary to perform image formation processing on the second image information, the image forming device performs scanning compensation correction and color correction and / or first image enhancement processing on the scanned second image information to obtain the fourth image information, and then performs image formation-related correction processing on the fourth image information, that is, target processing on the fourth image information to obtain the fifth image information. For example, the image forming device can perform color conversion processing on the fourth image information according to the color output form it supports, and convert the color information of the fourth image information into the color output form it supports. After performing the color conversion processing, the image forming device can also perform the second image enhancement processing on the fourth image information in order to improve the quality of image formation, and perform grayscale correction on the fourth image information through Halftone correction processing. The fourth image information after the target processing is used as the fifth image information.
[0133] Step S211, performing image forming processing on the fifth image information.
[0134] That is, after acquiring the fifth image information, the fifth image information can be subjected to image formation processing, for example, the fifth image information can be subjected to printing processing. Therefore, a scanning operation is first performed to obtain the fourth image information, and then the fourth image information is subjected to target processing to obtain the fifth image information, and then a printing operation is performed on the fifth image information, thereby forming a copy document after the above-mentioned correction and processing, and outputting it to the user.
[0135] See also Figure 8 , is a schematic diagram of the structure of an image forming device provided in an embodiment of the present application. Figure 8 As shown, the image forming device includes:
[0136] The scanning module 801 is used to scan the first correction area with different brightness to obtain the first image information of the first correction area with different brightness.
[0137] The processing module 802 is used to determine initial pixel values corresponding to first correction areas of different brightness based on the first image information.
[0138] The processing module 802 is further configured to determine scanning compensation information based on a preset standard pixel value and an initial pixel value.
[0139] The correction module 803 is used to perform compensation correction processing on the second image information obtained by scanning based on the scanning compensation information.
[0140] As a possible implementation manner, the scanning module 801 is specifically used to scan the first correction area under different preset light intensity parameters to obtain first image information of the first correction area with different brightness.
[0141] As a possible implementation manner, the light intensity parameter includes an exposure factor of the light source.
[0142] As a possible implementation, the first correction region includes multiple grayscale sub-regions, and different grayscale sub-regions have different grayscales. The scanning module 801 is specifically used to scan multiple grayscale sub-regions of the first correction region to obtain first image information of the first correction region with different brightness.
[0143] As a possible implementation, the processing module 802 is specifically used to determine the scanning compensation value corresponding to the initial pixel value based on the preset standard pixel value and the initial pixel value; and obtain the scanning compensation function information based on the initial pixel value and the corresponding scanning compensation value.
[0144] The correction module 803 is specifically used to determine the compensation value of each pixel point in the scanned second image information based on the scanning compensation function information; based on the compensation value of each pixel point in the second image information, perform compensation correction on the pixel value of each pixel point in the second image information.
[0145] Alternatively, as a possible implementation method, the processing module 802 is specifically used to determine the scanning compensation value corresponding to the initial pixel value based on the preset standard pixel value and the initial pixel value; based on the scanning compensation value corresponding to the initial pixel value, a preset interpolation algorithm is used to determine the scanning compensation values of other pixel values.
[0146] Among them, other pixel values are other pixel values within a preset pixel range except the initial pixel value.
[0147] Correction module 803 is specifically used to determine the compensation value of each pixel point in the scanned second image information based on the scanning compensation value corresponding to the initial pixel value and the scanning compensation values of other pixel values; based on the compensation value of each pixel point in the second image information, compensate and correct the pixel value of each pixel point in the second image information.
[0148] As a possible implementation manner, the smallest pixel value in the preset pixel range is 0, and the largest pixel value is 255.
[0149] As a possible implementation method, the processing module 802 is specifically used to calculate the pixel mean of at least two reference pixels in the first image information based on the first image information; and use the pixel mean of at least two reference pixels as the initial pixel value corresponding to the first correction area of different brightness.
[0150] As a possible implementation manner, the scanning module 801 is further configured to scan the second correction area to obtain third image information of the second correction area.
[0151] The processing module 802 is further used to perform initial scanning correction processing based on the third image information.
[0152] As a possible implementation manner, the initial scanning correction process includes at least one of: lighting correction process, AFE correction process, shading correction process, and tone correction process.
[0153] As a possible implementation, Fig. 9 As shown, the above-mentioned image forming apparatus further includes: an output module 804 .
[0154] The processing module 802 is further used to perform color correction and / or first image enhancement processing on the second image information after compensation correction to obtain fourth image information.
[0155] The output module 804 is used to output the fourth image information.
[0156] As a possible implementation, Fig.10 As shown, the above-mentioned image forming device also includes: an image forming module 805.
[0157] The processing module 802 is further used to perform target processing on the fourth image information to obtain fifth image information.
[0158] The target processing includes at least one of: color conversion processing, second image enhancement processing, and Halftone correction processing.
[0159] The image forming module 805 is used to perform image forming processing on the fifth image information.
[0160] Corresponding to the above-mentioned embodiment, the present application also provides an image forming device. Fig.11 The schematic diagram of the structure of an image forming device provided in an embodiment of the present invention is as follows. The image forming device 1100 may include: a processor 1101, a memory 1102, and a communication unit 1103. These components communicate via one or more buses. It can be understood by those skilled in the art that the structure of the image forming device shown in the figure does not constitute a limitation on the embodiment of the present invention. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0161] The communication unit 1103 is used to establish a communication channel so that the image forming device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0162] The processor 1101 is the control center of the image forming device. It uses various interfaces and lines to connect various parts of the entire image forming device. It runs or executes software programs, instructions, and / or modules stored in the memory 1102, and calls data stored in the memory to perform various functions of the image forming device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 1101 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0163] The memory 1102 is used to store the execution instructions of the processor 1101. The memory 1102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0164] When the execution instructions in the memory 1102 are executed by the processor 1101, the image forming apparatus 1100 can execute Figures 2 to 7 Some or all of the steps in the illustrated embodiments.
[0165] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the scanning correction method provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0166] In a specific implementation, the present invention further provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the simulation scene generation method provided by the present invention.
[0167] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.
[0168] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A scanning correction method, characterized in that: include: Scanning first correction areas of different brightness to obtain first image information of the first correction areas of different brightness; Determining initial pixel values corresponding to first correction areas of different brightness based on the first image information; Determining scanning compensation information based on a preset standard pixel value and the initial pixel value; The second image information obtained by scanning is compensated and corrected based on the scanning compensation information.
2. The method according to claim 1, characterized in that Scanning the first correction area with different brightness to obtain first image information with different brightness includes: The first calibration area is scanned under different preset light intensity parameters to obtain first image information of the first calibration area with different brightness.
3. The method according to claim 2, characterized in that The light intensity parameter includes an exposure factor of the light source.
4. The method according to claim 1, characterized in that: The first correction area includes a plurality of grayscale sub-areas, and the grayscales of different grayscale sub-areas are different; Scanning the first correction area with different brightness to obtain the first image information of the first correction area with different brightness includes: Scan multiple grayscale sub-regions of the first correction region to obtain first image information of the first correction region with different brightness.
5. The method according to claim 1, characterized in that The determining of scanning compensation information based on the preset standard pixel value and the initial pixel value comprises: Based on a preset standard pixel value and the initial pixel value, determining a scanning compensation value corresponding to the initial pixel value; Based on the initial pixel value and the corresponding scanning compensation value, obtaining scanning compensation function information; The performing compensation correction processing on the scanned second image information based on the scanning compensation information comprises: Determine a compensation value for each pixel in the scanned second image information based on the scan compensation function information; Based on the compensation value of each pixel in the second image information, compensation correction is performed on the pixel value of each pixel in the second image information.
6. The method according to claim 1, characterized in that The determining of scanning compensation information based on the preset standard pixel value and the initial pixel value comprises: Based on a preset standard pixel value and the initial pixel value, determining a scanning compensation value corresponding to the initial pixel value; Based on the scanning compensation value corresponding to the initial pixel value, a preset interpolation algorithm is used to determine scanning compensation values of other pixel values; wherein the other pixel values are other pixel values within a preset pixel range except the initial pixel value; The performing compensation correction processing on the scanned second image information based on the scanning compensation information comprises: Determining a compensation value for each pixel in the scanned second image information based on the scanning compensation value corresponding to the initial pixel value and the scanning compensation values of other pixel values; Based on the compensation value of each pixel in the second image information, compensation correction is performed on the pixel value of each pixel in the second image information.
7. The method according to claim 6, characterized in that The minimum pixel value in the preset pixel range is 0, and the maximum pixel value is 255.
8. The method according to claim 1, characterized in that: The determining, based on the first image information, the initial pixel values corresponding to the first correction areas with different brightnesses comprises: Based on the first image information, calculating a pixel mean of at least two reference pixels in the first image information; The pixel average of the at least two reference pixels is used as the initial pixel value corresponding to the first correction area with different brightness.
9. The method according to claim 1, characterized in that: Before scanning the first correction areas with different brightness to obtain the first image information of the first correction areas with different brightness, the method further includes: Scanning the second correction area to obtain third image information of the second correction area; An initial scan correction process is performed based on the third image information.
10. The method according to claim 9, characterized in that The initial scanning correction process includes at least one of a lighting correction process, an AFE correction process, a shading correction process, and a tone correction process.
11. The method according to claim 1, characterized in that: Also includes: Performing color correction and / or first image enhancement processing on the second image information after the compensation correction to obtain fourth image information; The fourth image information is output.
12. The method according to claim 1, characterized in that Also includes: Performing color correction and / or first image enhancement processing on the second image information after the compensation correction to obtain fourth image information; Performing target processing on the fourth image information to obtain fifth image information; wherein the target processing includes: at least one of color conversion processing, second image enhancement processing, and Halftone correction processing; The fifth image information is subjected to image forming processing.
13. An image forming device, characterized in that: include: A scanning module, used for scanning first correction areas of different brightness to obtain first image information of the first correction areas of different brightness; A processing module, configured to determine initial pixel values corresponding to first correction areas of different brightness based on the first image information; The processing module is further used to determine scanning compensation information based on a preset standard pixel value and the initial pixel value; The correction module is used to perform compensation correction processing on the second image information obtained by scanning based on the scanning compensation information.
14. An image forming device, characterized in that: The invention comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the image forming device is caused to execute the method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 12.
