CN115631265A - Vehicle lamp animation time sequence conversion method and device and computer readable storage medium - Google Patents

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

Info

Publication number
CN115631265A
CN115631265A CN202211208936.4A CN202211208936A CN115631265A CN 115631265 A CN115631265 A CN 115631265A CN 202211208936 A CN202211208936 A CN 202211208936A CN 115631265 A CN115631265 A CN 115631265A
Authority
CN
China
Prior art keywords
frame
image
animation
car light
time sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211208936.4A
Other languages
Chinese (zh)
Inventor
李健豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Avatr Technology Chongqing Co Ltd
Original Assignee
Avatr Technology Chongqing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Avatr Technology Chongqing Co Ltd filed Critical Avatr Technology Chongqing Co Ltd
Priority to CN202211208936.4A priority Critical patent/CN115631265A/en
Publication of CN115631265A publication Critical patent/CN115631265A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q1/00Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor
    • B60Q1/26Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to indicate the vehicle, or parts thereof, or to give signals, to other traffic
    • B60Q1/46Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to indicate the vehicle, or parts thereof, or to give signals, to other traffic for giving flashing caution signals during drive, other than signalling change of direction, e.g. flashing the headlights or hazard lights

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

The embodiment of the invention relates to the technical field of automobiles, and discloses a method and a device for switching a car light animation time sequence and a computer readable storage medium.

Description

Vehicle lamp animation time sequence conversion method and device and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of automobiles, in particular to a method and a device for switching a time sequence of vehicle lamp animation and a computer readable storage medium.
Background
With the vigorous development of the automobile industry, the shape and the structure of the automobile lamp are more and more novel, wherein in the mode that the automobile lamp is provided with multiple LEDs and multiple controls, the automobile lamp can be used for executing welcome and welcome animations according to a preset program. In the existing process for producing the guest greeting and sending animation, a car lamp supplier generally produces the original animation according to a video file provided by a host factory, and sends the original animation to the host factory for acceptance.
The acceptance process comprises the following steps: and the host factory loads the initial animation on the LED lamp and directly checks and accepts the initial animation from the visual effect. The method is often poor in welcome and welcome guest animation effect of initial animation display, and the factory acceptance pass rate of the host is low, so that the problem that the initial animation is repeatedly modified by a car lamp supplier is caused.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a method and an apparatus for vehicle lamp animation time sequence conversion, and a computer-readable storage medium, to solve the problems that in the prior art, for a prototype animation provided by a vehicle lamp supplier, a guest greeting animation shown by the prototype animation is often poor in effect, and a host factory acceptance pass rate is low, so that the vehicle lamp supplier repeatedly modifies the prototype animation.
According to an aspect of an embodiment of the present invention, there is provided a car light animation time sequence transition method, including:
acquiring an automobile lamp animation video and an arrangement mode of a minimum control unit of an automobile lamp, wherein the automobile lamp is used for demonstrating the automobile lamp animation video;
acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate;
generating a car light control scheme corresponding to the car light animation video according to each frame of image of the car light animation video, the arrangement mode of the minimum control unit of the car light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
In an optional manner, the generating a vehicle light control scheme corresponding to the vehicle light animation video according to each frame of image of the vehicle light animation video, an arrangement manner of minimum control units of the vehicle light, and a timing sequence of each frame of image includes:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video;
and generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
In an optional manner, after the step of generating a headlight control scheme corresponding to the headlight animation video according to each frame of image of the headlight animation video, an arrangement manner of minimum control units of the headlight, and a timing sequence of each frame of image, the method further includes:
and controlling the vehicle lamp demonstration animation according to the vehicle lamp control scheme, and comparing the vehicle lamp demonstration animation with the vehicle lamp animation video.
In an optional manner, the vehicle light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image.
In an alternative, one coordinate value on the first coordinate axis corresponds to the number of one or more of the minimum control units.
According to another aspect of the embodiments of the present invention, there is provided a car light animation time sequence conversion device, including:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring vehicle lamp animation videos and the arrangement mode of the minimum control units of the vehicle lamps, and the vehicle lamps are used for demonstrating the vehicle lamp animation videos;
the image extraction module is used for acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate;
the vehicle light control scheme generation module is used for generating a vehicle light control scheme corresponding to the vehicle light animation video according to each frame of image of the vehicle light animation video, the arrangement mode of the minimum control unit of the vehicle light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
In an optional manner, the vehicle light control scheme generation module is further configured to:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video;
and generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
In an optional manner, the method further comprises:
and the animation demonstration module is used for controlling the vehicle lamp to demonstrate the animation according to the vehicle lamp control scheme and comparing the demonstrated animation with the vehicle lamp animation video.
In an optional manner, the vehicle light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image.
In an alternative mode, one coordinate value on the first coordinate axis corresponds to the number of one or more minimum control units.
According to another aspect of the embodiments of the present invention, there is provided a vehicle light animation time sequence conversion apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
and acquiring an automobile lamp animation video and an arrangement mode of a minimum control unit of the automobile lamp, wherein the automobile lamp is used for demonstrating the automobile lamp animation video.
And acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate.
Generating a car light control scheme corresponding to the car light animation video according to each frame of image of the car light animation video, the arrangement mode of the minimum control unit of the car light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
In an optional manner, the method further comprises:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; and the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video.
And generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
In an optional manner, the method further comprises:
and controlling the car lamp demonstration animation according to the car lamp control scheme, and comparing the demonstrated animation of the car lamp with the car lamp animation video.
In an optional manner, the vehicle light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image.
In an alternative mode, one coordinate value on the first coordinate axis corresponds to the number of one or more minimum control units.
According to a further aspect of the embodiments of the present invention, there is provided a computer-readable storage medium having stored therein at least one executable instruction that causes a vehicle light animation timing conversion device/apparatus to perform the following operations:
and acquiring an automobile lamp animation video and an arrangement mode of a minimum control unit of the automobile lamp, wherein the automobile lamp is used for demonstrating the automobile lamp animation video.
And acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate.
Generating a car light control scheme corresponding to the car light animation video according to each frame of image of the car light animation video, the arrangement mode of the minimum control unit of the car light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
In an optional manner, the method further includes:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; and the first coordinate axis of the plurality of preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video.
And generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
In an optional manner, the method further comprises:
and controlling the car lamp demonstration animation according to the car lamp control scheme, and comparing the demonstrated animation of the car lamp with the car lamp animation video.
In an optional manner, the vehicle light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image.
In an alternative, one coordinate value on the first coordinate axis corresponds to the number of one or more of the minimum control units.
According to the method, the device and the computer readable storage medium for switching the time sequence of the vehicle lamp animation, the vehicle lamp control scheme corresponding to the time sequence of each frame of image is generated according to the arrangement mode of the vehicle lamp animation video and the minimum control unit of the vehicle lamp, the frame of image of each frame of the vehicle lamp animation video is obtained frame by frame according to the preset frame rate, and the vehicle lamp control scheme corresponding to the vehicle lamp animation video is generated according to the frame of image of each frame of the vehicle lamp animation video and the arrangement mode of the minimum control unit of the vehicle lamp.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic flow chart illustrating a first embodiment of a car light animation time sequence conversion method according to the present invention;
FIG. 2 is a flow chart illustrating a second embodiment of a car light animation time sequence conversion method according to the present invention;
FIG. 3 is a flow chart illustrating a third embodiment of a car light animation time sequence conversion method according to the present invention;
FIG. 4 is a schematic diagram illustrating a layout structure of a plurality of array units provided by the present invention;
fig. 5 is a schematic structural diagram illustrating an embodiment of a car light animation time sequence conversion device provided by the invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein.
Fig. 1 is a schematic flow chart illustrating a first embodiment of a car light animation time sequence conversion method provided by the present invention, which is executed by a car light animation time sequence conversion device. As shown in fig. 1, the car light animation time sequence conversion method includes the following steps:
step 110: and acquiring an automobile lamp animation video and an arrangement mode of a minimum control unit of the automobile lamp, wherein the automobile lamp is used for demonstrating the automobile lamp animation video.
The car light comprises a plurality of minimum control units, wherein the arrangement mode of the minimum control units comprises the number of the minimum control units and the arrangement or layout mode of the minimum control units, for example, the minimum control units are arranged in a regular geometric body in a row-column alignment mode, for example, the minimum control units are combined into a specific pattern, it needs to be noted that the minimum control units can be single lamp beads or a whole formed by combining a plurality of lamp beads, wherein the shape of the minimum control unit can be a regular geometric figure or a special-shaped structure, and in the control process of the car light, all the lamp beads of a single minimum control unit can only be turned on or off at the same time. Specifically, in the embodiment of the present application, the vehicular lamp may be an LED (Light-Emitting Diode) lamp or an OLED (Organic Light-Emitting Diode) lamp.
The vehicle lamp animation video is generally provided by a host factory, the host factory displays the required vehicle lamp animation effect in a video form, and then the vehicle lamp animation video is sent to a vehicle lamp supplier.
Step 120: and acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate.
In the process of acquiring each frame of image of the vehicle lamp animation video frame by frame, the image of the vehicle lamp animation video is acquired at a preset frame rate, for example, at 10 millisecond intervals. Alternatively, the time interval between each frame of image of the vehicle light animation video is determined according to the parameter of the vehicle light, for example, the time interval between each frame of image of the vehicle light animation video is determined according to the parameter of the minimum control unit of the vehicle light (including at least the frequency of the vehicle light).
Step 130: generating a car light control scheme corresponding to the car light animation video according to each frame of image of the car light animation video, the arrangement mode of the minimum control unit of the car light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
The car light control scheme corresponding to the car light animation video is used for controlling the car light to be completely demonstrated the car light animation video, and the car light control scheme corresponding to the time sequence of each frame of image is used for controlling each frame of image of the corresponding time sequence of the car light demonstration.
Specifically, for a specific frame of image, the lighting state of the corresponding minimum control unit of the car light is determined according to the color and/or brightness of the pixel point on the specific frame of image, for example, if the pixel point is a specific color, it represents that the corresponding minimum control unit of the car light is in the lighting state, or if the brightness of the pixel point reaches a preset value, it represents that the corresponding minimum control unit of the car light is in the lighting state.
It should be noted that the vehicle lamp animation video is generally provided by a host factory, the host factory displays a desired vehicle lamp animation effect in a video form, and then sends the vehicle lamp animation video to a vehicle lamp supplier, and the vehicle lamp supplier manufactures a vehicle lamp with an integrated control function according to the vehicle lamp animation video.
Certainly, in the practical application process, the method can also be directly applied to a control system of a vehicle, parameters of the vehicle lamp are stored in the control system of the vehicle, a user directly inputs a video needing vehicle lamp demonstration into the control system of the vehicle, the control system of the vehicle automatically converts the input video into an animation which can be demonstrated by the vehicle lamp, and the vehicle controller can control the vehicle lamp to demonstrate the animation corresponding to the vehicle lamp animation video.
The invention provides a car light animation time sequence conversion method, which can greatly improve the car light animation production effect and the production efficiency, save the communication cost of a host factory and a car light supplier, ensure the production efficiency of the car light animation by quantifying sensory experience, and simultaneously, when the scheme is applied to a control system of a car, a user of the car can set personalized car light animation, thereby improving the entertainment of the car and enhancing the car using experience of the user.
Fig. 2 is a schematic flow chart of a second embodiment of a car lighting animation time sequence conversion method provided by the invention, wherein the car lighting animation time sequence conversion method is executed by a car lighting animation time sequence conversion device. As shown in fig. 2, the car light animation time sequence conversion method includes the following steps:
step 210: and acquiring an automobile lamp animation video and an arrangement mode of a minimum control unit of the automobile lamp, wherein the automobile lamp is used for demonstrating the automobile lamp animation video.
Step 220: and acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate.
Step 230: and determining the number of each minimum control unit according to the arrangement mode of the minimum control units.
Step 240: determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; and the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video.
FIG. 3 is a flow chart illustrating a third embodiment of a car light animation time sequence conversion method according to the present invention; for convenience, in practical application, as shown in fig. 3, the plurality of array units may be arranged in a regular rectangle, that is, the first coordinate axis is perpendicular to the second coordinate axis, fig. 3 shows an array unit of an elongated car light, and as can be seen from fig. 3, the elongated car light shows a moving horse-race light animation (black areas in the drawing indicate lighting) in which the middle position of the car light wants to be sequentially lighted on both sides. By the method, the animation effect of the car lamp can be presented to a certain extent in the time sequence conversion process of the car lamp animation video.
Of course, in practical applications, the present invention is not limited to the above embodiment, and a plurality of array units in other forms may be provided, for example, the arrangement of the array units is set to correspond to the arrangement of the minimum control unit of the car light at a specific time sequence of a certain frame image, which is suitable for the design of complex car lights.
It should be noted that, in an actual application process, it is not required that one coordinate value on the first coordinate axis corresponds to a number of one minimum control unit, and it is also possible to set the one coordinate value on the first coordinate axis to a number corresponding to a plurality of minimum control units according to an actual need, for example, when the minimum control units include fewer lamp beads, but the number of the minimum control units is increased, the one coordinate value on the first coordinate axis may be set to a number corresponding to a plurality of the minimum control units.
It should be noted that the plurality of array units may be: and establishing a plurality of array units by taking the number of the minimum control unit as a first coordinate axis and taking the time sequence of each frame of image of the vehicle lamp animation video as a second coordinate axis. In this way, a plurality of array units with rules completely suitable for the arrangement mode of the minimum control units of the corresponding car lamps can be created, and the number of the coordinates of the first coordinate axis is ensured to be equal to the number of the minimum control units, or the difference value between the number of the coordinates of the first coordinate axis and the number of the minimum control units is in a preset range.
Or, modifying the array unit information of the preset template on the preset template to generate the plurality of array units. By the method, a plurality of array units meeting the requirement can be obtained quickly, and the time sequence conversion efficiency of the vehicle lamp animation is improved.
According to the specific color and/or brightness of the pixel points on the specific image of the frame, each image of the frame can be divided into a plurality of areas according to the arrangement mode of the minimum control unit of the car lamp, and the color and/or brightness of the pixel points on each area are determined, so that the lighting state of the corresponding minimum control unit is determined. Of course, in the actual application process, the color and/or brightness of all the pixel points on each frame of image may be obtained first, and then the lighting state of the minimum control unit may be determined according to the color and/or brightness of all the pixel points.
It should be noted that, since the sizes of each frame of image corresponding to the car light animation video are the same, and in one embodiment, the corresponding car light is the same, when the area on each frame of image corresponds to the array unit, only one determination is needed, and it is not necessary to determine a correspondence between the area on each frame of image and the array unit.
For example, in an actual application process, a lighting area exists on a specific frame image (10 milliseconds), and the lighting area corresponds to the minimum control unit with the number of 2, then the array unit with the number of 2 is determined on the second coordinate axis of the plurality of array units according to the 10 milliseconds and the first coordinate, and the array unit is marked as the color corresponding to the lighting area.
Step 250: and generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
And after all the array units determine the lighting state, generating the corresponding car light control scheme corresponding to the car light animation video by using a preset rule.
In this way, in the process of format conversion of the vehicle lamp animation video, the vehicle lamp control scheme with the converted part can be output in the conversion process, and the animation effect of the vehicle lamp can be presented to a certain extent.
It should be noted that, after the car light control scheme corresponding to the car light animation video is generated, the car light animation time sequence conversion method provided by the invention can also control the car light demonstration animation according to the car light control scheme, and compare the car light demonstration animation with the car light animation video.
The method for time sequence conversion of the car light animation determines the car light control scheme according to the state of each frame of image of the car light animation video, and can ensure efficient production of the car light animation through the uniform quantization parameter. Specifically, the problem of different display effects caused by hardware display difference possibly exists between vehicle lamp display and video display, and by adopting the scheme provided by the embodiment of the invention, the problem that the poor animation effect is caused by hardware, but not caused in the vehicle lamp animation video time sequence conversion process, can be effectively determined.
It should be noted that, in some embodiments, the car light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image. By the method, the vehicle lamp animation video display content can be better displayed through the vehicle lamp.
Fig. 4 shows a schematic layout structure of a plurality of array units provided by the present invention. As shown in fig. 4, the apparatus 400 includes: the system comprises an acquisition module 410, an image extraction module 420 and a vehicle light control scheme generation module 430.
The obtaining module 410 is configured to obtain an automobile lamp animation video and an arrangement manner of a minimum control unit of an automobile lamp, where the automobile lamp is used to demonstrate the automobile lamp animation video.
The image extraction module 420 is configured to obtain each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate.
The vehicle light control scheme generating module 430 is configured to generate a vehicle light control scheme corresponding to the vehicle light animation video according to each frame of image of the vehicle light animation video, an arrangement manner of a minimum control unit of the vehicle light, and a time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
In an optional manner, the vehicle light control scheme generation module is further configured to:
and determining the number of each minimum control unit according to the arrangement mode of the minimum control units.
Determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; and the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video.
And generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
In an optional manner, the car light animation time sequence conversion device further includes:
and the animation demonstration module is used for controlling the car lamp to demonstrate the animation according to the car lamp control scheme and comparing the animation demonstrated by the car lamp with the car lamp animation video.
In an optional manner, the vehicle light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image.
In an alternative, one coordinate value on the first coordinate axis corresponds to the number of one or more of the minimum control units.
According to the vehicle lamp animation time sequence conversion device, by obtaining the vehicle lamp animation video and the arrangement mode of the minimum control unit of the vehicle lamp, then obtaining each frame image of the vehicle lamp animation video frame by frame according to the preset frame rate, and finally generating the vehicle lamp control scheme corresponding to the time sequence of each frame image according to each frame image of the vehicle lamp animation video and the arrangement mode of the minimum control unit of the vehicle lamp, and combining the time sequence of each frame image, the vehicle lamp control scheme corresponding to the vehicle lamp animation video is generated.
Fig. 5 is a schematic structural diagram illustrating an embodiment of a car lighting animation time sequence conversion device provided by the present invention, and a specific implementation of the car lighting animation time sequence conversion device is not limited by the specific embodiment of the present invention.
As shown in fig. 5, the car light animation sequence conversion apparatus may include: a processor (processor) 502, a Communications Interface 404, a memory 406, and a Communications bus 508.
Wherein: the processor 502, communication interface 504, and memory 406 communicate with each other via a communication bus 508. A communication interface 504 for communicating with network elements of other devices, such as clients or other servers. The processor 502 is configured to execute the program 510, and may specifically execute the relevant steps in the foregoing embodiment of the car light animation time sequence conversion method.
In particular, program 510 may include program code comprising computer-executable instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit ASIC (Application Specific Integrated Circuit), or one or more Integrated circuits configured to implement an embodiment of the present invention. The one or more processors included in the vehicle lamp animation time sequence conversion device can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may be specifically invoked by the processor 502 to cause the vehicle lighting animation sequence conversion device to perform the following operations:
and acquiring an automobile lamp animation video and an arrangement mode of a minimum control unit of the automobile lamp, wherein the automobile lamp is used for demonstrating the automobile lamp animation video.
And acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate.
Generating a car light control scheme corresponding to the car light animation video according to each frame of image of the car light animation video, the arrangement mode of the minimum control unit of the car light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
In an optional manner, the method further comprises:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; and the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video.
And generating the car light control scheme corresponding to the car light animation video according to the lighting states and lighting colors of all the array units.
In an optional manner, the method further comprises:
and controlling the car lamp demonstration animation according to the car lamp control scheme, and comparing the demonstrated animation of the car lamp with the car lamp animation video.
In an optional manner, the vehicle light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image.
In an alternative mode, one coordinate value on the first coordinate axis corresponds to the number of one or more minimum control units.
According to the car light animation time sequence conversion equipment provided by the invention, by acquiring the car light animation video and the arrangement mode of the minimum control unit of the car light, then acquiring each frame image of the car light animation video frame by frame according to the preset frame rate, and finally generating the car light control scheme corresponding to the time sequence of each frame image according to each frame image of the car light animation video and the arrangement mode of the minimum control unit of the car light.
An embodiment of the present invention provides a computer-readable storage medium, where the storage medium stores at least one executable instruction, and when the executable instruction runs on a car light animation time sequence conversion device/apparatus, the car light animation time sequence conversion device/apparatus executes a car light animation time sequence conversion method in any method embodiment described above.
The executable instructions may be specifically configured to cause the vehicle light animation sequence conversion device/apparatus to perform the following operations:
and acquiring an automobile lamp animation video and an arrangement mode of a minimum control unit of the automobile lamp, wherein the automobile lamp is used for demonstrating the automobile lamp animation video.
And acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate.
Generating a car light control scheme corresponding to the car light animation video according to each frame of image of the car light animation video, the arrangement mode of the minimum control unit of the car light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
In an optional manner, the method further comprises:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; and the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video.
And generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
In an optional manner, the method further includes:
and controlling the car lamp demonstration animation according to the car lamp control scheme, and comparing the demonstrated animation of the car lamp with the car lamp animation video.
In an optional manner, the vehicle light control scheme corresponding to the time sequence of each frame of image further includes the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame of image.
In an alternative mode, one coordinate value on the first coordinate axis corresponds to the number of one or more minimum control units.
According to the computer-readable storage medium provided by the invention, by acquiring the car light animation video and the arrangement mode of the minimum control unit of the car light, then acquiring each frame image of the car light animation video frame by frame according to the preset frame rate, and finally generating the car light control scheme corresponding to the time sequence of each frame image according to each frame image of the car light animation video and the arrangement mode of the minimum control unit of the car light, and combining the time sequence of each frame image, the car light control scheme corresponding to the car light animation video is generated.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. In addition, embodiments of the present invention are not directed to any particular programming language.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. Similarly, in the above description of example embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. Where the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or elements are mutually exclusive.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limited to the order of execution unless otherwise specified.

Claims (10)

1. A car light animation time sequence conversion method is characterized by comprising the following steps:
acquiring a car light animation video and a distribution mode of a minimum control unit of a car light, wherein the car light is used for demonstrating the car light animation video;
acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate;
generating a car light control scheme corresponding to the car light animation video according to each frame of image of the car light animation video, the arrangement mode of the minimum control unit of the car light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
2. The vehicle light animation time sequence conversion method according to claim 1, wherein the generating of the vehicle light control scheme corresponding to the vehicle light animation video according to each frame of image of the vehicle light animation video, an arrangement mode of a minimum control unit of the vehicle light and a time sequence of each frame of image comprises:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video;
and generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
3. The vehicle light animation time sequence conversion method according to claim 1, wherein after the step of generating the vehicle light control scheme corresponding to the vehicle light animation video according to each frame of image of the vehicle light animation video, the arrangement mode of the minimum control unit of the vehicle light and the time sequence of each frame of image, the method further comprises:
and controlling the car lamp demonstration animation according to the car lamp control scheme, and comparing the demonstrated animation of the car lamp with the car lamp animation video.
4. The car light animation time sequence conversion method according to claim 1, wherein the car light control scheme corresponding to the time sequence of each frame image further comprises the brightness of the minimum control unit and/or the lighting color of the minimum control unit corresponding to each frame image.
5. The car light animation time sequence conversion method according to claim 2, wherein one coordinate value on the first coordinate axis corresponds to the number of one or more minimum control units.
6. A car light animation time sequence conversion device is characterized by comprising:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring vehicle lamp animation videos and the arrangement mode of the minimum control units of the vehicle lamps, and the vehicle lamps are used for demonstrating the vehicle lamp animation videos;
the image extraction module is used for acquiring each frame image of the vehicle lamp animation video frame by frame according to a preset frame rate;
the vehicle light control scheme generation module is used for generating a vehicle light control scheme corresponding to the vehicle light animation video according to each frame of image of the vehicle light animation video, the arrangement mode of the minimum control unit of the vehicle light and the time sequence of each frame of image; the car light control scheme corresponding to the car light animation video comprises a car light control scheme corresponding to the time sequence of each frame of image, and the car light control scheme corresponding to the time sequence of each frame of image comprises the lighting state of the minimum control unit corresponding to each frame of image.
7. The vehicle light animation timing conversion device according to claim 6, wherein the vehicle light control scheme generation module is further configured to:
determining the number of each minimum control unit according to the arrangement mode of the minimum control units;
determining the lighting state of an array unit corresponding to each frame of image in a plurality of preset array units based on each frame of image of the vehicle lamp animation video, the number of each minimum control unit and the time sequence of each frame of image; the first coordinate axis of the preset array units is the number of the minimum control unit, and the second coordinate axis is the time sequence of each frame of image of the vehicle lamp animation video;
and generating the car light control scheme corresponding to the car light animation video according to the lighting states of all the array units.
8. The vehicle light animation timing conversion device according to claim 6, further comprising:
and the animation demonstration module is used for controlling the vehicle lamp to demonstrate the animation according to the vehicle lamp control scheme and comparing the demonstrated animation with the vehicle lamp animation video.
9. A vehicle lamp animation time sequence conversion apparatus, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation of the car light animation time sequence conversion method according to any one of claims 1-5.
10. A computer-readable storage medium having stored therein at least one executable instruction which, when run on a car light animation timing transition device/apparatus, causes the car light animation timing transition device/apparatus to perform the operations of the car light animation timing transition method according to any one of claims 1-5.
CN202211208936.4A 2022-09-30 2022-09-30 Vehicle lamp animation time sequence conversion method and device and computer readable storage medium Pending CN115631265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211208936.4A CN115631265A (en) 2022-09-30 2022-09-30 Vehicle lamp animation time sequence conversion method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211208936.4A CN115631265A (en) 2022-09-30 2022-09-30 Vehicle lamp animation time sequence conversion method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115631265A true CN115631265A (en) 2023-01-20

Family

ID=84905359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211208936.4A Pending CN115631265A (en) 2022-09-30 2022-09-30 Vehicle lamp animation time sequence conversion method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115631265A (en)

Similar Documents

Publication Publication Date Title
CN108986200B (en) Preprocessing method and system for graphic rendering
CN108038897B (en) Shadow map generation method and device
CN105718420B (en) Data processing equipment and its operating method
CN113299245B (en) Method and device for adjusting local backlight of display equipment, display equipment and storage medium
US20220164166A1 (en) Simulation method and recording medium
CN111901947B (en) Method, system, device and medium for controlling stage light beam effect
CN116347699A (en) Lamp effect control method of interactive lamp, electronic equipment and vehicle
CN115631265A (en) Vehicle lamp animation time sequence conversion method and device and computer readable storage medium
CN111381794A (en) Control method and device for robot eye lamp, terminal device and medium
CN110858153B (en) Control self-adaptive display method and device
JP2013196708A (en) Development device for controller program and creation method
CN114266855A (en) Light effect simulation method and device of dot matrix screen and electronic equipment
Waldner et al. Simulation of High-Definition Pixel-Headlights
CN111767046B (en) Shader code multiplexing method and terminal
CN114187398A (en) Processing method and device for human body illumination rendering based on normal map
CN106537455A (en) Hardware-independent display of graphic effects
CN113052970A (en) Neural network-based light intensity and color design method, device and system and storage medium
CN111949109A (en) Power consumption control method of vehicle-mounted terminal, vehicle-mounted terminal and vehicle
CN117910211A (en) Atmosphere lamp design method and device and atmosphere lamp
Sun et al. An intelligent driving simulation platform: architecture, implementation and application
US11645050B2 (en) Vehicle software developer systems, methods and devices for vehicle software development
CN117406965B (en) Visual output method, device, equipment and medium of artificial intelligent model
CN114757292A (en) Pedestrian abnormal behavior identification method and device of expansion convolution neural network
US20220343038A1 (en) Vehicle simulator
CN116798331A (en) Car lamp pattern display method, device, equipment and medium, and car

Legal Events

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