CN116476732A - Atmosphere lamp control method, apparatus, device and storage medium - Google Patents

Atmosphere lamp control method, apparatus, device and storage medium Download PDF

Info

Publication number
CN116476732A
CN116476732A CN202310486039.8A CN202310486039A CN116476732A CN 116476732 A CN116476732 A CN 116476732A CN 202310486039 A CN202310486039 A CN 202310486039A CN 116476732 A CN116476732 A CN 116476732A
Authority
CN
China
Prior art keywords
color
atmosphere lamp
value
transition
color value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310486039.8A
Other languages
Chinese (zh)
Inventor
苗冰
侯元涛
黄伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Nissan Passenger Vehicle Co
Original Assignee
Dongfeng Nissan Passenger Vehicle Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Nissan Passenger Vehicle Co filed Critical Dongfeng Nissan Passenger Vehicle Co
Priority to CN202310486039.8A priority Critical patent/CN116476732A/en
Publication of CN116476732A publication Critical patent/CN116476732A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q3/00Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors
    • B60Q3/70Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors characterised by the purpose
    • B60Q3/74Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors characterised by the purpose for overall compartment lighting; for overall compartment lighting in combination with specific lighting, e.g. room lamps with reading lamps
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q3/00Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors
    • B60Q3/80Circuits; Control arrangements
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention belongs to the technical field of vehicle control, and discloses an atmosphere lamp control method, an atmosphere lamp control device, atmosphere lamp control equipment and a storage medium. According to the method, the adjacent color combinations in the atmosphere lamp color sequence appointed by the user are extracted, and the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors; analyzing the adjacent color combinations to obtain first color data and second color data; comparing the first color data with the second color data to generate transition color data corresponding to adjacent color combinations; and controlling the running of the atmosphere lamp of the vehicle according to the transition color data and the color sequence of the atmosphere lamp. Because the corresponding transition color data can be generated for the adjacent color combinations in the atmosphere lamp color sequence appointed by the user, the phenomenon that color collocation is hard is avoided when the atmosphere lamp is controlled to run by the color of the atmosphere lamp appointed by the user, and a better atmosphere lamp display effect can be obtained, so that the user can set the color of the atmosphere lamp according to actual needs, and the control degree of freedom of the user on the atmosphere lamp of the vehicle is improved.

Description

Atmosphere lamp control method, apparatus, device and storage medium
Technical Field
The present invention relates to the field of vehicle control technologies, and in particular, to an atmosphere lamp control method, apparatus, device, and storage medium.
Background
The automobile atmosphere lamp assembly rate is obviously improved nowadays, the dynamic atmosphere lamp carrying rate is synchronously improved, but in the selection of the atmosphere lamp effect, the user can set up the atmosphere lamp color by oneself to possibly lead to the fact that the collocation of multiple colors set by the user is relatively hard, so that the display effect of the actual automobile atmosphere lamp is poor, the automobile atmosphere lamp is set up by a host factory at present, the user can not control the color change of the automobile atmosphere lamp in the limited quantity well collocated, the degree of freedom of the user is low, and the actual use experience is poor.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an atmosphere lamp control method, an atmosphere lamp control device, atmosphere lamp control equipment and a storage medium, and aims to solve the technical problems that in the prior art, the degree of freedom of control of a vehicle atmosphere lamp by a user is low and the actual use experience is poor.
To achieve the above object, the present invention provides an atmosphere lamp control method comprising the steps of:
extracting adjacent color combinations in an atmosphere lamp color sequence appointed by a user, wherein the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors;
Analyzing the adjacent color combinations to obtain first color data and second color data;
comparing the first color data with the second color data to generate transition color data corresponding to the adjacent color combination;
and controlling the running of the vehicle atmosphere lamp according to the transition color data and the atmosphere lamp color sequence.
Optionally, the step of comparing the first color data and the second color data to generate transition color data corresponding to the adjacent color combination includes:
sequencing color values corresponding to all color channels in the first color data from large to small to obtain a first color value sequence;
sequencing the color values corresponding to all the color channels in the second color data from large to small to obtain a second color value sequence;
and comparing the first color value sequence with the second color value sequence in a color channel, and generating transition color data corresponding to the adjacent color combination according to the color channel comparison result.
Optionally, the first color value sequence includes a first maximum color value, a first intermediate color value, and a first minimum color value, and the second color value sequence includes a second maximum color value, a second intermediate color value, and a second minimum color value;
The step of comparing the first color value sequence with the second color value sequence in a color channel and generating transition color data corresponding to the adjacent color combination according to the color channel comparison result comprises the following steps:
detecting whether the first maximum color value and the second maximum color value correspond to the same color channel;
if the first maximum color value and the second maximum color value correspond to the same color channel, detecting whether the first intermediate color value and the second intermediate color value correspond to the same color channel;
if the first intermediate color value and the second intermediate color value correspond to the same color channel, acquiring a difference absolute value between the first intermediate color value and the second intermediate color value;
and if the absolute value of the difference is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
Optionally, after the step of detecting whether the first intermediate color value and the second intermediate color value correspond to the same color channel, the method further includes:
If the first intermediate color value and the second intermediate color value do not correspond to the same color channel, obtaining a sum value of the first intermediate color value and the second intermediate color value;
and if the sum of the first intermediate color value and the second intermediate color value is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
Optionally, after the step of detecting whether the first maximum color value and the second maximum color value correspond to the same color channel, the method further includes:
if the first maximum color value and the second maximum color value do not correspond to the same color channel, detecting whether the first intermediate color value and the second intermediate color value are both greater than or equal to a second color threshold;
if the first intermediate color value is smaller than the second color threshold or the second intermediate color value is smaller than the second color threshold, performing secondary color channel comparison according to the first intermediate color value, the second intermediate color value, the first minimum color value and the second minimum color value;
and generating transition color data with three transition colors by combining the first color value sequence and the second color value sequence based on the comparison result of the two-level color channel comparison.
Optionally, the step of controlling the operation of the vehicle atmosphere lamp according to the transition color data and the color sequence of the atmosphere lamp includes:
dividing the vehicle atmosphere lamps according to the atmosphere lamp color sequence, and determining atmosphere lamp areas corresponding to the atmosphere lamp colors in the atmosphere lamp color sequence;
selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps;
and controlling the operation of the vehicle atmosphere lamps in the atmosphere lamp area according to the color of the atmosphere lamps, and controlling the operation of the vehicle atmosphere lamps in the transition area according to the transition color data.
Optionally, the step of selecting a transition area in the atmosphere lamp area corresponding to each atmosphere lamp color includes:
determining the number of transition colors according to the transition color data;
and selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps according to the transition color quantity.
In addition, to achieve the above object, the present invention also proposes an atmosphere lamp control device, which may include the following modules:
the color receiving module is used for extracting adjacent color combinations in an atmosphere lamp color sequence appointed by a user, wherein the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors;
The data analysis module is used for analyzing the adjacent color combinations to obtain first color data and second color data;
the color comparison module is used for comparing the first color data with the second color data to generate transition color data corresponding to the adjacent color combination;
and the light control module is used for controlling the running of the atmosphere lamp of the vehicle according to the transition color data and the color sequence of the atmosphere lamp.
In addition, to achieve the above object, the present invention also proposes an atmosphere lamp control apparatus, which may include: the atmosphere lamp control system comprises a processor, a memory and an atmosphere lamp control program which is stored in the memory and can run on the processor, wherein the atmosphere lamp control program realizes the steps of the atmosphere lamp control method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon an atmosphere lamp control program which, when executed, implements the steps of the atmosphere lamp control method as described above.
The invention extracts adjacent color combinations in the atmosphere lamp color sequence appointed by the user, wherein the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors; analyzing the adjacent color combinations to obtain first color data and second color data; comparing the first color data with the second color data to generate transition color data corresponding to adjacent color combinations; and controlling the running of the atmosphere lamp of the vehicle according to the transition color data and the color sequence of the atmosphere lamp. Because the corresponding transition color data can be generated for the adjacent color combinations in the atmosphere lamp color sequence appointed by the user, the phenomenon that color collocation is hard is avoided when the atmosphere lamp is controlled to run by the color of the atmosphere lamp appointed by the user, and a better atmosphere lamp display effect can be obtained, so that the user can set the color of the atmosphere lamp according to actual needs, and the control degree of freedom of the user on the atmosphere lamp of the vehicle is improved.
Drawings
FIG. 1 is a schematic diagram of an electronic device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the control method of the atmosphere lamp according to the present invention;
FIG. 3 is a schematic diagram of an atmosphere lamp display control according to an embodiment of the present invention;
FIG. 4 is a flow chart of a second embodiment of the control method of the atmosphere lamp according to the present invention;
FIG. 5 is a flow chart of a third embodiment of the control method of the atmosphere lamp according to the present invention;
FIG. 6 is a schematic diagram illustrating a transitional color data generation algorithm according to an embodiment of the present invention;
fig. 7 is a block diagram showing the construction of a first embodiment of the atmosphere lamp control device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an atmosphere lamp control device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an atmosphere lamp control program may be included in the memory 1005 as one type of storage medium.
In the electronic device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention may be provided in an atmosphere lamp control device, where the electronic device invokes an atmosphere lamp control program stored in the memory 1005 through the processor 1001, and executes the atmosphere lamp control method provided by the embodiment of the present invention.
An embodiment of the present invention provides an atmosphere lamp control method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of an atmosphere lamp control method according to the present invention.
In this embodiment, the atmosphere lamp control method includes the following steps:
step S10: adjacent color combinations in the user-specified sequence of atmosphere lamp colors are extracted.
It should be noted that, the execution body of the present embodiment may be the atmosphere lamp control device or the vehicle itself, and the atmosphere lamp control device may be a controller in the vehicle, such as an ECU controller or other controllers with similar functions, which is not limited in this embodiment, and in the present embodiment and the following embodiments, the atmosphere lamp control method of the present invention is described by taking the atmosphere lamp control device as an example.
It should be noted that, the atmosphere lamp color sequence may be a color that the vehicle atmosphere lamp set by the user needs to display, the atmosphere lamp color sequence may include multiple different atmosphere lamp colors, and each atmosphere lamp color has a sequence, where, according to the sequence, in the atmosphere lamp color sequence, repeated colors are allowed to appear, for example: the sequence of atmosphere lamp colors may be "red-yellow-green-red".
In practical use, the adjacent color combination may be a combination constructed of two different colors that are sequentially adjacent in the color sequence of the atmosphere lamp, for example: assuming that the sequence of atmosphere lamp colors is "red-yellow-green", then there are two adjacent colors in combination, respectively "red-yellow" and "yellow-green".
In a specific implementation, since it is difficult for the user to describe the quantitative value of a specific color, a manager of the atmosphere lamp control device may preset multiple colors (64 colors or 256 colors), so that the user selects multiple colors required by the user, and then the atmosphere lamp control device may construct an atmosphere lamp color sequence according to the multiple colors selected by the user and the sequence of color selection.
Step S20: and analyzing the adjacent color combinations to obtain first color data and second color data.
The first color data and the second color data may be RGB color data representing a color quantization value or other similar data.
In a specific implementation, a manager of the atmosphere lamp control device may create a color identification data mapping table in advance, store color data corresponding to each color identification in the color identification data mapping table, when the atmosphere lamp control device builds an atmosphere lamp color sequence according to the color selected by the user and the sequence selected by the color, build the atmosphere lamp color sequence according to the color identification corresponding to the color selected by the user and the sequence selected by the color, then analyze adjacent color combinations to obtain first color data and second color data, which may be analysis of adjacent color combinations, obtain first color identification and second color identification, search the first color data in the color identification data mapping table according to the first color identification, and search the second color data in the color identification data mapping table according to the second color identification.
Step S30: and comparing the first color data with the second color data to generate transition color data corresponding to the adjacent color combination.
It should be noted that, because the user is not a professional, the difference between two adjacent colors selected by the user may be relatively large, if the running of the atmosphere lamp is controlled directly according to the color sequence of the atmosphere lamp designated by the user, the actual display effect of the vehicle atmosphere lamp may be relatively hard due to the color collocation transition, so that the actual use of the user is reduced.
It can be understood that if the difference between the colors corresponding to the two colors in the adjacent color combinations is low, the transition color data corresponding to the adjacent color combinations may be empty at this time, that is, the corresponding transition colors are not set for the adjacent color combinations; if the two colors in the adjacent color combinations have certain difference but smaller difference, the color smooth transition can be realized by setting one transition color at the moment, and the transition color quantity of the corresponding transition color data is set as one by the adjacent color combinations; if the difference between two colors in the adjacent color combinations is too large, multiple transition colors need to be set at this time to realize smooth transition of colors, and the number of transition colors of the corresponding transition color data set in the adjacent color combinations can be greater than one, for example: if three transition colors are adopted to realize smooth transition of the colors, the number of the transition colors is 3 at the moment.
Step S40: and controlling the running of the vehicle atmosphere lamp according to the transition color data and the atmosphere lamp color sequence.
It should be noted that, according to transition color data and atmosphere lamp color sequence control vehicle atmosphere lamp operation can be the atmosphere lamp color of control vehicle atmosphere lamp show multiple difference, and demonstrate the transition color between multiple different atmosphere lamp colors according to transition color data to guarantee that vehicle atmosphere lamp can demonstrate multiple color according to user's setting, and show between the various colors also can not too hard.
In a specific implementation, in order to ensure that the vehicle atmosphere lamp can smoothly operate according to the transition color data and the color sequence of the atmosphere lamp, the step S40 in this embodiment may include:
dividing the vehicle atmosphere lamps according to the atmosphere lamp color sequence, and determining atmosphere lamp areas corresponding to the atmosphere lamp colors in the atmosphere lamp color sequence;
selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps;
and controlling the operation of the vehicle atmosphere lamps in the atmosphere lamp area according to the color of the atmosphere lamps, and controlling the operation of the vehicle atmosphere lamps in the transition area according to the transition color data.
The vehicle atmosphere lamps are divided according to the atmosphere lamp color sequence, the atmosphere lamp areas corresponding to the atmosphere lamp colors in the atmosphere lamp color sequence are determined to be the atmosphere lamp areas corresponding to the atmosphere lamp colors when the vehicle atmosphere lamps are divided into a plurality of parts according to the number of the atmosphere lamp colors in the atmosphere lamp color sequence, each part of the vehicle atmosphere lamps corresponds to the atmosphere lamp colors in one atmosphere lamp color sequence, and then the installation areas of the vehicle atmosphere lamps are the atmosphere lamp areas corresponding to the atmosphere lamp colors.
For example: assuming that the number of the vehicle atmosphere lamps is 8N, the atmosphere lamp color sequence contains 4 atmosphere lamp colors in total, each atmosphere lamp color corresponds to 2N vehicle atmosphere lamps respectively at the moment, and the atmosphere lamp area corresponding to the atmosphere lamp color can be determined according to the installation positions of 2N vehicle atmosphere lamps corresponding to the atmosphere lamp color.
The transition region may be selected from the atmosphere lamp regions corresponding to the respective atmosphere lamp colors, or a part of the transition regions may be selected from the atmosphere lamp regions corresponding to the two adjacent atmosphere lamp colors. For example: assuming that the two adjacent atmosphere lamp colors are a first color and a second color, and the rear half part of the atmosphere lamp region of the first color is adjacent to the front half part of the atmosphere lamp region of the second color, then a region with a preset size can be selected as a transition region in the rear half part of the atmosphere lamp region corresponding to the first color, and a region with a preset size can be selected as the transition region in the front half part of the atmosphere lamp region corresponding to the second color.
In actual use, controlling vehicle mood light operation in the mood light area in accordance with the mood light color may be controlling the vehicle mood light display color in the mood light area to be a mood light color. Controlling the operation of the vehicle atmosphere lamp in the transition region according to the transition color data may be controlling the display color of the vehicle atmosphere lamp in the transition region to be the color corresponding to the transition color data.
Further, since the number of transition colors corresponding to the transition color data may be different, and the display areas required when the transition colors of different numbers are displayed are also different, in order to ensure that the transition areas can normally display the transition colors, the step of selecting the transition areas in the atmosphere lamp areas corresponding to the colors of the atmosphere lamps in this embodiment may include:
determining the number of transition colors according to the transition color data;
and selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps according to the transition color quantity.
It should be noted that, determining the number of transition colors according to the transition color data may be to parse the transition color data and determine the number of transition colors contained in the transition color data, so as to obtain the number of transition colors, for example: assuming that the transition color data is NULL, the transition color number is 0 at this time; assuming that the transition color data is "(a, b, c)", the transition color number is 1 at this time; assuming that the transition color data is "(a 1, b1, c 1) | (a 2, b2, c 2) | (a 3, b3, c 3)", the transition color number is 3 at this time.
In actual use, selecting the transition region from the atmosphere lamp regions corresponding to the colors of the atmosphere lamps according to the transition color number may be searching for the corresponding display region size according to the transition color number, and selecting the region with the size equal to the display region size from the atmosphere lamp regions corresponding to the colors of the atmosphere lamps according to the display region size as the transition region.
For ease of understanding, the description will now be given with reference to fig. 3, but the present solution is not limited thereto. Fig. 3 is a schematic diagram of display control of an atmosphere lamp in this embodiment, as shown in fig. 3, assuming that 4 atmosphere lamp colors are contained in a total sequence of atmosphere lamp colors specified by a user, each color corresponds to 2*N LEDs, etc., the atmosphere lamp of the vehicle contains 8*N LEDs in total at this time, and since the colors contained in 1-4 of the sequence, there are no adjacent colors to the left of the first color, and no adjacent colors to the right of the fourth color, then the N LEDs in the first half of the 1 st color may be controlled first at this time to correspond to the 1 st color; the N LEDs at the latter half of the 4 th color correspond to the 4 th color;
at this time, for two adjacent colors (respectively referred to as a color (1) and a color (2)) in the color sequence of the atmosphere lamp, the right half of the color (1) is adjacent to the left half of the color (2), when a transition region is selected, only N LEDs on the right half of the color (1) and N LEDs on the left half of the color (2) need to be considered, at this time, the N LEDs can be numbered as 1-2N, transition color data corresponding to the adjacent colors are acquired, the number of transition colors is determined, and if the number of the transition colors is 0, namely, no transition color is needed between the color (1) and the color (2), the LEDs of 1-N can be controlled to correspond to the color (1), and the LEDs of n+1-2N correspond to the color (2);
If the number of the transition colors is 1, namely, only 1 transition color is provided, at the moment, the LEDs of 1 to N-1 correspond to the color (1), the LEDs of N to N+1 correspond to the transition color, and the LEDs of N+2 to 2N correspond to the color (2);
if the number of the transition colors is 3, that is, if three transition colors exist, at the moment, the LEDs of 1 to N-2 correspond to the color (1), the N-1 LED corresponds to the transition color (2), the N+1th LED corresponds to the transition color (3), and the LEDs of N+2 to 2N correspond to the color (2).
In the embodiment, by extracting adjacent color combinations in an atmosphere lamp color sequence designated by a user, the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors; analyzing the adjacent color combinations to obtain first color data and second color data; comparing the first color data with the second color data to generate transition color data corresponding to adjacent color combinations; and controlling the running of the atmosphere lamp of the vehicle according to the transition color data and the color sequence of the atmosphere lamp. Because the corresponding transition color data can be generated for the adjacent color combinations in the atmosphere lamp color sequence appointed by the user, the phenomenon that color collocation is hard is avoided when the atmosphere lamp is controlled to run by the color of the atmosphere lamp appointed by the user, and a better atmosphere lamp display effect can be obtained, so that the user can set the color of the atmosphere lamp according to actual needs, and the control degree of freedom of the user on the atmosphere lamp of the vehicle is improved.
Referring to fig. 4, fig. 4 is a flowchart of a second embodiment of an atmosphere lamp control method according to the present invention.
Based on the above-described first embodiment, the step S30 of the atmosphere lamp control method of the present embodiment includes:
step S301: and sequencing the color values corresponding to the color channels in the first color data from large to small to obtain a first color value sequence.
It should be noted that, the sorting of the color values corresponding to each color channel in the first color data from large to small may be performed to obtain the first color value sequence, where the sorting result may be used as the first color value sequence by sorting the color values corresponding to each color channel in the first color data from large to small. The first color value sequence comprises a first maximum color value, a first middle color value and a first minimum color value.
For example: assuming that the RGB data in the first color data is represented as (255,70,0), at this time, the color value corresponding to the R color channel is 255, the color value corresponding to the g color channel is 70, and the color value corresponding to the b color channel is 0, at this time, the first color value sequence is 255-70-0, at this time, the first maximum color value is 255, and the corresponding color channel is R; the first intermediate color value is 70, and the corresponding color channel is G; the first minimum color value is 0 and the corresponding color channel is B.
Step S302: and sequencing the color values corresponding to the color channels in the second color data from large to small to obtain a second color value sequence.
It is understood that the second color value sequence includes a second maximum color value, a second intermediate color value, and a second minimum color value. The manner of obtaining the second color value sequence is the same as the manner of obtaining the first color value sequence, and will not be described here again.
Step S303: and comparing the first color value sequence with the second color value sequence in a color channel, and generating transition color data corresponding to the adjacent color combination according to the color channel comparison result.
It should be noted that, the color channel comparison may be performed on the first color value sequence and the second color value sequence, or may be performed on color values with consistent sequences in the first color value sequence and the second color value sequence, for example: and comparing the color channels of the first maximum color value in the first color value sequence with the second maximum color value in the second color value sequence, and determining whether the color channels corresponding to the first maximum color value and the second maximum color value are the same.
In a specific implementation, the color channel comparison result can be used for determining the color difference of two atmosphere lamps in the adjacent color combinations, so as to determine whether the corresponding transition color needs to be set, and when the transition color needs to be set, generating transition color data corresponding to the adjacent color combinations.
In this embodiment, the color values corresponding to the color channels in the first color data are ordered from large to small to obtain a first color value sequence; sequencing the color values corresponding to all the color channels in the second color data from large to small to obtain a second color value sequence; and comparing the first color value sequence with the second color value sequence in a color channel, and generating transition color data corresponding to the adjacent color combination according to the color channel comparison result. The first color data and the second color data are respectively sequenced, and the color channel comparison is performed based on the sequencing result, so that whether the maximum color value, the middle color value and the minimum color value in the two color data correspond to the same color channel or not can be ensured to be rapidly determined, and whether the transition color needs to be set or not can be ensured to be rapidly determined.
Referring to fig. 5, fig. 5 is a flowchart of a third embodiment of an atmosphere lamp control method according to the present invention.
Based on the above second embodiment, the step S303 of the atmosphere lamp control method of the present embodiment may include:
step S3031: and detecting whether the first maximum color value and the second maximum color value correspond to the same color channel.
It should be noted that, in order to quickly determine whether the difference between the colors of the two atmosphere lamps in the adjacent color combinations is large, it may be compared whether the maximum color value in the color data corresponds to the same color channel, so it may be detected whether the first maximum color value and the second maximum color value correspond to the same color channel.
Step S3032: if the first maximum color value and the second maximum color value correspond to the same color channel, detecting whether the first intermediate color value and the second intermediate color value correspond to the same color channel.
It can be understood that if the first maximum color value and the second maximum color value correspond to the same color channel, the difference between the colors of the two atmosphere lamps in the adjacent color combinations is not very large, but according to the color transition that may be caused to be hard, in order to more accurately determine whether the excessive color needs to be set, whether the first intermediate color value and the second intermediate color value correspond to the same color channel may be further detected.
Step S3033: and if the first intermediate color value and the second intermediate color value correspond to the same color channel, acquiring the absolute value of the difference value between the first intermediate color value and the second intermediate color value.
It can be understood that if the first intermediate color value and the second intermediate color value correspond to the same color channel, the difference between the colors of the two atmosphere lamps in the adjacent color combinations is smaller, but there is still a possibility that the color transition is hard, so that in order to further determine whether the transition color needs to be set, the absolute value of the difference between the first intermediate color value and the second intermediate color value can be obtained to further determine.
Step S3034: and if the absolute value of the difference is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
It should be noted that, the first color threshold may be set in advance by a manager of the atmosphere lamp control device, and the first color threshold may be set to half of the maximum value of the color values supported in the color channel, for example: taking RGB color data as an example, the color value of the single color channel takes a value of 0-255, the first color threshold may be set to half of 255, that is, 128.
In actual use, if the absolute value of the difference is smaller than or equal to the first color threshold, the color difference of the two atmosphere lamps in the adjacent color combination is very small, the occurrence of color transition hardness is avoided, and the transition color is not required to be set; if the absolute value of the difference is larger than the first color threshold, it indicates that there is a certain difference between the colors of the two atmosphere lamps in the adjacent color combinations, which results in hard color transition, and a transition color needs to be set.
In a specific implementation, the transition color data with one transition color number is generated according to the first color value sequence and the second color value sequence may be a transition color, a maximum value of color values in RGB values of the transition color is the same as a color channel corresponding to the first maximum color value, the value is identical to the first maximum color value, an intermediate value of the color values is the same as a color channel corresponding to the first intermediate color value, the value is an average value of the first intermediate color value and the second intermediate color value, a minimum value of the color values is the same as a color channel corresponding to the first minimum color value, and the value is identical to the first minimum color value.
Further, in order to reasonably set the transition color, after step S3032 in this embodiment, the method may further include:
if the first intermediate color value and the second intermediate color value do not correspond to the same color channel, obtaining a sum value of the first intermediate color value and the second intermediate color value;
and if the sum of the first intermediate color value and the second intermediate color value is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
It should be noted that, if the first intermediate color value and the second intermediate color value do not correspond to the same color channel, the sum of the first intermediate color value and the second intermediate color value is obtained, which indicates that there is a certain difference between the colors of the two atmosphere lamps in the adjacent color combinations, but further judgment is needed, and at this time, in order to further accurately judge whether the transition color needs to be set, the sum of the first intermediate color value and the second intermediate color value may be obtained.
In actual use, if the sum of the first intermediate color value and the second intermediate color value is smaller than or equal to the first color threshold value, the color difference of the two atmosphere lamps in the adjacent color combination is very small, the color transition is not hard, and the transition color is not required to be set; if the sum of the first intermediate color value and the second intermediate color value is greater than the first color threshold, it indicates that there is a certain difference between the colors of the two atmosphere lamps in the adjacent color combinations, which results in hard color transition, and a transition color needs to be set.
At this time, the transition color data with one transition color number may be generated according to the first color value sequence and the second color value sequence, where the maximum value of the color values in the RGB values of the transition color is the same as the color channel corresponding to the first maximum color value, the value is the same as the first maximum color value, the intermediate value of the color values is the same as the color channel corresponding to the first intermediate color value, the value is half of the first intermediate color value, the minimum value of the color values is the same as the color channel corresponding to the first minimum color value, and the value is half of the second minimum color value.
Further, in order to reasonably set the transition color, after step S3031 in this embodiment, the method may further include:
if the first maximum color value and the second maximum color value do not correspond to the same color channel, detecting whether the first intermediate color value and the second intermediate color value are both greater than or equal to a second color threshold;
if the first intermediate color value is smaller than the second color threshold or the second intermediate color value is smaller than the second color threshold, performing secondary color channel comparison according to the first intermediate color value, the second intermediate color value, the first minimum color value and the second minimum color value;
and generating transition color data with three transition colors by combining the first color value sequence and the second color value sequence based on the comparison result of the two-level color channel comparison.
It should be noted that, the second color threshold may also be set in advance by a manager of the atmosphere lamp control device, where the second color threshold is greater than the first color threshold.
In a specific implementation, if the first maximum color value and the second maximum color value do not correspond to the same color channel, the possibility that the difference of the colors of the two atmosphere lamps in the adjacent color combination is high at this time is extremely high, and in order to further accurately judge, whether the first intermediate color value and the second intermediate color value are both greater than or equal to the second color threshold value can be detected.
In actual use, if the first intermediate color value and the second intermediate color value are both greater than or equal to the second color threshold value, the color difference of the two atmosphere lamps in the adjacent color combination is very small, the color transition is not hard, and the transition color is not required to be set; if the first intermediate color value is smaller than the second color threshold value or the second intermediate color value is smaller than the second color threshold value, the color difference of the two atmosphere lamps in the adjacent color combinations is very large, multiple transition colors are required to be set at the moment, and in order to determine how to set multiple transition colors specifically, two-level color channel comparison can be performed according to the first intermediate color value, the second intermediate color value, the first minimum color value and the second minimum color value, and how to generate transition color data is determined according to the comparison result.
For ease of understanding, fig. 6 is a schematic flow chart of the transition color data generation algorithm according to the present embodiment. As shown in fig. 6, the atmosphere lamp control device obtains RGB values of each color selected by a customer on 64 colors preset in a DA (mobile phone interconnection intelligent system matched with a vehicle), compares 2 adjacent colors (color (1) and color (2)) in sequence, and respectively names the RGB values of the color (1) as X1 (first maximum color value), Y1 (first intermediate color value) and Z1 (first minimum color value) in order of magnitude, wherein X1 is greater than or equal to Y1 is greater than or equal to Z1; similarly, the colors (2) are respectively designated as X2 (second maximum color value), Y2 (second intermediate color value), and Z2 ((second minimum color value)). Assuming that x1=x2=255, z1=z2=0, 0 < Y1& Y2 < 255;
Then, it is compared whether X1 and X2 correspond to the same color system (if the corresponding color channels are the same, it is determined that the same color system is corresponding to the same color system, otherwise, it is determined that the different color systems are corresponding to the different color systems), if X1 and X2 correspond to the same color system, it is further detected whether Y1 and Y2 correspond to the same color system, if Y1 and Y2 correspond to the same color system, it is further detected whether the absolute value of the difference between Y1 and Y2 is smaller than the first color threshold (i.e., it is detected whether |y1-y2|is smaller than or equal to 128), if yes, no transition color is set, and if not, transition color data of transition color number 1 is set, at this time, transition color RGB values are X3, Y3, Z3, X3=255 or X1, Y3 and Y1, Y3= (y1+y2)/2, Z3 and Z1 are the same color system, Z3=0 or Z1.
If Y1 and Y2 do not correspond to the same color system, it is detected whether the sum of Y1 and Y2 is less than or equal to the first color threshold, if yes, no transition color is set, if not, transition color data with transition color number of 1 is set, at this time, RGB values of the transition colors are X3, Y3, Z3, X3 and X1, x3=255 or X1, Y3 and Y1, y3=y1/2, Z3 and Z1, and z3=y2/2.
If X1 and X2 do not correspond to the same color system, then detecting whether Y1 and Y2 are both greater than or equal to a second color threshold (namely detecting that Y1 is greater than or equal to 129 and Y2 is greater than or equal to 129), if yes, setting no transition color; if not, performing secondary color channel comparison, wherein at this time, Y1 and Y2 can be compared to correspond to the same color system, if Y1 and Y2 correspond to the same color system, at this time, transition color data with the transition color number of 3 can be set, at this time, transition colors are transition colors (1) (2) (3) from left to right, RGB of the transition color (1) are X3, Y3, Z3, X3 and X1 same color system, x3=255, Y3 and Y1 same color system, y3= (3y1+y2)/4, Z3 and Z1 same color system, and z3=128; RGB for transition color (2) is X4, Y4, Z4, X4 is the same color system as X1, x4=255 or X1, Y4 is the same color system as X2, y4=255 or X2, z4= (y1+y2)/2, RGB for transition color (3) is X5, Y5, Z5, X5 is the same color system as X2, x5=255 or X2, Y5 is the same color system as Y2, y5= (3y2+y1)/4, Z5 is the same color system as Z2, z5=128;
If Y1 and Y2 correspond to different color systems, it may be further detected whether Z1 and Z2 correspond to the same color system, if Z1 and Z2 correspond to the same color system, transition color data with a transition color number of 3 may be set at this time, transition colors from left to right are transition colors (1) (2) (3), RGB of transition color (1) are X3, Y3, Z3, X3 and X1 same color system, x3=255 or X1, Y3 and Y1 same color system, y3= (y1+255)/2, Z3 and Z1 same color system, z3=0, RGB of transition color (2) is X4, Y4, Z4 and X1 same color system, x4=255 or X1, Y4 and X2 same color system, y4=0, RGB of transition color (3) is X5, Y5, Z5 and X2 same color system, x5=255 or x2, Y5 and Y2 same color system, Y3 and Y2+0, and Y5+2 same color system;
if Z1 and Z2 do not correspond to the same color system, it may be further detected whether Y1 and X2 correspond to the same color system, at this time, if Y1 and X2 correspond to the same color system, transition color data with a transition color number of 3 may be set, at this time, transition colors from left to right are transition colors (1) (2) (3), RGB of the transition color (1) are X3, Y3, Z3, X3 and X1 same color system, x3=255 or X1, Y3 and Y1 same color system, y3= (y1+255)/2, Z3 and Z1 same color system, z3=y2/4, RGB of the transition color (2) is X4, Y4, Z4, X4=255 or X1, Y4 and X2 same color system, z4=y2/2, RGB of the transition color (3) is X5, Y5, Z5, X5 and X2 same color system, X5=x5 and X2/2, and X5=x5, Z5 and X5=y5 and Z5=y2/2, and Z5=3;
If Y1 and X2 correspond to different color systems, transition color data with a transition color number of 3 may be set, where the transition colors are transition colors (1) (2) (3) from left to right, RGB of the transition color (1) is X3, Y3, Z3, X3 and X1 are the same color system, x3=255 or X1, Y3 and Y1 are the same color system, y3=3y1/4, Z3 and Z1 are the same color system, z3=128, RGB of the transition color (2) is X4, Y4, Z4, X4 and X1 are the same color system, x4=255 or X1, Y4 and X2 are the same color system, y4=y1/2, RGB of the transition color (3) is X5, Y5, Z5, X5 and X2 are the same color system, x5=255 or X2, Y5 and Y2 are the same color system, y5= (y2+2)/Z2 are the same color system, and x4=z 2 are the same color system, and Z4=z 1/2.
According to the embodiment, whether the color values in the color value sequences corresponding to the two colors in the adjacent color combinations correspond to the same color channel is compared, and the transition color data are set in different modes according to different comparison results, so that the set transition color data can play a role in color buffering, and excessive hardness of the two colors in the color value sequences is avoided.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores an atmosphere lamp control program, and the atmosphere lamp control program realizes the steps of the atmosphere lamp control method when being executed by a processor.
Referring to fig. 7, fig. 7 is a block diagram showing the structure of a first embodiment of the atmosphere lamp control device according to the present invention.
As shown in fig. 7, an atmosphere lamp control device according to an embodiment of the present invention includes:
a color receiving module 10, configured to extract adjacent color combinations in an atmosphere lamp color sequence specified by a user, where the atmosphere lamp color sequence includes multiple different atmosphere lamp colors;
the data analysis module 20 is configured to analyze the adjacent color combinations to obtain first color data and second color data;
the color comparison module 30 is configured to compare the first color data and the second color data to generate transition color data corresponding to the adjacent color combination;
and the light control module 40 is used for controlling the running of the vehicle atmosphere lamp according to the transition color data and the atmosphere lamp color sequence.
In the embodiment, by extracting adjacent color combinations in an atmosphere lamp color sequence designated by a user, the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors; analyzing the adjacent color combinations to obtain first color data and second color data; comparing the first color data with the second color data to generate transition color data corresponding to adjacent color combinations; and controlling the running of the atmosphere lamp of the vehicle according to the transition color data and the color sequence of the atmosphere lamp. Because the corresponding transition color data can be generated for the adjacent color combinations in the atmosphere lamp color sequence appointed by the user, the phenomenon that color collocation is hard is avoided when the atmosphere lamp is controlled to run by the color of the atmosphere lamp appointed by the user, and a better atmosphere lamp display effect can be obtained, so that the user can set the color of the atmosphere lamp according to actual needs, and the control degree of freedom of the user on the atmosphere lamp of the vehicle is improved.
Further, the color comparison module 30 is further configured to sort color values corresponding to each color channel in the first color data from large to small, so as to obtain a first color value sequence; sequencing the color values corresponding to all the color channels in the second color data from large to small to obtain a second color value sequence; and comparing the first color value sequence with the second color value sequence in a color channel, and generating transition color data corresponding to the adjacent color combination according to the color channel comparison result.
Further, the first color value sequence includes a first maximum color value, a first intermediate color value, and a first minimum color value, and the second color value sequence includes a second maximum color value, a second intermediate color value, and a second minimum color value;
the color comparison module 30 is further configured to detect whether the first maximum color value and the second maximum color value correspond to the same color channel; if the first maximum color value and the second maximum color value correspond to the same color channel, detecting whether the first intermediate color value and the second intermediate color value correspond to the same color channel; if the first intermediate color value and the second intermediate color value correspond to the same color channel, acquiring a difference absolute value between the first intermediate color value and the second intermediate color value; and if the absolute value of the difference is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
Further, the color comparison module 30 is further configured to obtain a sum of the first intermediate color value and the second intermediate color value if the first intermediate color value and the second intermediate color value do not correspond to the same color channel; and if the sum of the first intermediate color value and the second intermediate color value is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
Further, the color comparison module 30 is further configured to detect whether the first intermediate color value and the second intermediate color value are both greater than or equal to a second color threshold if the first maximum color value and the second maximum color value do not correspond to the same color channel; if the first intermediate color value is smaller than the second color threshold or the second intermediate color value is smaller than the second color threshold, performing secondary color channel comparison according to the first intermediate color value, the second intermediate color value, the first minimum color value and the second minimum color value; and generating transition color data with three transition colors by combining the first color value sequence and the second color value sequence based on the comparison result of the two-level color channel comparison.
Further, the light control module 40 is further configured to divide the vehicle atmosphere lamps according to the atmosphere lamp color sequence, and determine an atmosphere lamp area corresponding to each atmosphere lamp color in the atmosphere lamp color sequence; selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps; and controlling the operation of the vehicle atmosphere lamps in the atmosphere lamp area according to the color of the atmosphere lamps, and controlling the operation of the vehicle atmosphere lamps in the transition area according to the transition color data.
Further, the light control module 40 is further configured to determine the number of transition colors according to the transition color data; and selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps according to the transition color quantity.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in the present embodiment may refer to the method for controlling an atmosphere lamp provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. An atmosphere lamp control method, characterized in that the atmosphere lamp control method comprises the steps of:
extracting adjacent color combinations in an atmosphere lamp color sequence appointed by a user, wherein the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors;
analyzing the adjacent color combinations to obtain first color data and second color data;
comparing the first color data with the second color data to generate transition color data corresponding to the adjacent color combination;
and controlling the running of the vehicle atmosphere lamp according to the transition color data and the atmosphere lamp color sequence.
2. The method of controlling an atmosphere lamp according to claim 1, wherein the step of comparing the first color data and the second color data to generate transition color data corresponding to the adjacent color combination comprises:
Sequencing color values corresponding to all color channels in the first color data from large to small to obtain a first color value sequence;
sequencing the color values corresponding to all the color channels in the second color data from large to small to obtain a second color value sequence;
and comparing the first color value sequence with the second color value sequence in a color channel, and generating transition color data corresponding to the adjacent color combination according to the color channel comparison result.
3. The atmosphere lamp control method according to claim 2, wherein the first color value sequence includes a first maximum color value, a first intermediate color value, and a first minimum color value, and the second color value sequence includes a second maximum color value, a second intermediate color value, and a second minimum color value;
the step of comparing the first color value sequence with the second color value sequence in a color channel and generating transition color data corresponding to the adjacent color combination according to the color channel comparison result comprises the following steps:
detecting whether the first maximum color value and the second maximum color value correspond to the same color channel;
if the first maximum color value and the second maximum color value correspond to the same color channel, detecting whether the first intermediate color value and the second intermediate color value correspond to the same color channel;
If the first intermediate color value and the second intermediate color value correspond to the same color channel, acquiring a difference absolute value between the first intermediate color value and the second intermediate color value;
and if the absolute value of the difference is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
4. The method of controlling an atmosphere lamp according to claim 3, wherein the step of detecting whether the first intermediate color value and the second intermediate color value correspond to the same color channel further comprises, after the step of detecting that the first maximum color value and the second maximum color value correspond to the same color channel:
if the first intermediate color value and the second intermediate color value do not correspond to the same color channel, obtaining a sum value of the first intermediate color value and the second intermediate color value;
and if the sum of the first intermediate color value and the second intermediate color value is larger than a first color threshold value, generating transition color data with one transition color number according to the first color value sequence and the second color value sequence.
5. The atmosphere lamp control method according to claim 3, wherein after the step of detecting whether the first maximum color value and the second maximum color value correspond to the same color channel, further comprising:
If the first maximum color value and the second maximum color value do not correspond to the same color channel, detecting whether the first intermediate color value and the second intermediate color value are both greater than or equal to a second color threshold;
if the first intermediate color value is smaller than the second color threshold or the second intermediate color value is smaller than the second color threshold, performing secondary color channel comparison according to the first intermediate color value, the second intermediate color value, the first minimum color value and the second minimum color value;
and generating transition color data with three transition colors by combining the first color value sequence and the second color value sequence based on the comparison result of the two-level color channel comparison.
6. The atmosphere lamp control method according to any one of claims 1-5, wherein the step of controlling operation of the vehicle atmosphere lamp according to the transition color data and the atmosphere lamp color sequence comprises:
dividing the vehicle atmosphere lamps according to the atmosphere lamp color sequence, and determining atmosphere lamp areas corresponding to the atmosphere lamp colors in the atmosphere lamp color sequence;
selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps;
And controlling the operation of the vehicle atmosphere lamps in the atmosphere lamp area according to the color of the atmosphere lamps, and controlling the operation of the vehicle atmosphere lamps in the transition area according to the transition color data.
7. The method of controlling an atmosphere lamp according to claim 6, wherein the step of selecting a transition region from the atmosphere lamp regions corresponding to the respective atmosphere lamp colors comprises:
determining the number of transition colors according to the transition color data;
and selecting a transition area from the atmosphere lamp areas corresponding to the colors of the atmosphere lamps according to the transition color quantity.
8. An atmosphere lamp control device, characterized in that the atmosphere lamp control device may comprise the following modules:
the color receiving module is used for extracting adjacent color combinations in an atmosphere lamp color sequence appointed by a user, wherein the atmosphere lamp color sequence comprises a plurality of different atmosphere lamp colors;
the data analysis module is used for analyzing the adjacent color combinations to obtain first color data and second color data;
the color comparison module is used for comparing the first color data with the second color data to generate transition color data corresponding to the adjacent color combination;
and the light control module is used for controlling the running of the atmosphere lamp of the vehicle according to the transition color data and the color sequence of the atmosphere lamp.
9. An atmosphere lamp control device, characterized in that the atmosphere lamp control device may comprise: processor, memory and an atmosphere lamp control program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the atmosphere lamp control method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an atmosphere lamp control program, which when executed, implements the steps of the atmosphere lamp control method according to any one of claims 1-7.
CN202310486039.8A 2023-04-28 2023-04-28 Atmosphere lamp control method, apparatus, device and storage medium Pending CN116476732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310486039.8A CN116476732A (en) 2023-04-28 2023-04-28 Atmosphere lamp control method, apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310486039.8A CN116476732A (en) 2023-04-28 2023-04-28 Atmosphere lamp control method, apparatus, device and storage medium

Publications (1)

Publication Number Publication Date
CN116476732A true CN116476732A (en) 2023-07-25

Family

ID=87224931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310486039.8A Pending CN116476732A (en) 2023-04-28 2023-04-28 Atmosphere lamp control method, apparatus, device and storage medium

Country Status (1)

Country Link
CN (1) CN116476732A (en)

Similar Documents

Publication Publication Date Title
CN109840648B (en) Method and device for outputting bin information
JP2023030023A (en) Shelf allocation support device, shelf allocation support method, and program
JPWO2015145766A1 (en) Color estimation apparatus, color estimation method, and color estimation program
US8958634B2 (en) Image processing device that displays retrieved image similar to target image
US9870618B2 (en) Image processing apparatus and image processing method
CN111210071A (en) Business object prediction method, device, equipment and readable storage medium
US7991617B2 (en) Optimum design management apparatus from response surface calculation and method thereof
JP2011158938A (en) System and program for assisting grouping
CN111626346A (en) Data classification method, device, storage medium and device
JP2018181148A (en) Information output program, information output method, and information processing apparatus
Reif et al. Meta2-features: Providing meta-learners more information
CN116476732A (en) Atmosphere lamp control method, apparatus, device and storage medium
CN112860850A (en) Man-machine interaction method, device, equipment and storage medium
CN112306452A (en) Method, device and system for processing service data by merging and sorting algorithm
WO2016053343A1 (en) Intent based clustering
WO2014010576A1 (en) Coloration support device, coloration support method, and program
US11749021B2 (en) Retrieval device, control method, and non-transitory storage medium
CN114780589A (en) Multi-table connection query method, device, equipment and storage medium
CN113886628A (en) Image retrieval method, device and storage medium
KR102072894B1 (en) Abnormal sequence identification method based on intron and exon
JP2004094379A (en) Similar image retrieval device
CN114167223B (en) Power supply abnormity detection method and device and computer readable storage medium
KR101649913B1 (en) Apparatus and method for managing a research and development project
CN110046321B (en) Curve integral calculation method, device, equipment and storage medium
CN111625099B (en) Animation display control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination