Animation design method of high-pixel car lamp

By storing and optimizing animation data on the control chip of high-pixel headlights, calculating PWM values ​​and updating animation data, the complex and resource-consuming problems of traditional headlight animation design are solved, efficient animation design and verification are achieved, and R&D is reduced Cost and cycle.

CN119152086APending Publication Date: 2024-12-17CHANGZHOU XINGYU AUTOMOTIVE LIGHTING SYST CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411314664.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

Traditional headlight animation design is complex and consumes CPU resources in high-pixel headlights. Adding or modifying animation effects requires frequent development, testing and on-board verification, resulting in long cycles and high costs.

Method used

The control chip of high-pixel headlights divides fixed areas to store animation data, parses and optimizes grayscale values ​​through opencv on the computer, calculates PWM values, generates upgrade files, uses CAN or CANFD communication protocol to update animation data, and reduces dependence on handwritten codes. Improve development efficiency.

Benefits of technology

It realizes efficient animation design in the development, testing and calibration stages, reduces R&D and testing costs, shortens the development cycle, and improves the efficiency of animation effect verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119152086A_ABST
    Figure CN119152086A_ABST
Patent Text Reader

Abstract

The invention discloses an animation design method of a high-pixel automobile lamp, which belongs to the technical field of automobile illumination, and comprises the following steps: S1, dividing a section of fixed area on Flash of a control chip of the high-pixel automobile lamp to store animation data, averagely dividing the fixed area into M sections and storing M groups of animations, each group of animations being composed of N frames, the data of each frame is stored in an array form according to a channel of an LED matrix chip of the high-pixel vehicle lamp in sequence; and S2, the upper computer of the computer end analyzes the contents of the pictures and the videos of the stored animation data through open-source opencv, extracts a gray value, and associates the contents of the pictures and the videos of the animation data with the LED matrix chip of the high-pixel vehicle lamp. According to the animation design method of the high-pixel car lamp, provided by the invention, the test result of the ADB can be quantified, the method can be used in a development stage, a test stage and a calibration stage, and the research and development cost and the test cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an animation design method for a high-pixel vehicle lamp, and belongs to the technical field of vehicle lighting. Background Art

[0002] At present, the number of pixels in car headlights is getting higher and higher, and there are more and more animation modes for headlights, which puts higher requirements on the design of headlight controller animation. Traditional headlight animation has few pixels involved in the animation, and each pixel can be turned on and off at a fixed time. For more complex animation effects, the pixels are divided into several groups, and each group executes several animation modes at a fixed time. When the number of pixels involved in the animation increases, these traditional methods become very complicated to implement, and the calculation method to realize the animation consumes a lot of CPU resources. When it is necessary to add or modify the animation effect, it is necessary to go through the necessary processes such as effect verification, development test, and on-board test. If the effect is not good after the on-board test, the above process needs to be repeated, and the cycle becomes very long. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a high-pixel car light animation design method that can quantify the ADB test results and can be used in the development stage, test stage and calibration stage to reduce R&D costs and testing costs.

[0004] In order to solve the above technical problems, the technical solution of the present invention is: A method for designing an animation of a high-pixel vehicle light comprises the following steps: Step S1, dividing a fixed area on the Flash of the control chip of the high-pixel headlight to store animation data, dividing the fixed area evenly into M segments, storing M groups of animations, each group of animations consisting of N frames, and storing the data of each frame in the form of an array in sequence according to the channel of the LED matrix chip of the high-pixel headlight; Step S2: The host computer on the computer side analyzes the content of the pictures and videos of the stored animation data through the open source OpenCV, extracts the grayscale value, and associates the content of the pictures and videos of the animation data with the LED matrix chip of the high-pixel headlight; Step S3, the host computer optimizes the grayscale value on the image, calculates the PWM value according to the optimized grayscale value, and sequentially assembles all the PWM values ​​into an array according to the channel sequence of the LED matrix chip of the high-pixel headlight to form the data of the whole frame, and sequentially assembles the PWM data of all the pictures or videos into the data of the whole animation; Step S4, formulate a communication protocol, send the PWM value of each frame in step S3 to the headlight controller, and confirm whether the current headlight animation is consistent with the image of the current frame; Step S5, generating an upgrade file from the animation data generated in step S3, and upgrading the control chip of the high-pixel headlights through the upgrade file to update the animation data.

[0005] Furthermore, in step S3, the host computer optimizes the grayscale value on the image, which specifically includes the following steps: Take the grayscale value of the target pixel and the grayscale values ​​of the eight pixels around the target pixel, and then calculate the average of these nine grayscale values.

[0006] Further, in step S3, the PWM value is calculated according to the optimized gray value, which specifically includes the following steps: Get the PWM value corresponding to the grayscale value through the corresponding relationship between the LED brightness and the PWM gamma coefficient or the LED manufacturer's brightness and PWM parameter table.

[0007] Furthermore, the upgrade file in step S5 includes an S-Record file, an Intel-Hex file and a Bin file.

[0008] Furthermore, the communication protocol in step S4 is the CAN communication protocol or the CANFD communication protocol.

[0009] The above technical solution is adopted. The present invention generates the PWM value of the LED matrix chip by extracting the grayscale value of the pixel point in a specific area of ​​the animation prototype such as a video or a picture. An upgrade file that can be downloaded by Flash is generated based on the PWM value of the matrix chip calculated according to the animation prototype file such as a video or a picture. The car light animation data is stored in a fixed area of ​​the control chip, and the animation data can be replaced in an upgraded manner. During the design process, the car light effect of the current animation frame is checked to verify the current effect, and the development mode of the car light controller animation is changed from the handwritten code method to the host computer generated method. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A flowchart of a method for designing an animation of a high-pixel vehicle light according to the present invention; Figure 2 It is a structural schematic diagram of the LED matrix light board of the high-pixel vehicle light of the present invention; Figure 3 A gray value distribution diagram for optimizing gray values ​​on an image according to the present invention; Figure 4 This is a corresponding relationship diagram between the brightness of the LED and the gamma coefficient of PWM according to the present invention. DETAILED DESCRIPTION

[0011] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments in conjunction with the accompanying drawings.

[0012] like Figure 1 As shown, this embodiment provides a method for designing an animation of a high-pixel vehicle light, which includes the following steps: Step S1, divide a fixed area on the Flash of the control chip of the high-pixel headlight to store animation data, divide the fixed area into M segments evenly, store M groups of animations, each group of animations consists of N frames, generally display the animation at a speed of 30 frames per second, and a group of 10 seconds of welcoming animation requires about 300 frames, and the data of each frame is stored in the form of an array in sequence according to the channel of the LED matrix chip of the high-pixel headlight. In this embodiment, the model of the control chip of the high-pixel headlight is NXP S32K314.

[0013] Step S2: The host computer on the computer side uses the open source OpenCV to parse the content of the pictures and videos of the stored animation data, extract the grayscale value, and associate the content of the pictures and videos of the animation data with the LED matrix chip of the high-pixel headlight. After association, the display screen of the pictures and videos can correspond to the LED lights on the LED matrix light board. If a certain picture needs to be displayed, the corresponding LED light on the LED matrix light board is lit. Figure 2 As shown, the LED lamps 1 are arranged in a matrix on the front of the LED matrix light board 2, and a plurality of LED matrix chips are welded on the back of the LED matrix light board 2. In this embodiment, the model of the LED matrix chip is TLC6C5748, and one LED matrix chip can mount 48 LED lamps 1.

[0014] Step S3, the host computer optimizes the grayscale value on the image, calculates the PWM pulse width modulation value according to the optimized grayscale value, and sequentially organizes all the PWM values ​​into an array according to the channel sequence of the LED matrix chip of the high-pixel headlight to form the data of the entire frame, and sequentially organizes the PWM data of all pictures or videos into the data of the entire animation.

[0015] Among them, the host computer optimizes the grayscale value on the image, which specifically includes the following steps: Take the grayscale value of the target pixel and the grayscale values ​​of the eight pixels around the target pixel, and then calculate the average of these nine grayscale values. Figure 3 As shown, if the grayscale value of the target pixel is 236, then the average value of the 9 grayscale values ​​is 236+192+204+189+205+205+191+206+187 / 9=202.67.

[0016] The PWM value is calculated according to the optimized gray value, which specifically includes the following steps: Obtain the PWM value corresponding to the grayscale value through the corresponding relationship between the LED brightness and the PWM gamma coefficient or the LED manufacturer's brightness and PWM parameter table. Figure 4As shown, the PWM value is calculated based on the corresponding relationship between the brightness of the LED and the gamma coefficient of the PWM, and the PWM value is 209.

[0017] Step S4, formulate CAN or CANFD communication protocol, send the PWM value of each frame in step S3 to the headlight controller, and the headlight controller developer can directly confirm whether the current headlight animation is consistent with the image of the current frame. During the design process, the animation data packet can be sent to the headlight controller via CAN or CANFD to view the animation effect in real time. With this method, the headlight animation designer can quickly check whether the current animation is suitable for the current headlight, avoiding the problem that the headlight factory needs to develop the corresponding animation before seeing the effect, and often needs to go back and forth many times to finally determine the animation effect. Headlight developers can avoid modifying the program and directly download the animation data to upgrade the controller program.

[0018] Step S5, generate an upgrade file from the animation data generated in step S3, and the control chip of the high-pixel headlight is upgraded through the upgrade file to update the animation data. The upgrade file includes S-Record file, Intel-Hex file and Bin file. It can be directly downloaded to the headlight controller for upgrading through UDS upgrade, or it can be submitted to the customer for upgrading by the customer.

[0019] Automobile OEMs can also use this method to put the designed headlight animation, or the animation in the design stage, on the actual car to check the effect, avoiding back-and-forth communication between the headlight controller manufacturer and the headlight manufacturer, thus shortening the development cycle.

[0020] The specific embodiments described above further illustrate the technical problems, technical solutions and beneficial effects solved by the present invention. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for designing an animation of a high-pixel vehicle light, characterized in that: It includes the following steps: Step S1, dividing a fixed area on the Flash of the control chip of the high-pixel headlight to store animation data, dividing the fixed area evenly into M segments, storing M groups of animations, each group of animations consisting of N frames, and storing the data of each frame in the form of an array in sequence according to the channel of the LED matrix chip of the high-pixel headlight; Step S2: The host computer on the computer side analyzes the content of the pictures and videos of the stored animation data through the open source OpenCV, extracts the grayscale value, and associates the content of the pictures and videos of the animation data with the LED matrix chip of the high-pixel headlight; Step S3, the host computer optimizes the grayscale value on the image, calculates the PWM value according to the optimized grayscale value, and sequentially assembles all the PWM values ​​into an array according to the channel sequence of the LED matrix chip of the high-pixel headlight to form the data of the whole frame, and sequentially assembles the PWM data of all the pictures or videos into the data of the whole animation; Step S4, formulate a communication protocol, send the PWM value of each frame in step S3 to the headlight controller, and confirm whether the current headlight animation is consistent with the image of the current frame; Step S5, generating an upgrade file from the animation data generated in step S3, and upgrading the control chip of the high-pixel headlights through the upgrade file to update the animation data.

2. The high-pixel car light animation design method according to claim 1, characterized in that: In step S3, the host computer optimizes the grayscale value on the image, which specifically includes the following steps: Take the grayscale value of the target pixel and the grayscale values ​​of the eight pixels around the target pixel, and then calculate the average of these nine grayscale values.

3. The high-pixel car light animation design method according to claim 1, characterized in that: In step S3, the PWM value is calculated according to the optimized gray value, which specifically includes the following steps: Get the PWM value corresponding to the grayscale value through the corresponding relationship between the LED brightness and the PWM gamma coefficient or the LED manufacturer's brightness and PWM parameter table.

4. The method for designing an animation of a high-pixel vehicle light according to claim 1, characterized in that: The upgrade files in step S5 include S-Record files, Intel-Hex files and Bin files.

5. The high-pixel car light animation design method according to claim 1, characterized in that: The communication protocol in step S4 is the CAN communication protocol or the CANFD communication protocol.

Citation Information

Cited By

  • Vehicle lamp animation time sequence conversion method and device and computer readable storage medium

    CN115631265A