Lighting effect display method, device, equipment and storage medium

By extracting tag information and obtaining compressed and encapsulated lighting data from the preset database, communication blocking and delay problems during custom lighting image display are solved, and the effect of lightweight transmission and reducing CAN bus load is achieved.

CN114845114BActive Publication Date: 2025-03-21DONGFENG MOTOR CO LTD DONGFENG NISSAN PASSENGER VEHICLE CO
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210462337.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2025-03-21
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

When displaying custom lighting effects images in the prior art, communication blockage and delay are easily caused by the prior art, and occupies a large amount of communication resources.

Method used

By obtaining the lighting effect information to be displayed, the tag information is extracted, and the compressed and encapsulated lighting effect data is obtained from the preset database based on the tag information, and sent to the lighting controller for decoding and displaying.

Benefits of technology

It realizes the display of custom lighting effects images without affecting communication resources, reducing the data transmission amount and CAN bus load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114845114B_ABST
    Figure CN114845114B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of vehicle light control technology, and discloses a lighting effect display method, device, equipment and storage medium, which obtain lighting effect information to be displayed, and send the lighting effect information to be displayed to the vehicle body controller; extract label information of the lighting effect information to be displayed by the vehicle body controller, and obtain lighting effect data from a preset database according to the label information, and send the lighting effect data to the light controller, wherein the lighting effect data is compressed and packaged by an encoder in the host; the lighting effect data is decoded by a decoder in the light controller to obtain target lighting effect data, so that when performing a customized lighting effect display, only the encoded lighting effect data needs to be sent to the light controller for lighting effect display, and since the encoded lighting effect data has a small data volume, lightweight data transmission is achieved, reducing the data transmission volume and CAN bus load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle light control technology, and in particular to a lighting effect display method, device, equipment and storage medium. Background Art

[0002] Existing lighting effect displays are divided into two types: lighting effect display chip preset mode and real-time image transmission. The preset mode means that the specified lighting effect is saved in the lighting effect library of the lighting effect controller. When the user sends the lighting mode number to the lighting effect controller, the lighting effect controller controls the vehicle's lights to display the specified lighting effect according to the specified lighting effect in the lighting effect library, but custom control cannot be achieved in this case. Real-time image transmission means that the custom lighting effect image is transmitted to the lighting effect controller in real time through the host, and the lighting effect controller controls the vehicle's lights to display the custom lighting effect image. However, in the process of displaying the custom lighting effect image, due to the large amount of data of the custom image, the real-time transmission of the custom image to the lighting effect controller through the host requires a large amount of communication resources, which is prone to communication congestion and delays. Summary of the invention

[0003] The main purpose of the present invention is to propose a lighting effect display method, device, equipment and storage medium, aiming to solve how to realize the display of customized lighting effect images without affecting communication resources.

[0004] To achieve the above object, the present invention provides a lighting effect display method, which is applied to a vehicle, wherein the vehicle comprises a host, a body controller and a lighting controller, the host comprises an encoder, the lighting controller comprises a decoder, and the lighting effect display method comprises the following steps:

[0005] Acquire the lighting effect information to be displayed, and send the lighting effect information to be displayed to the vehicle body controller;

[0006] Extracting the label information of the lighting effect information to be displayed through the body controller, acquiring lighting effect data from a preset database according to the label information, and sending the lighting effect data to the light controller, wherein the lighting effect data is obtained by compression and packaging through the encoder in the host;

[0007] The lighting effect data is decoded by a decoder in the lighting controller to obtain target lighting effect data, and the vehicle lights are controlled to display the lighting effects according to the target lighting effect data.

[0008] Optionally, acquiring lighting effect data from a preset database according to the tag information includes:

[0009] Determine the lighting effect source information according to the lighting effect information to be displayed;

[0010] When the lighting effect source information is local, obtaining lighting effect data from a local database according to the tag information;

[0011] When the lighting effect source information is from the cloud, the lighting effect data is searched from the cloud database according to the tag information, and the lighting effect data is downloaded.

[0012] Optionally, sending the lighting effect data to the lighting controller includes:

[0013] Determining whether the lighting effect data is static lighting effect data or dynamic lighting effect data;

[0014] When the lighting effect data is static lighting effect data, sending the static lighting effect data to the lighting controller;

[0015] When the lighting effect data is dynamic lighting effect data, the dynamic lighting effect data is split and processed to obtain processed image data, and the processed image data is sent to the lighting controller.

[0016] Optionally, the decoder includes a static decoder and a dynamic decoder;

[0017] The decoding of the lighting effect data by a decoder in the lighting controller includes:

[0018] When the lighting effect data is composed of static frames, sending the lighting effect data to the static decoder for decoding by the static decoder;

[0019] When the lighting effect data is composed of dynamic frames, the lighting effect data is sent to the dynamic decoder and decoded by the dynamic decoder.

[0020] Optionally, the lighting effect data is obtained by compressing and packaging through an encoder in the host, including:

[0021] Get the lighting effect samples to be processed;

[0022] When the lighting effect sample to be processed is an image sample, separating a foreground image and a background image in the image sample, and compressing and packaging the foreground image and the background image to obtain lighting effect data;

[0023] When the lighting effect sample to be processed is an animation sample, the dynamic image and the static image in the animation sample are separated, and compression and packaging are performed based on the dynamic image and the static image to obtain lighting effect data.

[0024] Optionally, when the lighting effect sample to be processed is an image sample, separating a foreground image and a background image in the image sample, and compressing and packaging the foreground image and the background image to obtain lighting effect data includes:

[0025] When the lighting effect samples to be processed are image samples, matrixing the image samples to obtain an image array;

[0026] When the vehicle lamp is a multi-color lamp, performing channel separation on the image array according to pixel colors;

[0027] Binarizing the array corresponding to each channel, and separating the foreground image and the background image in the array through the binarized image array;

[0028] The foreground images of each channel are coupled by preset weights to obtain an integrated foreground image;

[0029] Restoring the integrated foreground image to obtain a restored foreground multi-color image;

[0030] Pixelating the restored foreground multi-color image to reduce the resolution of the integrated foreground image;

[0031] compressing the pixelated foreground image using a first compression method to obtain a compressed foreground image;

[0032] The compressed foreground image and the background image are encapsulated to obtain lighting effect data.

[0033] Optionally, when the lighting effect samples to be processed are image samples, after matrixing the image samples to obtain an image array, the method further includes:

[0034] When the vehicle light is a monochrome light, the image array is gray-scale binarized, and the main image portion is determined by the binarized image array;

[0035] Determining a contour position according to the subject image portion;

[0036] Extracting a foreground image and a background image according to the contour position;

[0037] Restoring the foreground image by masking to obtain a restored foreground grayscale image;

[0038] compressing the restored foreground grayscale image using a second compression method to obtain a compressed foreground image;

[0039] The compressed foreground image and the background image are encapsulated to obtain lighting effect data.

[0040] Optionally, when the lighting effect sample to be processed is an animation sample, separating the dynamic image and the static image in the animation sample, and compressing and packaging the dynamic image and the static image to obtain the lighting effect data, further comprising:

[0041] When the lighting effect sample to be processed is an animation sample, the animation sample is disassembled to obtain image information of each frame;

[0042] Pixelating each frame of image information to obtain an image with a changed position and an image with a unchanged position;

[0043] The image whose position has changed is used as the foreground image, and the image whose position has not changed is used as the background image;

[0044] Respectively extracting the foreground image and the background image from each frame of image information;

[0045] Extracting a dynamic frame from the foreground image in each frame of image information to obtain a dynamic image, and using the background image in each frame of image information as a static image;

[0046] compressing the dynamic image using a third compression method to obtain a compressed dynamic image;

[0047] The compressed dynamic image and the background image in each frame of image information are encapsulated to obtain lighting effect data.

[0048] Optionally, the lighting effect data is obtained by encapsulating through an encoder in the host, including:

[0049] Get lighting effect samples;

[0050] Determine the image type of the lighting effect sample, and extract the foreground image and the background image in the lighting effect sample;

[0051] Obtaining foreground attributes and foreground data according to the foreground image in the lighting effect sample, and obtaining background attributes according to the background image in the lighting effect sample;

[0052] The lighting effect data is obtained by encapsulating the tag information, image type, background attribute, foreground attribute and foreground data.

[0053] In addition, to achieve the above-mentioned purpose, the present invention further provides a lighting effect display device, the lighting effect display device comprising:

[0054] An acquisition module, used for acquiring lighting effect information to be displayed, and sending the lighting effect information to be displayed to a vehicle body controller;

[0055] A sending module, used to extract the tag information of the lighting effect information to be displayed through the body controller, obtain the lighting effect data from a preset database according to the tag information, and send the lighting effect data to the lighting controller, wherein the lighting effect data is obtained by compression and packaging through an encoder in the host;

[0056] The decoding module is used to decode the lighting effect data through a decoder in the lighting controller to obtain target lighting effect data, and control the vehicle lights to display the lighting effect according to the target lighting effect data.

[0057] In addition, to achieve the above-mentioned purpose, the present invention also proposes a lighting effect display device, which includes: a memory, a processor, and a lighting effect display program stored in the memory and executable on the processor, and the lighting effect display program is configured to implement the lighting effect display method described above.

[0058] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a lighting effect display program is stored, and when the lighting effect display program is executed by a processor, the lighting effect display method as described above is implemented.

[0059] The lighting effect display method proposed in the present invention obtains lighting effect information to be displayed, and sends the lighting effect information to be displayed to the body controller; extracts tag information of the lighting effect information to be displayed by the body controller, and obtains lighting effect data from a preset database according to the tag information, and sends the lighting effect data to the light controller, wherein the lighting effect data is obtained by compression and packaging through an encoder in the host; decodes the lighting effect data through a decoder in the light controller to obtain target lighting effect data, and controls the vehicle lights to display the lighting effects according to the target lighting effect data, so that when performing a customized lighting effect display, only the encoded lighting effect data needs to be sent to the light controller for the lighting effect display, and since the amount of data of the encoded lighting effect data is small, lightweight data transmission is achieved, and the data transmission amount and CAN bus load are reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a schematic diagram of the structure of a lighting effect display device in a hardware operating environment involved in an embodiment of the present invention;

[0061] Figure 2 It is a flowchart of a first embodiment of a lighting effect display method of the present invention;

[0062] Figure 3 A schematic diagram of the packaging format of lighting effect data according to an embodiment of a lighting effect display method of the present invention;

[0063] Figure 4 A schematic diagram of the overall process of calling lighting effects according to an embodiment of a lighting effect display method of the present invention;

[0064] Figure 5 It is a flowchart of a second embodiment of the lighting effect display method of the present invention;

[0065] Figure 6 It is a flowchart of a third embodiment of the lighting effect display method of the present invention;

[0066] Figure 7 A schematic diagram of a process of creating a lighting effect through an image encoder according to an embodiment of a lighting effect display method of the present invention;

[0067] Figure 8 A schematic diagram of a process of creating a lighting effect through an animation encoder according to an embodiment of a lighting effect display method of the present invention;

[0068] Fig. 9 A schematic diagram of the overall process of creating a lighting effect according to an embodiment of a lighting effect display method of the present invention;

[0069] Fig.10 Schematic diagram of functional modules of the first embodiment of the lighting effect display device of the present invention.

[0070] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0071] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0072] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0073] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a button, and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0074] Those skilled in the art will understand that Figure 1 The structure of the lighting effect display device shown in the figure does not constitute a limitation on the lighting effect display device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0075] like Figure 1As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a lighting effect display program.

[0076] exist Figure 1 In the lighting effect display device shown, the network interface 1004 is mainly used to connect to the server and communicate data with the server; the user interface 1003 is mainly used to connect to the user terminal and communicate data with the terminal; the lighting effect display device of the present invention calls the lighting effect display program stored in the memory 1005 through the processor 1001, and executes the lighting effect display method provided by the embodiment of the present invention.

[0077] Based on the above hardware structure, an embodiment of a lighting effect display method of the present invention is proposed.

[0078] Reference Figure 2 , Figure 2 FIG. 4 is a flow chart of a first embodiment of a lighting effect display method according to the present invention.

[0079] In a first embodiment, the lighting effect display method comprises the following steps:

[0080] Step S10, obtaining lighting effect information to be displayed, and sending the lighting effect information to be displayed to the vehicle body controller.

[0081] It should be noted that the executor of this embodiment is a vehicle, and a lighting effect display program is provided on the vehicle. Customized lighting effect display can be performed according to the lighting effect display program. The vehicle includes a host IVI, a body controller CCM and a light controller. The host includes an encoder, and the light controller includes a decoder. The lighting effect sample is encoded by the encoder in the host to obtain compressed and packaged lighting effect data, and the encoded lighting effect data is decoded by the decoder in the light controller to obtain target lighting effect data, thereby realizing customized lighting effect display through the encoded lightweight lighting effect data.

[0082] In this embodiment, the encoded lighting effect data is still displayed in a static or dynamic image. When the lighting effect is started, the lighting effect information to be displayed, that is, the customized lighting effect data selected by the user, is obtained, and the corresponding encoded lighting effect label information is obtained according to the lighting effect data selected by the user. The lighting effect label information can be identified in the form of an ID, and can also be identified by other forms of labels. This embodiment is not limited to this, and the ID is used as the label information as an example for explanation. When obtaining the lighting effect information to be displayed selected by the user, the lighting effect ID is obtained according to the lighting effect information to be displayed. Since the encoded lighting effect data is cached through the lighting effect library in the body controller, the lighting effect information to be displayed is sent to the body controller, and the lighting effect data is read by the body controller. The lighting effect database can also be stored in the cloud, and the corresponding lighting effect data can be found through the lighting effect library in the cloud.

[0083] In a specific implementation, the lighting effect data is obtained by encapsulating through the encoder in the host, including: obtaining a lighting effect sample; determining the image type of the lighting effect sample, and extracting a foreground image and a background image in the lighting effect sample; obtaining a foreground attribute and foreground data according to the foreground image, and obtaining a background attribute according to the background image; encapsulating according to the tag information, the image type, the background attribute, the foreground attribute and the foreground data to obtain the lighting effect data, such as Figure 3 The schematic diagram of the packaging format of lighting effect data is shown, wherein the image type indicates whether the lighting effect sample belongs to a static image or a dynamic image. When the lighting effect sample belongs to a static image, the static position is 1, and when the lighting effect sample belongs to a dynamic image, the dynamic position is 1. Background attributes include background height, background width, and background color, etc., foreground attributes include foreground height, foreground width, foreground center coordinates, etc., and the tag information can be a tag ID or other forms of tagging. This embodiment does not limit this. The lighting effect data is packaged by setting the tag ID, static or dynamic position, background height, background width, background color, foreground height, foreground width, foreground center coordinates and foreground data. Due to the new data packaging format, the background and foreground are separated, thereby achieving the purpose of reducing the amount of information.

[0084] It is understandable that the creation of lighting effects is separated from the calling of lighting effects. When creating lighting effects, the lighting effects are stored on the CCM (on-board computer), and the IVI (in-vehicle entertainment system) uses the lighting effect ID to call them, reducing the communication volume. The created lighting effects are dynamically cached in the lighting controller, and the loaded lighting effects can be called by ID during the power-on process.

[0085] Step S20, extracting the label information of the lighting effect information to be displayed through the body controller, and obtaining lighting effect data from a preset database according to the label information, and sending the lighting effect data to the light controller, wherein the lighting effect data is compressed and packaged by the encoder in the host.

[0086] In this embodiment, the preset database includes the local database and the cloud database of the CCM. In order to determine whether to obtain the lighting effect data from the local data or from the cloud database, the lighting effect source information can be determined according to the lighting effect information to be displayed. When the lighting effect source information is local, the lighting effect data is obtained from the local database according to the tag information. When the lighting effect source information is cloud, the lighting effect data is searched from the cloud database according to the tag information and downloaded. Figure 4The overall process diagram of calling lighting effects is shown. After enabling the lighting effect, enable the lighting effect ID, determine the source of the lighting effect, and when the lighting effect source is local, read the lighting effect data from the CCM database. When the lighting effect source is cloud, download the lighting effect from the CCM cloud database and archive it locally. The lighting effect downloaded from the cloud can also be saved in the CCM local database, and then read the lighting effect data from the CCM local database, thereby obtaining the lighting effect data from the database.

[0087] Step S30, decoding the lighting effect data through a decoder in the lighting controller to obtain target lighting effect data, and controlling the vehicle lights to display the lighting effect according to the target lighting effect data.

[0088] It should be noted that since the host cannot communicate directly with the light controller, the lighting effect can be set in the body controller, and the body controller is used as a transfer station between the host and the light controller. The host sends the encoded, compressed and encapsulated lighting effect data to the body controller through Ethernet communication for storage, thereby reducing the occupation of communication resources by transmitting the compressed and encapsulated lightweight data. The body controller and the light controller are connected through the CAN bus, and the body controller transmits the lighting effect data to the light controller through the CAN bus, thereby realizing the display of the lighting effect.

[0089] In this embodiment, the lighting effect information to be displayed is obtained, and the lighting effect information to be displayed is sent to the body controller; the tag information of the lighting effect information to be displayed is extracted by the body controller, and the lighting effect data is obtained from a preset database according to the tag information, and the lighting effect data is sent to the light controller, wherein the lighting effect data is compressed and packaged by the encoder in the host; the lighting effect data is decoded by the decoder in the light controller to obtain target lighting effect data, and the vehicle lights are controlled to display the lighting effects according to the target lighting effect data, so that when performing a customized lighting effect display, only the encoded lighting effect data needs to be sent to the light controller for displaying the lighting effect, and since the amount of data of the encoded lighting effect data is small, lightweight data transmission is achieved, and the data transmission amount and CAN bus load are reduced.

[0090] Reference Figure 5 , Figure 5 The flowchart of the second embodiment of the lighting effect display method of the present invention is as follows. The second embodiment of the present invention is proposed based on the first embodiment. In the second embodiment, sending the lighting effect data to the lighting controller includes:

[0091] Determine whether the lighting effect data is static lighting effect data or dynamic lighting effect data; when the lighting effect data is static lighting effect data, send the static lighting effect data to the lighting controller; when the lighting effect data is dynamic lighting effect data, split the dynamic lighting effect data to obtain processed image data, and send the processed image data to the lighting controller.

[0092] In this embodiment, in order to determine whether the lighting effect data is static lighting effect data or dynamic lighting effect data, the format of the lighting effect data is obtained, and the lighting effect data is determined to be static lighting effect data or dynamic lighting effect data according to the format of the lighting effect data. For example, when the format of the lighting effect data is PNG format, the lighting effect data is determined to be static lighting effect data, and when the format of the lighting effect data is GIF format, the lighting effect data is determined to be dynamic lighting effect data. Continue as follows Figure 4 As shown, it is determined whether the lighting effect data is static or dynamic. When it is static, the image data is directly sent. When it is dynamic, it is split and processed to obtain the image data, and then the image data is sent. In this way, the redundancy of communication is reduced by separating the dynamic lighting effect from the static lighting effect.

[0093] In one embodiment, the decoder includes a static decoder and a dynamic decoder, and step S30 includes:

[0094] Step S301, when the lighting effect data is composed of static frames, the lighting effect data is sent to the static decoder and decoded by the static decoder.

[0095] Continue as Figure 4 As shown, the decoding process is handled by the decoder in the light controller. The light controller obtains the lighting effect data sent by the body controller, determines whether it is a static frame or a dynamic frame, and decodes it through a static decoder when it is a static frame. When it is a static frame, it is decoded through a dynamic decoder, and the decoded lighting effect is used for lighting control.

[0096] Step S302, when the lighting effect data is composed of dynamic frames, the lighting effect data is sent to the dynamic decoder and decoded by the dynamic decoder.

[0097] In this embodiment, the lighting effect data is divided into static lighting effect data and dynamic lighting effect data, and transmitted to the vehicle speed controller separately, thereby improving the transmission efficiency, and corresponding static decoders and dynamic decoders are used for decoding according to the static lighting effect data and the dynamic lighting effect data, thereby realizing effective decoding processing and ensuring the correctness of the decoding.

[0098] Reference Figure 6 , Figure 6The third embodiment of the lighting effect display method of the present invention is a flow chart of the third embodiment of the present invention. The third embodiment of the present invention is proposed based on the first embodiment. In the third embodiment, the lighting effect data is obtained by compression and packaging through the encoder in the host, including:

[0099] Step S101, obtaining a lighting effect sample to be processed.

[0100] In this embodiment, the main process is to create lighting effects. During the lighting effect creation process, encoding is mainly performed through an encoder in the host. The lighting effect samples to be processed are lighting effect data that have not been encoded. After encoding the lighting effect data that has not been encoded, the display format is the same as the original image. However, due to the compression encoding process, the amount of lighting effect data after encoding is smaller.

[0101] Step S102, when the lighting effect sample to be processed is an image sample, separate the foreground image and the background image in the image sample, and compress and encapsulate the foreground image and the background image to obtain lighting effect data.

[0102] It should be noted that, since static images and dynamic images are encoded in different ways, when encoding static images, they are encoded using an image encoder, and when encoding dynamic images, they are encoded using an animation encoder, thereby ensuring the accuracy of the encoding.

[0103] Step S103, when the lighting effect sample to be processed is an animation sample, separate the dynamic image and the static image in the animation sample, and compress and package the dynamic image and the static image to obtain lighting effect data.

[0104] In this embodiment, the image encoder separates the image foreground and background before compressing the image samples to reduce the amount of background data. When processing animation encoding, the dynamic part and the static part are separated by traversal to reduce the amount of animation data.

[0105] In one embodiment, step S102 includes:

[0106] When the lighting effect samples to be processed are image samples, the image samples are matrixed to obtain an image array. The image samples are matrixed to denoise the pixels of the image samples and filter out pixels with unclear features to obtain an image array with obvious features.

[0107] When the headlight is a multi-color headlight, the image array is separated into channels according to pixel colors; the array corresponding to each channel is binarized, and the foreground image and the background image in the array are separated through the binarized image array; the foreground images of each channel are coupled through preset weights to obtain an integrated foreground image; the integrated foreground image is restored to obtain a restored foreground multi-color image, and the restoration method can be a mask method or other methods. This embodiment does not limit this. The integrated foreground image is restored so that the processed image display is more realistic, and the restored foreground multi-color image is pixelated to reduce the resolution of the integrated foreground image; then the pixelated foreground image is compressed using a first compression method to obtain a compressed foreground image; the compressed foreground image and the background image are encapsulated to obtain lighting effect data.

[0108] like Figure 7 The flowchart of creating lighting effects through an image encoder is shown, wherein the first compression method can be a PNG compression method or other compression methods. This embodiment does not limit this. The PNG compression method is taken as an example for explanation. After obtaining the pixelated foreground image, the PNG compression method is used for compression and data encapsulation to obtain the created image lighting effect data. The image foreground and background are separated by the image encoder before PNG compression. Since the display requirements of the image are not high for the lighting effect, the foreground and background are separated to reduce the amount of background data, thereby improving the processing efficiency of the image data.

[0109] In one embodiment, when the lighting effect samples to be processed are image samples, after matrixing the image samples to obtain an image array, the method further includes:

[0110] When the vehicle light is a monochrome light, the image array is gray-binarized, and the main image portion is determined by the binarized image array; the contour position is determined according to the main image portion; the foreground image and the background image are extracted according to the contour position; the foreground image is restored by masking to obtain a restored foreground grayscale image; the restored foreground grayscale image is compressed by a second compression method to obtain a compressed foreground image; the compressed foreground image and the background image are encapsulated to obtain lighting effect data.

[0111] In this embodiment, since the processing methods of monochrome images and multi-color images are different, after determining the monochrome image and the multi-color image, lighting effect encoding processing is performed separately, wherein the second compression method can be a PNG compression method, or other compression methods. This embodiment does not limit this, and takes the PNG compression method as an example for explanation. After obtaining the pixelated foreground image, the PNG compression method is used for compression and data encapsulation to obtain the created image lighting effect data. The image encoder is used to separate the image foreground and background before PNG compression, thereby reducing the amount of background data and improving the processing efficiency of image data.

[0112] In one embodiment, step S103 includes:

[0113] When the lighting effect sample to be processed is an animation sample, the animation sample is disassembled to obtain each frame image information; each frame image information is pixelated to obtain an image with a changed position and an image with an unchanged position; the image with a changed position is used as a foreground image, and the image with an unchanged position is used as a background image; the foreground image and the background image in each frame image information are respectively extracted; a dynamic scene frame is extracted from the foreground image in each frame image information to obtain a dynamic image, and the background image in each frame image information is used as a static image; the dynamic image is compressed using a third compression method to obtain a compressed dynamic image; the compressed dynamic image is encapsulated with the background image in each frame image information to obtain lighting effect data.

[0114] like Figure 8 The flowchart of creating lighting effects through an animation encoder is shown, which obtains the loaded animation or hand-drawing, restores the animation or hand-drawing to a bmp image, and pixelates it frame by frame, extracts the dynamic scene frame, and then compresses the dynamic scene frame into a GIF format, and finally encapsulates the data to obtain the lighting effect data of the animation. During the animation encoding process, the dynamic part and the static part are separated by traversal, thereby reducing the amount of animation data.

[0115] like Fig. 9 The overall process diagram of lighting effect creation is shown. When the user needs to create a lighting effect, it is determined whether it is static or dynamic. When it is a static image, it is encoded through an image encoder, and when it is a dynamic image, it is encoded through a video encoder. The encoded lighting effect data is saved in the local host database, and the host is connected to the body controller through Ethernet. The lighting effect data is transmitted to the body controller through Ethernet. The body controller saves the lighting effect data received through Ethernet in the local database of the body, and can also save it in the cloud archive and save it in the cloud database of the body controller, thereby realizing the caching of lighting effect data to facilitate the call of the encoded lighting effect data.

[0116] The present invention further provides a lighting effect display device.

[0117] Reference Fig.10 , Fig.10 Schematic diagram of functional modules of the first embodiment of the lighting effect display device of the present invention.

[0118] In a first embodiment of the lighting effect display device of the present invention, the lighting effect display device comprises:

[0119] The acquisition module 10 is used to acquire the lighting effect information to be displayed and send the lighting effect information to be displayed to the vehicle body controller.

[0120] The sending module 20 is used to extract the label information of the lighting effect information to be displayed through the body controller, obtain the lighting effect data from the preset database according to the label information, and send the lighting effect data to the lighting controller, wherein the lighting effect data is compressed and packaged by the encoder in the host.

[0121] The decoding module 30 is used to decode the lighting effect data through a decoder in the lighting controller to obtain target lighting effect data, and control the vehicle lights to display the lighting effect according to the target lighting effect data.

[0122] In this embodiment, the lighting effect information to be displayed is obtained, and the lighting effect information to be displayed is sent to the body controller; the tag information of the lighting effect information to be displayed is extracted by the body controller, and the lighting effect data is obtained from a preset database according to the tag information, and the lighting effect data is sent to the light controller, wherein the lighting effect data is compressed and packaged by the encoder in the host; the lighting effect data is decoded by the decoder in the light controller to obtain target lighting effect data, and the vehicle lights are controlled to display the lighting effects according to the target lighting effect data, so that when performing a customized lighting effect display, only the encoded lighting effect data needs to be sent to the light controller for displaying the lighting effect, and since the amount of data of the encoded lighting effect data is small, lightweight data transmission is achieved, and the data transmission amount and CAN bus load are reduced.

[0123] Optionally, the sending module 20 is further used to determine the lighting effect source information according to the lighting effect information to be displayed;

[0124] When the lighting effect source information is local, obtaining lighting effect data from a local database according to the tag information;

[0125] When the lighting effect source information is from the cloud, the lighting effect data is searched from the cloud database according to the tag information, and the lighting effect data is downloaded.

[0126] Optionally, the sending module 20 is further used to determine whether the lighting effect data is static lighting effect data or dynamic lighting effect data;

[0127] When the lighting effect data is static lighting effect data, sending the static lighting effect data to the lighting controller;

[0128] When the lighting effect data is dynamic lighting effect data, the dynamic lighting effect data is split and processed to obtain processed image data, and the processed image data is sent to the lighting controller.

[0129] Optionally, the decoder includes a static decoder and a dynamic decoder, and the decoding module 30 is further used to send the lighting effect data to the static decoder for decoding by the static decoder when the lighting effect data is composed of static frames;

[0130] When the lighting effect data is composed of dynamic frames, the lighting effect data is sent to the dynamic decoder and decoded by the dynamic decoder.

[0131] Optionally, the lighting effect display device further comprises a compression packaging module, and the compression packaging module is used to obtain a lighting effect sample to be processed;

[0132] When the lighting effect sample to be processed is an image sample, separating a foreground image and a background image in the image sample, and compressing and packaging the foreground image and the background image to obtain lighting effect data;

[0133] When the lighting effect sample to be processed is an animation sample, the dynamic image and the static image in the animation sample are separated, and compression and packaging are performed based on the dynamic image and the static image to obtain lighting effect data.

[0134] Optionally, the compression and packaging module is further used to matrix the image samples to obtain an image array when the lighting effect samples to be processed are image samples;

[0135] When the vehicle lamp is a multi-color lamp, performing channel separation on the image array according to pixel colors;

[0136] Binarizing the array corresponding to each channel, and separating the foreground image and the background image in the array through the binarized image array;

[0137] The foreground images of each channel are coupled by preset weights to obtain an integrated foreground image;

[0138] Restoring the integrated foreground image to obtain a restored foreground multi-color image;

[0139] Pixelating the restored foreground multi-color image to reduce the resolution of the integrated foreground image;

[0140] compressing the pixelated foreground image using a first compression method to obtain a compressed foreground image;

[0141] The compressed foreground image and the background image are encapsulated to obtain lighting effect data.

[0142] Optionally, the compression and packaging module is further used to perform grayscale binarization on the image array when the vehicle headlight is a monochrome light, and determine the main image portion through the binarized image array;

[0143] Determining a contour position according to the subject image portion;

[0144] Extracting a foreground image and a background image according to the contour position;

[0145] Restoring the foreground image by masking to obtain a restored foreground grayscale image;

[0146] compressing the restored foreground grayscale image using a second compression method to obtain a compressed foreground image;

[0147] The compressed foreground image and the background image are encapsulated to obtain lighting effect data.

[0148] Optionally, the compression and packaging module is further used to, when the lighting effect sample to be processed is an animation sample, disassemble the animation sample to obtain image information of each frame;

[0149] Pixelating each frame of image information to obtain an image with a changed position and an image with a unchanged position;

[0150] The image whose position has changed is used as the foreground image, and the image whose position has not changed is used as the background image;

[0151] Respectively extracting the foreground image and the background image from each frame of image information;

[0152] Extracting a dynamic frame from the foreground image in each frame of image information to obtain a dynamic image, and using the background image in each frame of image information as a static image;

[0153] compressing the dynamic image using a third compression method to obtain a compressed dynamic image;

[0154] The compressed dynamic image and the background image in each frame of image information are encapsulated to obtain lighting effect data.

[0155] Optionally, the compression and packaging module is further used to obtain a lighting effect sample;

[0156] Determine the image type of the lighting effect sample, and extract the foreground image and the background image in the lighting effect sample;

[0157] Obtaining foreground attributes and foreground data according to the foreground image, and obtaining background attributes according to the background image;

[0158] The lighting effect data is obtained by encapsulating the tag information, image type, background attribute, foreground attribute and foreground data.

[0159] In addition, to achieve the above-mentioned purpose, the present invention also proposes a lighting effect display device, which includes: a memory, a processor, and a lighting effect display program stored in the memory and executable on the processor, and the lighting effect display program is configured to implement the lighting effect display method described above.

[0160] In addition, an embodiment of the present invention further provides a storage medium, on which a lighting effect display program is stored. When the lighting effect display program is executed by a processor, the lighting effect display method as described above is implemented.

[0161] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.

[0162] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0163] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling an intelligent terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0165] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A lighting effect display method, characterized in that: Applied to a vehicle, the vehicle includes a host, a body controller and a light controller, the host includes an encoder, the light controller includes a decoder, and the lighting effect display method includes: Acquire the lighting effect information to be displayed, and send the lighting effect information to be displayed to the vehicle body controller; Extracting the tag information of the lighting effect information to be displayed through the body controller, acquiring lighting effect data from a preset database according to the tag information, and sending the lighting effect data to the light controller, wherein the lighting effect data is obtained by compression and packaging through the encoder in the host; Decoding the lighting effect data through a decoder in the lighting controller to obtain target lighting effect data, and controlling the vehicle lights to display the lighting effect according to the target lighting effect data; The lighting effect data is obtained by compressing and packaging through the encoder in the host, including: Get the lighting effect samples to be processed; When the lighting effect sample to be processed is an image sample, separating a foreground image and a background image in the image sample, and compressing and packaging the foreground image and the background image to obtain lighting effect data; When the lighting effect sample to be processed is an animation sample, the dynamic image and the static image in the animation sample are separated, and compression and packaging are performed based on the dynamic image and the static image to obtain lighting effect data.

2. The lighting effect display method according to claim 1, characterized in that: The acquiring lighting effect data from a preset database according to the tag information includes: Determine the lighting effect source information according to the lighting effect information to be displayed; When the lighting effect source information is local, obtaining lighting effect data from a local database according to the tag information; When the lighting effect source information is from the cloud, the lighting effect data is searched from the cloud database according to the tag information, and the lighting effect data is downloaded.

3. The lighting effect display method according to claim 1, characterized in that: The step of sending the lighting effect data to the lighting controller comprises: Determining whether the lighting effect data is static lighting effect data or dynamic lighting effect data; When the lighting effect data is static lighting effect data, sending the static lighting effect data to the lighting controller; When the lighting effect data is dynamic lighting effect data, the dynamic lighting effect data is split and processed to obtain processed image data, and the processed image data is sent to the lighting controller.

4. The lighting effect display method according to claim 1, characterized in that: The decoder includes a static decoder and a dynamic decoder; The decoding of the lighting effect data by a decoder in the lighting controller includes: When the lighting effect data is composed of static frames, sending the lighting effect data to the static decoder for decoding by the static decoder; When the lighting effect data is composed of dynamic frames, the lighting effect data is sent to the dynamic decoder and decoded by the dynamic decoder.

5. The lighting effect display method according to claim 1, characterized in that: When the lighting effect sample to be processed is an image sample, separating the foreground image and the background image in the image sample, and compressing and packaging the foreground image and the background image to obtain lighting effect data includes: When the lighting effect samples to be processed are image samples, matrixing the image samples to obtain an image array; When the vehicle lamp is a multi-color lamp, performing channel separation on the image array according to pixel colors; Binarizing the array corresponding to each channel, and separating the foreground image and the background image in the array through the binarized image array; The foreground images of each channel are coupled by preset weights to obtain an integrated foreground image; Restoring the integrated foreground image to obtain a restored foreground multi-color image; Pixelating the restored foreground multi-color image to reduce the resolution of the integrated foreground image; compressing the pixelated foreground image using a first compression method to obtain a compressed foreground image; The compressed foreground image and the background image are encapsulated to obtain lighting effect data.

6. The lighting effect display method according to claim 5, characterized in that: When the lighting effect samples to be processed are image samples, after matrixing the image samples to obtain an image array, the method further includes: When the vehicle light is a monochrome light, the image array is gray-scale binarized, and the main image portion is determined by the binarized image array; Determining a contour position according to the subject image portion; Extracting a foreground image and a background image according to the contour position; Restoring the foreground image by masking to obtain a restored foreground grayscale image; compressing the restored foreground grayscale image using a second compression method to obtain a compressed foreground image; The compressed foreground image and the background image are encapsulated to obtain lighting effect data.

7. The lighting effect display method according to claim 5, characterized in that: When the lighting effect sample to be processed is an animation sample, the dynamic image and the static image in the animation sample are separated, and the dynamic image and the static image are compressed and packaged to obtain lighting effect data, and further includes: When the lighting effect sample to be processed is an animation sample, the animation sample is disassembled to obtain image information of each frame; Pixelating each frame of image information to obtain an image with a changed position and an image with a unchanged position; The image whose position has changed is used as the foreground image, and the image whose position has not changed is used as the background image; Respectively extracting the foreground image and the background image from each frame of image information; Extracting a dynamic frame from the foreground image in each frame of image information to obtain a dynamic image, and using the background image in each frame of image information as a static image; compressing the dynamic image using a third compression method to obtain a compressed dynamic image; The compressed dynamic image and the background image in each frame of image information are encapsulated to obtain lighting effect data.

8. The lighting effect display method according to any one of claims 1 to 4, characterized in that: The lighting effect data is obtained by compressing and packaging through the encoder in the host, including: Get lighting effect samples; Determine the image type of the lighting effect sample, and extract the foreground image and the background image in the lighting effect sample; Obtaining foreground attributes and foreground data according to the foreground image in the lighting effect sample, and obtaining background attributes according to the background image in the lighting effect sample; The lighting effect data is obtained by compressing and packaging according to the tag information, image type, background attribute, foreground attribute and foreground data.

9. A lighting effect display device, characterized in that: The lighting effect display device comprises: An acquisition module, used for acquiring lighting effect information to be displayed, and sending the lighting effect information to be displayed to a vehicle body controller; A sending module, used to extract the tag information of the lighting effect information to be displayed through the body controller, obtain the lighting effect data from a preset database according to the tag information, and send the lighting effect data to the lighting controller, wherein the lighting effect data is obtained by compression and packaging through an encoder in the host; A decoding module, used to decode the lighting effect data through a decoder in the lighting controller to obtain target lighting effect data, and control the vehicle lights to display the lighting effect according to the target lighting effect data; The lighting effect display device further includes a compression and packaging module, which is used to obtain a lighting effect sample to be processed; when the lighting effect sample to be processed is an image sample, separate the foreground image and the background image in the image sample, and compress and package the foreground image and the background image to obtain lighting effect data; When the lighting effect sample to be processed is an animation sample, the dynamic image and the static image in the animation sample are separated, and compression and packaging are performed based on the dynamic image and the static image to obtain lighting effect data.

10. A lighting effect display device, characterized in that: The lighting effect display device includes: a memory, a processor, and a lighting effect display program stored in the memory and executable on the processor, wherein the lighting effect display program is configured to implement the lighting effect display method according to any one of claims 1 to 8.

11. A storage medium, characterized in that: The storage medium stores a lighting effect display program, and when the lighting effect display program is executed by the processor, the lighting effect display method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Automobile light control method and device

    CN112601335A

  • Automobile lamp effect control method, electronic equipment, storage medium, master-slave control method and master-slave controller

    CN114290987A