Optical compensation method, device and equipment of secondary optical structure module and chip
Through partition processing and optical measurement data analysis, the optical compensation coefficient is calculated, and the precise optical adjustment of the secondary optical structure module is achieved, which solves the problem of the optical display effect not meeting expectations and reduces costs.
Patent Information
- Application Number
- CN202411989669.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-18
AI Technical Summary
Due to the inconsistency of direct light sources and inconsistency of unit processing, the optical display effect does not meet expectations, and the regulation is difficult and costly.
By obtaining the optical measurement data of the secondary optical structure module, partitioning and processing each luminescent character, calculating the partition compensation coefficient and area compensation weight value, determining the optical compensation coefficient, and realizing separate optical adjustments for each luminescent character.
It effectively solves the problem that the optical display effect of the secondary optical structure module is not as expected, realizes the accuracy and flexibility of optical compensation, and reduces costs.
Smart Images

Figure CN119851602A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical technology, and in particular to an optical compensation method, device, equipment and chip for a secondary optical structure module. Background Art
[0002] The secondary optical structure module is a module that has a light source at the bottom as a direct light source and can be penetrated by the direct light source to emit light. A typical secondary optical structure module is a light-emitting keyboard.
[0003] Due to the inconsistency of the direct light source under the secondary optical structure module and the inconsistency of the processing of each unit in the secondary optical structure module (such as the keycaps in the illuminated keyboard), the secondary optical structure module often has the problem of not meeting the expected optical display effect. In the related art, the optical display effect is generally adjusted by selecting the light source material and limiting the wavelength or brightness range. Because the selectable wavelength or brightness range is extremely narrow, it leads to inconvenient regulation and high cost.
[0004] Therefore, it is urgent to provide a solution on how to ensure the optical display effect of the secondary optical structure module. Summary of the invention
[0005] The present application provides an optical compensation method, device, equipment and chip for a secondary optical structure module, and the technical solution is as follows.
[0006] On the one hand, an optical compensation method of a secondary optical structure module is provided, wherein the secondary optical structure module is penetrated by a direct light source to realize light emission, and the method comprises:
[0007] Acquire optical measurement data of a secondary optical structure module, wherein the secondary optical structure module includes a plurality of luminous characters, and the optical measurement data respectively corresponds to each luminous character;
[0008] Based on the distribution of direct light sources under each luminous character, each luminous character is partitioned, and based on the optical measurement data corresponding to each partition, a partition compensation coefficient corresponding to each partition in each luminous character is calculated;
[0009] Calculate the area compensation weight value of each luminous character based on the luminous area of each luminous character;
[0010] Determining the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value;
[0011] The optical compensation coefficient is used to perform optical compensation on the secondary optical structure module.
[0012] In a possible implementation, the calculating of the partition compensation coefficient corresponding to the partition in each luminous character based on the optical measurement data corresponding to each partition includes:
[0013] For any luminous character, based on the optical measurement data corresponding to the luminous character, calculate the subarea optical parameter value corresponding to each subarea in the luminous character;
[0014] Perform parameter statistics on the optical parameter values of each partition of the luminous character, and calculate the average optical parameter value of the luminous character;
[0015] The ratio of the subarea optical parameter value corresponding to each subarea to the average optical parameter value of the character is used as the subarea compensation coefficient corresponding to each subarea in the luminous character.
[0016] In a possible implementation, for any luminous character, based on the optical measurement data corresponding to the luminous character, calculating the subarea optical parameter value corresponding to each subarea in the luminous character includes:
[0017] For any luminous character, extract the target pixel point in the luminous character, wherein the target pixel point is a pixel point whose optical measurement data is greater than the selection threshold;
[0018] The optical measurement data of the target pixel points in each partition are used to calculate the partition optical parameter value corresponding to each partition.
[0019] In a possible implementation, determining the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value includes:
[0020] The ratio of the optical parameter measurement value to the character average optical parameter value of each luminous character is used as the first optical compensation intermediate value of each luminous character;
[0021] The ratio of the first optical compensation intermediate value corresponding to each luminous character to the partition compensation coefficient corresponding to each partition in the luminous character is used as the second optical compensation intermediate value corresponding to each partition in each luminous character;
[0022] The ratio of the second optical compensation intermediate value corresponding to each subarea in each luminous character to the area compensation weight value is used as the optical compensation coefficient corresponding to each subarea of each luminous character.
[0023] In a possible implementation, the optical parameter measurement value is an optical parameter value of a preset value;
[0024] or,
[0025] The optical parameter measurement value is the average of the character average optical parameter values of all the illuminated characters.
[0026] In a possible implementation, the calculating the area compensation weight value of each luminous character based on the luminous area of each luminous character includes:
[0027] For any luminous character, the ratio of the maximum luminous area to the luminous area of the luminous character is used as the area compensation weight value of the luminous character;
[0028] The maximum luminous area is the maximum value of the luminous areas corresponding to all luminous characters.
[0029] In a possible implementation, the step of obtaining optical measurement data of the secondary optical structure module includes:
[0030] The camera's framing data of the secondary optical structure module is acquired to obtain the optical measurement data.
[0031] In a possible implementation, the optical measurement data includes at least one of the following property data:
[0032] Brightness measurement data;
[0033] Colorimetric measurement data.
[0034] In another aspect, an optical compensation device of a secondary optical structure module is provided, the device comprising:
[0035] A measurement data acquisition module, used to acquire optical measurement data of a secondary optical structure module, wherein the secondary optical structure module includes a plurality of luminous characters, and the optical measurement data corresponds to each luminous character;
[0036] A partition compensation coefficient calculation module is used to partition each luminous character based on the distribution of direct light sources under each luminous character, and calculate the partition compensation coefficient corresponding to the partition in each luminous character based on the optical measurement data corresponding to each partition;
[0037] An area compensation weight value calculation module is used to calculate the area compensation weight value of each luminous character based on the luminous area of each luminous character;
[0038] An optical compensation coefficient determination module, used to determine the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value;
[0039] The optical compensation module is used to use the optical compensation coefficient to perform optical compensation on the secondary optical structure module.
[0040] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the optical compensation method of the above-mentioned secondary optical structure module.
[0041] On the other hand, a chip is provided, which includes a programmable logic circuit and / or program instructions, and when the chip is running, it is used to implement the optical compensation method of the secondary optical structure module.
[0042] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set or instruction set is stored in the computer-readable storage medium, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the optical compensation method of the above-mentioned secondary optical structure module.
[0043] In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the optical compensation method of the secondary optical structure module described above.
[0044] The technical solution provided by this application may have the following beneficial effects:
[0045] Obtain optical measurement data of a secondary optical structure module, the secondary optical structure module includes a plurality of luminous characters, and the optical measurement data respectively corresponds to each luminous character; partition each luminous character based on the distribution of direct light sources under each luminous character, and calculate the partition compensation coefficient corresponding to the partition in each luminous character based on the optical measurement data corresponding to each partition; calculate the area compensation weight value of each luminous character based on the luminous area of each luminous character; determine the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value; use the optical compensation coefficient to optically compensate the secondary optical structure module; when performing optical compensation, the secondary optical structure module can combine the optical measurement conditions of the plurality of partitions in each luminous character and the luminous area of each luminous character, and set the corresponding optical compensation coefficient for each partition in the luminous character, so as to realize individual optical adjustment of each luminous character, and effectively solve the problem that the optical display effect of the secondary optical structure module is not as good as expected while breaking through the limitations of the light source material. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0047] Figure 1 is a schematic diagram of an optical compensation system according to an exemplary embodiment.
[0048] Figure 2 The present invention is a flowchart of an optical compensation method for a secondary optical structure module according to an exemplary embodiment.
[0049] Figure 3 The present invention is a flowchart of an optical compensation method for a secondary optical structure module according to an exemplary embodiment.
[0050] Figure 4 is a schematic diagram showing optical measurement of luminous characters according to an exemplary embodiment.
[0051] Figure 5 The figure is a schematic diagram showing partitioning of luminous characters according to an exemplary embodiment.
[0052] Figure 6 It is a schematic diagram of an optical compensation process of a secondary optical structure module according to an exemplary embodiment.
[0053] Figure 7 It is a structural block diagram of an optical compensation device of a secondary optical structure module according to an exemplary embodiment.
[0054] Figure 8 is a schematic diagram of a computer device provided according to an exemplary embodiment. DETAILED DESCRIPTION
[0055] The technical solution of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than 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 are within the scope of protection of the present application.
[0056] It should be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B.
[0057] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.
[0058] In an embodiment of the present application, "predefinition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device and a network device). The present application does not limit its specific implementation method.
[0059] In an embodiment of the present application, an optical compensation method for a secondary optical structure module is provided. By measuring the secondary optical structure module, optical compensation can be performed on a partitioned basis for each luminous character in the secondary optical structure module. The luminous area of each luminous character is taken into consideration during the optical compensation, thereby ensuring the optical compensation effect of the secondary optical structure module.
[0060] Below, the technical solution provided by this application is further explained.
[0061] First, combined with reference Figure 1 , the system architecture involved in this application is introduced. In the system, it includes: a secondary optical structure module 10, a camera 20 and a computer device 30.
[0062] The secondary optical structure module 10 is a module with a light source as a direct light source at the bottom, and can be penetrated by the direct light source to emit light. A typical secondary optical structure module 10 is a light-emitting keyboard. In addition, the secondary optical structure module 10 includes but is not limited to: a monochrome keyboard backlight, a color keyboard backlight, and other modules that use a secondary optical structure to emit light.
[0063] A camera 20 is disposed on a side of the secondary optical structure module 10 that is away from the direct light source. The camera 20 can take a picture of the entire secondary optical structure module 10 to obtain optical measurement data corresponding to the secondary optical structure module 10 .
[0064] The camera 20 and the secondary optical structure module 10 respectively establish communication connections with the computer device 30. The computer device 30 can obtain the optical measurement data obtained by the camera 20, determine the optical compensation coefficient of the secondary optical structure module 10 based on the optical measurement data, and use the optical compensation coefficient to control the secondary optical structure module 10 to perform optical compensation.
[0065] Exemplarily, the system can adopt a brightness correction mode. In one setting of this mode, a preset brightness value is used as the target value. The preset target value corresponding to each luminous character can be the same or different. This target value can be a value not greater than 80% of the brightness of the uncorrected secondary optical module measurement value. With this target value, the secondary optical structure module 10 is optically compensated after optical measurement. In another setting of this mode, the average brightness value after optical measurement is used as the target value. With this target value, the secondary optical structure module 10 is optically compensated after optical measurement.
[0066] Exemplarily, the system can adopt a brightness and chromaticity correction mode. In one setting of this mode, a preset brightness value and chromaticity value are used as target values. The preset target values corresponding to each luminous character can be the same or different. This target value can be a value that is not greater than 80% of the brightness and chromaticity of the uncorrected secondary optical module measurement value. With this target value, the secondary optical structure module 10 is optically compensated after optical measurement. In another setting of this mode, the average brightness value and average chromaticity value after optical measurement are used as target values. With this target value, the secondary optical structure module 10 is optically compensated after optical measurement.
[0067] Based on this system, after performing optical compensation, the brightness and / or chromaticity of all luminous characters can be made uniform and unified, or the brightness and / or chromaticity of each luminous character can be made to reach the preset values for each luminous character.
[0068] Figure 2 is a flowchart of a method for optical compensation of a secondary optical structure module according to an exemplary embodiment. The method is applied to Figure 1 In the computer device shown. Figure 2 As shown, the optical compensation method of the secondary optical structure module may include the following steps:
[0069] Step 210: Acquire optical measurement data of the secondary optical structure module, where the secondary optical structure module includes a plurality of luminous characters, and the optical measurement data respectively correspond to each luminous character.
[0070] In an embodiment of the present application, the secondary optical structure module is penetrated by a direct light source to realize luminescence, and optical measurement data for this secondary optical structure module is obtained. Since the secondary optical structure module includes multiple luminous characters, the optical measurement data can specifically include data corresponding to each luminous character.
[0071] In a possible implementation, the step 210 includes: obtaining the camera's framing data of the secondary optical structure module to obtain optical measurement data. That is, the optical measurement data can be obtained by framing the secondary optical structure module with a camera aimed at the secondary optical structure module.
[0072] Step 220: partition each luminous character based on the distribution of direct light sources under each luminous character, and calculate the partition compensation coefficient corresponding to the partition in each luminous character based on the optical measurement data corresponding to each partition.
[0073] The partition compensation coefficient is used to describe an optical compensation related value corresponding to a partition in the luminous character. For example, for a luminous character, it includes 4 partitions: partition 1, partition 2, partition 3 and partition 4, then each partition can correspond to a partition compensation coefficient, and the partition compensation coefficient of each partition is related to the optical measurement data of the partition. For example, the size of the partition compensation coefficient is positively correlated with the size of the optical measurement data of the partition.
[0074] In the embodiment of the present application, since the distribution of the direct light source under each luminous character may be different, each luminous character is partitioned separately so that the optical display effect of the corresponding partition can be affected based on the regulation of the direct light source. After acquiring the optical measurement data, the optical measurement data is corresponded to each partition respectively, so as to calculate the partition compensation coefficient of each partition.
[0075] It is understandable that the present application does not limit the specific logic of the partitions, and the number of partitions of each luminous character may be the same as or different from the number of direct light sources distributed thereunder.
[0076] Step 230: Calculate the area compensation weight value of each luminous character based on the luminous area of each luminous character.
[0077] The area compensation weight value is an optical compensation related value determined from the perspective of the luminous area of the luminous character. Exemplarily, the size of the area compensation weight value of each luminous character is positively correlated with the size of the luminous area of the luminous character.
[0078] It is understandable that the human eye perceives a larger luminous area as brighter at the same brightness. Therefore, an area compensation weight value is set to avoid the influence of the luminous area of the luminous character on the uniformity.
[0079] Step 240: Determine the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value.
[0080] In the embodiment of the present application, after determining the partition compensation coefficient corresponding to each partition in each luminous character and the area compensation weight value of each luminous character, the optical compensation coefficient corresponding to each partition of each luminous character is calculated based on these two parameters.
[0081] Exemplarily, the size of the optical compensation coefficient is negatively correlated with the size of the partition compensation coefficient and the area compensation weight value.
[0082] Step 250: Use the optical compensation coefficient to perform optical compensation on the secondary optical structure module.
[0083] In the embodiment of the present application, after the optical compensation coefficient is determined, pulse width modulation (PWM) is used to adjust the duty cycle or adjust the resistance to perform optical compensation on the secondary optical structure module, so as to effectively solve the problem that the optical display effect is not as good as expected (such as poor uniformity).
[0084] The optical measurement data includes at least one of the following property data: brightness measurement data; chromaticity measurement data. Therefore, based on the above technical solution, optical compensation can be performed on brightness, and optical compensation can also be performed on chromaticity, thereby improving the optical display effect of brightness and / or chromaticity.
[0085] It can be understood that in the embodiments of the present application, the goal of optical compensation can be to unify the brightness and / or chromaticity of all luminous characters, or to make the brightness and / or chromaticity of each luminous character reach a preset value for each luminous character.
[0086] In summary, the optical compensation method of the secondary optical structure module provided in the present embodiment obtains optical measurement data of the secondary optical structure module, wherein the secondary optical structure module includes multiple luminous characters, and the optical measurement data corresponds to each luminous character respectively; based on the distribution of the direct light source under each luminous character, each luminous character is partitioned, and based on the optical measurement data corresponding to each partition, the partition compensation coefficient corresponding to the partition in each luminous character is calculated; based on the luminous area of each luminous character, the area compensation weight value of each luminous character is calculated; according to the partition compensation coefficient and the area compensation weight value, the optical compensation coefficient corresponding to each partition of each luminous character is determined; the secondary optical structure module is optically compensated using the optical compensation coefficient; when performing optical compensation, the secondary optical structure module can set the corresponding optical compensation coefficient for each partition in each luminous character in combination with the optical measurement conditions of the multiple partitions in each luminous character and the luminous area of each luminous character, so as to realize separate optical adjustment of each luminous character, and effectively solve the problem that the optical display effect of the secondary optical structure module is not as good as expected while breaking through the limitations of the light source material.
[0087] In an exemplary embodiment, after the partition compensation coefficient and the area compensation weight of each luminous character are calculated, the above two parameters are used as dividends in the final optical compensation coefficient operation to calculate an accurate optical compensation coefficient.
[0088] Figure 3 is a flowchart of a method for optical compensation of a secondary optical structure module according to an exemplary embodiment. The method is applied to Figure 1 In the computer device shown. Figure 3 As shown, the above steps 220 to 240 can be replaced by the following steps:
[0089] Step 310: partitioning each luminous character based on the distribution of the direct light source under each luminous character.
[0090] Exemplary, with reference to Figure 5 , an automatic partitioning method is adopted to automatically calculate the number of partitions of the luminous character based on the number of imported LED light sources (ie direct light sources) located in the luminous character. The number of partitions of the luminous character can be equal to the number of its corresponding direct light sources.
[0091] Furthermore, the number of pixels in each partition can be the total number of pixels corresponding to the luminous character / the number of partitions. In addition, the excess pixels are randomly assigned to any area in the partition. For example, if there are 3 LED light sources in a luminous character and a total number of pixels of 1000, the number of pixels in partition 1 is 333, the number of pixels in partition 2 is 333, and the number of pixels in partition 3 is 334.
[0092] Step 320: For any luminous character, based on the optical measurement data corresponding to the luminous character, calculate the subarea optical parameter value corresponding to each subarea in the luminous character.
[0093] The partition optical parameter value is a parameter value used to characterize the optical display condition of the partition.
[0094] In one possible implementation, step 320 includes: for any luminous character, extracting the target pixel points in the luminous character, the target pixel points being the pixel points whose optical measurement data are greater than the selection threshold; using the optical measurement data of the target pixel points under each partition, calculating the partition optical parameter value corresponding to each partition.
[0095] In this implementation, combined with reference Figure 4 After obtaining the optical measurement data of all pixels in the luminous character, these pixels are screened, and the pixels whose optical measurement data are greater than the selection threshold are recorded as target pixels. The target pixels can be understood as luminous pixels. The optical measurement data of the target pixels are used to calculate the partition optical parameter value corresponding to each partition.
[0096] Step 330: Perform parameter statistics on the optical parameter values of each partition of the luminous character to calculate the character average optical parameter value of the luminous character.
[0097] The character average optical parameter value is a parameter value used to characterize the optical display condition of the luminous character. It is understandable that the present application does not limit the specific method of parameter statistics. For example, the average of the optical parameter values of each partition of the luminous character can be calculated, and the average value can be used as the character average optical parameter value of the luminous character.
[0098] Exemplarily, the luminous character has two partitions: partition 1 and partition 2, and the average of the partition optical parameter values of partition 1 and partition 2 is used as the character average optical parameter value of the luminous character.
[0099] Step 340: taking the ratio of the subarea optical parameter value corresponding to each subarea to the average optical parameter value of the character as the subarea compensation coefficient corresponding to each subarea in the luminous character.
[0100] The partition compensation coefficient is used to describe an optical compensation related value corresponding to a partition in the luminous character.
[0101] Exemplarily, the luminous character has two partitions: partition 1 and partition 2. The ratio of the partition optical parameter value of partition 1 to the character average optical parameter value of this luminous character is used as the partition compensation coefficient of partition 1, and the ratio of the partition optical parameter value of partition 2 to the character average optical parameter value of this luminous character is used as the partition compensation coefficient of partition 2.
[0102] Step 350: For any luminous character, the ratio of the maximum luminous area to the luminous area of the luminous character is used as the area compensation weight value of the luminous character.
[0103] The maximum luminous area is the maximum value of the luminous areas corresponding to all luminous characters.
[0104] Step 360: taking the ratio of the optical parameter measurement value to the character average optical parameter value of each luminous character as the first optical compensation intermediate value of each luminous character.
[0105] The optical parameter measurement value is a target value for the luminous character during luminous display.
[0106] Exemplarily, for a light-emitting character, the ratio of the optical parameter measurement value to the character average optical parameter value of the light-emitting character is used as the first optical compensation intermediate value of the light-emitting character.
[0107] In a possible implementation manner, the optical parameter measurement value is an optical parameter value of a preset value; or, the optical parameter measurement value is an average value of the average optical parameter values of all luminous characters.
[0108] In this implementation, a preset optical parameter value can be used as the final target value. In this case, each illuminated character can correspond to the same or different optical parameter measurement value to perform optical compensation. Optical compensation can also be performed by taking the average of the current character average optical parameter value.
[0109] Step 370: taking the ratio of the first optical compensation intermediate value corresponding to each luminous character to the partition compensation coefficient corresponding to each partition in the luminous character as the second optical compensation intermediate value corresponding to each partition in each luminous character.
[0110] Exemplarily, for a luminous character, there are two partitions: partition 1 and partition 2. The ratio of the first optical compensation intermediate value of the luminous character to the partition compensation coefficient corresponding to partition 1 is used as the second optical compensation intermediate value corresponding to partition 1 in the luminous character, and the ratio of the first optical compensation intermediate value of the luminous character to the partition compensation coefficient corresponding to partition 2 is used as the second optical compensation intermediate value corresponding to partition 2 in the luminous character.
[0111] Step 380: taking the ratio of the second optical compensation intermediate value corresponding to each subarea in each luminous character to the area compensation weight value as the optical compensation coefficient corresponding to each subarea of each luminous character.
[0112] Exemplarily, for a luminous character, there are two partitions: partition 1 and partition 2. The ratio of the second optical compensation intermediate value corresponding to partition 1 in the luminous character to the area compensation weight value corresponding to the luminous character is used as the optical compensation coefficient corresponding to partition 1 in the luminous character, and the ratio of the second optical compensation intermediate value corresponding to partition 2 in the luminous character to the area compensation weight value corresponding to the luminous character is used as the optical compensation coefficient corresponding to partition 2 in the luminous character.
[0113] In summary, the optical compensation method of the secondary optical structure module provided in the present embodiment uses the ratio of the optical parameter measurement value to the average optical parameter value of each luminous character as the first optical compensation intermediate value of each luminous character; uses the ratio of the first optical compensation intermediate value corresponding to each luminous character to the partition compensation coefficient corresponding to each partition in this luminous character as the second optical compensation intermediate value corresponding to each partition in each luminous character; uses the ratio of the second optical compensation intermediate value corresponding to each partition in each luminous character to the area compensation weight value as the optical compensation coefficient corresponding to each partition of each luminous character; thereby, in the calculation process of the final optical compensation coefficient, the calculated partition compensation coefficient and the area compensation weight of each luminous character are used as the dividend when calculating the final optical compensation coefficient, thereby avoiding uneven display between different partitions of the luminous character and uneven display between different luminous characters during optical compensation.
[0114] Below, combined as follows Figure 6 The calculation process of the optical compensation coefficient shown in the figure is used to exemplarily illustrate the optical compensation method of the secondary optical structure module provided in the above embodiment:
[0115] Step 601: Light up the module.
[0116] The secondary optical structure module is penetrated by the direct light source to achieve luminescence.
[0117] Step 602: Camera framing.
[0118] Step 603: Frame the area to be calculated.
[0119] The frame arrangement can be done automatically or manually, and this application does not limit this. The framed area to be calculated can correspond to the luminous characters one by one.
[0120] Step 604: Obtain optical measurement data.
[0121] The camera is used to frame and obtain optical measurement data of the framed luminous characters.
[0122] Step 605: Calculate the partition compensation coefficient.
[0123] Exemplarily, there are 4 LED light sources in a light-emitting character, and the measurement is performed using 4 zones of LED light sources, and the following optical measurement data are obtained: zone 1: 100; zone 2: 130; zone 3: 150; zone 4: 170.
[0124] The average optical parameter value of the luminous character is (100+130+150+170) / 4=137.5.
[0125] The partition compensation coefficient of the brightness of partition 1 in this luminous character is: 100 / 137.5=0.727; the partition compensation coefficient of the brightness of partition 2 is: 130 / 137.5=0.945; the partition compensation coefficient of the brightness of partition 3 is: 150 / 137.5=1.09; the partition compensation coefficient of the brightness of partition 4 is: 170 / 137.5=1.23.
[0126] Step 606: Calculate the area compensation weight value.
[0127] For example, the luminous area of luminous character 1 is 100, the luminous area of luminous character 2 is 80, and the luminous area of luminous character 3 is 50, so it can be known that the largest area is luminous character 1. Therefore, the area compensation weight value of the luminous character 1 is 100 / 100=1, the area compensation weight value of luminous character 2 is 100 / 80=0.8, and the area compensation weight value of luminous character 3 is 100 / 50=0.5.
[0128] Step 607: Calculate optical compensation coefficients.
[0129] Exemplarily, the target brightness is 200 and the calculation is performed for each luminous character. Taking the luminous character with 4 partitions and the area compensation weight value of this luminous character as 0.5, the final optical compensation coefficient of the brightness of partition 1 in this luminous character is: ((200 / 137.5) / 0.727)) / 0.5=4.0; the final optical compensation coefficient of the brightness of partition 2 in this luminous character is: ((200 / 137.5) / 0.945) / 0.5=3.06; the final optical compensation coefficient of the brightness of partition 3 in this luminous character is: ((200 / 137.5) / 1.09) / 0.5=2.668; the final optical compensation coefficient of the brightness of partition 4 in this luminous character is: ((200 / 137.5) / 1.23) / 0.5=2.364.
[0130] Exemplarily, the average brightness is used to calculate each luminous character. Taking the above-mentioned luminous character with 4 partitions and the area compensation weight value of this luminous character as 0.5 as an example, the final optical compensation coefficient of the brightness of partition 1 in this luminous character is: ((226.6 / 137.5) / 0.727) / 0.5=4.532; the final optical compensation coefficient of the brightness of partition 2 in this luminous character is: ((226.6 / 137.5) / 0.945) / 0.5=3.486; the final optical compensation coefficient of the brightness of partition 3 in this luminous character is: ((226.6 / 137.5) / 1.09) / 0.5=3.022; the final optical compensation coefficient of the brightness of partition 4 in this luminous character is: ((226.6 / 137.5)) / 1.23=2.678.
[0131] Step 608: Perform optical compensation.
[0132] Optical compensation is performed using PWM to adjust duty cycle or resistor adjustment.
[0133] Step 609: Measure the difference between the measured value and the target value.
[0134] The target value is the optical parameter value after compensation expected by the optical compensation coefficient. If the measurement meets the difference standard, then jump to step 610; if the measurement does not meet the difference standard, then jump to step 604 to continue execution.
[0135] Step 610: Completed.
[0136] Figure 7 This is a structural block diagram of an optical device of a secondary optical structure module according to an exemplary embodiment. The device is applied in a computer device, and the device includes:
[0137] The measurement data acquisition module 701 is used to acquire optical measurement data of the secondary optical structure module, wherein the secondary optical structure module includes a plurality of luminous characters, and the optical measurement data corresponds to each luminous character;
[0138] The partition compensation coefficient calculation module 702 is used to partition each luminous character based on the distribution of the direct light source under each luminous character, and calculate the partition compensation coefficient corresponding to the partition in each luminous character based on the optical measurement data corresponding to each partition;
[0139] The area compensation weight value calculation module 703 is used to calculate the area compensation weight value of each luminous character based on the luminous area of each luminous character;
[0140] An optical compensation coefficient determination module 704, configured to determine the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value;
[0141] The optical compensation module 705 is used to perform optical compensation on the secondary optical structure module using the optical compensation coefficient.
[0142] In a possible implementation, the partition compensation coefficient calculation module 702 is used to:
[0143] For any luminous character, based on the optical measurement data corresponding to the luminous character, calculate the subarea optical parameter value corresponding to each subarea in the luminous character;
[0144] Perform parameter statistics on the optical parameter values of each partition of the luminous character, and calculate the average optical parameter value of the luminous character;
[0145] The ratio of the subarea optical parameter value corresponding to each subarea to the average optical parameter value of the character is used as the subarea compensation coefficient corresponding to each subarea in the luminous character.
[0146] In a possible implementation, the partition compensation coefficient calculation module 702 is used to:
[0147] For any luminous character, extract the target pixel point in the luminous character, wherein the target pixel point is a pixel point whose optical measurement data is greater than the selection threshold;
[0148] The optical measurement data of the target pixel points in each partition are used to calculate the partition optical parameter value corresponding to each partition.
[0149] In a possible implementation manner, the optical compensation coefficient determination module 704 is configured to:
[0150] The ratio of the optical parameter measurement value to the character average optical parameter value of each luminous character is used as the first optical compensation intermediate value of each luminous character;
[0151] The ratio of the first optical compensation intermediate value corresponding to each luminous character to the partition compensation coefficient corresponding to each partition in the luminous character is used as the second optical compensation intermediate value corresponding to each partition in each luminous character;
[0152] The ratio of the second optical compensation intermediate value corresponding to each subarea in each luminous character to the area compensation weight value is used as the optical compensation coefficient corresponding to each subarea of each luminous character.
[0153] In a possible implementation, the optical parameter measurement value is an optical parameter value of a preset value;
[0154] or,
[0155] The optical parameter measurement value is the average of the character average optical parameter values of all the illuminated characters.
[0156] In a possible implementation, the area compensation weight value calculation module 703 is used to:
[0157] For any luminous character, the ratio of the luminous area of the luminous character to the maximum luminous area is used as the area compensation weight value of the luminous character;
[0158] The maximum luminous area is the maximum value of the luminous areas corresponding to all luminous characters.
[0159] In a possible implementation, the measurement data acquisition module 701 is used to:
[0160] The camera's framing data of the secondary optical structure module is acquired to obtain the optical measurement data.
[0161] In a possible implementation, the optical measurement data includes at least one of the following property data:
[0162] Brightness measurement data;
[0163] Colorimetric measurement data.
[0164] It should be noted that the optical compensation device of the secondary optical structure module provided in the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0165] See also Figure 8 , which shows a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application, the computer device includes: a processor 101, a receiver 102, a transmitter 103, a memory 104 and a bus 105.
[0166] The processor 101 includes one or more processing cores. The processor 101 executes various functional applications and information processing by running software programs and modules.
[0167] The receiver 102 and the transmitter 103 may be implemented as a communication component, which may be a communication chip, denoted as a transceiver.
[0168] The memory 104 is connected to the processor 101 via a bus 105 .
[0169] The memory 104 may be used to store at least one instruction, and the processor 101 may be used to execute the at least one instruction to implement each step in the above method embodiment.
[0170] In addition, the memory 104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage device includes but is not limited to: a magnetic disk or an optical disk, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a static random access memory (SRAM), a read-only memory (ROM), a magnetic memory, a flash memory, and a programmable read-only memory (PROM).
[0171] The processor and transceiver in the computer device involved in the embodiment of the present application can execute the above Figures 2 to 3 In any of the methods shown, the steps performed by the computer device are not repeated here.
[0172] In an exemplary embodiment, a chip is also provided, the chip including a programmable logic circuit and / or program instructions, and when the chip is running, it is used to implement the optical compensation method of the secondary optical structure module. Further, the chip can be set on a mainboard, or distributed and packaged in optical devices such as LEDs.
[0173] In an exemplary embodiment, a computer-readable storage medium is also provided, which is used to store at least one computer program, and the at least one computer program is loaded and executed by a processor to implement all or part of the steps in the above method. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0174] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0175] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An optical compensation method for a secondary optical structure module, characterized in that: The secondary optical structure module is penetrated by a direct light source to realize light emission, and the method comprises: Acquire optical measurement data of a secondary optical structure module, wherein the secondary optical structure module includes a plurality of luminous characters, and the optical measurement data respectively corresponds to each luminous character; Based on the distribution of direct light sources under each luminous character, each luminous character is partitioned, and based on the optical measurement data corresponding to each partition, a partition compensation coefficient corresponding to each partition in each luminous character is calculated; Calculate the area compensation weight value of each luminous character based on the luminous area of each luminous character; Determining the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value; The optical compensation coefficient is used to perform optical compensation on the secondary optical structure module.
2. The method according to claim 1, characterized in that The step of calculating the partition compensation coefficient corresponding to the partition in each luminous character based on the optical measurement data corresponding to each partition includes: For any luminous character, based on the optical measurement data corresponding to the luminous character, calculate the subarea optical parameter value corresponding to each subarea in the luminous character; Perform parameter statistics on the optical parameter values of each partition of the luminous character, and calculate the average optical parameter value of the luminous character; The ratio of the subarea optical parameter value corresponding to each subarea to the average optical parameter value of the character is used as the subarea compensation coefficient corresponding to each subarea in the luminous character.
3. The method according to claim 2, characterized in that The step of calculating the subarea optical parameter value corresponding to each subarea in any luminous character based on the optical measurement data corresponding to the luminous character comprises: For any luminous character, extract the target pixel point in the luminous character, wherein the target pixel point is a pixel point whose optical measurement data is greater than the selection threshold; The optical measurement data of the target pixel points in each partition are used to calculate the partition optical parameter value corresponding to each partition.
4. The method according to claim 2, characterized in that: The step of determining the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value includes: The ratio of the optical parameter measurement value to the character average optical parameter value of each luminous character is used as the first optical compensation intermediate value of each luminous character; The ratio of the first optical compensation intermediate value corresponding to each luminous character to the partition compensation coefficient corresponding to each partition in the luminous character is used as the second optical compensation intermediate value corresponding to each partition in each luminous character; The ratio of the second optical compensation intermediate value corresponding to each subarea in each luminous character to the area compensation weight value is used as the optical compensation coefficient corresponding to each subarea of each luminous character.
5. The method according to claim 4, characterized in that The optical parameter measurement value is an optical parameter value of a preset value; or, The optical parameter measurement value is the average of the character average optical parameter values of all the illuminated characters.
6. The method according to claim 1, characterized in that The calculating the area compensation weight value of each luminous character based on the luminous area of each luminous character comprises: For any luminous character, the ratio of the maximum luminous area to the luminous area of the luminous character is used as the area compensation weight value of the luminous character; The maximum luminous area is the maximum value of the luminous areas corresponding to all luminous characters.
7. The method according to claim 1, characterized in that The step of obtaining optical measurement data of the secondary optical structure module includes: The camera's framing data of the secondary optical structure module is acquired to obtain the optical measurement data.
8. The method according to claim 1, characterized in that The optical measurement data includes at least one of the following property data: Brightness measurement data; Colorimetric measurement data.
9. An optical compensation device of a secondary optical structure module, characterized in that: The device comprises: A measurement data acquisition module, used to acquire optical measurement data of a secondary optical structure module, wherein the secondary optical structure module includes a plurality of luminous characters, and the optical measurement data corresponds to each luminous character; A partition compensation coefficient calculation module is used to partition each luminous character based on the distribution of direct light sources under each luminous character, and calculate the partition compensation coefficient corresponding to the partition in each luminous character based on the optical measurement data corresponding to each partition; An area compensation weight value calculation module, used to calculate the area compensation weight value of each luminous character based on the luminous area of each luminous character; An optical compensation coefficient determination module, used to determine the optical compensation coefficient corresponding to each partition of each luminous character according to the partition compensation coefficient and the area compensation weight value; The optical compensation module is used to use the optical compensation coefficient to perform optical compensation on the secondary optical structure module.
10. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the optical compensation method of the secondary optical structure module as described in any one of claims 1 to 8.
11. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions, and when the chip is running, it is used to implement the optical compensation method of the secondary optical structure module as described in any one of claims 1 to 8.