CN113306486A - In-vehicle lighting device control method, storage medium, and electronic apparatus - Google Patents

In-vehicle lighting device control method, storage medium, and electronic apparatus Download PDF

Info

Publication number
CN113306486A
CN113306486A CN202110591280.8A CN202110591280A CN113306486A CN 113306486 A CN113306486 A CN 113306486A CN 202110591280 A CN202110591280 A CN 202110591280A CN 113306486 A CN113306486 A CN 113306486A
Authority
CN
China
Prior art keywords
color
lighting device
vehicle
rgb
brightness
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.)
Granted
Application number
CN202110591280.8A
Other languages
Chinese (zh)
Other versions
CN113306486B (en
Inventor
刘宇康
张振华
杜超喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Nissan Passenger Vehicle Co
Original Assignee
Dongfeng Nissan Passenger Vehicle Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Nissan Passenger Vehicle Co filed Critical Dongfeng Nissan Passenger Vehicle Co
Priority to CN202110591280.8A priority Critical patent/CN113306486B/en
Publication of CN113306486A publication Critical patent/CN113306486A/en
Application granted granted Critical
Publication of CN113306486B publication Critical patent/CN113306486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q3/00Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors
    • B60Q3/80Circuits; Control arrangements
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Arrangements Of Lighting Devices For Vehicle Interiors, Mounting And Supporting Thereof, Circuits Therefore (AREA)

Abstract

The application discloses a control method of an in-vehicle lighting device, a storage medium and electronic equipment, which are used for acquiring an out-vehicle real-time environment image and identifying the overall brightness and the main body color of the out-vehicle real-time environment image; controlling the lighting device according to the overall brightness and the subject color. This application gathers car real-time environment image regulation, confirms the whole luminance and the main part colour of environment through the graphics processing technique for control lighting device, the whole luminance of confirming can reflect driver and crew's visual brightness in the car more accurately, makes lighting device's in the car luminance control adaptability stronger, and the main part colour that shows the colour and can follow the environment adjusts, makes luminous effect more intelligent, has more scientific and technological sense.

Description

In-vehicle lighting device control method, storage medium, and electronic apparatus
Technical Field
The present application relates to the field of automotive technologies, and in particular, to a method for controlling an in-vehicle lighting device, a storage medium, and an electronic device.
Background
Along with the requirement of people on riding environment is higher and higher, atmosphere lamps are installed in most of automobile types, the visual effect in the automobile is improved, and the high-grade feeling and the comfort of the automobile are improved.
In the conventional brightness adjustment of lighting devices such as an atmosphere lamp in a vehicle, the ambient brightness is sensed through a light sensor, and the brightness of the atmosphere lamp is adjusted according to the ambient brightness, so that the brightness of the atmosphere lamp can be adjusted adaptively along with the ambient brightness. However, the light sensor can only sense the brightness of a local area, but cannot sense the overall brightness, and the collected brightness data has a deviation from the brightness data observed from the viewing angle in the vehicle, so that the sensing of the driver and the passengers in the vehicle on the ambient brightness cannot be accurately reflected. In addition, the display color of the atmosphere lamp in the vehicle is preset, the color of the atmosphere lamp can be adjusted only according to the preset display color and the color change rule, automatic switching cannot be performed according to scenes, and the display effect is poor.
Therefore, it is desirable to provide a control method of an in-vehicle illumination device, a storage medium, and an electronic apparatus, in which brightness adjustment is more accurate and color switching is more intelligent.
Disclosure of Invention
The application aims to overcome the defects that the brightness adjustment of the in-vehicle lighting device is inaccurate and the display color can not be automatically switched according to scenes in the prior art, and provides the control method, the storage medium and the electronic equipment of the in-vehicle lighting device, which are more accurate in brightness adjustment and more intelligent in color switching.
The technical scheme of the application provides a control method of an in-vehicle lighting device, which comprises the following steps:
acquiring an external real-time environment image, and identifying the overall brightness and the main body color of the external real-time environment image;
controlling the lighting device according to the overall brightness and the subject color.
Further, the identifying the overall brightness of the real-time environment image outside the vehicle specifically includes:
converting the real-time environment image outside the vehicle into an RGB format image;
calculating the color perceptual brightness of each pixel point in the RGB format image;
and calculating the average value of the color perceptual brightness of all the pixel points to be used as the visual brightness of the real-time environment image outside the vehicle.
Further, the identifying the main color of the real-time environment image outside the vehicle specifically includes:
filtering out interference pixel points in the RGB format image;
converting the RGB format image into an HSV format image;
extracting a subject color from the HSV-format image.
Further, the filtering of the interference pixel points in the RGB format image specifically includes:
determining an interference pixel point according to the RGB value of each pixel point;
adjusting the RGB values of the interference pixel points to be 0;
and filtering out the pixel points with the RGB values of 0.
Further, determining an interference pixel point according to the RGB value specifically includes:
calculating an RG difference value, a GB difference value and an RB difference value of each pixel point;
and if the RG difference value, the GB difference value and the RB difference value are all smaller than a preset difference threshold value, the pixel point is considered as an interference pixel point.
Further, the extracting the main body color from the HSV format image specifically includes:
obtaining the hue value of each pixel point in the HSV format image;
classifying all pixel points according to the hue value, and determining the proportion of each type of pixel points;
and taking the hue color of the pixel point with the highest proportion as the main color.
Further, the controlling the lighting device according to the overall brightness and the main body color specifically includes:
and if the proportion of the pixel point with the hue color as the main color in the real-time environment image outside the vehicle is larger than a preset proportion threshold value, controlling the lighting device according to the overall brightness and the main color.
Further, the controlling the lighting device according to the overall brightness and the main body color further includes:
acquiring RGB values of the main color;
adjusting the RGB value of the main color in an equal ratio to generate a target RGB value until the color perception brightness of the target RGB value is the overall brightness;
controlling the lighting device according to the target RGB value.
Further, the real-time environment image outside the vehicle is collected through an image collecting device inside the vehicle.
The technical scheme of the application also provides a storage medium, wherein the storage medium stores computer instructions, and when a computer executes the computer instructions, the storage medium is used for executing the control method of the in-vehicle lighting device.
The technical scheme of the application also provides electronic equipment which comprises at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the in-vehicle lighting device control method as described above.
After adopting above-mentioned technical scheme, have following beneficial effect:
this application gathers car real-time environment image regulation, confirms the whole luminance and the main part colour of environment through the graphics processing technique for control lighting device, the whole luminance of confirming can reflect driver and crew's visual brightness in the car more accurately, makes lighting device's in the car luminance control adaptability stronger, and the main part colour that shows the colour and can follow the environment adjusts, makes luminous effect more intelligent, has more scientific and technological sense.
Drawings
The disclosure of the present application will become more readily understood by reference to the drawings. It should be understood that: these drawings are for illustrative purposes only and are not intended to limit the scope of the present application. In the figure:
fig. 1 is a flowchart of a method for controlling an interior lighting device according to an embodiment of the present disclosure;
FIG. 2 is an exemplary comparison table of H value intervals versus spectral color;
FIG. 3 is a flow chart of a method for controlling an interior lighting device according to a preferred embodiment of the present application;
fig. 4 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the present application.
Detailed Description
Embodiments of the present application are further described below with reference to the accompanying drawings.
It is easily understood that according to the technical solutions of the present application, those skilled in the art can substitute various structures and implementations without changing the spirit of the present application. Therefore, the following detailed description and the accompanying drawings are merely illustrative of the technical solutions of the present application, and should not be construed as limiting or restricting the technical solutions of the present application in their entirety.
The terms of orientation of up, down, left, right, front, back, top, bottom, and the like referred to or may be referred to in this specification are defined relative to the configuration shown in the drawings, and are relative terms, and thus may be changed correspondingly according to the position and the use state of the device. Therefore, these and other directional terms should not be construed as limiting terms. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Throughout the description of the present application, it is to be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "coupled" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, and the two components can be communicated with each other. The foregoing is to be understood as belonging to the specific meanings in the present application as appropriate to the person of ordinary skill in the art.
The method for controlling the interior lighting device in the embodiment of the application comprises the following steps:
step S101: acquiring an external real-time environment image, and identifying the overall brightness and the main body color of the external real-time environment image;
step S102: controlling the lighting device according to the overall brightness and the subject color.
Particularly, when lighting device opened, according to the real-time environment image of collection car exterior of setting for the time interval, better, real-time environment image of car exterior passes through the interior image acquisition device of car, for example vehicle event data recorder etc. gathers, and the visual angle of the image that vehicle event data recorder gathered is similar with driver visual angle, can truly reflect the external environment under the driver visual angle. After the real-time environment image outside the vehicle is collected every time, the overall brightness and the main body color in the real-time environment image outside the vehicle are identified through an image processing technology, and a control signal is output to the lighting device according to the overall brightness and the main body color to control the display brightness and the display color of the lighting device.
Adjusting the display brightness of the lighting device, and on the basis of the overall brightness of the real-time environment image outside the vehicle, adding a preset brightness increment as the display brightness of the lighting device, where the preset brightness increment may be determined based on the overall brightness, for example, dividing the overall brightness into a plurality of brightness intervals, where each brightness interval corresponds to one preset brightness increment. The brightness of the lighting device can be adjusted along with the ambient brightness, and the situation that the lighting device is too dark when the light is strong and the lighting device is too bright when the light is weak is avoided.
And adjusting the display color of the lighting device, wherein the display color of the lighting device is adjusted to be the main color or the approximate color of the real-time environment image outside the automobile according to the performance of the lighting device. Enabling the lighting device to follow changes in the ambient color.
The embodiment of the application adopts the image recognition technology to recognize the real-time environment image outside the vehicle, determines the whole brightness and the main color to adjust the lighting device, realizes the intelligent adjustment of the brightness and the color of the lighting device, and enhances the visual effect and the technological sense of the environment inside the vehicle. And the real-time environment image outside the vehicle is collected by the image collecting device arranged in the vehicle such as the automobile data recorder, so that the external environment at the visual angle of a driver in the vehicle can be truly reflected, and the display brightness and the adaptation degree of the display color and the environment of the lighting device are improved.
In one embodiment, the identifying the visual brightness of the vehicle exterior real-time environment image specifically includes:
converting the real-time environment image outside the vehicle into an RGB format image;
calculating the color perceptual brightness of each pixel point in the RGB format image;
and calculating the average value of the color perceptual brightness of all the pixel points to be used as the overall brightness of the vehicle exterior real-time environment image.
Specifically, the vehicle exterior real-time environment image can be directly converted into an RGB format, or can be converted into other formats such as a YUV format firstly, and then the other formats are converted into the RGB format. The RGB format may be RGB2, RGB4, RGB8, RGB32, etc.
Expressing each pixel point in the vehicle exterior real-time environment image by RGB (red, green and blue) coordinates to generate an RGB format image, and then calculating the color perception brightness of each pixel point according to a color perception brightness calculation formula
Figure BDA0003089655390000061
And calculating the average value of the color perceptual brightness of each pixel point as the overall brightness of the vehicle exterior real-time environment image.
The method and the device for calculating the color perception brightness of the vehicle exterior real-time environment image can accurately determine the overall brightness data by calculating the average value of the color perception brightness of all the pixel points as the overall brightness of the vehicle exterior real-time environment image.
In one embodiment, the identifying a subject color of the vehicle exterior real-time environment image specifically includes:
filtering out interference pixel points in the RGB format image;
converting the RGB format image into an HSV format image;
extracting a subject color from the HSV-format image.
The images collected by the automobile data recorder are analyzed, the road surface and the shadow in a large area often exist in the images, the area needs to be filtered in order to ensure the accuracy of main body color identification, and the area of the road surface and the shadow usually presents black, white and gray, so that the pixel points with the black, white and gray colors are taken as interference pixel points, and the main body color extraction is carried out after the interference pixel points are filtered.
Before extracting the main body color, converting the RGB format image into an HSV (hue, saturation and brightness) image, converting the RGB coordinate of each pixel point in the RGB image into an HSV coordinate to generate an HSV image, and extracting the main body color based on the HSV coordinate of each pixel point in the HSV image.
Specifically, in the RGB coordinates, the color representation is determined by the R value, G value, and B value, and is 255 in total3The combination and the color boundary are irregular, which can not be simply distinguished by numerical values. Compared with the RGB coordinates, the algorithm for identifying the main body color through the HSV coordinates is more convenient and faster, only the H value (hue value) in the RGB coordinates needs to be subjected to interval division, only 360 combinations are needed, and the numerical value boundary is clear.
According to the embodiment of the application, the interference pixel points in the RGB format image are filtered, and then the RGB format image is converted into the HSV format image to perform main color identification, so that the accuracy of the main color identification is guaranteed, and the efficiency of the main color identification is also guaranteed.
In one embodiment, the filtering out the interference pixel points in the RGB format image specifically includes:
determining an interference pixel point according to the RGB value of each pixel point;
adjusting the RGB values of the interference pixel points to be 0;
and filtering out the pixel points with the RGB values of 0.
In the embodiment of the application, after the interference pixel point is determined, all the RGB values of all the interference pixel points are adjusted to be 0, the interference pixel points are all adjusted to be black, and then the black pixel points are uniformly filtered, so that the filtering of the interference pixel points is realized.
In one embodiment, determining the interference pixel point according to the RGB values specifically includes:
calculating an RG difference value, a GB difference value and an RB difference value of each pixel point;
and if the RG difference value, the GB difference value and the RB difference value are all smaller than a preset difference threshold value, the pixel point is considered as an interference pixel point.
In the embodiment of the application, the identification of the interference pixel points is calculated and determined according to the RGB values of each pixel point based on the characteristics of the RGB values of three colors of black, white and gray, wherein a preset difference threshold (set to 50 in this embodiment) is determined according to a test result, so that more interference pixel points are filtered as much as possible, and other effective pixel points are prevented from being filtered. According to the embodiment of the application, the interference pixel points can be accurately identified based on the RGB values.
In one embodiment, the extracting a body color from the HSV format image specifically includes:
obtaining the hue value of each pixel point in the HSV format image;
classifying all pixel points according to the hue value, and determining the proportion of each type of pixel points;
and taking the hue color of the pixel point with the highest proportion as the main color.
In the HSV image, each pixel point is represented by three coordinate values, i.e., H (hue), S (saturation), and V (brightness), where the H value reflects the hue of the pixel point, and thus the hue color of the pixel point can be determined based on the H value of each pixel point, where the hue color specifically includes red, orange, yellow, green, cyan, blue, and violet, and each hue color corresponds to an H value interval, and fig. 2 shows an example of a comparison table between the H value interval and the hue color.
Specifically, traversing each pixel point in the HSV format image, obtaining a hue value of each pixel point, classifying the pixel points according to the hue values of the pixel points according to the corresponding relation between hue colors and hue intervals, dividing the pixel points into seven classes according to the number of the hue colors, then counting the number of each class of pixel points, calculating the proportion of each class of pixel points to all the pixel points in the HSV format image, and taking the hue color corresponding to the pixel point with the highest proportion as a main color, namely extracting the main color of the vehicle exterior real-time environment image.
In the embodiment of the application, the pixel points are classified through the hue value, the pixel points with similar visual colors can be accurately counted, the proportion error caused by color division dispersion is avoided, and the identification precision of the main body color is improved.
In one embodiment, the controlling the lighting device according to the overall brightness and the main body color specifically includes:
and if the proportion of the pixel point with the hue color as the main color in the real-time environment image outside the vehicle is larger than a preset proportion threshold value, controlling the lighting device according to the overall brightness and the main color.
Specifically, after determining the main color of the real-time environment image outside the vehicle, firstly, determining whether the proportion of the pixel point of the hue color in the real-time environment image outside the vehicle is greater than a preset proportion threshold (set to 30% in this embodiment), if so, controlling the lighting device according to the main color and the overall brightness, adjusting the display color and the display brightness of the lighting device, otherwise, determining that the proportion of the main color is too low, and not adjusting the lighting device at the moment, so as to keep the display color and the display brightness of the lighting device unchanged.
The embodiment of the application only adjusts the lighting device according to whole luminance and main body color when the ratio of the main body color in the real-time environment image outside the vehicle is greater than the preset ratio threshold value, thereby further improving the intelligence of the display color and the environment adaptation of the lighting device and improving the technological sense of the control of the lighting device.
In one embodiment, the controlling the lighting device according to the overall brightness and the main body color further comprises:
acquiring RGB values of the main color;
adjusting the RGB value of the main color in an equal ratio to generate a target RGB value until the color perception brightness of the target RGB value is the overall brightness;
controlling the lighting device according to the target RGB value.
Specifically, since the display color of the illumination device cannot be adjusted to any color due to its own performance, seven display colors are set for seven colors of hue colors and corresponding RGB values are stored based on the performance of the illumination device. When the lighting device is controlled, firstly, the RGB value of the main color is obtained, the display color is determined, then, the RGB value of the main color is subjected to geometric adjustment to generate a target RGB value, under the condition that the display color is not changed, the display brightness of the lighting device is adjusted, the color perception brightness of the target RGB value is calculated in the adjustment process, until the color perception brightness of the target RGB value reaches the overall brightness, the geometric adjustment of the target RGB value is stopped, and the lighting device is controlled according to the current target RGB value.
In the embodiment of this application lighting device can show the light of main part colour with whole luminance, has realized lighting device's demonstration colour and demonstration luminance and has followed the effect of environment automatically regulated outside the car, makes luminous effect more intelligent, has more scientific and technological sense.
Fig. 3 shows a method for controlling an illumination device of an interior illumination device in a preferred embodiment of the present application, which includes the following steps:
step S301: acquiring a real-time environment image outside a vehicle;
step S302: converting the real-time environment image outside the vehicle into an RGB format image;
step S303: calculating the color perceptual brightness of each pixel point in the RGB format image;
step S304: calculating the average value of the color perceptual brightness of all the pixel points as the visual brightness of the vehicle exterior real-time environment image;
step S305: calculating an RG difference value, a GB difference value and an RB difference value of each pixel point, and if the RG difference value, the GB difference value and the RB difference value are all smaller than a preset difference threshold value, determining the pixel point as an interference pixel point;
step S306: adjusting the RGB values of the interference pixel points to be 0;
step S307: filtering out pixel points with RGB values of 0;
step S308: converting the RGB format image into an HSV format image;
step S309: obtaining the hue value of each pixel point in the HSV format image;
step S310: classifying all pixel points according to the hue value, and determining the proportion of each type of pixel points;
step S311: taking the hue color of the pixel point with the highest proportion as the main color;
step S312: if the proportion of the pixel points with the hue colors of the main colors in the real-time environment image outside the vehicle is larger than a preset proportion threshold value, executing the steps S313-S315, otherwise, returning to the step S301;
step S313: acquiring RGB values of the main color;
step S314: adjusting the RGB value of the main color in an equal ratio to generate a target RGB value until the color perception brightness of the target RGB value is the overall brightness;
step S315: controlling the lighting device according to the target RGB value.
The technical scheme of the application also provides a storage medium, wherein the storage medium stores computer instructions, and when a computer executes the computer instructions, the storage medium is used for executing the control method of the in-vehicle lighting device in any one of the embodiments.
Fig. 4 shows an electronic device of the present application, comprising:
at least one processor 401; and the number of the first and second groups,
a memory 402 communicatively coupled to the at least one processor 401; wherein the content of the first and second substances,
the memory 402 stores instructions executable by the at least one processor 401, the instructions being executable by the at least one processor 401 to enable the at least one processor 401 to perform all the steps of the in-vehicle lighting device control method in any one of the method embodiments described above.
The Electronic device is preferably an on-vehicle Electronic Control Unit (ECU), and further, a Microcontroller Unit (MCU) in the on-vehicle Electronic Control Unit.
In fig. 4, one processor 402 is taken as an example:
the electronic device may further include: an input device 403 and an output device 404.
The processor 401, the memory 402, the input device 403, and the display device 404 may be connected by a bus or other means, and are illustrated as being connected by a bus.
The memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for controlling an interior lighting device in the embodiment of the present application, for example, the method flow shown in fig. 1 or fig. 3. The processor 401 executes various functional applications and data processing by running the nonvolatile software programs, instructions, and modules stored in the memory 402, that is, implements the in-vehicle lighting device control method in the above-described embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the in-vehicle lighting device control method, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 402 may optionally include a memory remotely disposed from the processor 401, and these remote memories may be connected to a device that performs the in-vehicle lighting device control method through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 403 may receive an input of a user click and generate a signal input related to user setting and function control of the in-vehicle lighting device control method. The display device 404 may include a display screen or the like.
The in-vehicle lighting device control method in any of the above-described method embodiments is performed when the one or more modules are stored in the memory 402 and executed by the one or more processors 401.
What has been described above is merely the principles and preferred embodiments of the present application. It should be noted that, for those skilled in the art, the embodiments obtained by appropriately combining the technical solutions respectively disclosed in the different embodiments are also included in the technical scope of the present invention, and several other modifications may be made on the basis of the principle of the present application and should be regarded as the protective scope of the present application.

Claims (11)

1. A method for controlling an in-vehicle lighting device is characterized by comprising the following steps:
acquiring an external real-time environment image, and identifying the overall brightness and the main body color of the external real-time environment image;
controlling the lighting device according to the overall brightness and the subject color.
2. The method for controlling the interior lighting device according to claim 1, wherein the identifying the overall brightness of the real-time environment image outside the vehicle specifically comprises:
converting the real-time environment image outside the vehicle into an RGB format image;
calculating the color perceptual brightness of each pixel point in the RGB format image;
and calculating the average value of the color perceptual brightness of all the pixel points to be used as the visual brightness of the real-time environment image outside the vehicle.
3. The method for controlling the interior lighting device according to claim 2, wherein the identifying a main color of the real-time environment image outside the vehicle specifically includes:
filtering out interference pixel points in the RGB format image;
converting the RGB format image into an HSV format image;
extracting a subject color from the HSV-format image.
4. The method according to claim 3, wherein the filtering of the interference pixel points in the RGB-format image specifically includes:
determining an interference pixel point according to the RGB value of each pixel point;
adjusting the RGB values of the interference pixel points to be 0;
and filtering out the pixel points with the RGB values of 0.
5. The method for controlling the in-vehicle illumination device according to claim 4, wherein the determining of the interference pixel point according to the RGB value specifically includes:
calculating an RG difference value, a GB difference value and an RB difference value of each pixel point;
and if the RG difference value, the GB difference value and the RB difference value are all smaller than a preset difference threshold value, the pixel point is considered as an interference pixel point.
6. The method for controlling the in-vehicle lighting device according to claim 3, wherein the extracting a body color from the HSV-format image specifically includes:
obtaining the hue value of each pixel point in the HSV format image;
classifying all pixel points according to the hue value, and determining the proportion of each type of pixel points;
and taking the hue color of the pixel point with the highest proportion as the main color.
7. The method for controlling an in-vehicle illumination device according to claim 6, wherein the controlling the illumination device according to the overall brightness and the body color specifically includes:
and if the proportion of the pixel point with the hue color as the main color in the real-time environment image outside the vehicle is larger than a preset proportion threshold value, controlling the lighting device according to the overall brightness and the main color.
8. The in-vehicle illumination device control method according to claim 7, wherein the controlling the illumination device according to the overall brightness and the body color further includes:
acquiring RGB values of the main color;
adjusting the RGB value of the main color in an equal ratio to generate a target RGB value until the color perception brightness of the target RGB value is the overall brightness;
controlling the lighting device according to the target RGB value.
9. The method for controlling the in-vehicle lighting device according to any one of claims 1 to 8, wherein the real-time environment image outside the vehicle is acquired by an in-vehicle image acquisition device.
10. A storage medium characterized by storing computer instructions for executing the in-vehicle lighting device control method according to any one of claims 1 to 9 when the computer instructions are executed by a computer.
11. An electronic device comprising at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the in-vehicle lighting device control method of any one of claims 1 to 9.
CN202110591280.8A 2021-05-28 2021-05-28 In-vehicle lighting device control method, storage medium, and electronic apparatus Active CN113306486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110591280.8A CN113306486B (en) 2021-05-28 2021-05-28 In-vehicle lighting device control method, storage medium, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110591280.8A CN113306486B (en) 2021-05-28 2021-05-28 In-vehicle lighting device control method, storage medium, and electronic apparatus

Publications (2)

Publication Number Publication Date
CN113306486A true CN113306486A (en) 2021-08-27
CN113306486B CN113306486B (en) 2023-09-22

Family

ID=77376092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110591280.8A Active CN113306486B (en) 2021-05-28 2021-05-28 In-vehicle lighting device control method, storage medium, and electronic apparatus

Country Status (1)

Country Link
CN (1) CN113306486B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549864A (en) * 2021-12-31 2022-05-27 厦门阳光恩耐照明有限公司 Intelligent lamp control method and system based on environment image
CN114698207A (en) * 2022-03-30 2022-07-01 阿波罗智联(北京)科技有限公司 Light adjusting method and device, electronic equipment and storage medium
CN115134972A (en) * 2022-07-20 2022-09-30 杭州涂鸦信息技术有限公司 Illumination control method, device, equipment and storage medium based on environment color extraction

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158171A (en) * 2006-12-22 2008-07-10 Denso Corp Onboard display device
JP2010076519A (en) * 2008-09-24 2010-04-08 Panasonic Electric Works Co Ltd Compartment lighting system
KR20100104877A (en) * 2009-03-19 2010-09-29 현대자동차주식회사 Vehicle inner-light automaticl control unit
CN105555605A (en) * 2013-09-20 2016-05-04 本田技研工业株式会社 Vehicle lamp control device
CN106965739A (en) * 2015-11-25 2017-07-21 株式会社斯巴鲁 Exterior environment recognition device
CN106970748A (en) * 2016-10-13 2017-07-21 蔚来汽车有限公司 The method and system of vehicle-mounted HUD display colors is automatically adjusted based on ambient light color
US20180334099A1 (en) * 2017-05-16 2018-11-22 GM Global Technology Operations LLC Vehicle environment imaging systems and methods
CN110386059A (en) * 2018-04-20 2019-10-29 比亚迪股份有限公司 Body light luminance regulating method, device, system and vehicle
EP3620330A1 (en) * 2018-09-07 2020-03-11 odelo GmbH Method for controlling of light functions of an automobile light, device comprising such an automobile light and computer program product for carrying out the method
CN111667800A (en) * 2020-06-16 2020-09-15 广州视源电子科技股份有限公司 Image display parameter adjusting method and device, storage medium and terminal
CN112776706A (en) * 2020-12-24 2021-05-11 广州小鹏自动驾驶科技有限公司 Vehicle headlamp control method and device
CN112824152A (en) * 2019-11-21 2021-05-21 北京宝沃汽车股份有限公司 Control method and device for interior dome lamp and vehicle

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158171A (en) * 2006-12-22 2008-07-10 Denso Corp Onboard display device
JP2010076519A (en) * 2008-09-24 2010-04-08 Panasonic Electric Works Co Ltd Compartment lighting system
KR20100104877A (en) * 2009-03-19 2010-09-29 현대자동차주식회사 Vehicle inner-light automaticl control unit
CN105555605A (en) * 2013-09-20 2016-05-04 本田技研工业株式会社 Vehicle lamp control device
CN106965739A (en) * 2015-11-25 2017-07-21 株式会社斯巴鲁 Exterior environment recognition device
CN106970748A (en) * 2016-10-13 2017-07-21 蔚来汽车有限公司 The method and system of vehicle-mounted HUD display colors is automatically adjusted based on ambient light color
US20180334099A1 (en) * 2017-05-16 2018-11-22 GM Global Technology Operations LLC Vehicle environment imaging systems and methods
CN110386059A (en) * 2018-04-20 2019-10-29 比亚迪股份有限公司 Body light luminance regulating method, device, system and vehicle
EP3620330A1 (en) * 2018-09-07 2020-03-11 odelo GmbH Method for controlling of light functions of an automobile light, device comprising such an automobile light and computer program product for carrying out the method
CN112824152A (en) * 2019-11-21 2021-05-21 北京宝沃汽车股份有限公司 Control method and device for interior dome lamp and vehicle
CN111667800A (en) * 2020-06-16 2020-09-15 广州视源电子科技股份有限公司 Image display parameter adjusting method and device, storage medium and terminal
CN112776706A (en) * 2020-12-24 2021-05-11 广州小鹏自动驾驶科技有限公司 Vehicle headlamp control method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549864A (en) * 2021-12-31 2022-05-27 厦门阳光恩耐照明有限公司 Intelligent lamp control method and system based on environment image
CN114698207A (en) * 2022-03-30 2022-07-01 阿波罗智联(北京)科技有限公司 Light adjusting method and device, electronic equipment and storage medium
CN115134972A (en) * 2022-07-20 2022-09-30 杭州涂鸦信息技术有限公司 Illumination control method, device, equipment and storage medium based on environment color extraction
WO2024016620A1 (en) * 2022-07-20 2024-01-25 杭州涂鸦信息技术有限公司 Lighting control method and apparatus based on environment color extraction, device, and storage medium
CN115134972B (en) * 2022-07-20 2024-04-12 杭州涂鸦信息技术有限公司 Lighting control method, device, equipment and storage medium based on environment color taking

Also Published As

Publication number Publication date
CN113306486B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN113306486B (en) In-vehicle lighting device control method, storage medium, and electronic apparatus
CN107506760B (en) Traffic signal detection method and system based on GPS positioning and visual image processing
CN101882034B (en) Device and method for discriminating color of touch pen of touch device
CN106778534B (en) Method for identifying ambient light during vehicle running
CN110688907B (en) Method and device for identifying object based on night road light source
CN103488987A (en) Video-based method and device for detecting traffic lights
CN110084111B (en) Rapid night vehicle detection method applied to self-adaptive high beam
WO2021082735A1 (en) Fog feature recognition method, apparatus, and related device
US11386867B2 (en) In-vehicle display control device
CN105489192A (en) Display with image automatic optimization function and image adjusting method thereof
US12014524B2 (en) Low-light camera occlusion detection
DE112017001789T5 (en) In-vehicle display device
Mandal et al. Real-time automotive night-vision system for drivers to inhibit headlight glare of the oncoming vehicles and enhance road visibility
CN103226809B (en) Image demister and image haze removal method
CN113395457A (en) Parameter adjusting method, device and equipment of image collector and storage medium
CN111688568B (en) Brightness detection method, vehicle lamp control method, system thereof and storage medium
CN112447152B (en) Information display method and information display system
CN109800693B (en) Night vehicle detection method based on color channel mixing characteristics
CN116524877A (en) Vehicle-mounted screen brightness adjustment method and device, electronic equipment and storage medium
DE102023106944A1 (en) ADAPTIVE COLOR SELECTION FOR VEHICLE PUDDLE LIGHTS
DE102023101702A1 (en) Head-up display to take color vision deficiencies into account
JP5510468B2 (en) License plate color determination device, computer program, and license plate color determination method
CN116056288A (en) Control method of vehicle lamplight, nonvolatile storage medium and vehicle
JP6221953B2 (en) Vehicle display device
CN115412677A (en) Lamp spectrum determining and acquiring method, lamp, related equipment, system and medium

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
GR01 Patent grant
GR01 Patent grant