Lamp Color Calibration Method, Device and Computer Equipment
By obtaining the data of standard lamps and lamps to be calibrated, determining the target correspondence relationship and writing it to the driver controller, the problem of lack of accuracy in color calibration of lamps is solved, and the consistency of lamp colors and user experience is improved.
Patent Information
- Application Number
- CN202210017794.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2042-01-07
AI Technical Summary
In the prior art, the color calibration accuracy of lamps is lacking, resulting in different manufacturers or batches of LED lamps in the luminous color offset, affecting the user's user experience.
By obtaining multiple sets of standard data of standard lamps and the test RGB value of the lamp to be calibrated, the target correspondence relationship between the tone value H and RGB values is determined, and written into the drive controller of the lamp to be calibrated, so that the lamp can emit light using the target correspondence relationship.
It achieves consistency in luminous color between different manufacturers or batches of lamps, improves user experience, reduces costs and improves efficiency.
Smart Images

Figure CN114490755B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of lighting, and in particular, to a method and device for calibrating the color of a lamp and a computer device. Background Art
[0002] LED (Light Emitting Diode) lamps, with their technical characteristics such as high efficiency, energy saving, safety, long life, small size, and clear light, are becoming the main products in the new generation lighting market and strongly driving the high-speed development of the environmental protection and energy-saving industry.
[0003] Traditional LED lamps are directly processed from incoming materials. For LED lamps of the same model, when using lamp beads and chips produced by different manufacturers, the emitted colors of the produced LED lamps are all offset, resulting in visual inconsistency and affecting the user experience.
[0004] The patent CN108426186B adopts a method of obtaining a standard driving value and a calibration driving value corresponding to the standard driving value through calculation, and each lamp emits light using the calibration driving value, thereby improving the consistency of the emitted colors of the lamps. However, the disadvantages of this method are that, on the one hand, due to the need to use an integrating sphere spectrometer device, the cost is relatively high; on the other hand, this method still requires manual calibration, and the accuracy is not high. Summary of the Invention
[0005] The present application provides a method and device for calibrating the color of a lamp and a computer device to at least solve the problem of lack of accuracy in calibrating the color of a lamp in related technologies.
[0006] In a first aspect, an embodiment of the present application provides a method for calibrating the color of a lamp, the method including:
[0007] Obtaining multiple groups of standard data corresponding to a standard lamp, each group of the standard data including at least a hue value H and a standard RGB value corresponding to the display;
[0008] Obtaining multiple groups of test RGB values displayed by the lamp to be calibrated, and determining a target correspondence relationship between the hue value H and the RGB value according to the standard RGB value and the test RGB values;
[0009] Saving the target correspondence relationship to be written into the drive controller of the lamp to be calibrated, so that the lamp emits light using the target correspondence relationship.
[0010] In some of these embodiments, the obtaining multiple groups of test RGB values displayed by the lamp to be calibrated, and determining a target correspondence relationship between the hue value H and the RGB value according to the standard RGB value and the test RGB values; includes:
[0011] Control the to-be-calibrated lamp to emit light according to the standard RGB values;
[0012] Obtain multiple groups of test RGB values displayed by the to-be-calibrated lamp;
[0013] Determine the target correspondence between the hue value H and the RGB values according to multiple groups of the test RGB values.
[0014] In some embodiments, the controlling the to-be-calibrated lamp to emit light according to the standard RGB values includes:
[0015] Send multiple groups of the standard RGB values to the to-be-calibrated lamp to control the to-be-calibrated lamp to display corresponding test RGB values according to the standard RGB values.
[0016] In some embodiments, the controlling the to-be-calibrated lamp to emit light according to the standard RGB values includes:
[0017] Determine a first correspondence between the hue value H and the standard RGB values according to multiple groups of the standard RGB values;
[0018] Send the first correspondence to the to-be-calibrated lamp to control the to-be-calibrated lamp to emit light according to the first correspondence.
[0019] In some embodiments, the obtaining multiple groups of test RGB values displayed by the to-be-calibrated lamp and determining the target correspondence between the hue value H and the RGB values according to the standard RGB values and the test RGB values includes:
[0020] Determine a first correspondence between the hue value H and the standard RGB values according to multiple groups of the standard RGB values;
[0021] Control the to-be-calibrated lamp to emit light under the same conditions as the standard lamp;
[0022] Obtain multiple groups of test RGB values corresponding to the to-be-calibrated lamp, and each group of the test data includes the hue value H and the corresponding test RGB value;
[0023] Determine a second correspondence between the hue value H and the test RGB values according to multiple groups of the test data;
[0024] Determine the target correspondence according to the first correspondence and the second correspondence.
[0025] In some embodiments, the determining the target correspondence according to the first correspondence and the second correspondence includes:
[0026] Calculate the variance of the first correspondence and the second correspondence within the range of the hue value H;
[0027] Determine the coefficient weight of the first corresponding relationship according to the magnitude of the variance.
[0028] Update the first corresponding relationship according to the coefficient weight, and use the updated first corresponding relationship as the target corresponding relationship.
[0029] In some embodiments, calculating the variance between the first corresponding relationship and the second corresponding relationship within the range of the calculated hue value H includes:
[0030] The first corresponding relationship includes a first R value coefficient, a first G value coefficient, and a first B value coefficient; the second corresponding relationship includes a second R value coefficient, a second G value coefficient, and a second B value coefficient.
[0031] Calculate the first variance between the first R value coefficient and the second R value coefficient, the second variance between the first G value coefficient and the second G value coefficient, and / or the third variance between the first B value coefficient and the second B value coefficient within the range of the hue value H; and respectively determine the weight of the first R value coefficient according to the first variance, determine the weight of the first G value coefficient according to the second variance, and determine the weight of the first B value coefficient according to the third variance.
[0032] In some embodiments, obtaining the test RGB value displayed by the lamp to be calibrated, and determining the target corresponding relationship between the hue value H and the RGB value according to the standard RGB value and the test RGB value includes:
[0033] Obtain at least the test H value of the lamp to be calibrated through the HSV sensor.
[0034] Calculate the difference between the test H value and the standard H value.
[0035] If the difference between the test H value and the standard H value exceeds the first preset threshold, generate an adjustment instruction according to the difference and send it to the lamp to be calibrated until the difference between the test H value and the standard H value is less than the first preset threshold.
[0036] Obtain the test RGB value displayed by the current lamp to be calibrated, and determine the target corresponding relationship between the hue value H and the RGB value according to the test RGB value.
[0037] In a second aspect, an embodiment of the present application provides a lamp color calibration device, which includes an acquisition module, a determination module, and a writing module, where:
[0038] The acquisition module is used to acquire multiple groups of standard data corresponding to a standard lamp, and each group of the standard data includes a hue value H and a corresponding displayed standard RGB value.
[0039] A determination module, configured to obtain multiple sets of test RGB values displayed by a to-be-calibrated lamp, and determine a target correspondence between a hue value H and RGB values according to the standard RGB values and the test RGB values;
[0040] A writing module, configured to save the target correspondence to write into a driving controller of the lamp, so that the to-be-calibrated lamp emits light by using the target correspondence.
[0041] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for calibrating the color of a lamp as described in the first aspect above is implemented.
[0042] Compared with the related art, the method, device, and computer device for calibrating the color of a lamp provided by the embodiment of the present application obtain multiple sets of standard data corresponding to a standard lamp, where each set of the standard data includes at least a hue value H and a corresponding displayed standard RGB value; obtain test RGB values displayed by the to-be-calibrated lamp, and determine a target correspondence between a hue value H and RGB values according to the standard RGB values and the test RGB values; save the target correspondence to write into a driving controller of the to-be-calibrated lamp, so that the lamp emits light by using the target correspondence, solve the problem of lack of accuracy in calibrating the color of a lamp in the related art, achieve the consistency of the emitted colors of lamps from different manufacturers or different batches, and thus improve the user experience.
[0043] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more concise and understandable. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings described herein are used to provide a further understanding of the present application, and constitute a part of the present application. The illustrative embodiments and descriptions thereof of the present application are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:
[0045] Figure 1 is a flowchart of the method for calibrating the color of a lamp provided by an embodiment of the present application;
[0046] Figure 2 is a schematic diagram of the system for calibrating the color of a lamp provided by an embodiment of the present application;
[0047] Figure 3 is a flowchart of determining a target correspondence between a hue value H and RGB values according to a first embodiment of the present application;
[0048] Figure 4It is a flowchart for determining the target correspondence between the hue value H and the RGB values according to the second embodiment of the present application;
[0049] Figure 5 It is a flowchart for determining the target correspondence between the hue value H and the RGB values according to the third embodiment of the present application;
[0050] Figure 6 It is a flowchart for determining the target correspondence between the hue value H and the RGB values according to the fourth embodiment of the present application;
[0051] Figure 7 It is a schematic structural diagram of a lamp color calibration device provided by an embodiment of the present application;
[0052] Figure 8 It is an internal structure diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0053] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described and explained below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments provided in the present application without making creative efforts fall within the scope of protection of the present application.
[0054] Obviously, the accompanying drawings in the following description are only some examples or embodiments of the present application. For those of ordinary skill in the art, without making creative efforts, the present application can also be applied to other similar scenarios based on these drawings. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for those of ordinary skill in the art related to the content disclosed in the present application, some design, manufacturing or production changes based on the technical content disclosed in the present application are only conventional technical means and should not be understood as insufficient disclosure of the content of the present application.
[0055] Referring to "embodiment" in the present application means that the specific features, structures or characteristics described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears in various positions in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those of ordinary skill in the art explicitly and implicitly understand that the embodiments described in the present application can be combined with other embodiments without conflict.
[0056] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the ordinary meanings understood by those with ordinary skills in the technical field to which this application belongs. The words such as "a", "an", "one", "the" and the like involved in this application do not indicate a limitation in quantity and may represent a singular or plural number. The terms "include", "comprise", "have" and any variations thereof involved in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may further include unlisted steps or units, or may further include other steps or units inherent to these processes, methods, products or devices. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, "A and / or B" may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific order for the objects.
[0057] Currently, LED lamps are directly processed with incoming materials. For lamps of the same model, if the production batches are different or lamps produced by different manufacturers are used, the emitted light colors of the LED lamps are offset, resulting in visual inconsistency and affecting the user experience. Based on the above problems, the applicant proposes a method, device and computer equipment for calibrating the color of lamps, which improves the consistency of the emitted light color of the lamps, thereby improving the user experience.
[0058] This embodiment provides a method for calibrating the color of lamps. Figure 1 is a flowchart of the method for calibrating the color of lamps according to the embodiment of this application, as Figure 1 shown, this process includes the following steps:
[0059] Step 110, obtain multiple groups of standard data corresponding to a standard lamp, and each group of standard data includes at least a hue value H and a corresponding displayed standard RGB value.
[0060] Step 120, obtain the tested RGB value displayed by the lamp to be calibrated, and determine the target correspondence between the hue value H and the RGB value according to the standard RGB value and the tested RGB value.
[0061] Step 130, save the target correspondence to write into the drive controller of the lamp to be calibrated, so that the lamp emits light using the target correspondence.
[0062] The standard lamp can be any lamp of the same model produced by the same manufacturer or the same model produced in different batches.
[0063] Before starting the color calibration of the lamp, first set up the calibration environment. Specifically, it is necessary to prepare a dark box, multiple groups of sensors, the lamp to be calibrated, a standard lamp, and a host computer for sending control commands. Place multiple groups of sensors, the lamp to be calibrated, and the standard lamp into the dark box. The connection relationships among the devices in the calibration system are as shown in Figure 2 shown. The host computer is wirelessly connected to the lamp, and the host computer is serially connected to the sensor. The sensor can be a color sensor or an HSV sensor. The color sensor can collect the RGB values displayed by the lamp, and the HSV sensor can collect the H value, S value, and V value displayed by the lamp. In this embodiment, the sensor is taken as an example of a color sensor for illustration. In addition, since the light emitted by the lamp is not necessarily uniform and is affected by the colors of the surrounding lamp beads. For example, if there are more red lamp beads on the left, the light on the left will be slightly redder. Therefore, in this application, it is preferred to obtain the RGB values of the standard lamp and the lamp to be calibrated through multiple sensors. The correspondence between H and RGB includes the RGB value output relationship function corresponding to the current hue (H) and the coefficients of f(H)=(X,Y,Z). After the calibration environment is set up, the calibration implementation process begins. In this application, the HSV model is used to calibrate the lamp. When starting the calibration, the host computer sends a command of H = 0, that is, pure red (the color gamut of H is from 0 - 359, that is, 360 points), and the lamp to be calibrated will start calibration from H = 0. When the standard lamp, the lamp to be calibrated, and the sensor are placed in the dark box, turn on the standard lamp and the lamp to be calibrated at the same time. The lamp will output the RGB values corresponding to the current H. Wait for a period of time to allow the color sensor to fully collect the standard RGB values corresponding to the standard lamp and the test RGB values corresponding to the lamp to be calibrated when H = 0, and then upload them to the host computer. By analogy, when H is adjusted from 0 to 359, multiple groups of standard data corresponding to the standard lamp and multiple groups of test RGB values displayed by the lamp to be calibrated can be obtained.
[0064] The host computer determines the target correspondence between the hue value H and the RGB values based on multiple groups of standard RGB values and multiple groups of test RGB values. After saving the target correspondence, write it into the drive controller of the lamp to be calibrated to calibrate the emission color of the lamp.
[0065] This application takes into account that the display color of the lamp is related to the properties of the lamp itself. For example, for lamps from different manufacturers or different batches, the number of lamp beads or the arrangement order of the lamp beads will be different, which will cause the emission colors of lamps of the same model to be inconsistent. This application combines the properties of the lamp to be calibrated and determines the target correspondence between the hue value H and the RGB values based on the standard RGB values and the test RGB values. When each lamp after color calibration is in use, it emits light through the calibrated target correspondence. In this way, the consistency of the emission colors of any batch of lamps or lamps from different manufacturers after calibration is improved, thereby improving the user experience.
[0066] Meanwhile, this application obtains the current color values of the lamp to be calibrated and the standard lamp through a color sensor. Compared with the method of using an integrating sphere spectrometer of the same type, it does not require manual collection, has higher efficiency, and lower cost.
[0067] It should be noted that for lamps of the same batch produced by the same manufacturer and the same model, the attributes of the lamp beads in the lamps are basically the same. Several of these lamps can be selected for testing, and then the target correspondence can be directly sent to other lamps of the same batch, thus improving efficiency.
[0068] In addition, it should be noted that the lamp calibration in this application adopts the HSV model. This application only takes the calibration of the hue value H as an example for illustration. The calibration of the S value and the V value is also carried out with the same idea, which will not be elaborated in this application.
[0069] In some of the embodiments, obtaining multiple sets of test RGB values displayed by the lamp to be calibrated, and determining the target correspondence between the hue value H and the RGB values according to the standard RGB values and the test RGB values; includes:
[0070] Controlling the lamp to be calibrated to emit light according to the standard RGB values;
[0071] Obtaining multiple sets of test RGB values displayed by the lamp to be calibrated;
[0072] Determining the target correspondence between the hue value H and the RGB values according to multiple sets of the test RGB values.
[0073] This embodiment can include at least two sub - embodiments, as Figure 3 and Figure 4 shown. Specifically as follows:
[0074] As Figure 3 shown, step 310: Sending multiple sets of standard RGB values to the lamp to be calibrated to control the lamp to be calibrated to display corresponding test RGB values according to the standard RGB values;
[0075] Step 320: Obtaining multiple sets of test RGB values displayed by the lamp to be calibrated;
[0076] Step 330: Determining the target correspondence between the hue value H and the RGB values according to multiple sets of test RGB values.
[0077] In this embodiment, after the test starts, the host computer first sends H = 0 to the standard lamp. The standard lamp outputs the standard RGB value corresponding to the current H, and sends the standard RGB value corresponding to the current H value to the host computer. After the host computer obtains multiple groups of standard RGB values, it sends the multiple groups of standard RGB values to the lamp to be calibrated, and controls the lamp to be calibrated to display the standard RGB value. However, due to the different properties of the lamps themselves, there is a certain deviation between the RGB values displayed by the lamp to be calibrated and the standard RGB values, and the color displayed by the lamp to be calibrated is the test RGB value. This embodiment determines the target correspondence between the hue value H and the RGB value according to the test RGB values displayed by multiple groups of test lamps.
[0078] Another embodiment is as follows Figure 4 shown, including steps 410 - step 440; where:
[0079] Step 410: Determine the first correspondence between the hue value H and the standard RGB value according to multiple groups of standard RGB values;
[0080] Step 420: Send the first correspondence to the lamp to be calibrated to control the lamp to be calibrated to emit light according to the first correspondence;
[0081] Step 430: Obtain multiple groups of test RGB values displayed by the lamp to be calibrated using the first correspondence;
[0082] Step 440: Determine the target correspondence between the hue value H and the test RGB value according to multiple groups of test RGB values.
[0083] In this embodiment, after the test starts, the host computer first sends H = 0 to the standard lamp. The standard lamp outputs the standard RGB value corresponding to the current H, and sends the standard RGB value corresponding to the current H value to the host computer. After the host computer obtains multiple groups of standard RGB values, it fits the first correspondence between the hue value H and the standard RGB value according to the standard lamp. The first correspondence can be understood as the standard correspondence. The host computer sends the fitted first correspondence to the lamp to be calibrated to control the lamp to be calibrated to emit light according to the first correspondence. For different H values, the lamp to be calibrated displays different colors according to the first correspondence. The corresponding test RGB values are collected by the color sensor and uploaded to the host computer. The host computer fits the target correspondence corresponding to the test lamp according to multiple groups of H values and test RGB values.
[0084] In some of these embodiments, it is also possible to control the lamp to be calibrated to emit light under the same conditions as the standard lamp, that is, the lamp to be calibrated first emits light according to its own properties, and then adjusts the lamp to be calibrated according to the comparison between the displayed value and the displayed value of the standard lamp.
[0085] In some of these embodiments, such as Figure 5As shown, obtain multiple groups of test RGB values displayed by the lamp to be calibrated, and determine the target correspondence between the hue value H and the RGB values according to the standard RGB values and the test RGB values, including steps 510 - 550; where:
[0086] Step 510: Determine the first correspondence between the hue value H and the standard RGB values according to multiple groups of standard RGB values;
[0087] Step 520: Control the lamp to be calibrated to emit light under the same conditions as the standard lamp;
[0088] Step 530: Obtain multiple groups of test data corresponding to the lamp to be calibrated, and each group of test data includes the hue value H and the corresponding test RGB value;
[0089] Step 540: Determine the second correspondence between the hue value H and the test RGB values according to multiple groups of test data;
[0090] Step 550: Determine the target correspondence according to the first correspondence and the second correspondence.
[0091] In this embodiment, after the test starts, the host computer first sends H = 0 to the standard lamp and the lamp to be calibrated, so that the standard lamp and the lamp to be calibrated emit light under the same conditions. The standard RGB values and the test RGB values are collected by the color sensor and sent to the host computer. And so on, H is adjusted from 0 to 359. The host computer fits the first correspondence between the hue value H and the standard RGB values according to the relationship between multiple groups of H values and the standard RGB values; the host computer fits the second correspondence between the hue value H and the standard RGB values according to the relationship between multiple groups of H values and the test RGB values. The host computer calibrates the second correspondence according to the first correspondence and takes the calibrated second correspondence as the target correspondence. The host computer sends the target correspondence to the lamp to be calibrated to control the lamp to be calibrated to emit light according to the target correspondence.
[0092] In some embodiments, step 550 specifically includes:
[0093] Step 551: Calculate the variance between the first correspondence and the second correspondence within the range of the hue value H;
[0094] Step 552: Determine the coefficient weight of the second correspondence according to the magnitude of the variance;
[0095] Step 553: Update the first correspondence according to the coefficient weight and take the updated second correspondence as the target correspondence.
[0096] By calculating the variances of the first correspondence and the second correspondence, the degree of dispersion between the first correspondence and the second correspondence can be calculated. It can be understood that other methods can also be used to calculate the degree of dispersion, such as the standard deviation, the coefficient of variation, etc., which are all simple substitutions within the scope of this application and are still within the protection scope of this application.
[0097] If the degree of dispersion is large, it indicates that the attributes of the lamp to be calibrated and the standard lamp are quite different from those of the standard lamp. When calibrating the coefficient weights, more consideration should be given to the first correspondence of the standard lamp, that is, setting the coefficient weight in the first correspondence to be greater than the coefficient weight in the second correspondence, so as to calibrate the second correspondence more precisely.
[0098] In some of these embodiments, preferably, step 553 specifically includes:
[0099] The first correspondence includes a first R value coefficient, a first G value coefficient, and a first B value coefficient; the second correspondence includes a second R value coefficient, a second G value coefficient, and a second B value coefficient;
[0100] Calculate the first variance of the first R value coefficient and the second R value coefficient, the second variance of the first G value coefficient and the second G value coefficient, and / or the third variance of the first B value coefficient and the second B value coefficient within the hue value H range; and respectively determine the weight of the first R value coefficient according to the first variance, determine the weight of the first G value coefficient according to the second variance, and determine the weight of the first B value coefficient according to the third variance.
[0101] In this embodiment, the variances of the R value, the G value, and the B value are calculated respectively, and then the weight coefficients of the three are adjusted respectively, with more refined adjustment and higher accuracy.
[0102] In other embodiments, determining the coefficient weights of the second correspondence according to the variance magnitude can be the same calibration of the R value coefficient, the G value coefficient, and the B value coefficient. Although the effect of this solution is not as good as that of separate calibration, the calibration efficiency is improved, and users can choose according to their needs.
[0103] In some of these embodiments, as Figure 6 shown, obtaining the test RGB value displayed by the lamp to be calibrated, and determining the target correspondence between the hue value H and the RGB value according to the standard RGB value and the test RGB value, includes steps 610 to 640, where:
[0104] Step 610: Obtain at least the test H value of the lamp to be calibrated through the HSV sensor;
[0105] Step 620: Calculate the difference between the test H value and the standard H value;
[0106] Step 630: If the difference between the measured H value and the standard H value exceeds the first preset threshold, an adjustment instruction is generated according to the difference and sent to the lamp to be calibrated until the difference between the measured H value and the standard H value is less than the first preset threshold;
[0107] Step 640: Obtain the measured RGB value displayed by the current lamp to be calibrated, and determine the target correspondence between the hue value H and the RGB value according to the measured RGB value.
[0108] In this solution, the HSV sensor is used to collect the color parameters of the lamp. After the test starts, the host computer first sends H = 0 to the lamp to be calibrated. The HSV sensor collects the measured H value of the lamp to be calibrated and sends it to the host computer. And so on, H is adjusted from 0 to 359. The host computer compares the difference between the measured H value and the standard H value. If there is a difference, a control instruction is sent to the lamp to be calibrated according to the size of the difference until the hue H value of the color displayed by the lamp to be calibrated is within the same range as the standard H value. At this time, obtain the current measured RGB value of the lamp to be calibrated. The host computer fits the target correspondence between the hue value H and the RGB value according to the measured RGB value.
[0109] In some of these embodiments, the lamp color calibration method further includes:
[0110] Calculate the difference between the measured RGB value and the standard RGB;
[0111] If the difference exceeds the second preset threshold, a prompt message is issued.
[0112] In this embodiment, if it is detected that the display difference between the lamp to be tested and the standard lamp is too large, it may be because the attributes of the lamp to be calibrated are quite different from those of the standard lamp, and the lamp to be calibrated cannot display this color. Even through adjustment, it cannot be made to display the same as the standard lamp. Then the host computer issues a prompt message. The user can select to replace the lamp or discard the lamp according to the prompt message.
[0113] It should be noted that the steps shown in the above process or the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0114] This embodiment also provides a lamp color calibration device, which is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, terms such as "module", "unit", "sub-unit", etc. can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0115] Figure 7 is a structural block diagram of a lamp color calibration device according to an embodiment of the present application, as Figure 7 shown. The device includes: an acquisition module 710, a determination module 720, and a writing module 730, where:
[0116] The acquisition module 710 is configured to acquire multiple groups of standard data corresponding to a standard lamp, and each group of standard data includes a hue value H and a corresponding displayed standard RGB value.
[0117] The determination module 720 is configured to acquire multiple groups of test RGB values displayed by the lamp to be calibrated, and determine the target correspondence between the hue value H and the RGB value according to the standard RGB value and the test RGB value.
[0118] The writing module 730 is configured to save the target correspondence and write it into the driving controller of the lamp, so that the lamp to be calibrated emits light using the target correspondence.
[0119] In the present application, by combining the attributes of the lamp to be calibrated, the target correspondence between the hue value H and the RGB value is determined according to the standard RGB value and the test RGB value. When each lamp after color calibration is in use, it emits light through the calibrated target correspondence. In this way, the consistency of the emitted colors of any batch of lamps or lamps from different manufacturers after calibration is improved, thereby improving the user experience.
[0120] It should be noted that the above-mentioned each module can be a functional module or a program module, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned each module can be located in the same processor; or the above-mentioned each module can also be located in different processors in any combination form.
[0121] In addition, the lamp color calibration method according to the embodiment of the present application described in Figure 1 can be implemented by a computer device. Figure 8 is a schematic hardware structure diagram of a computer device according to an embodiment of the present application.
[0122] The computer device may include a processor 81 and a memory 82 storing computer program instructions.
[0123] Specifically, the above-mentioned processor 81 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0124] Among them, the memory 82 may include a mass storage for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include removable or non-removable (or fixed) media. Where appropriate, the memory 82 may be internal or external to the data processing device. In a particular embodiment, the memory 82 is a non-volatile memory. In a particular embodiment, the memory 82 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable read-only memory (EAROM), or a flash memory, or a combination of two or more of these. Where appropriate, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), where the DRAM may be a fast page mode dynamic random access memory (FPMDRAM), an extended date out dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0125] The memory 82 can be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 81.
[0126] The processor 81 reads and executes the computer program instructions stored in the memory 82 to implement any one of the lamp color calibration methods in the above embodiments.
[0127] In some of the embodiments, the computer device may further include a communication interface 83 and a bus 80. Among them, as Figure 8 shown, the processor 81, the memory 82, and the communication interface 83 are connected through the bus 80 and complete communication with each other.
[0128] The communication interface 83 is used to implement communication between the modules, devices, units, and / or devices in the embodiments of the present application. The communication interface 83 can also implement data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.
[0129] Bus 80 includes hardware, software, or both, and couples components of a computer device to each other. Bus 80 includes, but is not limited to, at least one of the following: Data Bus, Address Bus, Control Bus, Expansion Bus, Local Bus. By way of example and not limitation, Bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a Memory Bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable bus or a combination of two or more of these. In a suitable case, Bus 80 may include one or more buses. Although embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.
[0130] The computer device may execute the lamp color calibration method in the embodiments of the present application based on the obtained program instructions, so as to implement the combination of Figure 1 the described lamp color calibration method.
[0131] In addition, in combination with the lamp color calibration method in the above embodiments, an embodiment of the present application may provide a computer-readable storage medium to implement. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by a processor, any one of the lamp color calibration methods in the above embodiments is implemented.
[0132] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0133] The above-described embodiments only express several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several deformations and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A method for calibrating the color of a lamp, characterized in that, the method includes: obtaining multiple groups of standard data corresponding to a standard lamp, each group of the standard data including at least a hue value H and a corresponding displayed standard RGB value; obtaining multiple groups of test RGB values displayed by the lamp to be calibrated, and determining a target correspondence between the hue value H and the RGB value according to the standard RGB value and the test RGB values; saving the target correspondence to be written into the drive controller of the lamp to be calibrated, so that the lamp emits light using the target correspondence; wherein, the obtaining multiple groups of test RGB values displayed by the lamp to be calibrated, and determining a target correspondence between the hue value H and the RGB value according to the standard RGB value and the test RGB values, includes: determining a first correspondence between the hue value H and the standard RGB value according to multiple groups of the standard RGB values; controlling the lamp to be calibrated to emit light under the same conditions as the standard lamp; obtaining multiple groups of test RGB values corresponding to the lamp to be calibrated, each group of test data including a hue value H and a corresponding test RGB value; determining a second correspondence between the hue value H and the test RGB value according to multiple groups of the test data; determining the target correspondence according to the first correspondence and the second correspondence; the determining the target correspondence according to the first correspondence and the second correspondence, includes: calculating the variances of the first correspondence and the second correspondence within the range of the hue value H; determining the coefficient weight value of the first correspondence according to the magnitude of the variance; updating the first correspondence according to the coefficient weight value, and using the updated first correspondence as the target correspondence.
2. The method according to claim 1, characterized in that, the calculating the variances of the first correspondence and the second correspondence within the range of the hue value H, includes: the first correspondence includes a first R value coefficient, a first G value coefficient and a first B value coefficient; the second correspondence includes a second R value coefficient, a second G value coefficient and a second B value coefficient; calculating a first variance of the first R value coefficient and the second R value coefficient, a second variance of the first G value coefficient and the second G value coefficient, and / or a third variance of the first B value coefficient and the second B value coefficient within the range of the hue value H; so as to respectively determine the weight value of the first R value coefficient according to the first variance, determine the weight value of the first G value coefficient according to the second variance, and determine the weight value of the first B value coefficient according to the third variance.
3. A device for calibrating the color of a lamp, characterized in that, the device includes an obtaining module, a determining module and a writing module, wherein: the obtaining module is used for obtaining multiple groups of standard data corresponding to a standard lamp, each group of the standard data including a hue value H and a corresponding displayed standard RGB value; the determining module is used for obtaining multiple groups of test RGB values displayed by the lamp to be calibrated, and determining a target correspondence between the hue value H and the RGB value according to the standard RGB value and the test RGB values; wherein, the determining module is further used for: Determine a first correspondence between the hue value H and the standard RGB values according to multiple sets of the standard RGB values; Control the lamp to be calibrated to emit light under the same conditions as the standard lamp; Obtain multiple sets of measured RGB values corresponding to the lamp to be calibrated, each set of measurement data including the hue value H and the corresponding measured RGB value; Determine a second correspondence between the hue value H and the measured RGB values according to multiple sets of the measurement data; Determine the target correspondence according to the first correspondence and the second correspondence; The determining the target correspondence according to the first correspondence and the second correspondence includes: Calculate the variance of the first correspondence and the second correspondence within the range of the hue value H; Determine the coefficient weight value of the first correspondence according to the magnitude of the variance; Update the first correspondence according to the coefficient weight value, and use the updated first correspondence as the target correspondence; A writing module, configured to save the target correspondence for writing into the drive controller of the lamp, so that the lamp to be calibrated emits light using the target correspondence.
4. A computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the computer program, the method for calibrating the color of a lamp as described in any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Lighting color calibration methods, devices and electronic equipment
CN108426186B
Dimming method and device, dimming system and storage medium
CN110996468A
Display screen color calibration method and device, electronic equipment and readable storage medium
CN111429827A