CN115426748A - Atmosphere lamp control method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN115426748A
CN115426748A CN202211178401.7A CN202211178401A CN115426748A CN 115426748 A CN115426748 A CN 115426748A CN 202211178401 A CN202211178401 A CN 202211178401A CN 115426748 A CN115426748 A CN 115426748A
Authority
CN
China
Prior art keywords
color
atmosphere lamp
vehicle
tone
screen
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
CN202211178401.7A
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.)
Xinghe Zhilian Automobile Technology Co Ltd
Original Assignee
Xinghe Zhilian Automobile Technology Co Ltd
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 Xinghe Zhilian Automobile Technology Co Ltd filed Critical Xinghe Zhilian Automobile Technology Co Ltd
Priority to CN202211178401.7A priority Critical patent/CN115426748A/en
Publication of CN115426748A publication Critical patent/CN115426748A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • 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
    • 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
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/155Coordinated control of two or more light sources

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses an atmosphere lamp control method, device, equipment and storage medium, which are characterized in that a starting instruction of a vehicle-mounted game input by a user is responded, and picture images of a current screen of a control screen in a vehicle end are sequentially captured according to preset screen capturing interval time; extracting a preset number of main tones in the intercepted picture image as tone parameters; and controlling the atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameter. The atmosphere lamp is subjected to linkage control through the vehicle-end game picture, and more rhythmic and immersive atmosphere lamp light is provided for the user.

Description

Atmosphere lamp control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent sensing, in particular to an atmosphere lamp control method, device, equipment and storage medium.
Background
Along with the permeability of vehicle-mounted games under the entertainment scene of the automobile cabin is higher and higher, the atmosphere lamp configured by the cabin plays an important role in creating game environments. At present, the regulation of the atmosphere lamp needs manual regulation of a vehicle owner, or a manufacturer presets rhythm effect in advance, the existing atmosphere lamp control cannot be in linkage control with other systems at the vehicle end, the provided atmosphere lamp control method is very monotonous, and more rhythm and immersion type atmosphere lamp light cannot be provided.
Disclosure of Invention
In order to solve the problems, the invention provides an atmosphere lamp control method, an atmosphere lamp control device, atmosphere lamp control equipment and a storage medium.
The embodiment of the invention provides an atmosphere lamp control method, which comprises the following steps:
in response to a starting instruction of a vehicle-mounted game input by a user, sequentially capturing picture images of a current screen of a control screen in a vehicle end according to preset screen capturing interval time;
extracting a preset number of main tones in the intercepted picture image as tone parameters;
and controlling the atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameter.
Preferably, the screen capture interval time Q = X/(M × N);
wherein, X is the average playing time of starting the vehicle-mounted game each time according to the running data statistics of the vehicle-mounted game recorded by the vehicle end, M is the average playing stage number of starting the vehicle-mounted game each time according to the running data statistics of the vehicle-mounted game recorded by the vehicle end, and N is the average artistic style type of each game stage according to the running data statistics of the vehicle-mounted game recorded by the vehicle end.
Further, the extracting of the preset number of keytones in the captured image as a tone parameter specifically includes:
sequentially extracting colors with the preset number from high to low in the number of pixel points in the picture image by adopting a dominant hue extraction algorithm to serve as dominant hues;
and sequencing several colors in the main tone from high to low according to the number of pixel points in the picture image to be used as tone parameters.
As a modification of the above, the preset number is not greater than the number of colors supported by the atmosphere lamp.
Preferably, the controlling of the atmosphere lamp configured at the vehicle end according to the hue parameter to output corresponding hue lamp light specifically includes:
circularly acquiring each color in the hue parameters in sequence according to a preset atmosphere lamp control interval, and inquiring whether a color library preset by the atmosphere lamp has the color or not;
when the color is provided in the color library, controlling the atmosphere lamp to output corresponding hue light according to the color value corresponding to the color;
and when the color is not available in the color library, randomly selecting a color in the color library, and controlling the atmosphere lamp to output corresponding tone light according to the color value corresponding to the color.
As a preferable scheme, the method further comprises:
when the camera arranged at the vehicle end detects that the sight of the user leaves the central control screen, a real-time image of the current screen of the central control screen at the vehicle end is captured;
and updating the hue lamplight output by the atmosphere lamp according to the hue parameter extracted from the real-time image.
Preferably, the method further comprises:
and when an exit instruction or an atmosphere lamp closing instruction of the vehicle-mounted game input by the user is detected, controlling the atmosphere lamp to be closed.
The embodiment of the invention also provides an atmosphere lamp control device, which comprises:
the image acquisition module is used for responding to a starting instruction of a vehicle-mounted game input by a user and sequentially intercepting the picture images of the current screen of the central control screen of the vehicle end according to preset screen interception interval time;
the tone extraction module is used for extracting a preset number of main tones in the intercepted picture image as tone parameters;
and the light control module is used for controlling the atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameter.
Preferably, the screen capture interval time Q = X/(M × N);
wherein, X is the average playing time of starting the vehicle-mounted game each time according to the running data statistics of the vehicle-mounted game recorded by the vehicle end, M is the average playing stage number of starting the vehicle-mounted game each time according to the running data statistics of the vehicle-mounted game recorded by the vehicle end, and N is the average artistic style type of each game stage according to the running data statistics of the vehicle-mounted game recorded by the vehicle end.
As a preferred scheme, the hue extraction module is specifically configured to:
sequentially extracting colors with the preset number from high to low in the number of pixel points in the picture image by adopting a dominant hue extraction algorithm to serve as dominant hues;
and sequencing several colors in the main tone from high to low according to the number of pixel points in the picture image to be used as tone parameters.
Further, the preset number is not greater than the number of colors supported by the ambience lamp.
Preferably, the light control module is specifically configured to:
sequentially and circularly acquiring each color in the hue parameters according to a preset atmosphere lamp control interval, and inquiring whether a preset color library of the atmosphere lamp has the color or not;
when the color is provided in the color library, controlling the atmosphere lamp to output corresponding hue light according to the color value corresponding to the color;
and when the color is not available in the color library, randomly selecting a color in the color library, and controlling the atmosphere lamp to output corresponding tone light according to the color value corresponding to the color.
Preferably, the apparatus further comprises a passive control module for:
when the camera arranged at the vehicle end detects that the sight of the user leaves the central control screen, a real-time image of the current screen of the central control screen at the vehicle end is captured;
and updating the color tone light output by the atmosphere lamp according to the color tone parameter extracted from the real-time image.
Preferably, the apparatus further comprises a shutdown control module for:
and when an exit instruction or an atmosphere lamp closing instruction of the vehicle-mounted game input by the user is detected, controlling the atmosphere lamp to be closed.
Embodiments of the present invention further provide a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where the computer program, when executed, controls an apparatus on which the computer-readable storage medium is located to perform an ambience lamp control method according to any one of the above embodiments.
The invention provides an atmosphere lamp control method, device, equipment and storage medium, which are characterized in that a starting instruction of a vehicle-mounted game input by a user is responded, and picture images of a current screen of a control screen in a vehicle end are sequentially captured according to preset screen capturing interval time; extracting a preset number of main tones in the intercepted picture image as tone parameters; and controlling the atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameter. The atmosphere lamp is subjected to linkage control through the vehicle-end game picture, and more rhythmic and immersive atmosphere lamp light is provided for the user.
Drawings
FIG. 1 is a schematic flow chart of an atmosphere lamp control method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an atmosphere lamp control device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Example one
Referring to fig. 1, which is a schematic flow chart of an atmosphere lamp control method provided in an embodiment of the present invention, the method includes steps S1 to S3;
s1, sequentially capturing picture images of a current screen of a central control screen of a vehicle end according to preset screen capturing interval time in response to a starting instruction of a vehicle-mounted game input by a user;
s2, extracting a preset number of main tones in the intercepted picture image as tone parameters;
and S3, controlling the atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameter.
In the specific implementation of the embodiment, the atmosphere lamp configured at the vehicle end is controlled together with the vehicle end, and the control process of the atmosphere lamp requires a user to start a vehicle-mounted game;
after a user starts a vehicle-mounted game, a subsequent atmosphere lamp control process is carried out, picture images of a current screen of a central control screen of a vehicle end are sequentially intercepted according to preset screen interception interval time, the data quantity of the tone parameters for subsequently carrying out atmosphere lamp control can be determined by the length of the screen interception interval time, occupation of the control process on computing power is also influenced, therefore, a proper screen interception time interval needs to be set, and under the scene of the vehicle-mounted game, the game experience is improved, and meanwhile, the occupation of the computing power of a vehicle is reduced greatly.
The preset number of the dominant hues in the captured picture image are extracted to serve as hue parameters, the extraction number of the dominant hues needs to be designed in advance, the problem that the dominant hue extraction occupies large calculation power due to the fact that a proper amount of the dominant hues are automatically extracted in the process of extracting the dominant hues by an existing image processing algorithm is avoided, and the problem that the control of the atmosphere lamp is unbalanced due to the fact that the extracted dominant hues are uneven in number is also avoided.
And controlling the atmosphere lamp output corresponding to the tone light configured at the vehicle end according to the tone parameter so as to provide more rhythmic and immersive atmosphere light for the user through extracting the main tone of the game screenshot image and controlling the atmosphere lamp according to the game tone.
Example two
In yet another embodiment provided by the present invention, the screen capture interval time Q = X/(M × N);
wherein, X is the average playing time of starting the vehicle-mounted game each time according to the running data statistics of the vehicle-mounted game recorded by the vehicle end, M is the average playing stage number of starting the vehicle-mounted game each time according to the running data statistics of the vehicle-mounted game recorded by the vehicle end, and N is the average artistic style type of each game stage according to the running data statistics of the vehicle-mounted game recorded by the vehicle end.
When the embodiment is implemented specifically, a user starts a vehicle-mounted game, and in the normal operation process, the screen capturing time is determined by determining reasonable screen capturing interval time, so that the screen capturing times and the occupation of subsequent dominant hue identification calculation power are reduced, and the method specifically comprises the following steps:
and the car end counts running data of the vehicle-mounted game during the period from the start to the close of the vehicle-mounted game every time, wherein the running data comprises the running time from the start to the close of the vehicle-mounted game, the number of playing level cards and the artistic style of the game level cards, and the artistic style of the game level cards can be determined by game setting, and the game is analyzed and determined or manually recorded through a preset algorithm.
And according to the running data recorded by the vehicle end, counting that the average playing time of each time of starting the vehicle-mounted game is X seconds, the average playing stage number of each time of starting the vehicle-mounted game is M, and the average artistic style type of each game stage is N.
Therefore, the screen capture times are M × N, the total duration is X, and the interval screen capture time Q = X/(M × N) is set, namely, the screen capture is automatically completed every Q seconds. X, M, N can be set as adjustable parameters, X, N and X can be set as an initial value according to experience in an initial state, and can be adjusted with more and more subsequent operation data collection in the running process of the vehicle-mounted game; initial values X =1800 seconds, M =3 and n =5 are set, and an initial value Q =120 seconds is calculated.
By counting game running data and setting screen capture interval time, the atmosphere lamp control process can be determined according to game data of a user, and humanized atmosphere lamp control is achieved.
EXAMPLE III
In another embodiment provided by the present invention, the extracting a preset number of keytones in the captured picture image as a tone parameter specifically includes:
sequentially extracting colors with the preset number from high to low in the number of pixel points in the picture image by adopting a dominant hue extraction algorithm to serve as dominant hues;
and sequencing several colors in the main tone from high to low according to the number of pixel points in the picture image to be used as tone parameters.
In the specific implementation of this embodiment, after the picture image is extracted, an image processing algorithm needs to be used to perform dominant hue extraction, specifically:
calculating the number of pixel points with different colors in the picture image by adopting a mature image processing algorithm, such as a picture color quantization algorithm;
sorting the colors according to the number of the pixel points, and determining the color with the preset number in the top as a dominant hue;
and sequencing several colors in the main tone from high to low according to the number of pixel points in the picture image to be used as tone parameters.
And after the new image keytone is identified again by screen capture each time, replacing the original keytone and updating the tone parameter.
And extracting a preset number of main tones as tone parameters through a main tone extraction algorithm, and controlling the atmosphere lamp according to the extracted tone parameters so as to realize the image tone matching of the atmosphere lamp and the game picture and create an immersive atmosphere matched with the game picture.
Example four
In yet another embodiment provided by the present invention, the preset number is not greater than the number of colors supported by the ambience lamp.
In the implementation of this embodiment, since the number of colors corresponding to the atmosphere lamps installed in different automobiles is different, the number of extracted main tones needs to be defined in consideration of the number of colors supported by the atmosphere lamps before the atmosphere lamps are performed.
For example, if the number of colors supported by the multi-color atmosphere lamp currently installed at the vehicle end is X and the preset number of extracted keytones is Y, it must be satisfied that Y is less than or equal to X, thereby avoiding abnormal atmosphere lamp tone display caused by the number of extracted keytones exceeding the number of colors supported by the current atmosphere lamp.
In addition, when the number of extracted main tones is set, the picture type of the game picture can be referred to, for example, the game picture basically comprises a game background, a game role and a game prop; therefore, the preset number Y of the main tones can be preset to be 3, and Y can be dynamically adjusted as a reference configuration item; considering that Y ≦ X is to be satisfied at the same time, if Y > X is set, the preset number of keytones needs to be reduced to equal the number of colors supported by the atmosphere lamp.
Through the restriction to the tone quantity of drawing, avoid tone quantity too much, lead to the unmatched problem of atmosphere lamp output, also can avoid drawing too much dominant tone and lead to a large amount of occupations of calculating power.
EXAMPLE five
In another embodiment provided by the present invention, the step S3 specifically includes:
circularly acquiring each color in the hue parameters in sequence according to a preset atmosphere lamp control interval, and inquiring whether a color library preset by the atmosphere lamp has the color or not;
when the color is in the color library, controlling the atmosphere lamp to output corresponding tone light according to the color value corresponding to the color;
and when the color is not available in the color library, randomly selecting a color in the color library, and controlling the atmosphere lamp to output corresponding tone light according to the color value corresponding to the color.
In the implementation of this embodiment, when the atmosphere lamp is controlled according to the hue parameter generated by the identified dominant hue, the problem of whether the hue matches the color of the atmosphere lamp needs to be considered;
the hue parameters comprise colors of each main hue in a front-back sequence, each color in the hue parameters is sequentially acquired according to a preset atmosphere lamp control interval, and the atmosphere lamp control time is used for controlling the display time of each hue in an atmosphere lamp; for example, when the control time of the atmosphere lamp is set to 1s, one color in the hue parameters is read at intervals of 1s by the atmosphere lamp, and corresponding output is carried out; the screen capture interval time of each picture image is 120s, so when the atmosphere lamp output is controlled according to the tone parameter generated by each image, the color of each main tone needs to be read repeatedly according to the sequence;
inquiring whether a color library preset by the atmosphere lamp has the read color or not, namely whether the atmosphere lamp supports displaying the read color or not;
when the color library has the color, the atmosphere lamp supports displaying the read color, and the atmosphere lamp is controlled to output corresponding hue light according to the color value corresponding to the color;
when the color library does not have the color, the atmosphere lamp does not support the display of the read color, one color is randomly selected from the color library, and the atmosphere lamp is controlled to output corresponding tone light according to the color value corresponding to the selected color.
It should be noted that, in the present embodiment, the control time of the atmosphere lamp and the screen capture interval time are both illustrated, and in other embodiments, the control time may be other values.
It should be noted that the color library is an initial setting of the atmosphere lamp, and includes color values of all colors that can be displayed by the atmosphere lamp, and when specifically performing matching, the color values are used for matching;
by analyzing whether each color in the hue parameters is matched with the support color of the atmosphere lamp or not and replacing unmatched colors by random other colors, the calculation power occupation caused by sudden increase due to color identification according to the support color of the atmosphere lamp when the algorithm is the main hue is not needed, and the problem of unmatched colors can be simply, conveniently and quickly solved.
EXAMPLE six
In another embodiment provided by the present invention, the method further comprises:
when the camera arranged at the vehicle end detects that the sight of the user leaves the central control screen, a real-time image of the current screen of the central control screen at the vehicle end is captured;
and updating the color tone light output by the atmosphere lamp according to the color tone parameter extracted from the real-time image.
In the specific implementation of the embodiment, the scheme discloses that in the normal operation process of the game, screen shots are acquired according to the preset screen shot interval time, each picture image is analyzed, the hue parameter is extracted, and the light hue output by the atmosphere lamp is controlled according to the hue parameter;
in addition, the invention also provides a passive screen capture strategy, which is to acquire the image of the user through a camera arranged in the vehicle cabin and monitor the sight of the user in the game process through an algorithm;
when the camera arranged at the vehicle end detects that the sight of the user leaves the central control screen, the user can more intuitively see the vehicle-mounted atmosphere lamp with high probability and automatically intercept a real-time image of the current screen of the central control screen at the vehicle end;
and finishing the extraction of the hue parameters according to the intercepted real-time image, and controlling the atmosphere lamp configured at the vehicle end to output corresponding hue light according to the extracted hue parameters.
And after the sight of the user leaves the central control screen and reaches the screen capture interval time, the user enters the picture image extraction and the color tone light control in the normal game running process again.
According to the sight recognition of the user, the passive completion of atmosphere lamp tone control according to the user behavior can be judged, the user behavior can be adapted, and humanized atmosphere lamp control is provided.
EXAMPLE seven
In another embodiment provided by the present invention, the method further comprises:
and when an exit instruction or an atmosphere lamp closing instruction of the vehicle-mounted game input by the user is detected, controlling the atmosphere lamp to be closed.
In the specific implementation of the embodiment, after the user starts the vehicle-mounted game, the atmosphere lamp is controlled by intercepting the game picture, and the exit instruction of the vehicle-mounted game input by the user is used as the instruction for ending the atmosphere lamp control process; the atmosphere lamp can be accurately controlled, and the situation that the user cannot be identified to still show the interference of the atmosphere lamp effect to the user when the user exits the vehicle-mounted game is avoided.
In addition, when the user normally uses the vehicle-mounted game, the atmosphere lamp can be controlled to be turned off by directly inputting an atmosphere lamp turning-off instruction, so that the function that the user independently plays the vehicle-mounted game is realized.
Example eight
Referring to fig. 2, a schematic structural diagram of an atmosphere lamp control apparatus according to an embodiment of the present invention is shown, where the apparatus includes: the device comprises an image acquisition module, a tone extraction module and a light control module;
the image acquisition module is used for responding to a starting instruction of the vehicle-mounted game input by a user and sequentially intercepting the picture images of the current screen of the control screen in the vehicle end according to preset screen intercepting interval time;
the tone extraction module is used for extracting a preset number of main tones in the intercepted picture image as tone parameters;
and the light control module is used for controlling the atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameter.
The atmosphere lamp control device provided in this embodiment is capable of executing all steps and functions of the atmosphere lamp control method provided in any of the above embodiments, and specific functions of the device are not described herein again.
Example nine
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device includes: a processor, a memory and a computer program, such as an ambience light control program, stored in said memory and executable on said processor. The processor, when executing the computer program, implements the steps in each of the above described embodiments of the ambience light control method, such as the steps S-S5 shown in fig. 1. Alternatively, the processor implements the functions of the modules in the above device embodiments when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the atmosphere control device. For example, the computer program may be divided into a detection module, an output power control module and a window control module, and specific functions of each module are described in detail in the ambience light control method provided in any of the above embodiments, and detailed descriptions of specific functions of the apparatus are omitted here.
The atmosphere lamp control device can be computing equipment such as a desktop computer, a notebook computer, a palm computer and a cloud server. The ambience light control device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of one type of ambience light control device and does not constitute a limitation of one type of ambience light control device, and may comprise more or less components than shown, or some components in combination, or different components, e.g. the one type of ambience light control device may further comprise input-output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is the control center for the one type of ambient light control device and that connects the various components of the overall one type of ambient light control device using various interfaces and lines.
The memory may be adapted to store the computer program and/or module, and the processor may be adapted to perform the various functions of the atmosphere light control device by running or executing the computer program and/or module stored in the memory, and by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the integrated modules of the mood light control device, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and such improvements and modifications are also considered to be within the scope of the present invention.

Claims (10)

1. An ambience lamp control method, characterized in that the method comprises:
in response to a starting instruction of a vehicle-mounted game input by a user, sequentially intercepting picture images of a current screen of a control screen in a vehicle end according to preset screen interception interval time;
extracting a preset number of main tones in the intercepted picture image as tone parameters;
and controlling an atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameters.
2. The ambient light control method according to claim 1, characterized in that the screen capture interval time Q = X/(M X N);
x is the average playing time of starting the vehicle-mounted game each time counted according to the running data of the vehicle-mounted game recorded by the vehicle end, M is the average playing level number of starting the vehicle-mounted game each time counted according to the running data of the vehicle-mounted game recorded by the vehicle end, and N is the average artistic style type of each game level counted according to the running data of the vehicle-mounted game recorded by the vehicle end.
3. The ambience lamp control method according to claim 1, wherein the extracting a preset number of dominant hues in the captured picture image as hue parameters specifically comprises:
sequentially extracting colors with the preset number from high to low in the number of pixel points in the picture image as the dominant hue by adopting a dominant hue extraction algorithm;
and sequencing several colors in the main tone from high to low according to the number of pixel points in the picture image to be used as tone parameters.
4. The ambient lamp control method of claim 3, wherein the preset number is no greater than the number of colors supported by the ambient lamp.
5. The method for controlling the atmosphere lamp according to claim 1, wherein the controlling the atmosphere lamp configured at the vehicle end to output corresponding color tone lamp light according to the color tone parameter specifically comprises:
circularly acquiring each color in the hue parameters in sequence according to a preset atmosphere lamp control interval, and inquiring whether a color library preset by the atmosphere lamp has the color or not;
when the color is provided in the color library, controlling the atmosphere lamp to output corresponding hue light according to the color value corresponding to the color;
and when the color is not available in the color library, randomly selecting a color in the color library, and controlling the atmosphere lamp to output corresponding tone light according to the color value corresponding to the color.
6. The ambient lamp control method according to claim 1, further comprising:
when the camera arranged at the vehicle end detects that the sight of the user leaves the central control screen, a real-time image of the current screen of the central control screen at the vehicle end is captured;
and updating the color tone light output by the atmosphere lamp according to the color tone parameter extracted from the real-time image.
7. The ambient lamp control method according to claim 1, further comprising:
and when an exit instruction or an atmosphere lamp closing instruction of the vehicle-mounted game input by the user is detected, controlling the atmosphere lamp to be closed.
8. An ambience lamp control device, characterized in that the device comprises:
the image acquisition module is used for responding to a starting instruction of the vehicle-mounted game input by a user and sequentially intercepting the picture images of the current screen of the control screen in the vehicle end according to preset screen intercepting interval time;
the tone extraction module is used for extracting a preset number of main tones in the intercepted picture image as tone parameters;
and the light control module is used for controlling the atmosphere lamp configured at the vehicle end to output corresponding tone light according to the tone parameter.
9. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored in said memory and configured to be executed by said processor, said processor implementing the ambience lamp control method according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program, wherein the computer program, when running, controls an apparatus on which the computer-readable storage medium is located to perform the ambience lamp control method according to any one of claims 1 to 7.
CN202211178401.7A 2022-09-26 2022-09-26 Atmosphere lamp control method, device, equipment and storage medium Pending CN115426748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211178401.7A CN115426748A (en) 2022-09-26 2022-09-26 Atmosphere lamp control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211178401.7A CN115426748A (en) 2022-09-26 2022-09-26 Atmosphere lamp control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115426748A true CN115426748A (en) 2022-12-02

Family

ID=84205646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211178401.7A Pending CN115426748A (en) 2022-09-26 2022-09-26 Atmosphere lamp control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115426748A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115810338A (en) * 2023-02-03 2023-03-17 深圳市蔚来芯科技有限公司 Display processing method and system based on image scene

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115810338A (en) * 2023-02-03 2023-03-17 深圳市蔚来芯科技有限公司 Display processing method and system based on image scene

Similar Documents

Publication Publication Date Title
CN109951627B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109685746A (en) Brightness of image method of adjustment, device, storage medium and terminal
CN110012210A (en) Photographic method, device, storage medium and electronic equipment
CN110991506B (en) Vehicle brand identification method, device, equipment and storage medium
CN106651797B (en) Method and device for determining effective area of signal lamp
CN115426748A (en) Atmosphere lamp control method, device, equipment and storage medium
CN106815803B (en) Picture processing method and device
CN109410295B (en) Color setting method, device, equipment and computer readable storage medium
CN106056138A (en) Picture processing device and method
CN113610723A (en) Image processing method and related device
CN106780359A (en) A kind of data editing method, device and mobile terminal
CN113225550A (en) Offset detection method and device, camera module, terminal equipment and storage medium
CN114245528B (en) Vehicle lamplight show control method, device, equipment, medium and program product
CN112449115B (en) Shooting method and device and electronic equipment
CN109816720A (en) Road-center detection method, airborne equipment and storage medium
CN105163040B (en) A kind of image processing method and mobile terminal
CN115604887A (en) Atmosphere lamp group control method, control console and device
CN116310662A (en) Object recognition method and device
CN115512015A (en) Atmosphere lamp animation display method, device and equipment based on MCU (microprogrammed control Unit) and storage medium
CN109089042A (en) The recognition methods of image procossing mode, device, storage medium and mobile terminal
CN108255986A (en) Information identifying method, system and computer readable storage medium
CN115529423A (en) Journey video generation method and device based on cabin, vehicle and storage medium
CN112989924B (en) Target detection method, target detection device and terminal equipment
CN108665871B (en) Screen display control method and related product
CN109858320B (en) Fingerprint input method and related equipment

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