Light adjusting method and device, electronic equipment and storage medium

Through the Wuji color palette, identify the color selected by the user, determine the HSB value and convert it to RGB color value, solve the problem of the accuracy and insufficient user experience of the existing ambient light color adjustment methods, and achieve high accuracy and diversified lighting adjustment. Improved user experience.

CN119136372APending Publication Date: 2024-12-13GUANGZHOU XIAOPENG MOTORS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411155519.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing ambient light products have insufficient accuracy and user experience in color adjustment methods, which cannot meet the diverse needs of users.

Method used

The light display adjustment is performed using the Wuji color plate. By identifying the user's color selection operation, the target HSB value is determined and converted to RGB color value is converted to the light color, and the lighting color is accurately adjusted.

Benefits of technology

It realizes accurate and diverse lighting color adjustment, improves user experience, meets users' diverse needs, and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136372A_ABST
    Figure CN119136372A_ABST
Patent Text Reader

Abstract

The invention provides a light adjusting method and device, electronic equipment and a storage medium, and the light adjusting method comprises the steps: recognizing a selection operation of a user on a target color on a target electrodeless color plate, and determining a target HSB value; according to the target HSB value, determining a corresponding target RGB color value; and adjusting the display light of the target lamp according to the target RGB color value. Thus, the target HSB value is determined according to the color selection operation of the user on the target electrodeless color palette, high accuracy of color selection is ensured, the HSB value is converted into the RGB color value, conversion from the color model is efficiently achieved, and the system can quickly respond to selection of the user. According to the converted RGB color value, the display light of the target lamp is adjusted, it can be ensured that the color of the light is consistent with the color selected by the user on the electrodeless color plate, and the highly consistent visual effect is provided. According to the scheme, accurate adjustment and diverse adjustment of the display light can be achieved, and therefore diverse requirements of users can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lighting adjustment, and in particular to a lighting adjustment method, device, electronic device and storage medium. Background Art

[0002] As an important element in modern home and commercial environments, mood lighting is widely used to enhance the environment and create a specific emotional atmosphere. There are many kinds of mood lighting products on the market, and users can adjust the color and brightness of the light in different ways to meet different scenarios and needs. However, through research on the existing mood lighting competitors on the market, it is found that most products currently have certain limitations in color adjustment methods.

[0003] For example, most current ambient light products use bar graphs or color blocks for color selection. Although this method is intuitive, it has certain shortcomings in terms of accuracy and user experience. Specifically, bar graphs and color blocks usually only provide limited color options. This design limits the user's freedom of choice and cannot meet personalized and diversified needs. At the same time, it is easy to cause inconvenience and misoperation during operation, affecting the overall user experience.

[0004] In summary, the existing ambient light color adjustment methods have obvious deficiencies in accuracy and user experience. Therefore, there is an urgent need for a color adjustment method that can provide higher accuracy and better user experience to meet users' diverse needs for ambient light color adjustment. Summary of the invention

[0005] In view of this, the purpose of the present application is to provide a lighting adjustment method, device, electronic device and storage medium. By adopting a stepless color plate for light display adjustment, precise and diverse adjustment of the display light can be achieved, thereby meeting the diverse needs of users.

[0006] The present invention provides a method for adjusting light, which includes:

[0007] Identify the user's selection operation of the target color on the target infinite color plate and determine the target HSB value;

[0008] According to the target HSB value, determine the corresponding target RGB color value;

[0009] According to the target RGB color value, the display light of the target lamp is adjusted.

[0010] Optionally, the identifying a user's selection operation of a target color on a target infinite color plate and determining a target HSB value includes:

[0011] Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position;

[0012] Calculating the interval distance between the selected position and the predetermined position point of each target color;

[0013] The HSB value of the target color corresponding to the position point with the shortest interval distance is determined as the target HSB value.

[0014] Optionally, determine the location of each target color and the HSB value of each target color by following these steps:

[0015] Determine the maximum color ring area on the target stepless color plate;

[0016] Performing hue equalization processing on the maximum color ring area to determine N line segments that intersect at the center point of the maximum color ring area and have the same angle between adjacent line segments;

[0017] Performing saturation equalization processing on the largest color ring area to determine M circular rings; wherein the center points of all the circular rings are the same;

[0018] According to the intersection points of the N line segments and the M circular rings and the center point, the position point of each target color is determined, and the HSB value of the corresponding target color is determined according to the HSB value at the position point; wherein the total number of target colors is the same as the total number of colors actually displayed by the target light.

[0019] Optionally, the identifying a user's selection operation of a target color on a target infinite color plate and determining a target HSB value includes:

[0020] Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position;

[0021] Based on the HSB value-position range correspondence, the selected position is used to perform HSB value search to determine the target HSB value.

[0022] Optionally, determine the HSB value-position range correspondence through the following steps:

[0023] The target infinite color plate is color-zoned according to the total number of colors actually displayed by the target lights, and multiple target colors and the position range of each target color are determined;

[0024] For each target color, the HSB value of the target color is determined according to the HSB value range of the area where the target color is located according to the preset selection rule;

[0025] According to the HSB value and position range of each target color, the HSB value-position range correspondence is determined.

[0026] Optionally, determine the target infinite color palette by the following steps:

[0027] The parameters of the target color elements in the original three-dimensional HSB color palette are set to fixed values ​​to obtain the original two-dimensional HSB color palette;

[0028] The display form of the original two-dimensional HSB color palette is adjusted according to the size of the target display area on the screen to obtain a target stepless color palette displayed in the target display area on the screen.

[0029] Optionally, before identifying the user's selection operation of the target color on the target stepless color plate and determining the target HSB value, the lighting adjustment method further includes:

[0030] Get the initial RGB color value;

[0031] Convert the initial RGB color value to determine the corresponding initial HSB value;

[0032] The corresponding position of the initial HSB value on the target stepless color plate is identified and marked for display.

[0033] The present application also provides a light adjustment device, which includes:

[0034] A recognition module, used to recognize the user's selection operation of the target color on the target infinite color plate and determine the target HSB value;

[0035] A determination module, used to determine a corresponding target RGB color value according to the target HSB value;

[0036] The adjustment module is used to adjust the display light of the target lamp according to the target RGB color value.

[0037] Optionally, when the recognition module is used to recognize the user's selection operation of the target color on the target stepless color plate and determine the target HSB value, the recognition module is used to:

[0038] Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position;

[0039] Calculating the interval distance between the selected position and the predetermined position point of each target color;

[0040] The HSB value of the target color corresponding to the position point with the shortest interval distance is determined as the target HSB value.

[0041] Optionally, the light adjustment device is further used to determine the position point of each target color and the HSB value of each target color through the following steps:

[0042] Determine the maximum color ring area on the target stepless color plate;

[0043] Performing hue equalization processing on the maximum color ring area to determine N line segments that intersect at the center point of the maximum color ring area and have the same angle between adjacent line segments;

[0044] Performing saturation equalization processing on the largest color ring area to determine M circular rings; wherein the center points of all the circular rings are the same;

[0045] According to the intersection points of the N line segments and the M circular rings and the center point, the position point of each target color is determined, and the HSB value of the corresponding target color is determined according to the HSB value at the position point; wherein the total number of target colors is the same as the total number of colors actually displayed by the target light.

[0046] Optionally, when the recognition module is used to recognize the user's selection operation of the target color on the target stepless color plate and determine the target HSB value, the recognition module is used to:

[0047] Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position;

[0048] Based on the HSB value-position range correspondence, the selected position is used to perform HSB value search to determine the target HSB value.

[0049] Optionally, the light adjustment device is further used to determine the HSB value-position range correspondence through the following steps:

[0050] The target infinite color plate is color-zoned according to the total number of colors actually displayed by the target lights, and multiple target colors and the position range of each target color are determined;

[0051] For each target color, the HSB value of the target color is determined according to the HSB value range of the area where the target color is located according to the preset selection rule;

[0052] According to the HSB value and position range of each target color, the HSB value-position range correspondence is determined.

[0053] Optionally, the light adjustment device is further used to determine the target stepless color plate through the following steps:

[0054] The parameters of the target color elements in the original three-dimensional HSB color palette are set to fixed values ​​to obtain the original two-dimensional HSB color palette;

[0055] The display form of the original two-dimensional HSB color palette is adjusted according to the size of the target display area on the screen to obtain a target stepless color palette displayed in the target display area on the screen.

[0056] Optionally, the light adjustment device is also used for:

[0057] Before recognizing the user's selection operation on the target color on the target infinite color plate and determining the target HSB value, obtaining the initial RGB color value;

[0058] Convert the initial RGB color value to determine the corresponding initial HSB value;

[0059] The corresponding position of the initial HSB value on the target stepless color plate is identified and marked for display.

[0060] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the light adjustment method as described above are performed.

[0061] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the lighting adjustment method described above are executed.

[0062] The embodiments of the present application provide a light adjustment method, device, electronic device and storage medium. The light adjustment method includes: identifying a user's selection operation of a target color on a target stepless color plate, and determining a target HSB value; determining a corresponding target RGB color value based on the target HSB value; and adjusting the display light of a target lamp based on the target RGB color value.

[0063] In this way, the target HSB value is determined according to the user's color selection operation on the target infinite color plate, ensuring the high accuracy of color selection, and the HSB value is converted into RGB color value, which efficiently realizes the conversion from the color model, so that the system can quickly respond to the user's selection. According to the converted RGB color value, the display light of the target lamp is adjusted to ensure that the color of the light is consistent with the color selected by the user on the infinite color plate, providing a highly consistent visual effect. Therefore, this solution can realize accurate and diverse adjustment of the display light, thereby meeting the diverse needs of users, and can achieve technical effects with simple operation, fast response, and good experience, and is widely applicable to a variety of lighting adjustment needs.

[0064] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0066] Figure 1 A flowchart of a lighting adjustment method provided in an embodiment of the present application;

[0067] Figure 2 A schematic diagram of an original three-dimensional HSB color palette provided for this application;

[0068] Figure 3 A schematic diagram of an original two-dimensional HSB color palette provided in this application;

[0069] Figure 4 A schematic diagram of determining the location point and HSB value of a target color provided in this application;

[0070] Figure 5 A schematic diagram of the structure of a light adjustment device provided in an embodiment of the present application;

[0071] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0073] As an important element in modern home and commercial environments, mood lighting is widely used to enhance the environment and create a specific emotional atmosphere. There are many kinds of mood lighting products on the market, and users can adjust the color and brightness of the light in different ways to meet different scenarios and needs. However, through research on the existing mood lighting competitors on the market, it is found that most products currently have certain limitations in color adjustment methods.

[0074] For example, most current ambient light products use bar graphs or color blocks for color selection. Although this method is intuitive, it has certain shortcomings in terms of accuracy and user experience. Specifically, bar graphs and color blocks usually only provide limited color options. This design limits the user's freedom of choice and cannot meet personalized and diversified needs. At the same time, it is easy to cause inconvenience and misoperation during operation, affecting the overall user experience.

[0075] In summary, the existing ambient light color adjustment methods have obvious deficiencies in accuracy and user experience. Therefore, there is an urgent need for a color adjustment method that can provide higher accuracy and better user experience to meet users' diverse needs for ambient light color adjustment.

[0076] Based on this, the embodiments of the present application provide a lighting adjustment method, device, electronic device and storage medium. By adopting a stepless color plate to adjust the light display, precise and diverse adjustments of the display light can be achieved, thereby meeting the diverse needs of users.

[0077] See also Figure 1 , Figure 1 This is a flow chart of a lighting adjustment method provided in an embodiment of the present application. Figure 1 As shown in , the lighting adjustment method provided in the embodiment of the present application includes:

[0078] S101, identifying a user's selection operation of a target color on a target stepless color plate, and determining a target HSB value.

[0079] S102: Determine a corresponding target RGB color value according to the target HSB value.

[0080] S103: Adjust the display light of the target light according to the target RGB color value.

[0081] With respect to step S101, in this step, the user's selection operation on the target color on the target stepless color plate is recognized in real time, and when it is recognized that the user performs a selection operation, the corresponding target RGB color value is determined according to the actual selection operation.

[0082] Here, the target infinite color palette may be a two-dimensional HSB infinite color palette, and the selection operation includes but is not limited to a click operation, a drag operation, and the like.

[0083] The target HSB value includes: a target hue value, a target saturation value, and a target brightness value.

[0084] For example, in one embodiment provided in the present application, the target infinite color plate is determined by the following steps:

[0085] S201. Set the parameters of the target color elements in the original three-dimensional HSB color palette to fixed values ​​to obtain the original two-dimensional HSB color palette.

[0086] S202, adjusting the display form of the original two-dimensional HSB color palette according to the size of the target display area on the screen to obtain a target stepless color palette displayed in the target display area on the screen.

[0087] For step S201, an original three-dimensional HSB color palette is obtained, and according to a pre-selected principle, a color element in the original three-dimensional HSB color palette is designated as a target color element, and according to a preset assignment rule, the parameters of the target color element are set to the same fixed value to obtain an original two-dimensional HSB color palette.

[0088] Here, the color elements included in the original three-dimensional HSB color palette are hue, saturation and brightness.

[0089] For example, the target color element may be brightness; setting the parameter of the target color element in the original three-dimensional HSB color palette to a fixed value may be: setting the brightness in the original three-dimensional HSB color palette to 100% (maximum value), thus obtaining the original two-dimensional HSB color palette.

[0090] See also Figure 2 , Figure 3 , Figure 2 A schematic diagram of an original three-dimensional HSB color palette provided in this application, Figure 3 A schematic diagram of an original two-dimensional HSB color palette provided in this application. Figure 2 As shown in the figure, the three axes of the original three-dimensional HSB color palette are hue (H), saturation (S) and brightness (B). After setting the brightness (B) to a fixed value, we get Figure 3 , which only includes hue (H) and saturation (S). The closer to the center point, the closer the saturation is to 0.

[0091] For step S202, in this step, the actual size of the target display area displaying the original two-dimensional HSB color palette on the screen is determined; the display form of the two-dimensional HSB color palette is adjusted to the actual size of the target display area, and the target infinite color palette displayed in the target display area on the screen is obtained, and the target infinite color palette is displayed.

[0092] Here, when the ambient light on the vehicle is adjusted, the screen is the vehicle display screen, and an example thereof may be the central control screen. When the ambient light on the vehicle can be adjusted by short-range communication, an example thereof may be the mobile phone screen.

[0093] Therefore, the screen is a screen for displaying a target stepless color plate for adjusting the target lamp. The target display area can be the entire area of ​​the screen or a partial area of ​​the screen. The target stepless color plate can be circular or square.

[0094] In this way, by setting the parameters of the target color elements in the original three-dimensional HSB color palette to fixed values, the dimensions of the color palette can be simplified, thereby generating the original two-dimensional HSB color palette. The complexity of the colors can be effectively reduced, making subsequent display and adjustment more intuitive and convenient. And by adjusting the display form of the original two-dimensional HSB color palette according to the size of the target display area on the screen, it can be ensured that the display of the color palette on the screen conforms to the expected target display area. This adjustment process can achieve a good fit between the color palette and the display device, thereby providing a consistent visual experience. In addition, after the above steps, the target infinite color palette finally obtained can maintain color consistency and infinite color transition effects in different display areas. This color palette design can meet a variety of display requirements and enhance user experience.

[0095] For example, this solution provides two methods for identifying the user's selection operation of the target color on the target infinite color plate and determining the target HSB value.

[0096] In one embodiment provided in the present application, the identifying the user's selection operation of the target color on the target infinite color plate and determining the target HSB value includes:

[0097] S10111. Identify the user's selection operation on the target color on the target infinite color plate in the target display area on the screen, and determine the selected position.

[0098] S10112. Calculate the interval distance between the selected position and the predetermined position point of each target color.

[0099] S10113. Determine the HSB value of the target color corresponding to the position point with the shortest interval as the target HSB value.

[0100] For step S10111, the user's selection operation on the target color on the target infinite color plate in the target display area on the screen is identified, and the user's selected position in the target display area or the user's selected position on the target infinite color plate is determined.

[0101] Regarding step S10112, here, multiple target colors are determined in advance according to the target stepless color plate, and the position point information of each target color is determined.

[0102] Continuing with step S10112, in this step, for each target color, the interval distance between the selected position and the position point of the target color is calculated using the position coordinates of the selected position and the position of the position point of the target color.

[0103] Continuing with step S10113, in this step, all interval distances are identified, a position point that is closest to the selected position interval distance is determined, and the HSB value of the target color corresponding to the position point is determined as the target HSB value.

[0104] Here, HSB value information of each target color is determined in advance.

[0105] In addition, when multiple position points with the closest intervals are determined, the HSB value of the target color corresponding to a position point can be randomly selected as the target HSB value; or the HSB value of the target color corresponding to a position point can be selected according to the counterclockwise principle and the inward principle as the target HSB value.

[0106] For example, in one embodiment provided in the present application, the position point of each target color and the HSB value of each target color are determined by the following steps:

[0107] S301, determining the maximum color ring area on the target stepless color plate.

[0108] S302: Perform hue equalization processing on the maximum color ring area to determine N line segments that intersect at the center point of the maximum color ring area and have the same angle between adjacent line segments.

[0109] S303: Perform saturation equalization processing on the largest color ring area to determine M circular rings.

[0110] S304, determining the position point of each target color according to the intersection points of the N line segments and the M circular rings and the center point, and determining the HSB value of the corresponding target color according to the HSB value at the position point.

[0111] With respect to step S301, the maximum color ring area on the target stepless color plate is determined according to the outer contour size information of the target stepless color plate.

[0112] For example, when the displayed target stepless color plate is a square, the maximum color ring area on the target stepless color plate may be the inscribed circle area; when the displayed target stepless color plate is a rectangle, the maximum color ring area on the target stepless color plate may be the inscribed elliptical area; when the displayed target stepless color plate is a circle, the maximum color ring area on the target stepless color plate may be the entire area.

[0113] For steps S302-S304, the total number of target colors is the same as the total number of actual display colors of the target lights to be adjusted. Therefore, the number of N and M is based on the total number of actual display colors of the target lights to be adjusted. Among them, the center points of the M circles are the same.

[0114] For examples, see Figure 4 , Figure 4 A schematic diagram of the position point and HSB value of a target color determined in the present application. Assuming that the target light to be adjusted can display 257 colors, the color wheel is divided into 64 hues (that is, N is set to 64), and each part is divided into 4 colors with different saturations (that is, M is set to 4), H=0, (360 / 64), (360 / 64)*2, (360 / 64)*3, ..., (360 / 64)*63. The saturation S is divided into four equal parts from high to low, that is, S=1, 0.75, 0.5, 0.25. The brightness B is fixed at 1 (and can be additionally controlled by the brightness adjustment control of the target light). Thus, 64 hues * 4 saturations = 256 colors are obtained, plus 1 pure white color, for a total of 257 colors. As shown Figure 4 As shown, the intersection point and the center point of each circle and line segment are the position points of the target color, and the HSB value of the position point is the HSB value of the corresponding target color. In this way, 257 target colors and corresponding target information are determined.

[0115] It should be noted that although 257 colors are limited, the entire color palette is infinitely adjustable, that is, the user does not know that there are actually only 257 colors, so infinite adjustment can be achieved.

[0116] In this way, by identifying the user's selection operation on the target infinite color plate in the target display area on the screen and determining the position selected by the user, the position of the color selected by the user can be accurately perceived. And by calculating the distance, the relationship between the position selected by the user and the predefined color position point can be determined, so as to accurately locate the color selected by the user. And improve the accuracy of color selection, ensure that the color selected by the user can be accurately converted to the HSB value represented internally by the system.

[0117] In addition, the color position points on the infinite color plate are finely divided by evenly dividing the hue and saturation to ensure the diversity and accuracy of color selection, allowing the system to accurately map the color selected by the user.

[0118] Continuing with step S101, in another embodiment provided by the present application, the identifying the user's selection operation of the target color on the target infinite color plate and determining the target HSB value includes:

[0119] S10121. Identify the user's selection operation on the target color on the target infinite color plate in the target display area on the screen, and determine the selected position.

[0120] S10122. Based on the HSB value-position range correspondence, use the selected position to search for the HSB value and determine the target HSB value.

[0121] Step S10121 is the same as step S10111 and will not be repeated here.

[0122] With respect to step S10122, in this step, the target position range is searched according to the position information of the selected position; and the HSB value corresponding to the target position range is determined as the target HSB value.

[0123] In one implementation provided in the present application, the HSB value-position range correspondence relationship is determined by the following steps:

[0124] S401, color partitioning the target stepless color plate according to the total number of colors actually displayed by the target lamps, and determining a plurality of target colors and a position range of each target color.

[0125] S402 , for each target color, determine the HSB value of the target color according to the HSB value range of the region where the target color is located according to a preset selection rule.

[0126] S403 , determining a HSB value-position range correspondence relationship according to the HSB value and position range of each target color.

[0127] For step S401, for example, the step may be: divide the target stepless color palette into equal parts according to the total number of colors actually displayed by the target lights to determine multiple color areas; for each color area, determine the target color to which the color area belongs, and determine the position range of each target color according to the position range of the color area in the target stepless color palette or the position range on the screen.

[0128] Here, the specific position range in the target infinite color palette or the position range on the screen can be determined according to actual conditions and is not limited here.

[0129] In addition, for the boundary positions of adjacent target colors, for example, they can be divided according to the right-biased principle, the left-biased principle, the upper-biased principle, or the lower-biased principle.

[0130] For step S402 , for example, the step may include: for each target color, determining the HSB value of the target color by using the HSB value at the center point of the region where the target color is located.

[0131] In this way, by identifying the user's selected position on the infinite color plate on the screen and searching based on the correspondence between the HSB value and the position range, the HSB value of the target color can be accurately determined. This method ensures the accuracy of the user's color selection. And the user can select the color directly on the screen. This interactive design also improves the user experience and makes the color selection process more convenient and intuitive. Furthermore, the infinite color plate is color-partitioned according to the total number of actual display colors of the target light, making color management more orderly and efficient. This makes the search process of the target HSB value faster and improves the efficiency of color selection and adjustment. Therefore, this technology realizes an efficient, accurate and user-friendly lighting adjustment method through precise color positioning, systematic color partitioning and optimized search mechanism, which significantly improves the user experience and system performance.

[0132] With respect to step S102, in this step, the target HSB value is processed according to the HSB to RGB conversion formula to determine the corresponding target RGB color value.

[0133] Here, the conversion formula from HSB (also called HSV) to RGB is as follows:

[0134]

[0135] p=v×(1-s)

[0136] q=v×(1-f×s)

[0137] t=v×(1-(1-f)×s)

[0138] For each color vector (r,g,b):

[0139]

[0140] With respect to step S103, in this step, the target control parameter corresponding to the target light is determined according to the target RGB value, and the target light is controlled to display according to the target control parameter, thereby achieving light adjustment.

[0141] In this way, when the ambient light on the vehicle is adjusted, the mapping from the actual vehicle ambient light color to the selected area of ​​the color palette is achieved through this solution.

[0142] In addition, in another embodiment provided by the present application, before identifying the user's selection operation of the target color on the target stepless color plate and determining the target HSB value, the lighting adjustment method also includes: obtaining an initial RGB color value; converting the initial RGB color value to determine the corresponding initial HSB value; identifying the corresponding position of the initial HSB value on the target stepless color plate, and marking and displaying it.

[0143] Here, performing conversion processing on the initial RGB color values ​​to determine the corresponding initial HSB values ​​may specifically include: performing processing on the initial RGB color values ​​according to a conversion formula from RGB to HSB to determine the corresponding initial HSB values.

[0144] Here, the conversion formula from RGB to HSB (also called HSV) is as follows:

[0145]

[0146] v=1

[0147] Therefore, the initial HSB value is marked and displayed at the corresponding position on the target infinite color palette, so that users can clearly see the currently selected color. This visual feedback helps users to more intuitively understand and control the final lighting effect when adjusting the color.

[0148] In this way, this solution improves the accuracy of lighting adjustment, user experience and system adaptability through precise color conversion, intuitive user interaction, optimized color distribution and flexible HSB value search mechanism, and is widely applicable to various lighting adjustment needs.

[0149] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a light adjustment device provided in an embodiment of the present application. Figure 5 As shown in , the light adjustment device 500 includes:

[0150] The recognition module 510 is used to recognize the user's selection operation of the target color on the target infinite color plate and determine the target HSB value;

[0151] A determination module 520, configured to determine a corresponding target RGB color value according to the target HSB value;

[0152] The adjustment module 530 is used to adjust the display light of the target light according to the target RGB color value.

[0153] Optionally, when the recognition module 510 is used to recognize the user's selection operation of the target color on the target infinite color plate and determine the target HSB value, the recognition module 510 is used to:

[0154] Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position;

[0155] Calculating the interval distance between the selected position and the predetermined position point of each target color;

[0156] The HSB value of the target color corresponding to the position point with the shortest interval distance is determined as the target HSB value.

[0157] Optionally, the light adjustment device 500 is further used to determine the position point of each target color and the HSB value of each target color through the following steps:

[0158] Determine the maximum color ring area on the target stepless color plate;

[0159] Performing hue equalization processing on the maximum color ring area to determine N line segments that intersect at the center point of the maximum color ring area and have the same angle between adjacent line segments;

[0160] Performing saturation equalization processing on the largest color ring area to determine M circular rings; wherein the center points of all the circular rings are the same;

[0161] According to the intersection points of the N line segments and the M circular rings and the center point, the position point of each target color is determined, and the HSB value of the corresponding target color is determined according to the HSB value at the position point; wherein the total number of target colors is the same as the total number of colors actually displayed by the target light.

[0162] Optionally, when the recognition module 510 is used to recognize the user's selection operation of the target color on the target infinite color plate and determine the target HSB value, the recognition module 510 is used to:

[0163] Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position;

[0164] Based on the HSB value-position range correspondence, the selected position is used to perform HSB value search to determine the target HSB value.

[0165] Optionally, the light adjustment device 500 is further configured to determine the HSB value-position range correspondence relationship through the following steps:

[0166] The target infinite color plate is color-zoned according to the total number of colors actually displayed by the target lights, and multiple target colors and the position range of each target color are determined;

[0167] For each target color, the HSB value of the target color is determined according to the HSB value range of the area where the target color is located according to the preset selection rule;

[0168] According to the HSB value and position range of each target color, the HSB value-position range correspondence is determined.

[0169] Optionally, the light adjustment device 500 is further used to determine the target stepless color plate through the following steps:

[0170] The parameters of the target color elements in the original three-dimensional HSB color palette are set to fixed values ​​to obtain the original two-dimensional HSB color palette;

[0171] The display form of the original two-dimensional HSB color palette is adjusted according to the size of the target display area on the screen to obtain a target stepless color palette displayed in the target display area on the screen.

[0172] Optionally, the light adjustment device 500 is further used for:

[0173] Before recognizing the user's selection operation on the target color on the target infinite color plate and determining the target HSB value, obtaining the initial RGB color value;

[0174] Convert the initial RGB color value to determine the corresponding initial HSB value;

[0175] The corresponding position of the initial HSB value on the target stepless color plate is identified and marked for display.

[0176] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown in , the electronic device 600 includes a processor 610 , a memory 620 and a bus 630 .

[0177] The memory 620 stores machine-readable instructions executable by the processor 610. When the electronic device 600 is running, the processor 610 communicates with the memory 620 via the bus 630. When the machine-readable instructions are executed by the processor 610, the above-mentioned Figures 1 to 4 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0178] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figures 1 to 4 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0179] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0180] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

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

[0182] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0183] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0184] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A lighting adjustment method, characterized in that: The lighting adjustment method comprises: Identify the user's selection operation of the target color on the target infinite color plate and determine the target HSB value; According to the target HSB value, determine the corresponding target RGB color value; According to the target RGB color value, the display light of the target lamp is adjusted.

2. The lighting adjustment method according to claim 1, characterized in that: The identifying the user's selection operation of the target color on the target infinite color plate and determining the target HSB value comprises: Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position; Calculating the interval distance between the selected position and the predetermined position point of each target color; The HSB value of the target color corresponding to the position point with the shortest interval distance is determined as the target HSB value.

3. The lighting adjustment method according to claim 2, characterized in that: Determine the location point of each target color and the HSB value of each target color by following the steps below: Determine the maximum color ring area on the target stepless color plate; Performing hue equalization processing on the maximum color ring area to determine N line segments that intersect at the center point of the maximum color ring area and have the same angle between adjacent line segments; Performing saturation equalization processing on the largest color ring area to determine M circular rings; wherein the center points of all the circular rings are the same; According to the intersection points of the N line segments and the M circular rings and the center point, the position point of each target color is determined, and the HSB value of the corresponding target color is determined according to the HSB value at the position point; wherein the total number of target colors is the same as the total number of colors actually displayed by the target light.

4. The lighting adjustment method according to claim 1, characterized in that: The identifying the user's selection operation of the target color on the target infinite color plate and determining the target HSB value comprises: Identify the user's selection operation of the target color on the target infinite color plate in the target display area on the screen, and determine the selected position; Based on the HSB value-position range correspondence, the selected position is used to perform HSB value search to determine the target HSB value.

5. The lighting adjustment method according to claim 4, characterized in that: Determine the HSB value-position range correspondence through the following steps: The target infinite color plate is color-zoned according to the total number of colors actually displayed by the target lights, and multiple target colors and the position range of each target color are determined; For each target color, the HSB value of the target color is determined according to the HSB value range of the area where the target color is located according to the preset selection rule; According to the HSB value and position range of each target color, the HSB value-position range correspondence is determined.

6. The lighting adjustment method according to claim 2 or 4, characterized in that: Determine the target infinite color palette by following the steps below: The parameters of the target color elements in the original three-dimensional HSB color palette are set to fixed values ​​to obtain the original two-dimensional HSB color palette; The display form of the original two-dimensional HSB color palette is adjusted according to the size of the target display area on the screen to obtain a target stepless color palette displayed in the target display area on the screen.

7. The lighting adjustment method according to claim 1, characterized in that: Before identifying the user's selection operation of the target color on the target stepless color plate and determining the target HSB value, the lighting adjustment method further includes: Get the initial RGB color value; Convert the initial RGB color value to determine the corresponding initial HSB value; The corresponding position of the initial HSB value on the target stepless color plate is identified and marked for display.

8. A lighting adjustment device, characterized in that: The light adjustment device comprises: A recognition module, used to recognize the user's selection operation of the target color on the target infinite color plate and determine the target HSB value; A determination module, used to determine a corresponding target RGB color value according to the target HSB value; The adjustment module is used to adjust the display light of the target lamp according to the target RGB color value.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the lighting adjustment method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the light adjustment method according to any one of claims 1 to 7 are executed.