Scanner adjustment method, device, processor and scanning system

By adjusting the projection current value of the scanner to achieve the target grayscale range, the problem of grayscale differences between different scanners is solved, the consistency and color accuracy of the scanning results are ensured, and the problem of inconsistent scanning results in the existing technology is solved. .

CN113938568BActive Publication Date: 2024-09-03SHINING 3D TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010605292.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-09-03
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

When different scanners scan the same object, the data inconsistency problem caused by the difference in grayscale of the image, especially the problem of partial missing model data, unrealistic colors and inconsistent projection light intensity, is difficult to effectively solve with existing technology.

Method used

By controlling the scanner's projection current value, adjust it within the current value adjustment range until the grayscale value of the target image is within the target range to ensure the consistency of the projection light intensity, and adjust the projection of multiple color channels simultaneously when necessary. current value to achieve the target gray value.

Benefits of technology

It achieves the consistency of scanning results from different scanners, avoids color cast caused by differences in image grayscale, and improves the reliability and consistency of scanning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113938568B
    Figure CN113938568B
Patent Text Reader

Abstract

The present application provides a scanner adjustment method, device, processor and scanning system, the adjustment method comprising: controlling the scanner to scan a target image and calculating a first grayscale value of the target image, wherein the target image is a color card or color plate with standard colors; if the first grayscale value of the target image is not within a target range, adjusting the first projection current value of the scanner within a current value adjustment range at least once until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner, so that the first grayscale value of the target image scanned by any scanner can be within the target range, thereby ensuring the consistency of scanning results of different scanners, i.e., the target image does not have a color cast phenomenon, solving the problem of poor consistency of scanning results of different scanners in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of scanners, and in particular to a scanner adjustment method, device, computer-readable storage medium, processor, and scanning system. Background Art

[0002] When using intraoral scanners from different batches to scan the same model under the same version of software, it was found that there were differences in the scanning results and the data could not be used. After statistics, the problems can be divided into three categories: problem 1 is partial missing of model data, problem 2 is unrealistic color of the model and overall color cast, and problem 3 is inconsistent intensity of model projection light.

[0003] A simple analysis of these problems revealed that the cause was the difference in the grayscale of the image to varying degrees, which was confirmed by testing a gray-white color card under the same current parameters, camera parameters, and acquisition distance. After calculating the grayscale analysis, it was found that these problems were caused by the assembly angle error during the production of the intraoral scanner and the difference in the individual light intensity of the projector. However, these problems are difficult to control during the production process. Therefore, the image projection light intensity is adjusted during the production process to solve the problem so that the above problems will not occur after leaving the factory.

[0004] There are two solutions to adjust the image projection light intensity. One is to modify the projection current value and change the projection light intensity to achieve the purpose of changing the image projection light intensity; the other is to modify the camera parameters to achieve the purpose of modifying the image grayscale. However, this method of modifying the camera parameters during the production process has two fatal defects on the current intraoral scanner. Defect 1 is that the camera parameters are fixed after leaving the factory and cannot be modified. When scanning, the image projection light intensity can only be adjusted by modifying the projection current value, and it takes a long time (about 3s) to modify the projection current value once. Defect 2 is that it is impossible to distinguish the image projection light intensity of different channels. In principle, it is unreasonable for the scanning software to frequently modify the projection current value after the camera parameters are fixed during the production process. Therefore, the projection current value is modified during the production process to adjust the image projection light intensity. This method can fix the projection current value after leaving the factory during the production process. According to the situation that the scanning software is too dark or too bright when scanning the object due to environmental factors, the camera parameters can be adjusted at any time during the scanning process to achieve a better scanning effect. The adjustment time is also more efficient than modifying the camera parameters.

[0005] At present, the existing method of adjusting the projection current is mainly manual adjustment during production. The specific adjustment steps are as follows:

[0006] Step 1, align the intraoral scanner with the scanning head with the color plate and fix it;

[0007] Step 2, open the scanning software, select the option to save the image, and set the gain parameter to 0, that is, do not adjust the projection current;

[0008] Step 3: After scanning and acquiring the image, close the scanning software;

[0009] Step 4, comparing the projection light intensity with the blue channel image collected by the standard intraoral scanner by human eye observation to see if they are consistent. If not, proceed to step 5, otherwise proceed to step 7;

[0010] Step 5: According to whether the projection light intensity of the current blue channel image is brighter or darker than the projection light intensity of the target image, the projection current value of a certain blue channel is increased or decreased through the tool;

[0011] Step 6, repeat steps 2-5 until the projection light intensity is consistent;

[0012] Step 7, open the scanning software and check the camera preview window in the upper right corner;

[0013] Step 8: Analyze the overall color of the image to see if there is any color cast, such as reddish or yellowish. If yes, proceed to the next step; otherwise, end the adjustment.

[0014] Step 9: Determine whether the projection current values ​​of the green channel and the red channel need to be increased or decreased based on the knowledge of optical color mixing;

[0015] Step 10, close the scanning software, and use the tool to adjust the projection current values ​​of the green channel and the red channel;

[0016] Step 11. Repeat steps 7-10 until the overall image has no color cast.

[0017] In summary, in the prior art, when different scanners scan the same object to be measured, in order to avoid the difference in grayscale of the scanned image, the image projection light intensity can be adjusted by modifying the projection current value. However, since the adjustment result is determined by whether the human eye observes whether it is adjusted to a compliance range, this leads to a technical problem of poor consistency in scanning results from different scanners.

[0018] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention

[0019] The main purpose of the present application is to provide a scanner adjustment method, device, computer-readable storage medium, processor and scanning system to solve the problem of poor consistency of scanning results of different scanners in the prior art.

[0020] According to one aspect of an embodiment of the present invention, a method for adjusting a scanner is provided, comprising: controlling a scanner to scan a target image, and calculating a first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors; if the first grayscale value of the target image is not within a target range, adjusting a first projection current value of the scanner within a current value adjustment range at least once until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner.

[0021] Optionally, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, including: increasing or decreasing the first projection current value based on the middle value of the current value adjustment range.

[0022] Optionally, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, including: increasing or decreasing the first projection current value of the scanner by a predetermined value to obtain a second projection current value; scanning the target image again to calculate the second grayscale value of the target image; if the second grayscale value of the target image is within the target range, ending the process of adjusting the projection current value of the scanner; if the second grayscale value of the target image is not within the target range, continuing the process of adjusting the projection current value of the scanner until the grayscale value of the target image is within the target range.

[0023] Optionally, continuing to execute the process of adjusting the projection current value of the scanner includes: obtaining a grayscale difference between the second grayscale value and a target grayscale value, wherein the target grayscale value is a value within the target range; determining a current difference based on the grayscale difference; determining a target current value based on the current difference, and comparing the target current value with the second projection current value; and determining whether to continue adjusting the projection current value based on the comparison result.

[0024] Optionally, based on the comparison result, determining whether to continue adjusting the projection current value includes: when the target current value is the same as the second projection current value, stopping adjusting the projection current value of the scanner; when the target current value is different from the second projection current value, determining to continue adjusting the projection current value.

[0025] Optionally, after determining to continue adjusting the projection current value, the method further includes: determining whether the target current value is within the current value adjustment range; if the target current value is within the current value adjustment range, adjusting the second projection current to the target current value, and scanning the target image again based on the target current value, and calculating a third grayscale value of the target image; if the third grayscale value is within the target range, ending the adjustment of the projection current value of the scanner, otherwise, continuing to adjust the projection current value of the scanner.

[0026] Optionally, the method also includes: if the target current value exceeds the current value adjustment range, counting the number of projection current values ​​that exceed the current value adjustment range, that is, counting the number of times the projection current value exceeds the current value adjustment range, and when the number exceeds a predetermined number, ending the adjustment of the projection current value of the scanner; when the number does not exceed the predetermined number, judging whether the target current value is less than the minimum current value in the current value adjustment range; if the target current value is less than or equal to the minimum current value, using the minimum current value to scan the target image again, and determining whether the scanned grayscale value is within the target range; if the target current value is greater than the minimum current value, using the maximum current value in the current value adjustment range to scan the target image again, and determining whether the scanned grayscale value is within the target range.

[0027] According to another aspect of an embodiment of the present invention, a method for adjusting a scanner is also provided, comprising: sequentially projecting at least two color lights onto a target image, synchronously capturing the target image projected by the at least two color lights using any one of the methods described, and performing adjustments simultaneously based on the captured results until the adjustment of all channels of the target image is completed and is within the target range, wherein the target range of each color channel is associated.

[0028] According to another aspect of an embodiment of the present invention, a scanner adjustment device is also provided, including: an acquisition unit, used to control the scanner to scan a target image and calculate a first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors; a first adjustment unit, used to adjust the first projection current value of the scanner within the current value adjustment range at least once if the first grayscale value of the target image is not within the target range, until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner.

[0029] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the adjustment methods.

[0030] According to another aspect of the embodiments of the present invention, a processor is provided, and the processor is used to run a program, wherein the program executes any one of the adjustment methods when running.

[0031] According to another aspect of the embodiments of the present invention, there is further provided a scanning system, including a scanner and an adjustment device, wherein the adjustment device is used to execute any one of the adjustment methods described above.

[0032] In the above adjustment method, first, the scanner is controlled to scan the target image and calculate the first grayscale value of the target image, that is, the scanner is used to scan a color card or color plate with standard colors, and the grayscale value of the color card or color plate with standard colors is calculated. Then, if the first grayscale value of the target image is not within the target range, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, so that the first grayscale value of the target image scanned by any scanner can be within the target range, thereby ensuring the consistency of scanning results of different scanners, that is, there is no color cast in the target image, which solves the problem of poor consistency of scanning results of different scanners in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0034] Figure 1 A flowchart of a method for adjusting a scanner according to an embodiment of the present application is shown;

[0035] Figure 2 A schematic diagram showing an adjustment device of a scanner according to an embodiment of the present application; and

[0036] Figure 3 A flowchart of a method for adjusting a scanner according to another embodiment of the present application is shown. DETAILED DESCRIPTION

[0037] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0038] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0040] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be intermediate elements. Moreover, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element through a third element.

[0041] As mentioned in the background technology, the scanning results of different scanners in the prior art have poor consistency. In order to solve the above problem, in a typical embodiment of the present application, a scanner adjustment method, device, computer-readable storage medium, processor and scanning system are provided.

[0042] According to an embodiment of the present application, a method for adjusting a scanner is provided, wherein the scanner includes a projector and a camera, wherein the projector has a blue channel, a red channel, and a green channel, wherein the projector is used to project light of different channels onto a color card or a color plate, and wherein the camera is used to synchronously capture images of the color card or the color plate.

[0043] Figure 1 FIG. 1 is a flow chart of a method for adjusting a scanner according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0044] Step S101, controlling a scanner to scan a target image and calculating a first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors;

[0045] Step S102, if the first grayscale value of the target image is not within the target range, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner.

[0046] In the above adjustment method, first, the scanner is controlled to scan the target image and calculate the first grayscale value of the target image, that is, the scanner is used to scan a color card or color plate with standard colors, and the grayscale value of the color card or color plate with standard colors is calculated. Then, if the first grayscale value of the target image is not within the target range, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, so that the first grayscale value of the target image scanned by any scanner can be within the target range, thereby ensuring the consistency of scanning results of different scanners, that is, there is no color cast in the target image, which solves the problem of poor consistency of scanning results of different scanners in the prior art.

[0047] It should be noted that the above target range is determined based on the standard value and the error range, wherein the standard value is the grayscale value obtained by scanning the standard color card after manual adjustment, and manual adjustment is research and development debugging to adjust to a suitable scanning range. This suitable range is based on experimental results. Technical personnel in this field can set a suitable error range according to the specific situation to obtain the target range.

[0048] It should also be noted that the color card or color plate can be a gray color card, and the above-mentioned target image can be a color card or color plate with blue color, which is obtained by the projector projecting blue channel light to the color card or color plate and the camera capturing the image of the color card or color plate. The above-mentioned target image can also be a color card or color plate with red color, which is obtained by the projector projecting red channel light to the color card or color plate and the camera capturing the image of the color card or color plate. The above-mentioned target image can also be a color card or color plate with green color, which is obtained by the projector projecting green channel light to the color card or color plate and the camera capturing the image of the color card or color plate.

[0049] It should also be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0050] In one embodiment of the present application, the first projection current value of the above-mentioned scanner is adjusted at least once within the current value adjustment range until the grayscale value of the above-mentioned target image is within the above-mentioned target range, including: increasing or decreasing the above-mentioned first projection current value based on the middle value of the above-mentioned current value adjustment range. Specifically, the target image scanned by the above-mentioned scanner can also be a target image of a red channel or a target image of a green channel. When the first projection current value is greater than the minimum value of the current value adjustment range and less than the middle value of the current value adjustment range, the first projection current value is increased when the first projection current value is adjusted within the current value adjustment range. When the first projection current value is less than the maximum value of the current value adjustment range and greater than the middle value of the current value adjustment range, the first projection current value is reduced when the first projection current value is adjusted within the current value adjustment range. The above-mentioned increased current value or reduced current value is greater than one quarter of the current value adjustment range and less than one half of the current value adjustment range. For example, the current value adjustment range is 0 to 10A, the first projection current value is in the range of 0 to 5A, the first projection current value is increased, and the increased projection current value is in the range of 2.5A to 10A, and the first projection current value is in the range of 5A to 10A. The first projection current value is reduced, and the reduced projection current value is in the range of 0 to 7.5A.

[0051] It should be noted that the above-mentioned middle value is a value within the current value adjustment range, and the above-mentioned middle value is the arithmetic mean of the two boundary values ​​of the current value adjustment range. Preferably, when the median value of the current value adjustment range is an integer, the middle value is the median value of the current value adjustment range; when the median value of the current value adjustment range is a non-integer, the middle value is an integer close to the median value; for example, if the current value adjustment range is 0-10 and the median value is 5, then the middle value is 5; if the current value adjustment range is 1-10 and the median value is 5.5, then the middle value is 5 or 6.

[0052] In one embodiment of the present application, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, including: increasing the first projection current value of the scanner by a predetermined value or decreasing the predetermined value to obtain a second projection current value; scanning the target image again to calculate the second grayscale value of the target image; if the second grayscale value of the target image is within the target range, then the adjustment of the projection current value of the scanner is terminated; if the second grayscale value of the target image is not within the target range, the process of adjusting the projection current value of the scanner is continued until the grayscale value of the target image is within the target range. The above method directly adjusts the first projection current value to obtain the second projection current value, and then calculates the second grayscale value of the target image under the second projection current value. If the second grayscale value is within the target range, the adjustment is terminated. If the second grayscale value is not within the target range, the adjustment needs to be continued.

[0053] It should be noted that adjusting the first projection current value of the above-mentioned scanner at least once within the current value adjustment range means that the projection current value of the scanner is adjusted once or multiple times within the current value adjustment range, and each adjustment is an adjustment to the current projection current value, that is, the first projection current value is adjusted to obtain the second projection current value, and the next adjustment is to adjust the second projection current value, rather than adjusting the first projection current value twice, and the subsequent adjustments are analogous. It can be understood that the first projection current value is the previous projection current value of the scanner, and the second projection current value is the next projection current value of the scanner.

[0054] It should also be noted that those skilled in the art can set a suitable predetermined value according to actual conditions so that the second projection current value is within the current value adjustment range.

[0055] In one embodiment of the present application, the process of continuing to execute the above-mentioned scanner to adjust the projection current value includes: obtaining the grayscale difference between the above-mentioned second grayscale value and the target grayscale value, wherein the above-mentioned target grayscale value is a value within the above-mentioned target range; determining the current difference based on the above-mentioned grayscale difference; determining the target current value based on the above-mentioned current difference, and comparing the above-mentioned target current value with the above-mentioned second projection current value; and determining whether to continue to adjust the above-mentioned projection current value based on the comparison result. Specifically, by taking a grayscale value as the target grayscale value within the target range, the grayscale difference between the second grayscale value and the target grayscale value can be obtained, and the grayscale difference is substituted into the slope formula to calculate the current difference, thereby obtaining the target current value, and comparing the second projection current and the target current value to determine whether to continue to adjust the projection current value. The above-mentioned method performs secondary verification through comparison to avoid misadjustment.

[0056] It should be noted that, according to the first projection current value, the second projection current value, the first gray value and the second gray value, the inverse proportional relationship between the gray value and the projection current value is determined, and the slope is calculated to obtain the slope formula.

[0057] In one embodiment of the present application, based on the comparison result, determining whether to continue adjusting the projection current value includes: when the target current value is the same as the second projection current value, stopping adjusting the projection current value of the scanner; when the target current value is different from the second projection current value, determining to continue adjusting the projection current value. Specifically, if the target current value is the same as the second projection current value, the projection current value can be stopped from being adjusted; if the target current value is different from the second projection current value, the projection current value needs to be continued to be adjusted until the grayscale value of the target image is within the target range.

[0058] In one embodiment of the present application, after determining to continue adjusting the above-mentioned projection current value, the above-mentioned method further includes: determining whether the above-mentioned target current value is within the above-mentioned current value adjustment range; if the above-mentioned target current value is within the above-mentioned current value adjustment range, adjusting the above-mentioned second projection current to the above-mentioned target current value, and scanning the above-mentioned target image again based on the above-mentioned target current value, and calculating the third grayscale value of the above-mentioned target image; if the above-mentioned third grayscale value is within the above-mentioned target range, then the adjustment of the projection current value of the above-mentioned scanner is terminated, otherwise, the adjustment of the projection current value of the above-mentioned scanner is continued. Specifically, when the target current value is different from the second projection current value and is within the current value adjustment range, the above-mentioned second projection current can be adjusted to the above-mentioned target current value, and the third grayscale value of the target image under the target current value is calculated. If the third grayscale value is within the target range, the adjustment is terminated, otherwise, the projection current value is continued to be adjusted.

[0059] In one embodiment of the present application, the method further includes: if the target current value exceeds the current value adjustment range, counting the number of the projection current values ​​that exceed the current value adjustment range, and when the number exceeds a predetermined number, ending the adjustment of the projection current value of the scanner; when the number does not exceed the predetermined number, determining whether the target current value is less than the minimum current value in the current value adjustment range; if the target current value is less than or equal to the minimum current value, using the minimum current value to scan the target image again, and determining whether the scanned grayscale value is within the target range; if the target current value is greater than the minimum current value, using the maximum current value in the current value adjustment range to scan the target image again, and determining whether the scanned grayscale value is within the target range. Specifically, when the target current value exceeds the current value adjustment range and the above number exceeds the predetermined number, it indicates that the grayscale value of the target image cannot be adjusted to be within the target range, and the adjustment is terminated. For example, the projector itself is brighter, resulting in the overall brightness and color cast of the scanning result, which cannot be avoided by adjustment. When the target current value exceeds the current value adjustment range and the above number does not exceed the predetermined number, it is determined whether the target current value is less than the minimum current value in the current value adjustment range, that is, the minimum current value in the current value adjustment range is used as the judgment standard. If the target current value is less than the minimum current value, the projection current value is adjusted to the minimum current value, and the grayscale value of the target image under the minimum current value is calculated. If the grayscale value is within the target range, the adjustment is terminated. If the grayscale value is not within the target range, the adjustment is continued. If the target current value is greater than the minimum current value, the target current value must also be greater than the maximum current value. The projection current value is adjusted to the maximum current value in the current value adjustment range, and the grayscale value of the target image under the maximum current value is calculated. If the grayscale value is within the target range, the adjustment is terminated. If the grayscale value is not within the target range, the adjustment is continued.

[0060] It should be noted that the maximum current value in the current value adjustment range can also be used as a judgment criterion. When the target current value exceeds the current value adjustment range and the above-mentioned number does not exceed the above-mentioned predetermined number, if the current adjustment result is greater than the above-mentioned maximum current value, the above-mentioned maximum current value is used to scan the above-mentioned target image again, and determine whether the scanned grayscale value is within the above-mentioned target range. If the current adjustment result is less than the above-mentioned maximum current value, the target current value must also be less than the minimum current value of the current value adjustment range. The above-mentioned minimum current value is used to scan the above-mentioned target image again, and determine whether the scanned grayscale value is within the above-mentioned target range.

[0061] The embodiment of the present application also provides a method for adjusting a scanner, wherein at least two color lights are sequentially projected onto a target image, any one of the above methods is used to synchronously capture the target image projected by the at least two color lights, and adjustments are simultaneously performed based on the captured results until the adjustment of all channels of the target image is completed and within the target range, wherein the target range of each color channel is associated, and in this embodiment, the projector includes a red channel, a green channel, and a blue channel, the target grayscale values ​​of the three color channels are in a proportional relationship, the sum of the weighted proportions of the target grayscale values ​​of the three color channels is close to or equal to 1, and the reconstructed light The weight ratio of the target grayscale value of the imaging of the corresponding color channel is greater than the weight ratio of the target grayscale value of the imaging of other color channels. For example, the reconstructed light of the scanner is blue light, then the weight ratio of the target grayscale value of the imaging projected by the blue channel of the projector to the color card or color plate and collected by the camera is greater than the weight ratio of the target grayscale value of the imaging projected by the red channel of the projector to the color card or color plate and collected by the camera, and the weight ratio of the target grayscale value of the imaging projected by the blue channel of the projector to the color card or color plate and collected by the camera is greater than the weight ratio of the target grayscale value of the imaging projected by the green channel of the projector to the color card or color plate and collected by the camera.

[0062] The projection current value of the blue channel of the projector is adjusted according to the above scheme until the grayscale value of the image projected by the blue channel of the projector to the color card or color plate and collected by the camera meets the target range; the projection current value of the red channel of the projector is adjusted according to the above scheme until the grayscale value of the image projected by the red channel of the projector to the color card or color plate and collected by the camera meets the target range; the projection current value of the green channel of the projector is adjusted according to the above scheme until the grayscale value of the image projected by the green channel of the projector to the color card or color plate and collected by the camera meets the target range. After the projection current values ​​of the three color channels are adjusted separately, the target grayscale values ​​of the image projected by the three color channels to the color card or color plate and collected by the camera are in a preset proportional relationship. When actually used for scanning, the three colors are projected onto the object at the same time, and the image collected by the camera can restore the color of the object.

[0063] In the above adjustment method, the above three channels are red channel, green channel and blue channel. Since each adjustment takes about 2-5 seconds to take effect, the three channels of the above target image are collected at the same time, and adjustments are made simultaneously based on the collection results to reduce adjustment time and improve adjustment efficiency.

[0064] It should be noted that, since each channel has a corresponding target range, the adjustment processes do not affect each other, and the channels may not be adjusted at the same time.

[0065] The embodiment of the present application also provides a scanner adjustment device. It should be noted that the scanner adjustment device of the embodiment of the present application can be used to execute the scanner adjustment method provided in the embodiment of the present application. The scanner adjustment device provided in the embodiment of the present application is introduced below.

[0066] Figure 2 Schematic diagram of a scanner adjustment device according to an embodiment of the present application. Figure 2 As shown, the device comprises:

[0067] The acquisition unit 10 is used to control the scanner to scan the target image and calculate the first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors;

[0068] The first adjustment unit 20 is used to adjust the first projection current value of the scanner within the current value adjustment range at least once if the first grayscale value of the target image is not within the target range, until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner.

[0069] In the above-mentioned adjustment device, the acquisition unit controls the scanner to scan the target image and calculates the first grayscale value of the target image, that is, the scanner is used to scan a color card or color plate with standard colors, and the grayscale value of the color card or color plate with standard colors is calculated. If the first grayscale value of the target image is not within the target range, the adjustment unit adjusts the first projection current value of the scanner within the current value adjustment range at least once until the grayscale value of the target image is within the target range, so that the first grayscale value of the target image scanned by any scanner can be within the target range, thereby ensuring the consistency of scanning results of different scanners, that is, there is no color cast in the target image, which solves the problem of poor consistency of scanning results of different scanners in the prior art.

[0070] It should be noted that the above target range is determined based on the standard value and the error range, wherein the standard value is the grayscale value obtained by scanning the standard color card after manual adjustment, and the manual adjustment is the debugging performed during the research and development process. Technical personnel in this field can set the appropriate error range according to the specific situation to obtain the target range.

[0071] It should also be noted that the color card or color plate can be a gray color card, and the above-mentioned target image can be a color card or color plate with blue color, which is obtained by the projector projecting blue channel light to the color card or color plate and the camera capturing the image of the color card or color plate. The above-mentioned target image can also be a color card or color plate with red color, which is obtained by the projector projecting red channel light to the color card or color plate and the camera capturing the image of the color card or color plate. The above-mentioned target image can also be a color card or color plate with green color, which is obtained by the projector projecting green channel light to the color card or color plate and the camera capturing the image of the color card or color plate.

[0072] In an embodiment of the present application, the first adjustment unit includes an adjustment module, and the adjustment module is used to increase or decrease the first projection current value based on the middle value of the current value adjustment range. Specifically, the target image scanned by the above-mentioned scanner can also be a target image of a red channel or a target image of a green channel. When the first projection current value is greater than the minimum value of the current value adjustment range and less than the middle value of the current value adjustment range, the first projection current value is increased when the first projection current value is adjusted within the current value adjustment range. When the first projection current value is less than the maximum value of the current value adjustment range and greater than the middle value of the current value adjustment range, the first projection current value is reduced when the first projection current value is adjusted within the current value adjustment range. The above-mentioned increased current value or reduced current value is greater than one quarter of the current value adjustment range and less than one half of the current value adjustment range. For example, the current value adjustment range is 0 to 10A, the first projection current value is in the range of 0 to 5A, the first projection current value is increased, and the increased projection current value is in the range of 2.5A to 10A, the first projection current value is in the range of 5A to 10A, the first projection current value is increased, and the reduced projection current value is in the range of 0 to 7.5A.

[0073] It should be noted that the above-mentioned middle value is a value within the current value adjustment range, and the above-mentioned middle value is the arithmetic mean of the two boundary values ​​of the current value adjustment range. Preferably, when the median value of the current value adjustment range is an integer, the middle value is the median value of the current value adjustment range; when the median value of the current value adjustment range is a non-integer, the middle value is an integer close to the median value; for example, if the current value adjustment range is 0-10 and the median value is 5, then the middle value is 5; if the current value adjustment range is 1-10 and the median value is 5.5, then the middle value is 5 or 6.

[0074] In one embodiment of the present application, the first adjustment unit includes an adjustment subunit, a calculation subunit, a first processing subunit and a second processing subunit, wherein the adjustment subunit is used to increase or decrease the first projection current value of the scanner by a predetermined value to obtain a second projection current value; scan the target image again to calculate the second grayscale value of the target image; the first processing subunit is used to end the adjustment of the projection current value of the scanner if the second grayscale value of the target image is within the target range; the second processing subunit is used to continue the process of adjusting the projection current value of the scanner if the second grayscale value of the target image is not within the target range until the grayscale value of the target image is within the target range. The device directly adjusts the first projection current value to obtain the second projection current value, and then calculates the second grayscale value of the target image under the second projection current value. If the second grayscale value is within the target range, the adjustment can be ended. If the second grayscale value is not within the target range, the adjustment needs to be continued.

[0075] It should be noted that the first projection current value of the above-mentioned scanner is adjusted at least once within the current value adjustment range, and each adjustment is to adjust the current projection current value, that is, the first projection current value is adjusted to obtain the second projection current value, and the next adjustment is to adjust the second projection current value, rather than adjusting the first projection current value twice, and the subsequent adjustments are analogous. Among them, the second projection current value is obtained by adjusting the first projection current value, and other second projection current values ​​are not obtained by adjusting the first projection current value.

[0076] It should also be noted that those skilled in the art can set a suitable predetermined value according to actual conditions so that the second projection current value is within the current value adjustment range.

[0077] In one embodiment of the present application, the second processing subunit includes an acquisition module, a third determination module, a fourth determination module and a fifth determination module, wherein the acquisition module is used to acquire the grayscale difference between the second grayscale value and the target grayscale value, wherein the target grayscale value is a value within the target range; the third determination module is used to determine the current difference based on the grayscale difference; the fourth determination module is used to determine the target current value based on the current difference, and compare the target current value with the second projection current value; the fifth determination module is used to determine whether to continue to adjust the projection current value based on the comparison result. Specifically, a grayscale value is taken as the target grayscale value within the target range to obtain the grayscale difference between the second grayscale value and the target grayscale value, and the grayscale difference is substituted into the slope formula to calculate the current difference, thereby obtaining the target current value, and comparing the second projection current and the target current value to determine whether to continue to adjust the projection current value. The device performs secondary verification through comparison to avoid misadjustment.

[0078] It should be noted that, according to the first projection current value, the second projection current value, the first gray value and the second gray value, the inverse proportional relationship between the gray value and the projection current value is determined, and the slope is calculated to obtain the slope formula.

[0079] In one embodiment of the present application, the fifth determination module is further used to stop adjusting the projection current value of the scanner when the target current value is the same as the second projection current value; the fifth determination module is further used to determine to continue adjusting the projection current value when the target current value is different from the second projection current value. Specifically, if the target current value is the same as the second projection current value, the projection current value can be stopped from being adjusted; if the target current value is different from the second projection current value, the projection current value needs to be continued to be adjusted until the grayscale value of the target image is within the target range.

[0080] In one embodiment of the present application, the fifth determination module includes a determination submodule, a calculation submodule and a processing submodule, wherein the determination submodule is used to determine whether the target current value is within the current value adjustment range; the calculation submodule is used to adjust the second projection current to the target current value if the target current value is within the current value adjustment range, and scan the target image again based on the target current value, and calculate the third grayscale value of the target image; the processing submodule is used to end the adjustment of the projection current value of the scanner if the third grayscale value is within the target range, otherwise, continue to adjust the projection current value of the scanner. Specifically, when the target current value is different from the second projection current value and is within the current value adjustment range, the second projection current is adjusted to the target current value, and the third grayscale value of the target image under the target current value is calculated. If the third grayscale value is within the target range, the adjustment is ended, otherwise, the projection current value is continued to be adjusted.

[0081] In one embodiment of the present application, the adjustment device further includes a second adjustment unit, and the second adjustment unit includes a processing subunit, a first determining subunit, a second determining subunit and a third determining subunit, wherein the processing subunit is used to count the number of the projection current values ​​exceeding the current value adjustment range if the target current value exceeds the current value adjustment range, and end the adjustment of the projection current value of the scanner when the number exceeds a predetermined number; the first determining subunit is used to determine whether the target current value is less than the minimum current value in the current value adjustment range when the number does not exceed the predetermined number; the second determining subunit is used to use the minimum current value to scan the target image again if the target current value is less than or equal to the minimum current value, and determine whether the scanned grayscale value is within the target range; the third determining subunit is used to use the maximum current value in the current value adjustment range to scan the target image again if the target current value is greater than the minimum current value, and determine whether the scanned grayscale value is within the target range. Specifically, when the target current value exceeds the current value adjustment range and the above-mentioned number exceeds the predetermined number, it indicates that the grayscale value of the target image cannot be made to be within the target range through adjustment, and the adjustment is terminated. For example, the projector itself is too bright, resulting in the overall brightening and color cast of the scanning result, which cannot be avoided by adjustment. When the above-mentioned number does not exceed the predetermined number, it is determined whether the above-mentioned target current value is less than the minimum current value in the current value adjustment range. If the above-mentioned target current value is less than the minimum current value, the projection current value is adjusted to the minimum current value, and the grayscale value of the target image under the minimum current value is calculated. If the grayscale value is within the target range, the adjustment is terminated. If the grayscale value is not within the target range, the adjustment is continued. If the above-mentioned target current value is greater than the maximum current value, the projection current value is adjusted to the maximum current value in the current value adjustment range, and the grayscale value of the target image under the maximum current value is calculated. If the grayscale value is within the target range, the adjustment is terminated. If the grayscale value is not within the target range, the adjustment is continued.

[0082] It should be noted that, when the above-mentioned number does not exceed the above-mentioned predetermined number, if the current adjustment result is greater than or equal to the above-mentioned maximum current value, the above-mentioned maximum current value is used to scan the above-mentioned target image again, and it is determined whether the scanned grayscale value is within the above-mentioned target range; if the current adjustment result is less than the above-mentioned maximum current value, the above-mentioned minimum current value is used to scan the above-mentioned target image again, and it is determined whether the scanned grayscale value is within the above-mentioned target range.

[0083] An embodiment of the present application further provides a scanning system, including a scanner and an adjustment device, wherein the adjustment device is used to execute any one of the above-mentioned adjustment methods.

[0084] The above-mentioned scanning system includes an adjustment device, and an acquisition unit controls the scanner to scan the target image and calculates the first grayscale value of the target image, that is, the scanner is used to scan a color card or a color plate with a standard color, and the grayscale value of the color card or the color plate with the standard color is calculated. If the first grayscale value of the target image is not within the target range, the adjustment unit adjusts the first projection current value of the scanner within the current value adjustment range at least once until the grayscale value of the target image is within the target range, so that the first grayscale value of the target image scanned by any scanner can be within the target range, thereby ensuring the consistency of scanning results of different scanners, that is, the target image does not have a color cast phenomenon, and solves the problem of poor consistency of scanning results of different scanners in the prior art.

[0085] It should be noted that the above adjustment method can be applied to a scanner and a scanning system composed of a scanner and a computer. When the method is applied to a scanner, the scanner has data processing capabilities and adjusts the projection light intensity based on its own data processing results; when the method is applied to a scanning system, the scanner is controlled by a computer to adjust the projection light intensity.

[0086] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the technical solution of the present application will be explained below in conjunction with specific embodiments.

[0087] Example

[0088] like Figure 3As shown, the adjustment method of a single channel includes the following steps: controlling the scanner to perform a first acquisition calculation, that is, controlling the scanner to scan a target image and calculating a first grayscale value of the target image, wherein the target image is a color card or a color plate with standard colors, comparing the first grayscale value with a target range, and ending the scanning if the first grayscale value of the target image is within the target range; if the first grayscale value of the target image is not within the target range, when the first projection current value is greater than the minimum value of the current value adjustment range and less than the middle value of the current value adjustment range, increasing the first projection current value of the scanner by a predetermined value, and when the first projection current value is less than the maximum value of the current value adjustment range and greater than the middle value of the current value adjustment range. In the case of an intermediate value of the first projection current value of the scanner, the first projection current value of the scanner is reduced by a predetermined value to obtain a second projection current value, that is, the projection circuit value of the scanner is adjusted to the second projection current value, and a second acquisition calculation is performed based on the second projection current value, that is, the target image is scanned again to obtain a second grayscale value of the target image. If the second grayscale value of the target image is within the target range, the adjustment of the projection current value of the scanner is terminated. If the second grayscale value of the target image is not within the target range, the grayscale difference between the second grayscale value and the target grayscale value is obtained, wherein the target grayscale value is a value within the target range, and based on the grayscale difference, the grayscale difference is substituted into the slope formula to calculate the current The current difference value, the slope formula is derived from the current acquisition record and the previous acquisition record, that is, it is derived according to the first projection current value, the second projection current value, the first grayscale value and the second grayscale value. Based on the current difference value, the target current value is determined, and the target current value is compared with the previous projection current value, that is, compared with the second projection current value. When the target current value is the same as the second projection current value, the projection current value of the scanner is stopped from being adjusted. When the target current value is different from the second projection current value, it is determined whether the target current value is within the current value adjustment range. If the target current value is within the current value adjustment range, the second projection current is adjusted to the previous projection current value. The target current value is determined, the target image is scanned again based on the target current value, and the third grayscale value of the target image is calculated; if the third grayscale value is within the target range, the adjustment of the projection current value of the scanner is terminated; if the target current value exceeds the current value adjustment range, the number of the projection current values ​​exceeding the current value adjustment range is counted, and when the number exceeds a predetermined number, the adjustment of the projection current value of the scanner is terminated; when the number does not exceed a predetermined number, it is determined whether the target current value is less than a minimum current value in the current value adjustment range; if the target current value is less than the minimum current value, the target image is scanned again using the minimum current value.And determine whether the scanned grayscale value is within the above target range. If the scanned grayscale value is within the above target range, end the adjustment. Otherwise, calculate the grayscale difference between the currently scanned grayscale value and the last scanned grayscale value, determine the current difference based on the grayscale difference, determine the target current value based on the current difference, compare the target current value with the last projection current value, and determine whether to continue adjusting the projection current value based on the comparison result until the scanned grayscale value is within the above target range or the above number exceeds the predetermined number. If the above target current value exceeds the above current value adjustment range and is greater than the above minimum current value, use the maximum current value in the current value adjustment range to scan the target image again, and determine whether the scanned grayscale value is within the target range. If the scanned grayscale value is within the target range, end the adjustment. Otherwise, calculate the grayscale difference between the currently scanned grayscale value and the last scanned grayscale value, determine the current difference based on the grayscale difference, determine the target current value based on the current difference, compare the target current value with the last projection current value, and determine whether to continue adjusting the projection current value based on the comparison result until the scanned grayscale value is within the target range or the above number exceeds the predetermined number.

[0089] The adjustment device comprises a processor and a memory. The acquisition unit and the first adjustment unit are stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.

[0090] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of poor consistency of scanning results of different scanners in the prior art can be solved by adjusting kernel parameters.

[0091] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0092] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above adjustment method is implemented.

[0093] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the adjustment method is executed when the program is run.

[0094] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0095] Step S101, controlling a scanner to scan a target image and calculating a first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors;

[0096] Step S102, if the first grayscale value of the target image is not within the target range, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner.

[0097] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0098] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0099] Step S101, controlling a scanner to scan a target image and calculating a first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors;

[0100] Step S102, if the first grayscale value of the target image is not within the target range, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner.

[0101] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0102] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0103] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0104] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0105] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned computer-readable storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0106] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0107] 1) In the adjustment method of the present application, first, the scanner is controlled to scan the target image and calculate the first grayscale value of the target image, that is, the scanner is used to scan a color card or a color plate with standard colors, and the grayscale value of the color card or the color plate with standard colors is calculated. Then, if the first grayscale value of the target image is not within the target range, the first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, so that the first grayscale value of the target image scanned by any scanner can be within the target range, thereby ensuring the consistency of scanning results of different scanners, that is, there is no color cast in the target image, which solves the problem of poor consistency of scanning results of different scanners in the prior art.

[0108] 2) In the adjustment method of the present application, the above three channels are red channel, green channel and blue channel. Since each adjustment takes about 2-5 seconds to take effect, the three channels of the above target image are collected at the same time, and adjustments are made simultaneously based on the collection results to reduce adjustment time and improve adjustment efficiency.

[0109] 3) In the adjustment device of the present application, the acquisition unit controls the scanner to scan the target image and calculates the first grayscale value of the target image, that is, the scanner is used to scan a color card or a color plate with standard colors, and the grayscale value of the color card or the color plate with standard colors is calculated. If the first grayscale value of the target image is not within the target range, the adjustment unit adjusts the first projection current value of the scanner within the current value adjustment range at least once until the grayscale value of the target image is within the target range, so that the first grayscale value of the target image scanned by any scanner can be within the target range, thereby ensuring the consistency of scanning results of different scanners, that is, there is no color cast in the target image, which solves the problem of poor consistency of scanning results of different scanners in the prior art.

[0110] 4) The scanning system of the present application includes an adjustment device, in which an acquisition unit controls the scanner to scan a target image and calculates a first grayscale value of the target image, that is, a scanner is used to scan a color card or a color plate with a standard color, and the grayscale value of the color card or the color plate with a standard color is calculated. If the first grayscale value of the target image is not within the target range, the adjustment unit adjusts the first projection current value of the scanner within the current value adjustment range at least once until the grayscale value of the target image is within the target range, thereby making the first grayscale value of the target image scanned by any scanner within the target range, thereby ensuring the consistency of scanning results of different scanners, that is, making the target image free of color cast, and solving the problem of poor consistency of scanning results of different scanners in the prior art.

[0111] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for adjusting a scanner, characterized in that: include: Controlling a scanner to scan a target image and calculating a first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors; If the first grayscale value of the target image is not within the target range, adjusting the first projection current value of the scanner within the current value adjustment range at least once until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner; The first projection current value of the scanner is adjusted at least once within the current value adjustment range until the grayscale value of the target image is within the target range, comprising: Based on the middle value of the current value adjustment range, the first projection current value is increased or decreased; Wherein, when the first projection current value is greater than the minimum value of the current value adjustment range and less than the middle value of the current value adjustment range, the first projection current value is increased when the first projection current value is adjusted within the current value adjustment range; When the first projection current value is smaller than the maximum value of the current value adjustment range and larger than the middle value of the current value adjustment range, the first projection current value is reduced when the first projection current value is adjusted within the current value adjustment range.

2. The method according to claim 1, characterized in that: Adjusting the first projection current value of the scanner at least once within the current value adjustment range until the grayscale value of the target image is within the target range includes: The first projection current value of the scanner is increased by a predetermined value or decreased by a predetermined value to obtain a second projection current value; Scan the target image again to calculate a second grayscale value of the target image; If the second grayscale value of the target image is within the target range, then the adjustment of the projection current value of the scanner ends; If the second grayscale value of the target image is not within the target range, the process of adjusting the projection current value of the scanner is continued until the grayscale value of the target image is within the target range.

3. The method according to claim 2, characterized in that The process of adjusting the projection current value of the scanner is continued, including: Obtaining a grayscale difference between the second grayscale value and a target grayscale value, wherein the target grayscale value is a value within the target range; Based on the grayscale difference, determining a current difference; Determining a target current value based on the current difference, and comparing the target current value with the second projected current value; Based on the comparison result, it is determined whether to continue adjusting the projection current value.

4. The method according to claim 3, characterized in that Based on the comparison result, determining whether to continue adjusting the projection current value includes: When the target current value is the same as the second projection current value, stop adjusting the projection current value of the scanner; When the target current value is different from the second projection current value, it is determined to continue adjusting the projection current value.

5. The method according to claim 4, characterized in that After determining to continue adjusting the projection current value, the method further includes: determining whether the target current value is within the current value adjustment range; If the target current value is within the current value adjustment range, adjusting the second projection current to the target current value, scanning the target image again based on the target current value, and calculating a third grayscale value of the target image; If the third grayscale value is within the target range, the adjustment of the projection current value of the scanner is terminated; otherwise, the adjustment of the projection current value of the scanner continues.

6. The method according to claim 5, characterized in that The method further comprises: If the target current value exceeds the current value adjustment range, counting the number of the projection current values ​​exceeding the current value adjustment range, and ending the adjustment of the projection current value of the scanner when the number exceeds a predetermined number; In a case where the number does not exceed the predetermined number, determining whether the target current value is less than a minimum current value in the current value adjustment range; If the target current value is less than or equal to the minimum current value, use the minimum current value to scan the target image again, and determine whether the scanned grayscale value is within the target range; If the target current value is greater than the minimum current value, the target image is scanned again using the maximum current value in the current value adjustment range, and it is determined whether the scanned grayscale value is within the target range.

7. A method for adjusting a scanner, characterized in that: include: At least two color lights are sequentially projected onto a target image, and the target image projected by the at least two color lights is synchronously captured using the method described in any one of claims 1 to 6, and adjustments are simultaneously made based on the captured results until the adjustment of all channels of the target image is completed and is within the target range, wherein the target range of each color channel is associated.

8. A scanner adjustment device, characterized in that: include: An acquisition unit, used for controlling a scanner to scan a target image and calculating a first grayscale value of the target image, wherein the target image is a color card or a color palette with standard colors; a first adjustment unit, configured to adjust the first projection current value of the scanner within the current value adjustment range at least once if the first grayscale value of the target image is not within the target range, until the grayscale value of the target image is within the target range, wherein each adjustment result is used to change the projection light intensity of the scanner; Wherein, the first adjustment unit includes: An adjustment module, used to increase or decrease the first projection current value based on the middle value of the current value adjustment range; Wherein, when the first projection current value is greater than the minimum value of the current value adjustment range and less than the middle value of the current value adjustment range, the first projection current value is increased when the first projection current value is adjusted within the current value adjustment range; When the first projection current value is smaller than the maximum value of the current value adjustment range and larger than the middle value of the current value adjustment range, the first projection current value is reduced when the first projection current value is adjusted within the current value adjustment range.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the adjustment method according to any one of claims 1 to 7.

10. A processor, characterized in that: The processor is used to run a program, wherein the program executes the adjustment method described in any one of claims 1 to 7 when running.

11. A scanning system, comprising a scanner and an adjustment device, characterized in that: The adjustment device is used to execute the adjustment method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Projection image adjustment method and projector

    CN106331665A

  • Gain automatic adjustment method for hand-held structured light spatial digitizer

    CN107144239A

  • A projection light color adjusting method and a projection light color adjusting device

    CN109831658A

  • Method and software of simple user driven one touch calibration for scanner

    CN1977524A

  • Method of adjusting gray scale response to more closely correlate scanner based image analysis systems

    US20040062438A1