Method and device for adjusting light effect of headphone indicator light, headphone device, and storage medium
Through the dimming method based on color coordinates, multiple conversions are performed based on the preset white light reference value and the full current color coordinate value to determine the three-channel duty cycle, solving the problem of color difference deviation of the headphone indicator light in the prior art, and achieving high-precision color adjustment.
Patent Information
- Application Number
- CN202210753688.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-06-29
AI Technical Summary
The dimming method in the prior art cannot meet the product testing requirements of high color difference, resulting in a lot of color difference between the color difference of the headphone indicator light and the target color.
Through the dimming method based on color coordinates, the standard real three primary color value is determined based on the preset standard white light reference value, the expected real three primary color value is set, the expected color coordinate value is determined, and the headphone indicator light is adjusted based on the three-channel duty cycle, and the full current color coordinate value is updated in combination with the previously measured full current color coordinate value.
The color difference of the headphone indicator light is basically close to the ideal color difference, meeting the customer's indicator requirements for the color difference of the indicator light.
Smart Images

Figure CN115066054B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of headphone technology, and in particular to a method and device for adjusting the light effect of a headphone indicator light, a headphone device, and a computer-readable storage medium. Background Art
[0002] With the continuous development of science and technology and the increasingly colorful human living environment, people's demand for lighting and lighting colors is increasing. To meet people's diverse needs, three-primary-color LED (light-emitting diode) lamps and their dimming and color adjustment technologies are constantly developing. Common colored lights are achieved by driving three-primary-color LED lamps. By controlling the output of three PWM (pulse width modulation), the three colors R (red), G (green), and B (blue) are mixed in different proportions and intensities to produce a variety of colors.
[0003] The traditional dimming method is very simple. Since the R, G, and B values of the three primary colors all range from 0 to 255, ignoring the adjustment accuracy, the three PWM cycle values are all set to 256, and the PWM start value is set to 0. Then the PWM end value can take the range of 0-255 for the three primary colors, thus achieving a one-to-one correspondence. However, this implementation method ignores the current differences between the R, G, and B lamps in the three primary colors of the LED. In fact, the current differences between the R, G, and B lamps in the three primary colors of the LED are quite large. Therefore, the light color obtained by dimming using this method is significantly different from the target color. Although it is difficult to distinguish with the naked eye, when measured with an instrument (such as an integrating sphere), the light color will be significantly different from the target color.
[0004] In summary, the dimming method in the prior art can only be applied to products with low requirements for color difference. When the requirements for the color difference index of the product are very high, the above dimming method cannot meet the testing requirements of the product. Summary of the Invention
[0005] The main purpose of the present invention is to provide a method, device, headphone device and computer-readable storage medium for adjusting the light effect of headphone indicator lights, aiming to improve the dimming method of LED lights and ensure that the color difference of the LED lights is basically close to the ideal color difference, so as to meet the customer's requirements for the color difference of indicator lights.
[0006] To achieve the above-mentioned object, the present invention provides a method for adjusting the light effect of an earphone indicator light. The method for adjusting the light effect of an earphone indicator light is applied to an earphone device equipped with an internal ultrasonic speaker. The method comprises:
[0007] Determine the standard true three primary color values according to the preset standard white light reference value;
[0008] Setting expected true three primary color values according to the standard true three primary color values;
[0009] Determining expected color coordinate values according to the expected true three primary color values;
[0010] Determining a three-channel duty cycle according to the desired color coordinate value and the preset full-current color coordinate value;
[0011] The light effect of the headphone indicator light is adjusted based on the three-channel duty cycle.
[0012] Optionally, the preset standard white light reference value includes a given luminous flux value and a preset standard color coordinate value;
[0013] Before the step of determining the standard true three primary color values according to the preset standard white light reference values, the method for adjusting the light effect of the headphone indicator light further includes:
[0014] When the given luminous flux value is received, a preset standard white light reference value is generated according to the given luminous flux value and a preset standard color coordinate value.
[0015] Optionally, the step of determining the standard true three primary color values according to the preset standard white light reference value includes:
[0016] Perform color coordinate conversion on the preset standard white light reference value to obtain the standard ideal three primary color values;
[0017] The standard ideal three primary color values are converted into color coordinates to obtain standard real three primary color values.
[0018] Optionally, the step of determining expected color coordinate values according to the expected true three primary color values includes:
[0019] Performing color coordinate conversion on the expected real three primary color values to obtain expected ideal three primary color values;
[0020] Performing color coordinate conversion on the desired ideal three primary color values to obtain desired color coordinate values.
[0021] Optionally, before the step of determining the duty cycle of the three channels according to the expected color coordinate value and the preset full-current color coordinate value, the method for adjusting the light effect of the headphone indicator light further includes:
[0022] Measuring the brightness, hue and chromaticity of the three-color light source of the headphone indicator light when operating at full current;
[0023] A preset full-current color coordinate value is generated according to the brightness, hue, and chromaticity.
[0024] Optionally, the step of determining the duty cycle of the three channels according to the expected color coordinate value and the preset full-current color coordinate value includes:
[0025] The desired color coordinate value and the preset full-current color coordinate value are substituted into a preset three-channel duty cycle calculation formula to calculate the three-channel duty cycle.
[0026] Optionally, before the step of substituting the desired color coordinate value and the preset full-current color coordinate value into a preset three-channel duty cycle calculation formula for calculation, the method for adjusting the light effect of the headphone indicator light further includes:
[0027] The first relationship is determined based on the direct proportional relationship between luminous flux and duty cycle and Grassmann's color mixing law;
[0028] Determine the second relationship based on the conversion relationship between the additive color mixing principle and the color coordinates;
[0029] The first relational expression and the second relational expression are combined to obtain a preset three-channel duty cycle calculation formula.
[0030] To achieve the above-mentioned object, the present invention further provides a light effect adjustment device for an earphone indicator light, the light effect adjustment device for an earphone indicator light comprising:
[0031] A conversion module, configured to determine standard true three primary color values according to a preset standard white light reference value;
[0032] a setting module, configured to set expected true three primary color values according to the standard true three primary color values;
[0033] The conversion module is further configured to determine expected color coordinate values according to the expected true three primary color values;
[0034] The conversion module is further configured to determine a three-channel duty cycle based on the desired color coordinate value and the preset full-current color coordinate value;
[0035] An adjustment module is used to adjust the light effect of the headphone indicator light based on the three-channel duty cycle.
[0036] Each functional module of the light effect adjustment device for the headphone indicator light of the present invention implements the steps of the light effect adjustment method for the headphone indicator light described above during operation.
[0037] To achieve the above-mentioned objectives, the present invention also provides an earphone device, comprising: a memory, a processor, and a light effect adjustment program for an earphone indicator light stored in the memory and executable on the processor, wherein the light effect adjustment program for the earphone indicator light, when executed by the processor, implements the steps of the light effect adjustment method for the earphone indicator light as described above.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a light effect adjustment program for the headphone indicator light is stored. When the light effect adjustment program for the headphone indicator light is executed by a processor, the steps of the light effect adjustment method for the headphone indicator light as described above are implemented.
[0039] The present invention provides a method, apparatus, headphone device, and computer-readable storage medium for adjusting the light effect of a headphone indicator light. In the headphone indicator light effect adjustment method, a standard true three primary color value is first determined based on a preset standard white light reference value. Next, desired true three primary color values are set based on the standard true three primary color values. Desired color coordinate values are then determined based on the desired true three primary color values. Finally, a three-channel duty cycle is determined based on the desired color coordinate values and a preset full-current color coordinate value. Finally, the headphone indicator light effect is adjusted based on the three-channel duty cycle. Because the preset standard white light reference value is provided by a customer who sets a color difference index, the three-channel duty cycle, obtained through a series of conversions and calculations based on the set standard white light reference value, is used as the three-channel duty cycle of the headphone indicator light. This ensures that the color difference of the three colors of light output by the headphone indicator light is substantially close to the ideal color difference, thereby meeting the customer's color difference index requirements for the indicator light.
[0040] Compared to traditional simple dimming methods, this invention uses color coordinates for dimming. It performs multiple color coordinate conversions based on a customer-specified standard white light value, and updates and outputs the duty cycle of the headphone indicator light in conjunction with pre-measured full-current color coordinate values. This overcomes the technical problem that existing dimming methods are only suitable for products with low color difference requirements, and cannot meet the testing requirements of products with high color difference requirements. This invention improves the dimming method of the headphone indicator light, ensuring that the color difference of the headphone indicator light is close to the ideal color difference, meeting customer requirements for indicator light color difference. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of an embodiment of a method for adjusting the light effect of an earphone indicator light according to the present invention;
[0042] Figure 2 The CIE1931xy chromaticity diagram in an embodiment of the light effect adjustment method for the headphone indicator light of the present invention;
[0043] Figure 3 Schematic diagram of the functional modules of a preferred embodiment of the light effect adjustment device for the headphone indicator light of the present invention.
[0044] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0046] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of a method for adjusting the light effect of an earphone indicator light according to the present invention.
[0047] An embodiment of the present invention provides an embodiment of a method for adjusting the light effect of an earphone indicator light. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown here.
[0048] In this embodiment, the light effect adjustment method of the headphone indicator light provided by the present invention can be specifically applied to a headphone device including an indicator light. The light effect adjustment method of the headphone indicator light of the present invention includes:
[0049] Step S10: determining the standard true three primary color values according to the preset standard white light reference value;
[0050] In this embodiment, the headphone indicator light included in the headphone device can specifically be an LED light. The preset standard white light reference value is a white light value set by the customer, which may not be white light in the true sense. However, the purpose of this embodiment is to make the dimming and color adjustment effects of the LED light meet the needs of the customer. Therefore, the definition of white light will also be based on the standard value set by the customer. This embodiment involves three color coordinate systems, namely RGB (corresponding to the real three primary color values) color system, XYZ (corresponding to the ideal three primary color values) color system and CIExyY chromaticity diagram (Yxy color system, corresponding to the color coordinate value). The three color systems can be converted under certain conditions.
[0051] It should be noted that the RGB primary colors can be used to synthesize all colors, including monochromatic light. The brightness of the three primary colors varies when different colors are matched. The color equation C = R(R) + G(G) + B(B), where (R), (G), and (B) represent the unit quantities of the red, green, and blue primary colors that produce the mixed color, and R, G, and B represent the quantities of red, green, and blue required to match the color being matched. These are called tristimulus values. Using the tristimulus values, the coordinates of monochromatic light of equal energy in the RGB three-dimensional space are calculated to produce the CIE 1931 xy chromaticity diagram. The CIE (International Commission on Illumination, the French abbreviation) established a new colorimetric system based on the RGB color system, using three imaginary primary colors, XYZ. This system matches the tristimulus values of equal energy spectra and is named the CIE 1931 Standard Chromaticity Observer Spectrum Tristimulus Values, or simply the XYZ color system. After the XYZ color system is transformed, the chromaticity coordinates are all positive. The XY coordinates are normalized to obtain the xy chromaticity coordinates, also known as the CIExyY chromaticity diagram, where the Y axis represents brightness. The establishment of the CIExyY chromaticity diagram creates the conditions for quantitative analysis of color.
[0052] Based on this, in this embodiment and some feasible embodiments described below, the preset standard white light reference value includes a given luminous flux value and a preset standard color coordinate value. Before the above-mentioned step S10, the light effect adjustment method of the headphone indicator light of the present invention may further include:
[0053] Step S01: when the given luminous flux value is received, a preset standard white light reference value is generated according to the given luminous flux value and a preset standard color coordinate value.
[0054] In this embodiment, a given luminous flux value, i.e., the Y value in the Yxy color system, is used as an input parameter and combined with a preset standard color coordinate value, i.e., (x, y), to form a preset standard white light reference value, which serves as the initial reference value for the subsequent calculation process.
[0055] Based on this, in some feasible embodiments, the above step S10 may include:
[0056] Step S101: performing color coordinate conversion on a preset standard white light reference value to obtain standard ideal three primary color values;
[0057] Step S102: performing color coordinate conversion on the standard ideal three primary color values to obtain standard real three primary color values.
[0058] In this embodiment, the xy values of standard white light are provided as a reference, while the maximum luminous flux value (i.e., the Y value) is input as a parameter. The algorithm calculates a set of standard reference values for R, G, and B based on the Yxy values of this set of standard white light. This set of standard reference values is used in subsequent calculations. First, the preset standard white light reference values are converted to the standard ideal three primary colors in the XYZ color system using the following conversion formulas: X = x*(Y / y), Y = Y, and Z = (1-xy)*(Y / y). Then, based on the XYZ to standard RGB conversion formula commonly used in the color field, the standard ideal three primary colors in the XYZ color system are converted to the standard true three primary colors in the RGB color system. It is understood that since this embodiment uses the customer-provided preset values as the standard white light reference, the standard RGB values converted based on these standard white light values also meet customer requirements.
[0059] Step S20: setting expected true three primary color values according to the standard true three primary color values;
[0060] In this embodiment, the color that the customer requires to be displayed on the headphone indicator light is first set according to the standard RGB value obtained in the above step S10. Assuming that the customer wants to display the color with the RGB value (Rx, Gx, Bx) on the RGB three-color LED light, then (Rx, Gx, Bx) is the expected real three primary color values.
[0061] Step S30: determining expected color coordinate values according to the expected true three primary color values;
[0062] In this embodiment, the RGB values required by the customer to display the headphone indicator light must first be converted into the desired Yxy values through a series of color coordinate conversions, i.e., RGB value → XYZ value → Yxy value. This involves two conversion processes, so two interfaces need to be called in sequence to complete the conversion.
[0063] Furthermore, in some feasible embodiments, step S30 may specifically include:
[0064] Step S301: performing color coordinate conversion on the expected real three primary color values to obtain expected ideal three primary color values;
[0065] Step S302: performing color coordinate conversion on the desired ideal three primary color values to obtain desired color coordinate values.
[0066] It should be understood that in this embodiment, based on the standard RGB to XYZ conversion formula commonly used in the color field in the prior art, the expected real three primary color values under the RGB color system can be converted into the expected ideal three primary color values under the XYZ color system, and then the expected color coordinate values under the Yxy color system can be obtained through the following conversion formula Y=Y, x=X / (X+Y+Z), y=Y / (X+Y+Z).
[0067] Step S40: determining the duty cycle of the three channels according to the desired color coordinate value and the preset full current color coordinate value;
[0068] Furthermore, in some feasible embodiments, step S40 may specifically include:
[0069] Step S401: Substituting the desired color coordinate value and the preset full-current color coordinate value into a preset three-channel duty cycle calculation formula to calculate the three-channel duty cycle.
[0070] In this embodiment, the converted desired color coordinate values and the pre-measured full current Y, x, y values of the three-color power sources R, G, and B are substituted into the preset three-channel duty cycle calculation formula to obtain the three-channel PWM duty cycle currently required to be output.
[0071] Furthermore, in some feasible embodiments, before step S401, the light effect adjustment method of the headphone indicator light of the present invention may further include:
[0072] Step A: measuring the brightness, hue and chromaticity of the three-color light source of the headphone indicator light under full current working state;
[0073] Step B: generating a preset full-current color coordinate value according to the brightness, hue, and chromaticity.
[0074] In this embodiment, an integrating sphere or other measuring instrument is first used to measure the Y (i.e., brightness), x (hue), and y (chromaticity) values of the R, G, and B light sources at full current. (The measured values may vary for three-color lamps of different specifications, production batches, and manufacturers.) Assume that the measured data are (Yr, xr, yr), (Yg, xg, yg), and (Yb, xb, yb), respectively, which are the preset full-current color coordinate values. The sum of Yr, Yg, and Yb is greater than the given luminous flux value.
[0075] Furthermore, in some feasible embodiments, before the step of substituting the desired color coordinate value and the preset full-current color coordinate value into a preset three-channel duty cycle calculation formula for calculation in step S401, the light effect adjustment method of the headphone indicator light of the present invention may further include:
[0076] Step C: Determine a first relationship based on the proportional relationship between luminous flux and duty cycle and Grassmann's color mixing law;
[0077] Step D: Determine a second relationship based on the additive color mixing principle and the conversion relationship between color coordinates;
[0078] Step E: Combine the first relational expression and the second relational expression to obtain a preset three-channel duty cycle calculation formula.
[0079] It should be noted that according to the principle of colorimetry, the third color produced by adding two colors is always on the straight line connecting the two colors, such as Figure 2 As shown, Figure 2 is the CIE1931xy chromaticity diagram that can be referred to in this embodiment, Figure 2 In the diagram, R, G, and B represent the positions of red light, green light, and blue light on the CIEx-y chromaticity diagram, respectively. Red light and blue light can be mixed to obtain an intermediate color P. The specific position of P on the line connecting R and B is determined by the mixing ratio of R and B. Similarly, the target color M can be mixed with green light using the intermediate color P. Its corresponding luminous flux is the desired luminous flux Ym. Therefore, all the colors contained in the triangle RGB can be achieved by controlling the different proportions of R, G, and B. When the duty cycle of the three-channel PWM driving RGB changes linearly by multiples, it will be found that its chromaticity coordinates basically do not change, while the luminous flux changes linearly accordingly and the ratio of the luminous flux is equal to the ratio of the duty cycle. Therefore, in order to facilitate discussion of the problem in engineering, it is approximately considered that the luminous flux and the duty cycle are in a directly proportional functional relationship. Combined with Grassmann's color mixing law, the following first relationship is obtained:
[0080] Ym=DrYr+DgYg+DbYb;
[0081] According to the additive color mixing principle and CIE chromaticity calculation method, when the duty cycles are Dr, Dg, and Db respectively, the chromaticity coordinates of the mixed light sources R, G, and B satisfy the following second relationship:
[0082]
[0083] In the above formula, Xm, Ym, and Zm are the tristimulus values of the mixed light source M; Yr, Yg, and Yb are the Y stimulus values of the light sources R, G, and B operating at full current; Cr = Yr / yr, Cg = Yg / yg, and Cb = Yb / yb are the sums of the tristimulus values of the light sources R, G, and B operating at full current. In the CIE-1931 standard colorimetry system, the stimulus value Y is equal to the luminous flux. Under PWM dimming, the duty cycle is the only factor controlling the chromaticity coordinates. Since the desired luminous flux is Ym and the desired chromaticity coordinates are (x, y), the PWM duty cycle is considered an unknown. The duty cycles of the three channels can be calculated by combining the first and second equations above to obtain the preset three-channel duty cycle calculation formula shown below:
[0084]
[0085]
[0086]
[0087] Since (Yr, xr, yr), (Yg, xg, yg), and (Yb, xb, yb) are known parameters measured as the preset full current coordinate values through steps S10-S40, and (Ym, x, y) is the desired color coordinate value obtained through color coordinate conversion, the three-channel duty cycles Dr, Dg, and Db can be calculated by substituting the above parameter values into the above preset three-channel duty cycle calculation formula.
[0088] Step S50: adjusting the light effect of the headphone indicator light based on the three-channel duty cycle.
[0089] In this embodiment, since the three-channel duty cycle is obtained by substituting the customer-provided white light reference value and the set target light color value into the duty cycle calculation formula, it is only necessary to substitute the above-calculated PWM duty cycle into the corresponding duty cycle storage location of the headphone indicator light, update it accordingly, and output it. Finally, after the three-color LED light is calibrated through the above steps, the color difference error generated by the final displayed color can be basically ignored.
[0090] This embodiment provides a method for adjusting the light effect of a headphone indicator light. The method first determines a standard true three primary color value based on a preset standard white light reference value. Then, desired true three primary color values are set based on the standard true three primary color values. Expected color coordinate values are determined based on the expected true three primary color values. Finally, a three-channel duty cycle is determined based on the desired color coordinate values and a preset full-current color coordinate value. Finally, the light effect of the headphone indicator light is adjusted based on the three-channel duty cycle. Because the preset standard white light reference value is provided by the customer who sets the color difference index, the three-channel duty cycle, obtained through a series of conversions and calculations based on the set standard white light reference value, is used as the three-channel duty cycle of the headphone indicator light. This ensures that the color difference of the three colors of light output by the headphone indicator light is substantially close to the ideal color difference, thereby meeting the customer's color difference index requirements for the indicator light.
[0091] Compared to traditional simple dimming methods, this embodiment performs multiple color coordinate conversions based on a customer-specified standard white light value, and combines this with pre-measured full-current color coordinate values to update and output the duty cycle of the headphone indicator light. This overcomes the technical problem that existing dimming methods are only suitable for products with low color difference requirements, and cannot meet the testing requirements of products with high color difference requirements. This embodiment improves the dimming method of the headphone indicator light, ensuring that the color difference of the headphone indicator light is close to the ideal color difference, meeting the customer's color difference requirements.
[0092] In addition, the embodiment of the present invention also provides a light effect adjustment device for an earphone indicator light, please refer to Figure 2 The light effect adjustment device of the headphone indicator light of the present invention comprises:
[0093] A conversion module, configured to determine standard true three primary color values according to a preset standard white light reference value;
[0094] a setting module, configured to set expected true three primary color values according to the standard true three primary color values;
[0095] The conversion module is further configured to determine expected color coordinate values according to the expected true three primary color values;
[0096] The conversion module is further configured to determine a three-channel duty cycle based on the desired color coordinate value and the preset full-current color coordinate value;
[0097] An adjustment module is used to adjust the light effect of the headphone indicator light based on the three-channel duty cycle.
[0098] Optionally, the preset standard white light reference value includes a given luminous flux value and a preset standard color coordinate value, and the light effect adjustment device for the headphone indicator light of the present invention further includes:
[0099] A generating module is configured to generate a preset standard white light reference value according to the given luminous flux value and a preset standard color coordinate value when the given luminous flux value is received.
[0100] Optionally, the conversion module includes:
[0101] A color coordinate submodule, which is used to perform color coordinate conversion on a preset standard white light reference value to obtain standard ideal three primary color values;
[0102] The color coordinate submodule is used to perform color coordinate conversion on the standard ideal three primary color values to obtain standard real three primary color values.
[0103] Optionally, the color coordinate submodule is further configured to perform color coordinate conversion on the expected real three primary color values to obtain expected ideal three primary color values;
[0104] The color coordinate submodule is further configured to perform color coordinate conversion on the desired ideal three primary color values to obtain desired color coordinate values.
[0105] Optionally, the color coordinate submodule includes:
[0106] A full current value measurement subunit, the full current value measurement subunit is used to measure the brightness, hue and chromaticity of the three-color light source of the headphone indicator light in a full current working state;
[0107] A full current coordinate value generating subunit is configured to generate a preset full current color coordinate value according to the brightness, hue, and chromaticity.
[0108] Optionally, the conversion module further includes:
[0109] The calculation submodule is used to substitute the expected color coordinate value and the preset full-current color coordinate value into a preset three-channel duty cycle calculation formula to perform calculation to obtain the three-channel duty cycle.
[0110] Optionally, the light effect adjustment device for the headphone indicator light of the present invention further includes:
[0111] An algorithm module, configured to determine a first relationship based on a proportional relationship between luminous flux and duty cycle and Grassmann's color mixing law;
[0112] The algorithm module is further configured to determine a second relationship based on the additive color mixing principle and the conversion relationship between color coordinates;
[0113] The algorithm module is further configured to combine the first relational expression and the second relational expression to obtain a preset three-channel duty cycle calculation formula.
[0114] The expanded content of the specific implementation of the light effect adjustment device of the headphone indicator light of the present invention is basically the same as the embodiments of the light effect adjustment method of the headphone indicator light mentioned above, and will not be repeated here.
[0115] In addition, an embodiment of the present invention further provides an earphone device, which includes a structural housing, a communication module, a main control module (e.g., a microcontroller unit (MCU)), an LED indicator light, and a memory. The main control module may include a microprocessor, an audio decoding unit, a power supply and power management unit, sensors required by the system, and other active or passive components (which may be replaced, deleted, or added based on actual functionality) to implement wireless audio reception and playback.
[0116] The memory of the headphone device of the present invention may store a light effect adjustment program for the headphone indicator light. The light effect adjustment program for the headphone indicator light may be called by a microprocessor in the headphone device and perform the following operations:
[0117] Determine the standard true three primary color values according to the preset standard white light reference value;
[0118] Setting expected true three primary color values according to the standard true three primary color values;
[0119] Determining expected color coordinate values according to the expected true three primary color values;
[0120] Determining a three-channel duty cycle according to the desired color coordinate value and the preset full-current color coordinate value;
[0121] The light effect of the headphone indicator light is adjusted based on the three-channel duty cycle.
[0122] Optionally, the preset standard white light reference value includes a given luminous flux value and a preset standard color coordinate value. The light effect adjustment program of the headphone indicator light can be called by a microprocessor in the headphone device to further perform the following operations:
[0123] When the given luminous flux value is received, a preset standard white light reference value is generated according to the given luminous flux value and a preset standard color coordinate value.
[0124] Optionally, the light effect adjustment program of the headphone indicator light can be called by a microprocessor in the headphone device to further perform the following operations:
[0125] Perform color coordinate conversion on the preset standard white light reference value to obtain the standard ideal three primary color values;
[0126] The standard ideal three primary color values are converted into color coordinates to obtain standard real three primary color values.
[0127] Optionally, the light effect adjustment program of the headphone indicator light can be called by a microprocessor in the headphone device to further perform the following operations:
[0128] Performing color coordinate conversion on the expected real three primary color values to obtain expected ideal three primary color values;
[0129] Performing color coordinate conversion on the desired ideal three primary color values to obtain desired color coordinate values.
[0130] Optionally, the light effect adjustment program of the headphone indicator light can be called by a microprocessor in the headphone device to further perform the following operations:
[0131] Measuring the brightness, hue and chromaticity of the three-color light source of the headphone indicator light when operating at full current;
[0132] A preset full-current color coordinate value is generated according to the brightness, hue, and chromaticity.
[0133] Optionally, the light effect adjustment program of the headphone indicator light can be called by a microprocessor in the headphone device to further perform the following operations:
[0134] The desired color coordinate value and the preset full-current color coordinate value are substituted into a preset three-channel duty cycle calculation formula to calculate the three-channel duty cycle.
[0135] Optionally, the light effect adjustment program of the headphone indicator light can be called by a microprocessor in the headphone device to further perform the following operations:
[0136] The first relationship is determined based on the direct proportional relationship between luminous flux and duty cycle and Grassmann's color mixing law;
[0137] Determine the second relationship based on the conversion relationship between the additive color mixing principle and the color coordinates;
[0138] The first relational expression and the second relational expression are combined to obtain a preset three-channel duty cycle calculation formula.
[0139] In addition, the present invention also proposes a computer-readable storage medium, which stores a light effect adjustment program for the headphone indicator light. When the light effect adjustment program for the headphone indicator light is executed by a processor, the steps of the light effect adjustment method for the headphone indicator light of the present invention as described above are implemented.
[0140] The various embodiments of the headphone device and the computer-readable storage medium of the present invention may refer to the various embodiments of the method for adjusting the light effect of the headphone indicator light of the present invention, and will not be repeated here.
[0141] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0142] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0143] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course, by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal device (which can be a headset device, mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0144] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for adjusting the light effect of a headphone indicator light, characterized in that: The method for adjusting the light effect of the headphone indicator light includes: According to the preset standard white light reference value, the standard true three primary color values are determined through two color coordinate conversions, including: Converting the standard white light reference value from the CIE xyY chromaticity diagram to the standard ideal three primary color values of the XYZ color system; Converting the standard ideal three primary color values from the XYZ color system to the standard real three primary color values of the RGB color system; Setting expected true three primary color values according to the standard true three primary color values; Converting the desired true three primary color values into desired color coordinate values through two color coordinate conversions; Measuring the brightness, hue, and chromaticity of the three-color light source of the headphone indicator light in a full-current operating state, and generating a preset full-current color coordinate value based on the brightness, hue, and chromaticity; Determining a three-channel duty cycle according to the desired color coordinate value and the preset full-current color coordinate value; The light effect of the headphone indicator light is adjusted based on the three-channel duty cycle.
2. The method for adjusting the light effect of the headphone indicator light according to claim 1, wherein: The preset standard white light reference value includes a given luminous flux value and a preset standard color coordinate value; Before the step of determining the standard true three primary color values through two color coordinate conversions based on the preset standard white light reference value, the method for adjusting the light effect of the headphone indicator light further includes: When the given luminous flux value is received, a preset standard white light reference value is generated according to the given luminous flux value and a preset standard color coordinate value.
3. The method for adjusting the light effect of the headphone indicator light according to claim 1, wherein: The step of converting the expected true three primary color values into expected color coordinate values by two color coordinate conversions comprises: Performing color coordinate conversion on the expected real three primary color values to obtain expected ideal three primary color values; Performing color coordinate conversion on the desired ideal three primary color values to obtain desired color coordinate values.
4. The method for adjusting the light effect of an earphone indicator light according to any one of claims 1 to 3, wherein: The step of determining the duty cycle of the three channels according to the expected color coordinate value and the preset full current color coordinate value includes: The desired color coordinate value and the preset full-current color coordinate value are substituted into a preset three-channel duty cycle calculation formula to calculate the three-channel duty cycle.
5. The method for adjusting the light effect of the headphone indicator light according to claim 4, wherein: Before the step of substituting the desired color coordinate value and the preset full-current color coordinate value into a preset three-channel duty cycle calculation formula for calculation, the method for adjusting the light effect of the headphone indicator light further includes: The first relationship is determined based on the direct proportional relationship between luminous flux and duty cycle and Grassmann's color mixing law; Determine the second relationship based on the conversion relationship between the additive color mixing principle and the color coordinates; The first relational expression and the second relational expression are combined to obtain a preset three-channel duty cycle calculation formula.
6. A light effect adjustment device for a headphone indicator light, characterized in that: The light effect adjustment device of the headphone indicator light includes: A conversion module, configured to determine standard true three primary color values through two color coordinate conversions based on a preset standard white light reference value; The conversion module is further configured to convert the standard white light reference value from the CIE xyY chromaticity diagram to standard ideal three primary color values of the XYZ color system; The conversion module is further configured to convert the standard ideal three primary color values from the XYZ color system to standard real three primary color values of the RGB color system; a setting module, configured to set expected true three primary color values according to the standard true three primary color values; The conversion module is further configured to convert the desired true three primary color values into desired color coordinate values through two color coordinate conversions; The conversion module is further configured to measure the brightness, hue, and chromaticity of the three-color light source of the headphone indicator light in a full-current operating state, and generate a preset full-current color coordinate value based on the brightness, hue, and chromaticity; The conversion module is further configured to determine a three-channel duty cycle based on the desired color coordinate value and the preset full-current color coordinate value; An adjustment module is used to adjust the light effect of the headphone indicator light based on the three-channel duty cycle.
7. A headphone device, characterized in that: The headphone device includes: a headphone indicator light, a memory, a processor, and a light effect adjustment program for the headphone indicator light stored in the memory and runnable on the processor. When the light effect adjustment program for the headphone indicator light is executed by the processor, the steps of the light effect adjustment method for the headphone indicator light according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a light effect adjustment program for the headphone indicator light. When the headphone indicator light effect adjustment program is executed by the processor, the steps of the headphone indicator light effect adjustment method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Color correction method and integrated chip using same
CN101635858A
Method for encoding and decoding light source colors in color space
CN111988616A