Lamp control method and device and vehicle

By obtaining screen data and dynamically adjusting the brightness and color of the lamp, the inconsistency caused by the individual control of the ambient lights and monitors in the car is solved, and the lighting environment and atmosphere in the car is improved, achieving a richer in-car experience.

CN120152103APending Publication Date: 2025-06-13RUILIAN XINGCHEN (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311651023.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the prior art, the interior ambient lights and displays are controlled separately, resulting in inconsistent lighting environment and atmosphere in the interior, and conflicts may occur, resulting in poor lighting environment and atmosphere.

Method used

By obtaining the backlight data and image data in the screen data, dynamically adjust the brightness and color of the lamp to ensure that the brightness and color of the lamp are consistent with the screen played.

Benefits of technology

It improves the lighting environment and atmosphere in the vehicle, fully utilizes the colorful lighting usage scenes of the ambient lights, enriches the immersive environment experience effect in the car, and creates a comfortable, immersive and entertaining interior environment atmosphere for car owners and users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120152103A_ABST
    Figure CN120152103A_ABST
Patent Text Reader

Abstract

The invention discloses a lamp control method and device and a vehicle. Backlight data and image data in screen data are obtained, color data of lamplight are obtained according to the image data, brightness data of the lamplight are obtained according to combination of the backlight data and the image data, and control signals are generated according to the color data and the brightness data and sent to complete control over the brightness and the color of the lamp. Therefore, the brightness and color of the lamp can be dynamically adjusted according to the playing picture of the screen, the lighting environment and atmosphere in the vehicle are improved, the use scene of colorful light of the atmosphere lamp is fully played, the immersive environment experience effect in the vehicle is enriched, and the comfortable, immersive and recreational in-vehicle environment atmosphere is created for a vehicle owner user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicles, and in particular, to a method and device for controlling a lamp and a vehicle. Background Art

[0002] With the continuous progress of science and technology, more and more vehicles are equipped with ambient lights and displays inside. Among them, the ambient lights play a role in decoration and lighting, and the display is used to play pictures. The pictures played on the display and the color and brightness of the ambient lights will change the lighting environment and atmosphere inside the vehicle. However, in the prior art, the in-vehicle ambient lights and the display are controlled separately, and their influences on the in-vehicle lighting environment and atmosphere are inconsistent. In some cases, they may conflict with each other, resulting in a poor lighting environment and atmosphere. Summary of the Invention

[0003] In view of this, an object of the embodiments of the present invention is to provide a method and device for controlling a lamp and a vehicle, which can dynamically adjust the brightness and color of the lamp according to the pictures played on the screen, improve the lighting environment and atmosphere inside the vehicle, give full play to the use scenarios of the colorful lights of the ambient lights, enrich the immersive environment experience effect inside the vehicle, and create a comfortable, immersive and entertaining in-vehicle environment atmosphere for the car owner users.

[0004] In a first aspect, an embodiment of the present invention provides a method for controlling a lamp, and the method includes:

[0005] Obtain screen data, where the screen data includes backlight data and image data;

[0006] Obtain color data of the lamp according to the image data;

[0007] Obtain brightness data of the lamp according to the backlight data and the image data; and

[0008] Generate a control signal according to the color data and the brightness data and send it.

[0009] In some embodiments, the obtaining of the screen data includes:

[0010] Obtain the image data from the screen through an image reader.

[0011] In some embodiments, the obtaining of the color data of the lamp according to the image data includes:

[0012] Obtain bitmap data corresponding to the image data according to a predetermined format, where the bitmap data includes color data of each pixel point; and

[0013] Obtain the color data according to the bitmap data.

[0014] In some embodiments, obtaining the color data according to the bitmap data includes:

[0015] Obtaining sampling points among the pixel points according to a predetermined sampling rule; and

[0016] Determining the color data of the light according to the color data corresponding to the sampling points.

[0017] In some embodiments, determining the color data of the light according to the color data corresponding to the sampling points includes:

[0018] Obtaining the gamut parameters of the lamp;

[0019] Converting the color data of the sampling points according to the gamut parameters to obtain candidate color data; and

[0020] Obtaining the color data of the light according to the candidate color data.

[0021] In some embodiments, obtaining the color data of the light according to the candidate color data specifically is:

[0022] Obtaining the color data of the light according to the average value of the candidate color data.

[0023] In some embodiments, obtaining the brightness data of the light according to the backlight data and the image data includes:

[0024] Obtaining the proportion of pixel points whose color data obtained according to the bitmap data meets a predetermined condition; and

[0025] Determining the brightness data of the light according to the proportion and the backlight data.

[0026] In some embodiments, determining the brightness data of the light according to the proportion and the backlight data includes:

[0027] Obtaining a reference brightness value;

[0028] Determining an adjusted brightness value according to the proportion and the reference brightness value; and

[0029] Determining the brightness data of the light according to the adjusted brightness value and the backlight data.

[0030] In some embodiments, the reference brightness value is a predetermined value or is determined according to the backlight data.

[0031] In some embodiments, generating and sending a control signal according to the color data and the brightness data includes:

[0032] Compressing and encapsulating the color data and the brightness data to generate the control signal.

[0033] In a second aspect, an embodiment of the present invention provides a lighting control device, the device comprising:

[0034] a screen data acquisition unit configured to acquire screen data, the screen data including backlight data and image data;

[0035] a color data acquisition unit configured to acquire color data of the light according to the image data;

[0036] a brightness data acquisition unit configured to acquire brightness data of the light according to the backlight data and the image data; and

[0037] a control signal sending unit configured to generate and send a control signal according to the color data and the brightness data.

[0038] In a third aspect, an embodiment of the present invention provides a vehicle, the vehicle comprising:

[0039] a screen;

[0040] a lighting fixture;

[0041] a screen controller configured to acquire screen data, the screen data including backlight data and image data, acquire color data of the light according to the image data, acquire brightness data of the light according to the backlight data and the image data, generate and send a control signal according to the color data and the brightness data;

[0042] a body controller configured to analyze the received control signal to acquire color data and brightness data; and

[0043] a lighting controller configured to control the lighting fixture according to the color data and the brightness data.

[0044] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, the memory being configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in the first aspect.

[0045] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions are stored, the computer program instructions implementing the method as described in the first aspect when executed by a processor.

[0046] The technical solution of the embodiment of the present invention obtains the backlight data and image data in the screen data, obtains the color data of the light according to the image data, obtains the brightness data of the light according to the combination of the backlight data and the image data, and generates and sends a control signal according to the color data and the brightness data to complete the control of the brightness and color of the lamp. Thus, the brightness and color of the lamp can be dynamically adjusted according to the playing screen of the screen, the lighting environment and atmosphere in the vehicle can be improved, the use scenarios of the colorful lights of the ambient light can be fully utilized, the immersive environment experience effect in the vehicle can be enriched, and a comfortable, immersive and entertaining in-vehicle environment atmosphere can be created for the vehicle owner users. Description of the Drawings

[0047] Through the following description of the embodiments of the present invention with reference to the drawings, the above and other objects, features and advantages of the present invention will become more clear. In the drawings:

[0048] Figure 1 is the circuit diagram of the vehicle according to the embodiment of the present invention;

[0049] Figure 2 is the flowchart of the lamp control method according to the embodiment of the present invention;

[0050] Figure 3 is the flowchart of obtaining color data according to image data according to the embodiment of the present invention;

[0051] Figure 4 is the flowchart of determining color data according to sampling points according to the embodiment of the present invention;

[0052] Figure 5 is the flowchart of obtaining brightness data according to backlight data and image data according to the embodiment of the present invention;

[0053] Figure 6 is the flowchart of determining brightness data according to the proportion and backlight data according to the embodiment of the present invention;

[0054] Figure 7 is the schematic diagram of the lamp control device according to the embodiment of the present invention;

[0055] Figure 8 is the schematic diagram of the electronic device according to the embodiment of the present invention. Detailed Embodiments

[0056] The following describes the present invention based on embodiments, but the present invention is not limited to these embodiments. In the following detailed description of the present invention, some specific details are described in detail. Those skilled in the art can fully understand the present invention without the description of these details. In order to avoid obscuring the essence of the present invention, well-known methods, processes, procedures, components and circuits are not described in detail.

[0057] In addition, those of ordinary skill in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.

[0058] Meanwhile, it should be understood that in the following description, "circuit" refers to a conductive loop formed by at least one component or sub-circuit through electrical connection or electromagnetic connection. When it is said that a component or circuit is "connected to" another component or that a component / circuit is "connected between" two nodes, it may be directly coupled or connected to another component or there may be intermediate components. The connection between components can be physical, logical, or a combination thereof. In contrast, when it is said that a component is "directly coupled to" or "directly connected to" another component, it means that there are no intermediate components between the two.

[0059] Unless the context clearly requires otherwise, words such as "including", "comprising", etc. in the entire application document should be interpreted as having an inclusive meaning rather than an exclusive or exhaustive meaning; that is, it is the meaning of "including but not limited to".

[0060] In the description of the present invention, it should be understood that terms such as "first", "second", etc. are only used for descriptive purposes and cannot be construed as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0061] Figure 1 It is the circuit diagram of the vehicle according to the embodiment of the present invention. In Figure 1 the illustrated embodiment, the vehicle includes a screen 1, a screen controller 2, a body controller 3, a lighting controller 4, and a lamp 5.

[0062] Among them, the screen 1 is a display device in the vehicle, which can be the central control screen of the vehicle or other display devices.

[0063] The screen controller 2 is used to generate control signals for controlling the lamps based on screen data and send them to the body controller. Among them, the screen controller 2 can be implemented by the controller of the central control screen already installed in the vehicle or can be a dedicated controller set separately.

[0064] The body controller 3 is used to analyze the received control signal to obtain color data and brightness data, and send it to the light controller 4. The body controller 3 can be implemented by BCM (Body Control Module). Among them, BCM is a highly integrated chip, and its control object is a high-frequency transceiver with high sensitivity and wake-up and sleep detection, which realizes remote control locking and unlocking of doors and windows, electric rearview mirrors, central door locks, glass lifting devices, lights (high beam, low beam, position lights, brake lights, turn signals, fog lights, interior lighting, atmosphere lights, etc.), window heating and defrosting devices, instrument backlight adjustment and power distribution. The actuators that drive the load are motors (stepping motors, permanent magnet motors, servo motors, etc.), solenoid valves and solenoid switches. The load power ranges from several watts to tens of watts and hundreds of watts. BCM is equipped with power devices such as relays, which can directly control larger loads.

[0065] The light controller 4 is used to receive the color data and brightness data sent by the vehicle body controller 3 , and control the lamp 5 according to the color data and brightness data.

[0066] Among them, lamp 5 is an atmosphere light set inside the vehicle. The atmosphere light inside the vehicle is a kind of lighting lamp that plays a decorative role. Usually, multiple light strips are set in places such as the center console, door panels, roof and central channel, which can display different colors and create a diverse and pleasant atmosphere. It is more gorgeous at night to set off the atmosphere.

[0067] In the embodiment of the present invention, a screen controller generates a control signal according to screen data, and the control signal can be directly transmitted during the data transmission process. Since the data volume of the control signal is much smaller than the screen data, this can improve the efficiency of data transmission and enhance the consistency of light and screen data.

[0068] It should be noted that, in order to adapt to the existing control components of the vehicle, the embodiment of the present invention realizes the control of lamps by combining the screen controller 2, the body controller 3, and the light controller 4, but the embodiment of the present invention does not limit the specific implementation method. For example, the functions of the screen controller 2, the body controller 3, and the light controller 4 can be realized by one controller, or the functions of any two of the screen controller 2, the body controller 3, and the light controller 4 can be realized in one controller, or the functions corresponding to any one of the screen controller 2, the body controller 3, and the light controller 4 can be divided into two or more controllers for realization.

[0069] Figure 2 is a flow chart of a lamp control method according to an embodiment of the present invention. Figure 2 In the embodiment shown, the lamp control method includes the following steps:

[0070] Step S100: Obtain screen data.

[0071] In this embodiment, the screen data includes backlight data and image data.

[0072] Among them, the screen controller obtains the image data from the screen through an ImageReader. The ImageReader is used to parse and decode images. The ImageReader class allows an application to directly access and store the image data presented on the screen. Thus, the image data can be obtained from the screen through the ImageReader.

[0073] The screen controller obtains the backlight data of the screen. Among them, if the display of the screen is controlled by the screen controller, the screen controller can directly obtain the backlight data. If the display of the screen is controlled by other controllers, the screen controller needs to obtain the backlight data from other controllers.

[0074] Step S200: Obtain the color data of the light according to the image data.

[0075] In this embodiment, after obtaining the screen data, the color data of the light is obtained according to the image data.

[0076] Specifically, the process of obtaining the color data of the light according to the image data is as Figure 3 shown and includes the following steps:

[0077] Step S210: Obtain the bitmap data corresponding to the image data according to a predetermined format.

[0078] In this embodiment, the bitmap data corresponding to the image data is obtained through a bitmap according to a predetermined format. The bitmap data includes the color data of each pixel point.

[0079] Among them, the predetermined format includes a color standard and a predetermined number of colors. The color standard is RGB (red, green, blue). Specifically, configure the Bitmap object and set its color format to RGB565. RGB565 is a Bitmap color format that represents each pixel with 16 bits, where R (red) uses 5 bits, G (green) uses 6 bits, and B (blue) uses 5 bits. The range of each color value is 0 - 255. By configuring it to RGB565, the pixel color value of the Bitmap can be directly obtained. Since RGB565 directly stores the color values of the RGB three channels using 16 bits, it is very convenient to directly obtain the R, G, and B colors of each pixel. Traverse the pixels of the Bitmap to obtain the color value of each point. By looping through the pixel matrix of the Bitmap, the index of each pixel point in the pixel array can be obtained, and the RGB color value corresponding to this index can be directly obtained. Convert the obtained RGB value to the required color format, such as converting it to the format of RGB(0, 0, 255). Thus, by storing the image with the Bitmap, it is convenient to directly access the RGB color values of each pixel point, thereby obtaining the color data of each point in the entire image.

[0080] Step S220: Obtain the color data according to the bitmap data.

[0081] Specifically, obtaining the color data according to the bitmap data includes the following steps:

[0082] Step S221: Obtain sampling points among the pixel points according to a predetermined sampling rule.

[0083] In this embodiment, since there are too many pixel points, if all pixel points are selected for processing, the computational load is large. Therefore, sampling points are obtained among the pixel points according to a predetermined sampling rule.

[0084] Among them, the predetermined sampling rule can be various methods. For example, randomly select a predetermined number of points as sampling points. Another example is to divide the screen into multiple parts (such as equally dividing it into multiple parts), and randomly sample a predetermined number of points in each part as sampling points.

[0085] Step S222: Determine the color data of the light according to the color data corresponding to the sampling points.

[0086] In this embodiment, after obtaining the sampling points, obtain the color data corresponding to each sampling point to determine the color data of the light.

[0087] Specifically, the process of determining the color data of the light according to the color data corresponding to the sampling points is as Figure 4 shown and includes the following steps:

[0088] Step S2221: Obtain the color gamut parameters of the lamp.

[0089] Step S2222: Convert the color data of the sampling points according to the color gamut parameters to obtain candidate color data.

[0090] For steps S2221 - S2222, the color gamut parameters are the color data that the lamp can display. As described above, the range of the color values of each pixel point obtained through bitmap is 0 - 255, that is, there are a total of 256 colors, but the number of color types that the lamp can display may be less than 256. For example, the lamp can display 64 colors. At this time, the color gamut parameters of the lamp are 0 - 63. Therefore, it is necessary to obtain the lamp color and convert the color data of the sampling points according to the color gamut parameters to obtain candidate color data.

[0091] Specifically, a mapping relationship between the color gamut parameters of the lamp and the color values of the pixel points can be established, and the color data of the sampling points are converted according to the mapping relationship to obtain candidate color data. Suppose the range of the color values of the pixel points is 0 - 255, and the color gamut parameters of the lamp are 0 - 63. Then the mapping relationship can be: color value (0 - 3) corresponds to color gamut parameter 0, color value (4 - 7) corresponds to color gamut parameter 1, color value (8 - 11) corresponds to color gamut parameter 1, and so on, to obtain the mapping relationship. It should be noted that the above color value (a - b) includes two endpoints a and b.

[0092] Step S2223: Obtain the color data of the light according to the candidate color data.

[0093] In this embodiment, the color data of the light is obtained according to the average value of the candidate color data. As described above, the obtained candidate color parameters are values within the color gamut parameters of the lamp, and the average value of the candidate color parameters is obtained to obtain the color data of the light. If the average value is not an integer, the average value can be converted to an integer according to rounding methods such as rounding up, rounding down, or truncating.

[0094] Step S300: Obtain the brightness data of the light according to the backlight data and the image data.

[0095] In this embodiment, the screen will affect the brightness inside the vehicle. The displayed picture and the backlight brightness of the screen both affect the ambient brightness inside the vehicle. Therefore, in the embodiments of the present invention, the brightness data of the light is obtained according to the backlight data and the image data at the same time.

[0096] Specifically, the process of obtaining the brightness data of the light according to the backlight data and the image data is as Figure 5 shown, including the following steps:

[0097] Step S310: Obtain the proportion of pixel points whose color data meet the predetermined conditions according to the bitmap data.

[0098] In this embodiment, the predetermined condition is a predetermined color gamut range.

[0099] In some embodiments, the predetermined color gamut range is a relatively bright color gamut range. For example, the predetermined condition is the color gamut value corresponding to white. That is, obtain the proportion of pixel points with the color of white according to the bitmap data.

[0100] Among them, obtaining the proportion of pixel points whose color data meet the predetermined conditions according to the bitmap data can be achieved by counting all pixel points. Specifically, obtain the number of all pixel points that meet the predetermined conditions according to the bitmap data, and obtain the ratio of the number of pixel points that meet the predetermined conditions to the total number of pixel points.

[0101] Alternatively, obtaining the proportion of pixel points whose color data meet the predetermined conditions according to the bitmap data can be achieved by counting sampling points. Specifically, obtain the number of all sampling points that meet the predetermined conditions according to the bitmap data, and obtain the ratio of the number of sampling points that meet the predetermined conditions to the total number of sampling points.

[0102] Step S320: Determine the brightness data of the light according to the proportion and the backlight data.

[0103] In this embodiment, determining the brightness data of the light according to the proportion and the backlight data can be implemented based on various methods, and the embodiments of the present invention do not limit this. In a specific implementation manner, it can be achieved through Figure 6 the steps shown, specifically including:

[0104] Step S321: Obtain a reference brightness value.

[0105] In an alternative implementation manner, the reference brightness value is a predetermined value. That is, the reference brightness value is a fixed value set in advance.

[0106] In another alternative implementation manner, the reference brightness value is determined according to the backlight data. For example, the reference brightness value can be the backlight data multiplied by a fixed coefficient.

[0107] Step S322: Determine an adjusted brightness value according to the proportion and the reference brightness value.

[0108] In some embodiments, the adjusted brightness value can be the product of the proportion and the reference brightness value.

[0109] Step S323: Determine the brightness data of the light according to the adjusted brightness value and the backlight data.

[0110] In this embodiment, the brightness data of the light is determined according to the adjusted brightness value and the backlight data.

[0111] For example, the brightness data can be the sum of the adjusted brightness value and the backlight data.

[0112] Again, for example, the brightness data can be the sum of the adjusted brightness value and the backlight data multiplied by a predetermined value.

[0113] Furthermore, for example, the brightness data can be obtained by weighted summing the adjusted brightness value and the backlight data according to a predetermined weight.

[0114] Step S400: Generate a control signal according to the color data and the brightness data and send it.

[0115] In this embodiment, the color data and the brightness data are compressed and encapsulated to generate the control signal, which is sent to the body controller through the service layer packet via the LIN (Local Interconnect Network) bus for parsing and processing.

[0116] In the embodiment of the present invention, by obtaining the backlight data and the image data in the screen data, obtaining the color data of the light according to the image data, obtaining the brightness data of the light according to the combination of the backlight data and the image data, generating a control signal according to the color data and the brightness data and sending it to complete the control of the brightness and color of the lamp. Thus, the brightness and color of the lamp can be dynamically adjusted according to the playing picture of the screen, improving the lighting environment and atmosphere in the vehicle, giving full play to the usage scenarios of the colorful lights of the ambient light, enriching the immersive environment experience effect in the vehicle, and creating a comfortable, immersive and entertaining in-vehicle environment atmosphere for the owner users.

[0117] Figure 7 It is a schematic diagram of the lamp control device according to the embodiment of the present invention. In Figure 7 In the shown embodiment, the lamp control device includes a screen data acquisition unit 71, a color data acquisition unit 72, a brightness data acquisition unit 73, and a control signal transmission unit 74. The screen data acquisition unit 71 is used to acquire screen data, and the screen data includes backlight data and image data. The color data acquisition unit 72 is used to acquire the color data of the light according to the image data. The brightness data acquisition unit 73 is used to acquire the brightness data of the light according to the backlight data and the image data. The control signal transmission unit 74 is used to generate a control signal according to the color data and the brightness data and send it.

[0118] In some embodiments, the screen data acquisition unit includes:

[0119] The image data is acquired from the screen through an image reader.

[0120] In some embodiments, the color data acquisition unit includes:

[0121] A bitmap data acquisition subunit, configured to acquire bitmap data corresponding to the image data according to a predetermined format, where the bitmap data includes color data of each pixel; and a color data acquisition subunit, configured to acquire the color data according to the bitmap data.

[0122] In some embodiments, the color data acquisition subunit includes:

[0123] A sampling point acquisition module, configured to acquire sampling points in the pixels according to a predetermined sampling rule; and

[0124] A color data acquisition module, configured to determine color data of the light according to color data corresponding to the sampling points.

[0125] In some embodiments, the color data acquisition module includes:

[0126] A gamut parameter acquisition sub-module, configured to acquire gamut parameters of the lamp;

[0127] A candidate color data acquisition sub-module, configured to convert the color data of the sampling points according to the gamut parameters to acquire candidate color data; and

[0128] A color data acquisition sub-module, configured to acquire the color data of the light according to the candidate color data.

[0129] In some embodiments, the color data acquisition sub-module is specifically configured to:

[0130] Acquire the color data of the light according to an average value of the candidate color data.

[0131] In some embodiments, the brightness data acquisition unit includes:

[0132] A proportion calculation subunit, configured to acquire a proportion of pixels whose color data meets a predetermined condition according to the bitmap data; and

[0133] A brightness data acquisition subunit, configured to determine brightness data of the light according to the proportion and the backlight data.

[0134] In some embodiments, the brightness data acquisition subunit includes:

[0135] A reference brightness value acquisition module, configured to acquire a reference brightness value;

[0136] An adjusted brightness value determination module, configured to determine an adjusted brightness value according to the proportion and the reference brightness value; and

[0137] A brightness data determination module, configured to determine the brightness data of the light according to the adjusted brightness value and the backlight data.

[0138] In some embodiments, the reference brightness value is a predetermined value or is determined according to the backlight data.

[0139] In some embodiments, the control signal sending unit is configured to:

[0140] Compress and encapsulate the color data and the brightness data to generate the control signal.

[0141] In the embodiments of the present invention, by obtaining the backlight data and the image data in the screen data, obtaining the color data of the light according to the image data, obtaining the brightness data of the light according to the combination of the backlight data and the image data, generating a control signal according to the color data and the brightness data and sending it to complete the control of the brightness and color of the lamp. Thus, the brightness and color of the lamp can be dynamically adjusted according to the playing screen of the screen, the lighting environment and atmosphere in the vehicle can be improved, the use scenarios of the colorful lights of the ambient light can be fully utilized, the immersive environment experience effect in the vehicle can be enriched, and a comfortable, immersive and entertaining in-vehicle environment atmosphere can be created for the owner users.

[0142] Figure 8 It is a schematic diagram of the electronic device according to the embodiment of the present invention. Figure 8 The shown electronic device is a general-purpose data processing device, which includes a general computer hardware structure, and at least includes a processor 81 and a memory 82. The processor 81 and the memory 82 are connected through a bus 83. The memory 82 is suitable for storing instructions or programs executable by the processor 81. The processor 81 can be an independent microprocessor or a set of one or more microprocessors. Thus, the processor 81 executes the instructions stored in the memory 82 to execute the method flow of the embodiment of the present invention as described above to implement the processing of data and the control of other devices. The bus 83 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to a display controller 84, a display device, and an input / output (I / O) device 85. The input / output (I / O) device 85 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a body sensing input device, a printer, and other devices well known in the art. Typically, the input / output (I / O) device 85 is connected to the system through an input / output (I / O) controller 86.

[0143] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, an apparatus (device), or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can be implemented as a computer program product on one or more computer-readable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.

[0144] The present invention is described with reference to the flowcharts of methods, apparatuses (devices), and computer program products according to the embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.

[0145] These computer program instructions can be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device that implements the process Figure 1 specified functions in one process or multiple processes.

[0146] These computer program instructions can also be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices produce a device for implementing the Figure 1 specified functions in one process or multiple processes.

[0147] For the solutions described in this specification and the embodiments, if they involve personal information processing, they will be processed on the premise of having a legal basis (such as obtaining the consent of the personal information subject, or being necessary for performing a contract, etc.), and will only be processed within the specified or agreed scope. If a user refuses to process personal information other than the necessary information required for basic functions, it will not affect the user's use of basic functions.

[0148] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for controlling a lighting fixture, characterized in that, the method includes: obtaining screen data, where the screen data includes backlight data and image data; obtaining color data of the lighting fixture according to the image data; obtaining brightness data of the lighting fixture according to the backlight data and the image data; and generating and sending a control signal according to the color data and the brightness data.

2. The method according to claim 1, characterized in that, the obtaining of the screen data includes: obtaining the image data from the screen through an image reader.

3. The method according to claim 1, characterized in that, the obtaining of the color data of the lighting fixture according to the image data includes: obtaining bitmap data corresponding to the image data according to a predetermined format, where the bitmap data includes color data of each pixel point; and obtaining the color data according to the bitmap data.

4. The method according to claim 3, characterized in that, the obtaining of the color data according to the bitmap data includes: obtaining sampling points among the pixel points according to a predetermined sampling rule; and determining the color data of the lighting fixture according to the color data corresponding to the sampling points.

5. The method according to claim 4, characterized in that, the determining of the color data of the lighting fixture according to the color data corresponding to the sampling points includes: obtaining the gamut parameter of the lighting fixture; converting the color data of the sampling points according to the gamut parameter to obtain candidate color data; and obtaining the color data of the lighting fixture according to the candidate color data.

6. The method according to claim 5, characterized in that, the obtaining of the color data of the lighting fixture according to the candidate color data is specifically: obtaining the color data of the lighting fixture according to the average value of the candidate color data.

7. The method according to claim 3, characterized in that, the obtaining of the brightness data of the lighting fixture according to the backlight data and the image data includes: obtaining the proportion of pixel points whose color data meets a predetermined condition according to the bitmap data; and determining the brightness data of the lighting fixture according to the proportion and the backlight data.

8. The method according to claim 7, characterized in that, the determining of the brightness data of the lighting fixture according to the proportion and the backlight data includes: obtaining a reference brightness value; determining an adjusted brightness value according to the proportion and the reference brightness value; and determining the brightness data of the lighting fixture according to the adjusted brightness value and the backlight data.

9. The method according to claim 8, characterized in that, the reference brightness value is a predetermined value or is determined according to the backlight data.

10. The method according to claim 1, characterized in that, the generating and sending of the control signal according to the color data and the brightness data is specifically: compressing and encapsulating the color data and the brightness data to generate the control signal.

11. A lighting fixture control device, characterized in that, the device includes: a screen data obtaining unit for obtaining screen data, where the screen data includes backlight data and image data; a color data obtaining unit for obtaining color data of the lighting fixture according to the image data; A brightness data acquisition unit, configured to acquire the brightness data of a light according to the backlight data and the image data; and A control signal sending unit, configured to generate and send a control signal according to the color data and the brightness data.

12. A vehicle, characterized in that, the vehicle includes: A screen; A lamp; A screen controller, configured to acquire screen data, where the screen data includes backlight data and image data, acquire the color data of the light according to the image data, acquire the brightness data of the light according to the backlight data and the image data, and generate and send a control signal according to the color data and the brightness data; A body controller, configured to analyze the received control signal to acquire color data and brightness data; and A lamp controller, configured to control the lamp according to the color data and the brightness data.

13. An electronic device, including a memory and a processor, characterized in that, the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1-10.

14. A computer-readable storage medium, on which computer program instructions are stored, characterized in that, the computer program instructions, when executed by a processor, implement the method according to any one of claims 1-10.