CN113306486B - 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
CN113306486B
CN113306486B CN202110591280.8A CN202110591280A CN113306486B CN 113306486 B CN113306486 B CN 113306486B CN 202110591280 A CN202110591280 A CN 202110591280A CN 113306486 B CN113306486 B CN 113306486B
Authority
CN
China
Prior art keywords
lighting device
color
vehicle
brightness
real
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.)
Active
Application number
CN202110591280.8A
Other languages
Chinese (zh)
Other versions
CN113306486A (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

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)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (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, wherein an out-vehicle real-time environment image is obtained, and the overall brightness and the main color of the out-vehicle real-time environment image are identified; controlling the lighting device according to the overall brightness and the main body color. The application collects the real-time environment image adjustment outside the vehicle, determines the overall brightness and the main color of the environment through the graphic processing technology, and is used for controlling the lighting device, the determined overall brightness can more accurately reflect the visual brightness of drivers and passengers in the vehicle, the brightness adjustment adaptability of the lighting device in the vehicle is stronger, the display color can be adjusted along with the main color of the environment, the lighting effect is more intelligent, and the technology sense is more provided.

Description

In-vehicle lighting device control method, storage medium, and electronic apparatus
Technical Field
The application relates to the technical field of automobiles, in particular to a control method of an in-car lighting device, a storage medium and electronic equipment.
Background
Along with the demand of people on riding environment is higher and higher, most vehicle types are provided with atmosphere lamps in the vehicle, so that the visual effect in the vehicle is improved, and the high-grade feeling and the comfort of the vehicle are improved.
At present, the brightness of lighting devices such as atmosphere lamps in a vehicle is adjusted, the ambient brightness is sensed through a light sensor, and the brightness of the atmosphere lamps is adjusted according to the ambient brightness, so that the brightness of the atmosphere lamps can be adaptively adjusted along with the ambient brightness. However, the light sensor can only sense the brightness of a local area, but cannot sense the whole brightness, the collected brightness data deviate from the brightness data observed by the viewing angle in the vehicle, and the sensing of the environment brightness by the driver in the vehicle 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, the automatic switching cannot be performed according to the scene, and the display effect is poor.
Therefore, there is a need to provide an in-vehicle lighting device control method, a storage medium, and an electronic apparatus that are more accurate in brightness adjustment and more intelligent in color switching.
Disclosure of Invention
The application aims to overcome the defects that in the prior art, the brightness of an in-vehicle lighting device is not accurately adjusted and the display color cannot be automatically switched according to a scene, and provides a control method of the in-vehicle lighting device, a storage medium and electronic equipment, wherein the brightness adjustment is more accurate and the color switching is more intelligent.
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 color of the external real-time environment image;
controlling the lighting device according to the overall brightness and the main body 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 perception brightness of each pixel point in the RGB format image;
and calculating the average value of the color perception brightness of all the pixel points 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 interference pixel points in the RGB format image;
converting the RGB format image into an HSV format image;
and extracting the main color from the HSV format image.
Further, the filtering 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;
the RGB values of the interference pixel points are all adjusted to 0;
and filtering out pixel points with RGB values of 0.
Further, determining the interference pixel point according to the RGB value specifically includes:
calculating RG difference value, GB difference value and RB difference value of each pixel point;
and if the RG difference value, the GB difference value and the RB difference value are smaller than a preset difference value threshold, the pixel point is considered to be an interference pixel point.
Further, the extracting the main color from the HSV format image specifically includes:
acquiring a tone value of each pixel point in the HSV format image;
classifying all the pixel points according to the tone value, and determining the duty ratio of each type of pixel point;
and taking the hue color of the pixel point with the highest duty ratio as the main color.
Further, the controlling the lighting device according to the overall brightness and the main color specifically includes:
and if the duty ratio of the pixel points with the tone color being 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 body color;
the RGB value of the main color is regulated in an equal ratio, a target RGB value is generated until the color perception brightness of the target RGB value is the overall brightness;
and controlling the lighting device according to the target RGB value.
Further, the real-time environment image outside the vehicle is acquired by the image acquisition device in the vehicle.
The technical scheme of the application also provides a storage medium which stores computer instructions and is used for executing the method for controlling the lighting device in the vehicle when the computer executes the computer instructions.
The technical scheme of the application also provides electronic equipment, which comprises at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
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 previously described.
After the technical scheme is adopted, the method has the following beneficial effects:
the application collects the real-time environment image adjustment outside the vehicle, determines the overall brightness and the main color of the environment through the graphic processing technology, and is used for controlling the lighting device, the determined overall brightness can more accurately reflect the visual brightness of drivers and passengers in the vehicle, the brightness adjustment adaptability of the lighting device in the vehicle is stronger, the display color can be adjusted along with the main color of the environment, the lighting effect is more intelligent, and the technology sense is more provided.
Drawings
The present disclosure will become more readily understood with reference to the accompanying drawings. It should be understood that: the 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 flow chart of a method for controlling an in-vehicle lighting device according to an embodiment of the application;
FIG. 2 is an exemplary table of H value intervals versus spectral colors;
FIG. 3 is a flow chart of a method for controlling an in-vehicle lighting device according to a preferred embodiment of the application;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the application.
Detailed Description
Specific embodiments of the present application will be further described below with reference to the accompanying drawings.
It is to be readily understood that, according to the technical solutions of the present application, those skilled in the art may replace various structural modes and implementation modes with each other without changing the true spirit of the present application. Accordingly, the following detailed description and drawings are merely illustrative of the application and are not intended to limit or restrict the application in its entirety or to apply for the application.
Terms of orientation such as up, down, left, right, front, rear, front, back, top, bottom, etc. mentioned or possible to be mentioned in the present specification are defined with respect to the configurations shown in the drawings, which are relative concepts, and thus may be changed according to different positions and different use states thereof. 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.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between the two components. The above-described specific meanings belonging to the present application are understood as appropriate by those of ordinary skill in the art.
The method for controlling the lighting device in the vehicle comprises the following steps:
step S101: acquiring an external real-time environment image, and identifying the overall brightness and the main color of the external real-time environment image;
step S102: controlling the lighting device according to the overall brightness and the main body color.
Specifically, when the lighting device is turned on, the real-time environment images outside the vehicle are collected according to a set time interval, preferably, the real-time environment images outside the vehicle are collected through the image collecting device in the vehicle, such as a vehicle recorder, and the like, and the visual angle of the images collected by the vehicle recorder is similar to the visual angle of a driver, so that the external environment under the visual angle of the driver can be truly reflected. After the real-time environment image outside the vehicle is collected each time, the overall brightness and the main color in the real-time environment image outside the vehicle are identified through an image processing technology, and control signals are output to the lighting device according to the overall brightness and the main color to control the display brightness and the display color of the lighting device.
And (3) adjusting the display brightness of the lighting device, and adding a preset brightness increment as the display brightness of the lighting device on the basis of the overall brightness of the real-time environment image outside the vehicle, wherein the preset brightness increment can be determined based on the overall brightness, for example, the overall brightness is divided into a plurality of brightness intervals, and each brightness interval corresponds to one preset brightness increment. The brightness of the lighting device can be adjusted along with the ambient brightness, so that the lighting device is prevented from being too dark when the light is strong, and the lighting device is prevented from being too bright when the light is weak.
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 vehicle according to the performance of the lighting device. Enabling the lighting device to change following the change in ambient color.
According to the embodiment of the application, the image recognition technology is adopted to recognize the image of the real-time environment outside the vehicle, the overall brightness and the main color are determined to regulate the lighting device, the intelligent regulation of the brightness and the color of the lighting device is realized, and the visual effect and the technological sense of the environment inside the vehicle are enhanced. And the image acquisition device installed in the vehicle such as a vehicle recorder acquires the image of the real-time environment outside the vehicle, so that the external environment of a driver in the vehicle under the view angle can be truly reflected, and the display brightness and the display color of the lighting device are improved, and the adaptation degree of the environment is improved.
In one embodiment, the identifying the visual 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 perception brightness of each pixel point in the RGB format image;
and calculating the average value of the color perception brightness of all the pixel points as the overall brightness of the real-time environment image outside the vehicle.
Specifically, the real-time environment image outside the vehicle can be directly converted into an RGB format, or can be converted into other formats such as a YUV format, and then the other formats are converted into the RGB format. The RGB format may be RGB2, RGB4, RGB8, RGB32, etc.
Each pixel point in the real-time environment image outside the vehicle is represented by RGB (red, green and blue) coordinates to generate an RGB format image, and then the color perception brightness of each pixel point is calculated according to a color perception brightness calculation formula
And then calculating the average value of the color perception brightness of each pixel point as the overall brightness of the real-time environment image outside the vehicle.
According to the embodiment of the application, the average value of the color perception brightness of all the pixel points is calculated as the overall brightness of the real-time environment image outside the vehicle, and the overall brightness data can be accurately determined.
In one embodiment, the identifying the main color of the real-time environment image outside the vehicle specifically includes:
filtering interference pixel points in the RGB format image;
converting the RGB format image into an HSV format image;
and extracting the main color from the HSV format image.
Through analyzing the picture acquired by the automobile data recorder, the road surface and shadow of a large area often exist in the picture, in order to ensure the accuracy of main body color identification, the area needs to be filtered out, and the normal road surface and shadow area presents black and white gray, so that the pixel points with black and white gray color are used as interference pixel points, and main body color extraction is performed after the interference pixel points are filtered out.
Before the main color extraction, converting an RGB format image into an HSV (hue, saturation and brightness) image, converting RGB coordinates of each pixel point in the RGB image into HSV coordinates, generating an HSV image, and extracting the main color based on the HSV coordinates of each pixel point in the HSV image.
Specifically, in the RGB coordinates, the color is expressed by R, G, and B values together, and 255 is a total 3 The combinations are irregular in color boundaries and cannot be distinguished simply by numerical values. Compared with RGB coordinates, the algorithm for identifying the main body color through HSV coordinates is more convenient and faster, only the H value (tone value) in the algorithm is required to be divided into intervals, only 360 combinations are needed, and the numerical boundary is clear.
In 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 for main color identification, so that the accuracy of main color identification is ensured, and the efficiency of main color identification is also ensured.
In one embodiment, the filtering 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;
the RGB values of the interference pixel points are all adjusted to 0;
and filtering out pixel points with RGB values of 0.
In the embodiment of the application, after the interference pixel points are determined, all RGB values of all the interference pixel points are adjusted to 0, namely, all the interference pixel points are adjusted to 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 value specifically includes:
calculating RG difference value, GB difference value and RB difference value of each pixel point;
and if the RG difference value, the GB difference value and the RB difference value are smaller than a preset difference value threshold, the pixel point is considered to be an interference pixel point.
In the embodiment of the application, the identification of the interference pixel points is based on the characteristics of RGB values of three colors of black, white and gray, and the calculation and the determination are carried out according to the RGB value of each pixel point, wherein a preset difference value threshold (50 is set in the embodiment) is determined according to a test junction, so that more interference pixel points are filtered as much as possible, and other effective pixel points are prevented from being filtered. The embodiment of the application can accurately identify the interference pixel points based on the RGB values.
In one embodiment, the extracting the main color from the HSV format image specifically includes:
acquiring a tone value of each pixel point in the HSV format image;
classifying all the pixel points according to the tone value, and determining the duty ratio of each type of pixel point;
and taking the hue color of the pixel point with the highest duty ratio as the main color.
In the HSV image, each pixel point is represented by three coordinate values of H (hue), S (saturation) and V (brightness), wherein the H value reflects the hue of the pixel point, so that the hue color of the pixel point can be determined based on the H value of each pixel point, the hue color specifically comprises red, orange, yellow, green, cyan, blue and violet, each hue color corresponds to an H value interval, and fig. 2 shows an example of a comparison table of the H value interval and the hue color.
Specifically, traversing each pixel point in the HSV format image, acquiring a tone value of each pixel point, classifying the pixel points according to the tone value according to the corresponding relation between the tone color and the tone interval, classifying the pixel points into seven types according to the number of the tone colors, counting the number of each type of pixel points, calculating the duty ratio of all the pixel points in the HSV format image of each type of pixel points, and taking the tone color corresponding to the type of pixel point with the highest duty ratio as a main color, namely extracting the main color of the real-time environment image outside the vehicle.
According to the embodiment of the application, the pixel points are classified by the tone value, so that the pixel points with similar visual colors can be accurately counted, the duty ratio error caused by color division and dispersion is avoided, and the identification accuracy of the main color is improved.
In one embodiment, the controlling the lighting device according to the overall brightness and the color of the main body specifically includes:
and if the duty ratio of the pixel points with the tone color being 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, judging whether the duty ratio of the pixel points with the hue color being the main color in the real-time environment image outside the vehicle is greater than a preset proportion threshold (30% in the embodiment), if so, controlling the lighting device according to the main color and the overall brightness, and adjusting the display color and the display brightness of the lighting device, if not, considering that the duty ratio of the main color is too low, at the moment, not adjusting the lighting device, and keeping the display color and the display brightness of the lighting device unchanged.
According to the embodiment of the application, the lighting device is regulated according to the overall brightness and the main body color only when the duty ratio of the main body color in the real-time environment image outside the vehicle is larger than the preset proportion threshold, so that the intelligence of the display color and the environment adaptation of the lighting device is further improved, and the technological sense of the control of the lighting device is improved.
In one embodiment, the controlling the lighting device according to the overall brightness and the body color further includes:
acquiring RGB values of the main body color;
the RGB value of the main color is regulated in an equal ratio, a target RGB value is generated until the color perception brightness of the target RGB value is the overall brightness;
and controlling the lighting device according to the target RGB value.
Specifically, the display color of the lighting device is affected by its own performance, and cannot be adjusted to an arbitrary color, and therefore, based on the performance of the lighting device, seven display colors are set for the seven colors of the tone color, respectively, and the corresponding RGB values are stored. When the lighting device is controlled, firstly, RGB values of the main color are obtained, the display color is determined, then, the RGB values of the main color are subjected to equal ratio adjustment to generate target RGB values, the display brightness of the lighting device is adjusted under the condition that the display color is unchanged, the color perception brightness of the target RGB values is calculated in the adjustment process until the color perception brightness of the target RGB values reaches the integral brightness, and then, the equal ratio adjustment of the target RGB values is stopped, and the lighting device is controlled according to the current target RGB values.
According to the embodiment of the application, the lighting device can display the light of the main color with the whole brightness, so that the effect of automatically adjusting the display color and the display brightness of the lighting device along with the environment of the vehicle is realized, the lighting effect is more intelligent, and the technology sense is realized.
Fig. 3 shows a control method of an illumination device of an interior illumination device in a vehicle according to a preferred embodiment of the application, which includes the following steps:
step S301: acquiring an external real-time environment image of the vehicle;
step S302: converting the real-time environment image outside the vehicle into an RGB format image;
step S303: calculating the color perception brightness of each pixel point in the RGB format image;
step S304: calculating the average value of the color perception brightness of all the pixel points as the visual brightness of the real-time environment image outside the vehicle;
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 smaller than a preset difference value threshold, considering the pixel point as an interference pixel point;
step S306: the RGB values of the interference pixel points are all adjusted to 0;
step S307: filtering pixel points with RGB values of 0;
step S308: converting the RGB format image into an HSV format image;
step S309: acquiring a tone value of each pixel point in the HSV format image;
step S310: classifying all the pixel points according to the tone value, and determining the duty ratio of each type of pixel point;
step S311: taking the hue color of the pixel point with the highest duty ratio as the main color;
step S312: if the duty ratio of the pixel point with the tone color being the main color in the real-time environment image outside the vehicle is greater than the preset proportion threshold, executing the steps S313-S315, otherwise, returning to the step S301;
step S313: acquiring RGB values of the main body color;
step S314: the RGB value of the main color is regulated in an equal ratio, a target RGB value is generated until the color perception brightness of the target RGB value is the overall brightness;
step S315: and controlling the lighting device according to the target RGB value.
The technical solution of the present application also provides a storage medium storing computer instructions for executing the method for controlling an in-vehicle lighting device in any one of the foregoing embodiments when the computer executes the computer instructions.
Fig. 4 shows an electronic device of the application, comprising:
at least one processor 401; the method comprises the steps of,
a memory 402 communicatively coupled to the at least one processor 401; wherein,,
the memory 402 stores instructions 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 in-vehicle electronic control unit (Electronic Control Unit, ECU), further a micro control unit (Microcontroller Unit, MCU) in the in-vehicle electronic control unit.
An example of a processor 402 is shown in fig. 4:
the electronic device may further include: an input device 403 and an output device 404.
The processor 401, memory 402, input device 403, and display device 404 may be connected by a bus or other means, which is illustrated as a bus connection.
The memory 402 is used as a non-volatile computer readable storage medium, and may be used to store a non-volatile software program, a non-volatile computer executable program, and modules, such as program instructions/modules corresponding to the method for controlling an in-vehicle 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 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.
Memory 402 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the in-vehicle lighting device control method, and the like. In addition, 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, memory 402 may optionally include memory remotely located with respect to processor 401, which may be connected via a network to devices performing the in-vehicle lighting device control method. 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 input user clicks and generate signal inputs related to user settings and function controls of the in-vehicle lighting device control method. The display 404 may include a display device such as a display screen.
The in-vehicle lighting device control method in any of the method embodiments described above 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 illustrative of the principles and preferred embodiments of the present application. It should be noted that, for a person skilled in the art, an implementation manner in which the technical solutions disclosed in the different embodiments are appropriately combined is also included in the technical scope of the present application, and several other modifications are possible on the basis of the principle of the present application, which should also be regarded as the protection scope of the present application.

Claims (10)

1. A method for controlling an in-vehicle lighting device, comprising the steps of:
acquiring an external real-time environment image, and identifying the overall brightness and the main color of the external real-time environment image;
controlling the lighting device according to the overall brightness and the main body color;
the controlling the lighting device according to the overall brightness and the main color specifically includes:
if the color tone is that the duty ratio of the pixel points of 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, otherwise, returning to the step of obtaining the real-time environment image outside the vehicle.
2. The method for controlling an in-vehicle lighting device according to claim 1, wherein said identifying the overall brightness of the out-of-vehicle real-time environment image specifically comprises:
converting the real-time environment image outside the vehicle into an RGB format image;
calculating the color perception brightness of each pixel point in the RGB format image;
and calculating the average value of the color perception brightness of all the pixel points as the overall brightness of the real-time environment image outside the vehicle.
3. The method for controlling an in-vehicle lighting device according to claim 2, wherein the identifying the main body color of the out-of-vehicle real-time environment image specifically comprises:
filtering interference pixel points in the RGB format image;
converting the RGB format image into an HSV format image;
and extracting the main color from the HSV format image.
4. The method for controlling an in-vehicle lighting device according to claim 3, wherein the filtering out the interference pixels in the RGB format image specifically includes:
determining an interference pixel point according to the RGB value of each pixel point;
the RGB values of the interference pixel points are all adjusted to 0;
and filtering out pixel points with RGB values of 0.
5. The method for controlling an in-vehicle lighting device according to claim 4, wherein determining the interference pixel point according to the RGB values, specifically comprises:
calculating RG difference value, GB difference value and RB difference value of each pixel point;
and if the RG difference value, the GB difference value and the RB difference value are smaller than a preset difference value threshold, the pixel point is considered to be an interference pixel point.
6. The method for controlling an in-vehicle lighting device according to claim 3, wherein said extracting a main body color from said HSV format image specifically comprises:
acquiring a tone value of each pixel point in the HSV format image;
classifying all the pixel points according to the tone value, and determining the duty ratio of each type of pixel point;
and taking the hue color of the pixel point with the highest duty ratio as the main color.
7. The in-vehicle lighting device control method according to claim 6, characterized in that the controlling the lighting device according to the overall brightness and the main body color further comprises:
acquiring RGB values of the main body color;
the RGB value of the main color is regulated in an equal ratio, a target RGB value is generated until the color perception brightness of the target RGB value is the overall brightness;
and controlling the lighting device according to the target RGB value.
8. The method according to any one of claims 1 to 7, wherein the outside real-time environment image is acquired by an inside-vehicle image acquisition device.
9. A storage medium storing computer instructions for performing the in-vehicle lighting device control method of any one of claims 1-8 when the computer executes the computer instructions.
10. An electronic device comprising at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
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-8.
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 CN113306486A (en) 2021-08-27
CN113306486B true 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)

Families Citing this family (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
CN115134972B (en) * 2022-07-20 2024-04-12 杭州涂鸦信息技术有限公司 Lighting control method, device, equipment and storage medium based on environment color taking

Citations (11)

* 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
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
CN106965739A (en) * 2015-11-25 2017-07-21 株式会社斯巴鲁 Exterior environment recognition device
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180334099A1 (en) * 2017-05-16 2018-11-22 GM Global Technology Operations LLC Vehicle environment imaging systems and methods

Patent Citations (11)

* 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
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

Also Published As

Publication number Publication date
CN113306486A (en) 2021-08-27

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
JP4985394B2 (en) Image processing apparatus and method, program, and recording medium
CN103155028B (en) Display unit, image sensing unit and display system
US9460521B2 (en) Digital image analysis
CN105635597A (en) Auto-exposure method and system for vehicle-mounted camera
CN111754440B (en) License plate image enhancement method, system, equipment and storage medium
US11386867B2 (en) In-vehicle display control device
CN106778534B (en) Method for identifying ambient light during vehicle running
CN114143940B (en) Tunnel illumination control method, device, equipment and storage medium
JP2007164737A (en) Color-identifying method
WO2013114803A1 (en) Image processing device, image processing method therefor, computer program, and image processing system
CN103226809B (en) Image demister and image haze removal method
WO2011000392A1 (en) Method and camera system for improving the contrast of a camera image
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
CN116524877A (en) Vehicle-mounted screen brightness adjustment method and device, electronic equipment and storage medium
JP5510468B2 (en) License plate color determination device, computer program, and license plate color determination method
CN113923423A (en) Method for adjusting view color of AR glasses, electronic device and storage medium
CN110884431B (en) Device and method suitable for preventing automobile intelligent rearview mirror from being bright light at night
CN114511645A (en) Ink color detection device, method, equipment and medium
CN115412677A (en) Lamp spectrum determining and acquiring method, lamp, related equipment, system and medium
WO2013114802A1 (en) Image processing device, image processing method therefor, computer program, and image processing system
CN111445455B (en) Image acquisition method and device

Legal Events

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