CN116056288A - Control method of vehicle lamplight, nonvolatile storage medium and vehicle - Google Patents
Control method of vehicle lamplight, nonvolatile storage medium and vehicle Download PDFInfo
- Publication number
- CN116056288A CN116056288A CN202310018717.8A CN202310018717A CN116056288A CN 116056288 A CN116056288 A CN 116056288A CN 202310018717 A CN202310018717 A CN 202310018717A CN 116056288 A CN116056288 A CN 116056288A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- color
- parameter
- brightness
- image
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/115—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/115—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
- H05B47/125—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by using cameras
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Lighting Device Outwards From Vehicle And Optical Signal (AREA)
Abstract
The invention discloses a control method of vehicle lamplight, a nonvolatile storage medium and a vehicle. Wherein the method comprises the following steps: acquiring weather information and image information of the current environment of the vehicle, wherein the image information is used for representing information obtained by image acquisition of the current environment of the vehicle; determining brightness parameters corresponding to the current environment of the vehicle according to the meteorological information; determining a color parameter corresponding to the current environment of the vehicle according to the image information; the color and brightness of at least one atmosphere lamp mounted on the vehicle is adjusted based on the brightness parameter and the color parameter. The invention solves the technical problem that the control effect of the user on the vehicle-mounted atmosphere lamp is single in the related art.
Description
Technical Field
The invention relates to the field of vehicle control, in particular to a vehicle lamplight control method, a nonvolatile storage medium and a vehicle.
Background
At present, the color of an atmosphere lamp of the whole automobile can only be manually adjusted by a driver, and the light intensity is only roughly divided into three levels of high, medium and low or is directly defaulted to be in the brightest state when the atmosphere lamp is turned on.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a vehicle lamplight control method, a nonvolatile storage medium and a vehicle, which are used for at least solving the technical problem that a control effect of a user on a vehicle-mounted atmosphere lamp is single in the related art.
According to an aspect of an embodiment of the present invention, there is provided a method for controlling light of a vehicle, including: acquiring weather information and image information of the current environment of the vehicle, wherein the image information is used for representing information obtained by image acquisition of the current environment of the vehicle; determining brightness parameters corresponding to the current environment of the vehicle according to the meteorological information; determining a color parameter corresponding to the current environment of the vehicle according to the image information; the color and brightness of at least one atmosphere lamp mounted on the vehicle is adjusted based on the brightness parameter and the color parameter.
Further, determining a color parameter corresponding to the current environment of the vehicle according to the image information, including: acquiring geographic position information of a vehicle; acquiring an environment image corresponding to the geographic position information; acquiring a first color parameter corresponding to image information and a second color parameter corresponding to an environment image; and adjusting the first color parameter based on the second color parameter to obtain the color parameter corresponding to the current environment of the vehicle.
Further, acquiring a first color parameter corresponding to the image information and a second color parameter corresponding to the environment image, including: performing color analysis on the image information to obtain at least one color parameter contained in the image information; determining a first color parameter with the maximum number of pixel points according to the number of pixel points corresponding to at least one color parameter contained in the image information; performing color analysis on the environment image to obtain at least one color parameter contained in the environment image; and determining a second color parameter with the maximum number of pixel points according to the number of pixel points corresponding to at least one color parameter contained in the environment image.
Further, adjusting the color and brightness of at least one atmosphere lamp mounted on the vehicle based on the brightness parameter and the color parameter, comprising: adjusting the brightness of at least one atmosphere lamp to be the brightness corresponding to the brightness parameter; and adjusting the color of at least one atmosphere lamp to the color corresponding to the color parameter.
Further, acquiring weather information and image information of the current environment of the vehicle comprises: acquiring weather information of the current environment of the vehicle through a sensor arranged on the vehicle; and acquiring image information of the current environment of the vehicle through a camera installed on the vehicle.
Further, adjusting the color and brightness of at least one atmosphere lamp mounted on the vehicle based on the brightness parameter and the color parameter, comprising: determining a target light pattern from a plurality of light patterns based on the brightness parameter and the color parameter; the color and brightness of the at least one atmosphere lamp is adjusted using the target light pattern.
Further, acquiring weather information and image information of the current environment of the vehicle comprises: weather information and image information are acquired in response to a change in the position of the vehicle.
Further, acquiring weather information and image information of the current environment of the vehicle comprises: and acquiring weather information and image information of the current environment of the vehicle in real time.
According to another aspect of the embodiment of the present invention, there is also provided a control device for vehicle light, including: the information acquisition module is used for acquiring weather information and image information of the current environment of the vehicle, wherein the image information is used for representing information obtained by image acquisition of the current environment of the vehicle; the brightness parameter determining module is used for determining brightness parameters corresponding to the current environment of the vehicle according to the meteorological information; the color parameter determining module is used for determining color parameters corresponding to the current environment of the vehicle according to the image information; and a light adjusting module for adjusting the color and brightness of at least one atmosphere lamp installed on the vehicle based on the brightness parameter and the color parameter.
According to another aspect of the embodiments of the present invention, there is also provided a vehicle comprising one or more processors, a memory device, in which a computer program is stored, the processor being arranged to run the computer program to perform the above-described method of controlling vehicle lights.
According to another aspect of the embodiment of the present invention, there is also provided a nonvolatile storage medium including a stored program, wherein the above-described control method of the vehicle light is executed in a processor of a device where the program is controlled when running.
According to another aspect of the embodiment of the present invention, there is further provided a processor, configured to run a program, where the program executes the above-mentioned method for controlling the light of the vehicle during running.
In the embodiment of the invention, weather information and image information of the current environment of the vehicle are obtained, wherein the image information is used for representing information obtained by image acquisition of the current environment of the vehicle; determining brightness parameters corresponding to the current environment of the vehicle according to the meteorological information; determining a color parameter corresponding to the current environment of the vehicle according to the image information; the color and brightness of at least one atmosphere lamp mounted on the vehicle is adjusted based on the brightness parameter and the color parameter. The method is easy to think, the corresponding brightness parameter is determined by utilizing weather information of the current environment of the vehicle, the corresponding color parameter is determined by utilizing image information of the current environment of the vehicle, and then the brightness and the color of the vehicle-mounted atmosphere lamp are adjusted based on the brightness parameter and the color parameter, so that the display effect of the vehicle-mounted atmosphere lamp is suitable for the current environment, the scene-adaptive brightness and color adjustment of the vehicle-mounted atmosphere lamp are achieved, the rich control of a user on the vehicle-mounted atmosphere lamp is realized, the technical effect of user experience is improved, and the technical problem that the control effect of the user on the vehicle-mounted atmosphere lamp in the related technology is single is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a flowchart of a control method of vehicle light according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a control method of vehicle light according to an embodiment of the present invention;
fig. 3 is a control flow chart of a control method of vehicle light according to an embodiment of the present invention;
fig. 4 is a schematic view of a control device for vehicle light according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided an embodiment of a method of controlling vehicle light, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
Fig. 1 is a flowchart of a method for controlling light of a vehicle according to an embodiment of the present invention, as shown in fig. 1, the method includes the steps of:
step S102, weather information and image information of the current environment of the vehicle are obtained, wherein the image information is used for representing information obtained by image acquisition of the current environment of the vehicle;
in particular, the current environment is understood to be the surrounding environment of the vehicle at the current moment, including but not limited to weather information for characterizing climate, and image information for characterizing environmental changes.
The weather information may be characterized as weather data of the vehicle at the current moment, including but not limited to weather, illumination intensity, weather with rain or snow, weather with wind, sand and haze, etc.
In an alternative embodiment, the sunlight and rain sensor can be used for collecting weather and illumination information, and particularly, the illumination sensor is used for collecting the illumination intensity of the vehicle in the current environment, so that the illumination information of the vehicle in the current environment can be obtained; and acquiring temperature and humidity information of the vehicle in the current environment by using a temperature and humidity sensor, so that temperature and humidity information of the vehicle in the current environment can be obtained.
In another alternative embodiment, the weather information of the current environment of the vehicle can be retrieved based on the vehicle-mounted central control system, and the weather information can include weather information such as ultraviolet index, sunset time, wind speed and direction, precipitation intensity, air visibility and the like. In addition, the vehicle navigation can be also called to acquire weather information of the current environment.
The image information is used for representing information obtained by image acquisition of the current environment of the vehicle. The image may be one acquired image or a plurality of consecutive images.
In an alternative embodiment, the image acquisition is performed on the current environment of the vehicle by means of a vehicle-mounted vehicle data recorder.
In another alternative embodiment, the image acquisition can be performed on the current environment of the vehicle through other mobile terminals with image acquisition functions, and then the acquired image is uploaded to the vehicle body controller by using a memory card and the like, so that the acquired image is convenient to further process.
Step S104, determining brightness parameters corresponding to the current environment of the vehicle according to weather information;
specifically, the above-described luminance parameter reflects a change in luminance of the current environment in which the vehicle is located. When the brightness of the current environment is brighter, the brightness of the atmosphere lamp in the vehicle is correspondingly required to be adjusted; on the contrary, when the brightness of the current environment is darker, the brightness of the corresponding atmosphere lamp in the vehicle cannot be too bright, so that the experience of the vehicle user is not affected.
In an alternative embodiment, the weather of the current environment is clear, which indicates that the current environment of the vehicle is brighter, and the corresponding brightness parameter may be a parameter corresponding to the bright environment.
In another alternative embodiment, the preset weather-brightness parameter correspondence may be invoked when the brightness parameter is determined. After the weather information of the current environment is obtained, the corresponding brightness parameters of the weather information can be determined by utilizing the corresponding relation of the preset weather-brightness parameters.
In addition, when the brightness parameter is determined, the expert system can also be used for carrying out weight analysis on the influence of each piece of weather information on the brightness parameter, so that the influence weight distribution of each piece of weather information on the brightness parameter can be determined. Further, after the actual weather information is obtained, the actual weather information is weighted and calculated by using the influence weight distribution, and the luminance parameter corresponding to the weather information can be determined.
Step S106, determining color parameters corresponding to the current environment of the vehicle according to the image information;
specifically, the color parameter may be understood as a color parameter corresponding to a pixel point having the largest number in a plurality of color extraction results obtained by performing color analysis on image information of an environment where the vehicle is currently located.
In an alternative embodiment, when the acquired image is an image, an environment extraction algorithm may be used to perform color analysis on the image, so as to obtain a plurality of color analysis results in the image. And counting the pixel points corresponding to each color analysis result in the plurality of color analysis results to obtain pixel point distribution corresponding to each color analysis result, and further determining the color corresponding to the pixel point with the largest number in the pixel point distribution as the color parameter.
When a plurality of continuous images are acquired, the plurality of continuous images may be preprocessed: firstly, traversing pixels of each image in a plurality of continuous images by using preset pixel parameters, so as to filter out images which do not meet the preset pixel parameters, and obtaining a filtered image set. Each image in the filtered image set can be subjected to color analysis to obtain a color analysis result of each image, and then the pixel points corresponding to the color analysis result of each image are counted to obtain pixel point distribution of each color corresponding to the color analysis result of each image. And calculating the average value of the pixel values of the same color in the pixel point distribution of each color, so as to obtain the average value of the pixels of each color. And determining the color corresponding to the pixel point with the largest value in the pixel mean value of each color as the color parameter.
In another alternative embodiment, when the pixel points corresponding to each color analysis result or each image color analysis result are counted, statistics may be utilized to count the coverage area distribution of each corresponding color in the current image according to the color analysis result. Further, the ratio of the coverage area of each color to the current image area is converted into a corresponding pixel point of the color.
It should be noted that, when the pixel points corresponding to each color analysis result or each image color analysis result are counted, the pixel point counting is not limited to the statistics, but may be performed by a neural network model, an algorithm, or the like, and no unique setting is made here.
Step S108 of adjusting the color and the brightness of at least one atmosphere lamp mounted on the vehicle based on the brightness parameter and the color parameter.
Specifically, after the above-described luminance parameter and color parameter of the current environment are obtained, the color and luminance of the atmosphere lamp mounted on the vehicle may be adjusted based on the luminance parameter and the color parameter.
Timing of adjustment: real-time and preset period; in an alternative embodiment, there are a plurality of possibilities for the corresponding adjustment occasions when the atmosphere lamp of the vehicle is adjusted. Firstly, after the brightness parameter and the color parameter of the current environment of the vehicle are determined, the brightness parameter and the color parameter are uploaded to the vehicle body controller in real time, so that the vehicle-mounted atmosphere lamp is adjusted in real time based on the intelligent atmosphere lamp module, and the display effect of the vehicle-mounted atmosphere lamp is consistent with the change of the current environment. Secondly, the preset adjusting period of the atmosphere lamp can be preset based on the vehicle body controller, and then the current environment of the vehicle is monitored periodically based on the preset adjusting period, so that the monitoring result (brightness parameter and color parameter) is utilized to display the vehicle-mounted atmosphere lamp periodically. It should be noted that the adjustment timing of the atmosphere lamp is not set uniquely, and the corresponding adjustment timing can be determined by user definition according to personal selection of the user.
In another alternative embodiment, there are also variations in the manner in which the mood light of the vehicle is adjusted. On the one hand, the atmosphere lamp in the vehicle can be automatically adjusted based on the perception system of the vehicle when the vehicle perceives that the current environment is changed and the brightness parameter and the color parameter of the changed current environment are obtained. On the other hand, the atmosphere lamp can be adjusted through the mobile terminal of the user, when the mobile terminal of the user is in communication connection with the vehicle body controller, the vehicle body controller can send the brightness parameter and the color parameter of the current environment to the mobile terminal of the user, and after the mobile terminal receives the brightness parameter and the color parameter of the current environment, the vehicle atmosphere lamp is adjusted through the mobile terminal. It should be noted that the adjustment mode of the atmosphere lamp is not set uniquely, and the corresponding adjustment mode can be determined by user-defined according to personal selection of the user.
In a third alternative embodiment, there are also a number of consequences of the location of the installation of the vehicle atmosphere lights. First, vehicle atmosphere lamp mountable is inside the vehicle, simultaneously, all installs infrared sensing device on every seat of vehicle inside, and infrared sensing device and automobile body controller communication connection, and carry out auxiliary control to atmosphere lamp through automobile body controller, when infrared sensing device senses someone on the seat, can pass through automobile body controller with human response information, send to intelligent atmosphere lamp module, and then, the atmosphere lamp on the seat position that intelligent atmosphere lamp module control human response information corresponds, make the display effect of atmosphere lamp in the car more adaptability. And secondly, the vehicle atmosphere lamp can be arranged outside the vehicle body when being arranged inside the vehicle, so that the display effect of the vehicle atmosphere lamp corresponds to the environment outside the vehicle. It should be noted that the installation position of the atmosphere lamp is not uniquely set, and the corresponding installation position can be defined and determined according to personal selection of the user.
Specifically, an adjustable brightness value interval can be set based on brightness parameters, and a color gradient interval of a main color is set based on color parameters, wherein the gradient color is a soft and faint color. The color gradation section is understood to be a color gradation section obtained by strengthening (from shallow to deep) or weakening (from deep to shallow) the vividness of a main color on the basis of the main color.
For example, the above-mentioned adjustable luminance value interval may be set to [ -5, +5], that is, the adjustable luminance value interval obtained by decreasing 5 luminance values based on the luminance parameter and increasing 5 luminance values based on the luminance parameter. It should be noted that [ (5, +5] is only an exemplary illustration, and is not a unique setting, and in practice the setting may be made with reference to the user experience. Further, the luminance of the in-vehicle atmosphere lamp may be adjusted based on the vehicle body controller so that the luminance of the in-vehicle atmosphere lamp satisfies the floating interval of [ -5, +5] of the luminance parameter. Thus, the brightness of the vehicle-mounted atmosphere lamp is adjusted.
Illustratively, when the vehicle is currently in an environment that is traveling on a desert highway, the color distribution in the image information includes, but is not limited to: earthy yellow (80% in ratio), dark gray (15% in ratio) on roads, green (5% in ratio) on road-side sporadic vegetation in desert, and the like. In the color distribution, the earthy yellow of the desert occupies the largest proportion of the color distribution area of the image, so the earthy yellow of the desert can be marked as the main color of the image, and meanwhile, each gradual change in the color gradual change process of the yellow is obtained, and the color gradual change sequence is obtained by arranging from light to deep. The color gradation process corresponding to the earthy yellow includes: { pale yellow … light yellow … light yellow … light yellow … yellow … apricot … orange, etc }, it should be noted that the ellipses in the gradual change process include a plurality of gradual changes of the earthy yellow, and the gradual change value of any adjacent gradual change can be set to be 1 instead of the unique setting of the gradual change color in the above-mentioned interval, and then the above-mentioned color gradual change interval can be set to be [ -2, +2], that is, 2 color values are reduced on the basis of the color parameters corresponding to the earthy yellow, and 2 color values are increased on the basis of the color parameters corresponding to the earthy yellow, thereby obtaining the color gradual change interval. It should be noted that, [ -2, +2] is only an exemplary illustration, and is not to be construed as a unique setting, and in practice the setting may be made with reference to the user experience. Further, the color of the in-vehicle atmosphere lamp may be adjusted based on the vehicle body controller so that the color of the in-vehicle atmosphere lamp satisfies the floating interval of [ -2, +2] of the color parameter. Therefore, the color adjustment of the vehicle-mounted atmosphere lamp is realized.
It should be noted that the vehicle body controller performs the custom adjustment of the brightness and the color of the vehicle-mounted atmosphere lamp by controlling the intelligent atmosphere lamp module.
Fig. 2 is a schematic block diagram of a control method of vehicle light according to an embodiment of the present invention. As shown in fig. 2, the schematic block diagram includes three parts: one part is a sunlight and rainfall sensor, a positioning map and a camera, wherein the sunlight and rainfall sensor is used for collecting data; one part is a vehicle body controller for processing data, and comprises an intelligent atmosphere lamp module and an environment extraction algorithm; the atmosphere lamp control mode for responding to the data processing result can be divided into other control modes such as ice and snow peculiar edge, free-space yellow sand, low grass blowing, seabed world, midnight neon, vehicle water horse, and the like.
And the sunlight and rainfall sensor is utilized to collect weather and illumination information in the current environment of the vehicle, the collected data is uploaded to the intelligent atmosphere lamp module, and the intelligent atmosphere lamp module analyzes the received meteorological data to obtain brightness parameters of the current environment.
The method comprises the steps of utilizing a camera to collect images of a vehicle surrounding environment picture of the current environment of a vehicle, carrying out color analysis on the collected vehicle surrounding environment picture based on an environment extraction algorithm to obtain analyzed color types, uploading the analyzed color types to an intelligent atmosphere lamp module to carry out main color extraction, determining the sequence of the extracted main colors in a same color gradient sequence, obtaining expected color parameters of the current environment, simultaneously utilizing a vehicle-mounted positioning map to obtain geographic position information of the vehicle, synchronously uploading the geographic position information to the intelligent atmosphere lamp module, carrying out color analysis on the existing environment image corresponding to the geographic position information, and adjusting the expected color parameters based on color analysis results to obtain the color parameters of the current environment of the vehicle.
Based on the intelligent atmosphere lamp module, the atmosphere lamp parameter calculation is carried out on the brightness parameter and the color parameter, a calculation result can be obtained, the calculation result reflects expected atmosphere data of the environment where the vehicle-mounted atmosphere lamp is located currently, and then a control mode of the atmosphere lamp is called, so that a target atmosphere lamp mode consistent with the expected atmosphere data is determined, the vehicle-mounted atmosphere lamp is controlled in a scene mode, and the experience of a user is improved.
In sum, through gathering meteorological data, the image information of the environment that the vehicle is currently located, and then analyze meteorological data, obtain corresponding luminance parameter, draw image information, obtain corresponding color parameter to utilize the adjustable luminance value interval of predetermineeing, color gradual change interval, intelligent atmosphere lamp module carries out the custom adjustment of luminance and colour to on-vehicle atmosphere lamp, has reached and has carried out custom luminance, the color adjustment to on-vehicle atmosphere lamp, promotes the technical effect that user experience felt.
Fig. 3 is a control flow chart of a control method of vehicle light according to an embodiment of the present invention. As shown in fig. 3, the vehicle starts and the passenger turns on the mood light; acquiring weather and light intensity information of the vehicle in the current environment by using a sunlight and rainfall sensor, and uploading the information to an intelligent atmosphere lamp module; collecting and obtaining surrounding environment information of a vehicle by using a camera, performing color extraction on the surrounding environment information by using an environment extraction algorithm to obtain an algorithm extraction result (namely color parameters), and uploading the algorithm extraction result to an intelligent atmosphere lamp module; determining geographic position information of the vehicle in the current environment by using map positioning, uploading the geographic position information to an intelligent atmosphere lamp module, and adjusting an algorithm extraction result to obtain target color parameters of the vehicle in the current environment; the intelligent atmosphere lamp module can obtain the light intensity and color result applicable to the current environment by calculating the weather, light intensity information and target color parameters; and the vehicle-mounted atmosphere lamp is controlled by utilizing the light intensity and color results, so that the intelligent and scene control of the vehicle-mounted atmosphere lamp is realized.
Optionally, determining, according to the image information, a color parameter corresponding to an environment in which the vehicle is currently located, where step S106 includes:
acquiring geographic position information of a vehicle; acquiring an environment image corresponding to the geographic position information; acquiring a first color parameter corresponding to image information and a second color parameter corresponding to an environment image; and adjusting the first color parameter based on the second color parameter to obtain the color parameter corresponding to the current environment of the vehicle.
Specifically, the above-mentioned geographical position information can be understood as the geographical position of the area in which the vehicle is located. The whole course line of a desert highway can be exemplified, and the whole course line comprises a desert section, a lake section, a mountain road section and the like.
In an alternative embodiment, the geographic location of the area in which the vehicle is located may be obtained by an in-vehicle navigational positioning system.
The above environmental images can be correspondingly understood as environmental images of each road section in the whole course line. Under the condition that the vehicle runs to a lake section, the corresponding environment image is an image containing a lake and a highway; when the vehicle travels to a mountain road section, the corresponding environment image is an image including mountain and a road.
The first color parameter corresponds to the color parameter, that is, a color with the largest ratio in the color coverage area of the image information (also a color corresponding to the most number of pixels in the pixel distribution) is obtained correspondingly.
The second color parameter is a parameter obtained by extracting a main color of the environmental image. For example, when the vehicle runs to the lake road section, the corresponding environment image is an image including a lake and a highway, and the color with the main color being the acid blue color can be obtained by extracting the main color of the environment image, that is, the corresponding second color parameter. Similarly, the second color parameter for each following travel segment may be derived.
After determining the second color parameter corresponding to the ambient image, the first color parameter may be adjusted. If the adjustment scheme of the vehicle-mounted atmosphere lamp is determined based on the first color parameter only, the atmosphere in the vehicle is single, and the vehicle-mounted atmosphere lamp cannot be dynamically adapted to the variable driving environment. For example, in the case of a transition section where the vehicle travels to a desert section and a lake section, the first color parameter under the desert section is adjusted based on the second color parameter under the lake section. By way of example, the adjustment of the color of the earthy yellow color is performed on the basis of the intelligent atmosphere lamp module, so that the vehicle-mounted atmosphere lamp is suitable for the driving environment of a current vehicle, the environmental color parameters with comparatively scene are obtained, and the experience of a user is deepened.
Optionally, acquiring the first color parameter corresponding to the image information and the second color parameter corresponding to the environment image includes: performing color analysis on the image information to obtain at least one color parameter contained in the image information; determining a first color parameter with the maximum number of pixel points according to the number of pixel points corresponding to at least one color parameter contained in the image information; performing color analysis on the environment image to obtain at least one color parameter contained in the environment image; and determining a second color parameter with the maximum number of pixel points according to the number of pixel points corresponding to at least one color parameter contained in the environment image.
Specifically, exemplary color distributions responsive to each frame of image in the image information include, but are not limited to: the above-mentioned at least one color parameter may be understood as one or more color parameters that exist after performing color analysis on the image information, including but not limited to: a color parameter of earthy yellow, a color parameter of dark gray, and a color parameter of green.
The number of pixels mentioned above can be understood as the number of pixels corresponding to each color parameter, and in general, the number of pixels is related to a color coverage area, and if a color coverage area is larger, the number of pixels corresponding to the color is also larger.
By screening the number of each pixel point, the color with the largest number of pixel points can be obtained as the first color parameter.
Similarly, for example, in the case that the vehicle travels to the lake road section, the corresponding environment image is an image including a lake and a highway, and the color distribution of the environment image includes, but is not limited to: lake blue (90% by weight), highway dark gray (8% by weight), etc., by performing color analysis on the ambient image, the above-mentioned at least one color parameter may be understood to include, but is not limited to: color parameters of lake blue and color parameters of dark gray.
The second color parameter is understood to be the color with the largest number of pixels (here, the color may be lake blue) as the second color parameter.
By performing color analysis on the image information and the environmental image, respectively, the color with the largest number of pixels in the image information can be determined as the first color parameter, and the color with the largest number of pixels in the environmental image (here, the color may be a lake blue color) can be determined as the second color parameter. The color parameter obtaining method has the advantages that the color parameter obtaining method is more accurate, the accurate color parameter is easy to think, the adjustment of the atmosphere lamp in the automobile is enabled to be more scene, and the experience of a user is improved.
Optionally, adjusting the color and the brightness of at least one atmosphere lamp mounted on the vehicle based on the brightness parameter and the color parameter, step S108 includes:
adjusting the brightness of at least one atmosphere lamp to be the brightness corresponding to the brightness parameter; and adjusting the color of at least one atmosphere lamp to the color corresponding to the color parameter.
Step S108 further includes: determining a target light pattern from a plurality of light patterns based on the brightness parameter and the color parameter; the color and brightness of the at least one atmosphere lamp is adjusted using the target light pattern.
Specifically, when adjusting the color and brightness of at least one atmosphere lamp mounted on a vehicle based on the brightness parameter and the color parameter, the following two adjustment schemes are included, but are not limited to:
specifically, on one hand, the intelligent atmosphere lamp module is utilized to adjust the brightness of at least one atmosphere lamp in the vehicle, and the brightness of the at least one atmosphere lamp is adjusted to the brightness corresponding to the brightness parameter (or the adjustable brightness value interval); and simultaneously, adjusting the color of at least one atmosphere lamp in the vehicle, and adjusting the color of the atmosphere lamp to the color corresponding to the color parameter (or the color gradual change section). It should be noted that the brightness parameter and the color parameter can be understood as a set value, and can also be understood as an adjustable brightness value interval corresponding to the brightness parameter and a color gradient interval corresponding to the color parameter.
On the other hand, the data processor embedded in the intelligent atmosphere lamp module can be used for managing and periodically updating a plurality of atmosphere lamp modes.
The plurality of light modes include, but are not limited to, an ice and snow singular mode, a comic yellow sand mode, a low grass blowing mode, a submarine world mode, a midnight neon mode and the like, and particularly, the ice and snow singular mode reflects that a vehicle is driven to a road section covering a glacier environment, and an atmosphere light mode is applicable; the heaven yellow sand mode reflects an applicable atmosphere lamp mode when the vehicle runs to a road section covering the desert environment; the low mode of blowing grass by wind reflects the applicable atmosphere lamp mode when the vehicle runs to a road section covering the grassland environment; the submarine world mode reflects an applicable atmosphere lamp mode when a vehicle runs to a road section covering a lake environment; and a midnight neon mode, which reflects an applicable atmosphere lamp mode when the vehicle runs to a road section covering the tunnel environment.
The brightness parameter and the color parameter are uploaded to a data processor in the intelligent atmosphere lamp module, the expected light mode suitable for the brightness parameter and the color parameter can be determined, and the mode which is most similar to the expected light mode is selected from a plurality of light modes and is used as the target light mode. Finally, the color and brightness of at least one atmosphere lamp in the vehicle are adjusted by using the target light mode.
Optionally, the step S102 includes:
acquiring weather information of the current environment of the vehicle through a sensor arranged on the vehicle; and acquiring image information of the current environment of the vehicle through a camera installed on the vehicle.
Step S102 also includes: weather information and image information are acquired in response to a change in the position of the vehicle.
Step S102 further includes: and acquiring weather information and image information of the current environment of the vehicle in real time.
Specifically, when weather information and image information of the current environment of the vehicle are acquired, the vehicle-mounted equipment or the mobile terminal can be utilized for data monitoring and data acquisition.
Specifically, the above-mentioned sensor includes, but is not limited to, a solar rainfall sensor, an illumination sensor, a temperature and humidity sensor, etc., and any sensor having an environmental characteristic monitoring function may be used as the above-mentioned sensor.
The foregoing weather information, that is, the acquired weather information of the current environment of the vehicle, is described in detail and is not described herein.
The camera generally refers to any device with an image capturing function, including but not limited to a vehicle-mounted automobile data recorder, or other external electronic devices with an image capturing function.
The image information reflects the image information of the current environment of the vehicle, and may include one image or multiple continuous images, which are described in detail herein.
In order to accurately obtain weather information and image information of the current environment of the vehicle, the weather information and the image information can be obtained based on the following two aspects:
on the one hand, under the condition that the vehicle keeps a running state, weather information and image information corresponding to any position can be acquired in real time based on the dynamic position change of the vehicle in the running state so as to accurately acquire the weather information and the image information;
on the other hand, in the case where the vehicle is kept stationary but the current environment of the vehicle is dynamically changed, the vehicle is exemplarily changed from sunburn to cloudy to overcast and rainy, and so on. Therefore, the current environment in which the vehicle is in a stationary state can be acquired in real time. Generally, an environment acquisition period may be preset, and an exemplary time interval is used to acquire the current environment in a timing manner, so as to ensure a dynamic and accurate acquisition of any environmental change.
Example 2
According to the embodiment of the present invention, a device for controlling vehicle light is further provided, where the device may execute a method for controlling vehicle light provided in the foregoing embodiment 1, and a specific implementation manner and a preferred application scenario are the same as those of the foregoing embodiment 1, and are not described herein in detail.
Fig. 4 is a schematic view of a control device for vehicle light according to an embodiment of the present invention, as shown in fig. 4, the device includes:
the information acquisition module 402 is configured to acquire weather information and image information of an environment where the vehicle is currently located, where the image information is used to represent information obtained by performing image acquisition on the environment where the vehicle is currently located;
the brightness parameter determining module 404 is configured to determine a brightness parameter corresponding to an environment where the vehicle is currently located according to weather information;
a color parameter determining module 406, configured to determine, according to the image information, a color parameter corresponding to an environment in which the vehicle is currently located;
a light adjustment module 408 for adjusting the color and brightness of at least one atmosphere lamp mounted on the vehicle based on the brightness parameter and the color parameter.
Optionally, the color parameter determination module 406 includes: the position information acquisition module is used for acquiring geographic position information of the vehicle; the image acquisition module is used for acquiring an environment image corresponding to the geographic position information; the parameter acquisition module is used for acquiring a first color parameter corresponding to the image information and a second color parameter corresponding to the environment image; and the parameter adjustment module is used for adjusting the first color parameter based on the second color parameter to obtain the color parameter corresponding to the current environment of the vehicle.
Optionally, the parameter obtaining module includes: the first color analysis unit is used for performing color analysis on the image information to obtain at least one color parameter contained in the image information; a first color parameter determining unit, configured to determine a first color parameter with the largest number of pixel points according to the number of pixel points corresponding to at least one color parameter included in the image information; the second color analysis unit is used for performing color analysis on the environment image to obtain at least one color parameter contained in the environment image; and the second color parameter determining unit is used for determining the second color parameter with the maximum number of pixel points according to the number of pixel points corresponding to at least one color parameter contained in the environment image.
Optionally, the light adjustment module 408 includes: the brightness adjusting unit is used for adjusting the brightness of at least one atmosphere lamp to the brightness corresponding to the brightness parameter; and the color adjusting unit is used for adjusting the color of the at least one atmosphere lamp to the color corresponding to the color parameter.
Optionally, the information obtaining module 402 includes: the weather information acquisition unit is used for acquiring weather information of the current environment of the vehicle through a sensor installed on the vehicle; the image information acquisition unit is used for acquiring image information of the current environment of the vehicle through a camera installed on the vehicle.
Optionally, the light adjusting module 408 further includes: a target mode determining unit for determining a target light mode from a plurality of light modes based on the brightness parameter and the color parameter; and an adjusting unit for adjusting the color and brightness of the at least one atmosphere lamp using the target light pattern.
Optionally, the information obtaining module 402 further includes: and the information acquisition unit is used for acquiring weather information and image information in response to the change of the position of the vehicle.
Optionally, the information obtaining module 402 further includes: the real-time information acquisition unit is used for acquiring weather information and image information of the current environment of the vehicle in real time.
Example 3
According to an embodiment of the present invention, there is also provided a vehicle including one or more processors, a storage device, in which a computer program is stored, the processors being arranged to run the computer program to perform the above-described method of controlling vehicle lights.
Example 4
According to an embodiment of the present invention, there is also provided a nonvolatile storage medium including a stored program, wherein the above-described control method of vehicle light is executed in a processor of a device where the program is controlled when running.
Example 5
According to an embodiment of the present invention, there is further provided a processor, configured to execute a program, where the program executes the above-mentioned method for controlling the light of the vehicle during running.
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.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (10)
1. A method of controlling light of a vehicle, comprising:
acquiring weather information and image information of the current environment of the vehicle, wherein the image information is used for representing information obtained by image acquisition of the current environment of the vehicle;
determining brightness parameters corresponding to the current environment of the vehicle according to the meteorological information;
determining a color parameter corresponding to the current environment of the vehicle according to the image information;
the color and brightness of at least one atmosphere lamp mounted on the vehicle is adjusted based on the brightness parameter and the color parameter.
2. The method for controlling light of a vehicle according to claim 1, wherein determining a color parameter corresponding to an environment in which the vehicle is currently located according to the image information comprises:
acquiring geographic position information of the vehicle;
acquiring an environment image corresponding to the geographic position information;
Acquiring a first color parameter corresponding to the image information and a second color parameter corresponding to the environment image;
and adjusting the first color parameter based on the second color parameter to obtain a color parameter corresponding to the current environment of the vehicle.
3. The method for controlling light of a vehicle according to claim 2, wherein acquiring the first color parameter corresponding to the image information and the second color parameter corresponding to the environmental image includes:
performing color analysis on the image information to obtain at least one color parameter contained in the image information;
determining a first color parameter with the maximum number of pixel points according to the number of pixel points corresponding to at least one color parameter contained in the image information;
performing color analysis on the environment image to obtain at least one color parameter contained in the environment image;
and determining a second color parameter with the maximum number of pixel points according to the number of pixel points corresponding to at least one color parameter contained in the environment image.
4. The method of controlling vehicle lights according to claim 1, wherein adjusting the color and brightness of at least one mood light mounted on the vehicle based on the brightness parameter and the color parameter comprises:
Adjusting the brightness of the at least one atmosphere lamp to be the brightness corresponding to the brightness parameter;
and adjusting the color of the at least one atmosphere lamp to the color corresponding to the color parameter.
5. The method for controlling light of a vehicle according to claim 1, wherein acquiring weather information and image information of an environment in which the vehicle is currently located comprises:
acquiring weather information of the current environment of the vehicle through a sensor arranged on the vehicle;
and acquiring image information of the current environment of the vehicle through a camera installed on the vehicle.
6. The method of controlling vehicle lights according to claim 1, wherein adjusting the color and brightness of at least one mood light mounted on the vehicle based on the brightness parameter and the color parameter comprises:
determining a target light pattern from a plurality of light patterns based on the brightness parameter and the color parameter;
and adjusting the color and brightness of the at least one atmosphere lamp by utilizing the target light mode.
7. The method for controlling light of a vehicle according to claim 1, wherein acquiring weather information and image information of an environment in which the vehicle is currently located comprises:
And acquiring the meteorological information and the image information in response to the position of the vehicle changing.
8. The method for controlling light of a vehicle according to claim 1, wherein acquiring weather information and image information of an environment in which the vehicle is currently located comprises:
and acquiring the weather information and the image information of the current environment of the vehicle in real time.
9. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the control method of the vehicle light of any one of claims 1-8 is performed in a processor of a device where the program is controlled when run.
10. A vehicle, characterized by comprising:
one or more processors;
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to perform the method of controlling vehicle light of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310018717.8A CN116056288A (en) | 2023-01-05 | 2023-01-05 | Control method of vehicle lamplight, nonvolatile storage medium and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310018717.8A CN116056288A (en) | 2023-01-05 | 2023-01-05 | Control method of vehicle lamplight, nonvolatile storage medium and vehicle |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116056288A true CN116056288A (en) | 2023-05-02 |
Family
ID=86121441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310018717.8A Pending CN116056288A (en) | 2023-01-05 | 2023-01-05 | Control method of vehicle lamplight, nonvolatile storage medium and vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116056288A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117580220A (en) * | 2024-01-03 | 2024-02-20 | 佛山职业技术学院 | Automatic control system for light brightness in automobile |
CN117681771A (en) * | 2024-01-08 | 2024-03-12 | 广州市车智连电子有限公司 | Control device and method for automobile atmosphere lamp, vehicle-mounted information entertainment system and automobile |
CN118338501A (en) * | 2024-06-07 | 2024-07-12 | 比亚迪股份有限公司 | Atmosphere lamp control method, medium, controller and vehicle |
-
2023
- 2023-01-05 CN CN202310018717.8A patent/CN116056288A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117580220A (en) * | 2024-01-03 | 2024-02-20 | 佛山职业技术学院 | Automatic control system for light brightness in automobile |
CN117580220B (en) * | 2024-01-03 | 2024-04-26 | 佛山职业技术学院 | Automatic control system for light brightness in automobile |
CN117681771A (en) * | 2024-01-08 | 2024-03-12 | 广州市车智连电子有限公司 | Control device and method for automobile atmosphere lamp, vehicle-mounted information entertainment system and automobile |
CN118338501A (en) * | 2024-06-07 | 2024-07-12 | 比亚迪股份有限公司 | Atmosphere lamp control method, medium, controller and vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116056288A (en) | Control method of vehicle lamplight, nonvolatile storage medium and vehicle | |
CN107506760B (en) | Traffic signal detection method and system based on GPS positioning and visual image processing | |
CN101656023B (en) | Management method of indoor car park in video monitor mode | |
CN103955705A (en) | Traffic signal lamp positioning, recognizing and classifying method based on video analysis | |
CN104937637A (en) | Vehicular image recognition system for display-board recognition | |
CN112750170A (en) | Fog feature identification method and device and related equipment | |
CN109587901B (en) | Intelligent control system and method for illumination | |
CN113306486B (en) | In-vehicle lighting device control method, storage medium, and electronic apparatus | |
CN112533336A (en) | Street lamp illumination intelligent regulation system based on thing networking | |
CN110084218A (en) | The rainwater distributed data treating method and apparatus of vehicle | |
CN110334601A (en) | A kind of speed(-)limit sign board recognition methods of combination machine learning and computer vision | |
CN212009589U (en) | Video identification driving vehicle track acquisition device based on deep learning | |
CN115715044A (en) | Intelligent street lamp regulation and control method and system based on fuzzy video image | |
CN112419745A (en) | Highway group fog early warning system based on degree of depth fusion network | |
CN106248635B (en) | A kind of visibility detecting method based on digital camera | |
CN111688568B (en) | Brightness detection method, vehicle lamp control method, system thereof and storage medium | |
CN112365626A (en) | Vehicle-mounted camera picture processing method | |
KR101705027B1 (en) | Nighttime Visibility Assessment Solution for Road System Method Thereof | |
WO2015055737A1 (en) | Method and system for determining a reflection property of a scene | |
CN116017816B (en) | Intelligent street lamp adjusting and controlling system based on video analysis | |
CN116778414A (en) | Intelligent street lamp automatic identification method and system based on big data management | |
CN115837876A (en) | Vehicle lamp control system | |
CN117237907A (en) | Traffic signal lamp identification method and device, storage medium and electronic equipment | |
CN116674461A (en) | Method and device for controlling vehicle light and vehicle | |
CN117774987B (en) | All-terrain vehicle chassis protection method |
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 |