Vehicle-mounted display data processing method and device, computer equipment and readable storage medium
By decomposing, converting the animation or picture designed by UI designers, and generating data formats suitable for the LED matrix, the problem of displaying animation or picture on the LED matrix is solved, achieving efficient processing and high-quality display effects.
Patent Information
- Application Number
- CN202411492261.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-02-14
AI Technical Summary
It is difficult for prior art to effectively place animations or pictures designed by UI designers onto the LED matrix for display.
By obtaining the on-board display data to be converted, decompose it into at least one frame of pictures, and converting each frame of pictures in format, generating conversion files and boot files, and display control is performed according to the on-board hardware requirements.
It realizes the conversion of animations or pictures designed by UI designers into data formats that are recognizable by the LED matrix, solving the problem of displaying animations or pictures on the LED matrix, improving processing speed and ensuring picture quality.
Smart Images

Figure CN119440452A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, computer equipment and computer-readable storage medium for processing vehicle-mounted display data. Background Art
[0002] With the development of intelligent and interactive automobiles, more and more automobile parts have been innovated in intelligent concepts to keep up with the development trend of automobiles. In terms of exterior decoration, more and more products with intelligent interaction have been born. In terms of lighting, there are digital projection headlights, intelligent taillight interactive lights, and intelligent welcome interactive lights. Combined with the increasing number of cameras and radar products on cars, as well as more humane and personalized pattern displays, the development of intelligent interaction has entered a new chapter.
[0003] LED matrix displays are widely used in the fields of automobiles, advertising, public information release, etc. due to their high brightness, long life, and energy saving. However, how to display the animations or pictures designed by UI designers on the LED matrix has become an urgent problem to be solved. Summary of the invention
[0004] Based on this, it is necessary to provide a vehicle-mounted display data processing method, device, computer equipment and computer-readable storage medium that can display the animation or picture designed by UI designers on the LED matrix for the above technical problems.
[0005] In a first aspect, the present application provides a method for processing vehicle display data, the method comprising:
[0006] Obtain the vehicle display data to be converted;
[0007] Decomposing the vehicle-mounted display data to be converted into at least one frame of picture;
[0008] Performing format conversion on each frame of the picture to obtain the picture in the target format;
[0009] Obtaining a conversion file based on the image in the target format;
[0010] Based on the vehicle hardware requirement, a boot file of the conversion file is generated, wherein the boot file includes display control information of the conversion file.
[0011] In one embodiment, before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes:
[0012] Receive format conversion mode setting instructions;
[0013] Determining a conversion mode of each frame of the picture based on the format conversion mode, wherein the conversion mode includes a compression mode with different grayscale modes and a non-compression mode with different grayscale modes;
[0014] The step of converting the format of each frame of the picture to obtain the picture in a target format includes:
[0015] The format of each frame of the picture is converted based on the conversion mode to obtain the picture in the target format.
[0016] In one embodiment, before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes:
[0017] Obtaining the current resolution of the vehicle display data;
[0018] Determining a target resolution of the in-vehicle display data based on in-vehicle hardware;
[0019] According to the current resolution and the target resolution, pixel points of each frame of the image are extracted in equal proportion.
[0020] In one embodiment, before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes:
[0021] Determine the target data size corresponding to each frame of the picture based on the data size in the vehicle hardware;
[0022] The step of converting the format of each frame of the picture to obtain the picture in a target format includes:
[0023] The format of each frame of the picture is converted to obtain the picture in the target format and with a data size equal to the target data size.
[0024] In one embodiment, before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes:
[0025] Determine the data packet size of the data packet corresponding to each frame of the picture;
[0026] The step of converting the format of each frame of the picture to obtain the picture in a target format includes:
[0027] When the last data packet of each frame of the picture does not reach the data packet size, the last data packet is filled by data filling until the last data packet reaches the data packet size.
[0028] In one embodiment, the method further comprises:
[0029] receiving an edit mode setting instruction, and displaying a vehicle display data selection box to be converted and a picture quantity display box based on the edit mode setting instruction;
[0030] Receiving a selection instruction of the vehicle-mounted display data selection box to be converted through the vehicle-mounted display data selection box to be converted;
[0031] Based on the selection instruction, obtaining the number of decomposed pictures corresponding to the selected vehicle display data to be converted;
[0032] The number of pictures is displayed in the picture number display box.
[0033] In one embodiment, the generating of the boot file of the conversion file based on the vehicle hardware requirement includes:
[0034] Based on the vehicle hardware requirements and the number of pictures, a guide file for the conversion file is generated, and the guide file is used to determine the vehicle display data to be displayed based on the number of pictures.
[0035] In a second aspect, the present application further provides a vehicle-mounted display data processing device, the device comprising:
[0036] A data acquisition module, used to acquire the vehicle display data to be converted;
[0037] A decomposition module, used for decomposing the vehicle-mounted display data to be converted into at least one frame of picture;
[0038] A format conversion module, used to convert the format of each frame of the picture to obtain the picture in a target format;
[0039] A conversion file generation module, used to obtain a conversion file based on the image in the target format;
[0040] The boot file generation module is used to generate a boot file of the conversion file based on the vehicle hardware requirements, and the boot file includes display control information of the conversion file.
[0041] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0042] In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0043] The above-mentioned vehicle-mounted display data processing method, device, computer equipment and computer-readable storage medium, after obtaining the vehicle-mounted display data to be converted, decompose the vehicle-mounted display data to be converted into at least one frame of picture; perform format conversion on each frame of the picture to obtain the picture in the target format; obtain a conversion file based on the picture in the target format; based on the vehicle-mounted hardware requirements, generate a boot file for the conversion file, the boot file includes display control information, so that based on the display control information, the conversion file can be placed on the LED matrix for display, thereby realizing that the animation or picture designed by the UI designer is placed on the LED matrix for display. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic diagram of a process flow of a vehicle display data processing method in one embodiment;
[0046] Figure 2 is a schematic diagram of a data processing interface in one embodiment;
[0047] Figure 3 A schematic flow chart of a method for processing vehicle-mounted display data in another embodiment;
[0048] Figure 4 is a structural block diagram of a vehicle-mounted display data processing device in one embodiment;
[0049] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] In one embodiment, Figure 1 As shown, a method for processing vehicle display data is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0052] S102: Acquire vehicle-mounted display data to be converted.
[0053] The vehicle display data to be converted can be a picture or a video, which can be a picture or animation designed by a UI designer. The picture or animation is used to be displayed on the vehicle LED matrix, so the picture or animation needs to be converted into a bin file for LED matrix display.
[0054] S104: Decomposing the vehicle display data to be converted into at least one frame of picture.
[0055] Specifically, when the in-vehicle display data to be converted is a video, the in-vehicle display data to be converted is decomposed into frames of pictures, and the specific way of decomposing the video into pictures is not specifically limited here.
[0056] S106: Convert the format of each frame of the picture to obtain a picture in a target format.
[0057] After obtaining each frame of the image, each frame of the image can be processed in parallel to improve processing efficiency. The conversion of the image format is to convert each pixel in the image into a point in the corresponding LED matrix.
[0058] Specifically, format conversion is performed on each frame of the image to obtain an image in a target format, including: obtaining position information of each pixel in the image data, and sorting the position information of the pixel based on preset sorting information; determining the value of the brightness identification bit corresponding to each pixel based on whether each pixel has brightness; determining the value of the brightness level bit of the pixel with brightness based on the brightness level of the pixel with brightness; obtaining the encoding value of the pixel according to the value of the brightness identification bit and the value of the brightness level bit; and connecting the encoding values of each pixel in the order of the sorted pixels to obtain compressed image data, which is the image in the target format obtained by conversion.
[0059] S108: Obtain a conversion file based on the image in the target format.
[0060] The conversion file is obtained by storing the image data obtained by converting all the pictures in one file. Optionally, the conversion file stores the image data corresponding to each frame of the picture in the order of the decomposed pictures, and the image data corresponding to each frame of the picture includes the encoded data packets stored in order.
[0061] In addition, you can also optionally pre-set the name of the converted file, such as filling in the generated bin file name in the software, such as setting it to "video conversion.bin". This parameter determines the name of the generated bin file.
[0062] S110: Generate a boot file for the conversion file based on the vehicle hardware requirement, where the boot file includes display control information of the conversion file.
[0063] The boot file is generated based on the vehicle hardware requirements. The boot file includes display control information of the conversion file. Different vehicle hardware corresponds to different boot files.
[0064] Optionally, a corresponding conversion file may be generated for each vehicle display data to be converted, and different boot files may be set to be applicable to different vehicle hardware, thereby achieving the purpose of being applicable to different vehicle hardware with one format conversion.
[0065] After the conversion file is generated, at least one vehicle hardware requirement may be obtained, and then corresponding boot files may be generated based on the vehicle hardware requirement, and then the sending of the conversion file may be controlled according to the boot files.
[0066] Optionally, a boot file template may be pre-set, including a display control information field, and the corresponding display control information field may be filled based on the vehicle hardware requirements to generate a boot file.
[0067] The above-mentioned vehicle display data processing method, after obtaining the vehicle display data to be converted, decomposes the vehicle display data to be converted into at least one frame of picture; performs format conversion on each frame of picture to obtain a picture in a target format; obtains a conversion file based on the picture in the target format; generates a boot file of the conversion file based on the vehicle hardware requirements, the boot file includes display control information, so that based on the display control information, the conversion file can be placed on the LED matrix for display, thereby realizing that the animation or picture designed by the UI designer is placed on the LED matrix for display.
[0068] In one of the optional embodiments, before format conversion is performed on each frame of the image to obtain the image in the target format, it also includes: receiving a format conversion mode setting instruction; determining a conversion mode for each frame of the image based on the format conversion mode, the conversion mode including different grayscale mode compression modes and different grayscale non-compression modes.
[0069] The conversion mode is set based on display requirements, and is used to determine the splitting method of the image pixel brightness data in each frame of the picture.
[0070] Optionally, the conversion mode includes different grayscale compression modes and different grayscale non-compression modes. For example, the conversion mode may include a 32-grayscale compression mode, a 32-grayscale non-compression mode, and a 256-grayscale mode.
[0071] Among them, due to the introduction of grayscale, the correlation between pixels can be better preserved, thereby improving the quality of the converted picture.
[0072] In addition, compression mode and non-compression mode are introduced. For example, each pixel is represented by 5 bits (compression mode) or one byte (non-compression mode). The compression mode can reduce the amount of data and improve the processing speed.
[0073] Optionally, for the compression mode, the maximum brightness level of each pixel can be obtained; based on the maximum brightness level, the number of bits for encoding the pixel is determined, such as 5 bits here; one of the number of bits for encoding is selected as the brightness flag, and the brightness level bit is determined based on the number of bits for encoding and the brightness flag. When encoding is performed subsequently, if there is brightness, the brightness flag is the target value, and the corresponding pixel is encoded. If there is no brightness, the brightness flag is not the target value, and the subsequent encoding value is the number of consecutive pixels without brightness.
[0074] In the above embodiment, the compression mode is introduced to improve the processing speed, and the introduction of different conversion modes can facilitate the user's selection, thereby generating conversion files with different requirements for subsequent use.
[0075] In one of the optional embodiments, before converting the format of each frame of the image to obtain the image in the target format, it also includes: obtaining the current resolution of the vehicle display data; determining the target resolution of the vehicle display data based on the vehicle hardware; and extracting pixels for each frame of the image in proportion to the current resolution and the target resolution.
[0076] Optionally, since the current resolution of the vehicle display data is generally greater than the resolution corresponding to the LED matrix, the resolution of the vehicle display data needs to be converted before format conversion. Specifically, the target resolution of the vehicle display data is determined based on the vehicle hardware. For example, the number of LEDs in the LED matrix is determined as the target resolution, and then pixels are extracted for each frame of the image in equal proportion based on the current resolution and the target resolution.
[0077] For example, if the current resolution is 2048*768 and the target resolution is 1024*768, then one pixel is extracted for every two pixels to obtain a picture of the target resolution.
[0078] The resolution conversion step may also be performed in parallel on each image to improve efficiency.
[0079] Optionally, since resolution conversion and format conversion are involved, corresponding numbers of threads can be allocated to resolution conversion and format conversion respectively based on hardware for processing, and then dynamic adjustments can be made based on the processing efficiency of each thread of resolution conversion and format conversion to improve the overall conversion efficiency. For example, if the resolution conversion efficiency slows down, the processing amount of the format conversion thread is reduced. In addition, part of the resolution conversion can be processed by the format conversion thread, thereby improving the processing efficiency as a whole.
[0080] In one of the optional embodiments, before format conversion is performed on each frame of the picture to obtain a picture in a target format, the method further includes: determining a target data size corresponding to each frame of the picture based on the data size in the vehicle-mounted hardware; format conversion is performed on each frame of the picture to obtain a picture in a target format, including: format conversion is performed on each frame of the picture to obtain a picture in a target format with a data size equal to the target data size.
[0081] Optionally, the present application also sets the size of each frame of the image after format conversion. The size after format conversion is related to the vehicle-mounted hardware. For example, the data block size in the vehicle-mounted hardware flash is generally 8192 bytes. Therefore, the size of the data amount after each frame of the image is converted is set in the present application, so as to facilitate the reading of the data of the subsequently converted images, that is, reading the data of one frame of the image each time.
[0082] In one of the optional embodiments, before format conversion is performed on each frame of the image to obtain the image in the target format, the method further includes: determining the data packet size of the data packet corresponding to each frame of the image; format conversion is performed on each frame of the image to obtain the image in the target format, including: when the last data packet of each frame of the image does not reach the data packet size, filling the last data packet by data filling until the last data packet reaches the data packet size.
[0083] Among them, the data packet size is the size of each data packet in the multiple data packets corresponding to each frame of the picture. In the vehicle environment, the conversion file is sent to the vehicle screen through CAN communication, and the size of each CAN data packet is certain. Therefore, the size of each data packet can be determined based on the size of the CAN communication data packet. In this way, when the last data packet of each frame of the picture does not reach the data packet size, the last data packet is filled by data filling until the last data packet reaches the data packet size.
[0084] Fill in the parameters for zero padding of the tail data in the software, for example, set it to 64 bytes, which is the size of a data packet. This parameter determines the number of bytes filled with the tail data of each frame of the picture, that is, when the valid data in the last data packet is less than the data packet size, the zero padding operation is performed.
[0085] In one of the optional embodiments, the method also includes: receiving an editing mode setting instruction, and displaying a vehicle display data selection box to be converted and a picture quantity display box based on the editing mode setting instruction; receiving a vehicle display data selection box selection instruction to be converted through the vehicle display data selection box to be converted; obtaining the number of decomposed pictures corresponding to the selected vehicle display data to be converted based on the selection instruction; and displaying the number of pictures in the picture quantity display box.
[0086] Specifically, combined Figure 2 As shown, Figure 2 It is a schematic diagram of a data processing interface in an embodiment. In this embodiment, an editing mode setting instruction is received based on the data processing interface. When the editing mode is the target mode, a selection box for the vehicle display data to be converted and a box for displaying the number of pictures are displayed, so that the user can set the vehicle display data to be converted. That is, when there are multiple vehicle display data to be converted, one of them can be selected, and after the vehicle display data to be converted is selected, the number of pictures corresponding to the vehicle display data to be converted can be displayed.
[0087] In one of the optional embodiments, a boot file for the conversion file is generated based on the vehicle hardware requirements, including: based on the vehicle hardware requirements and the number of pictures, a boot file for the conversion file is generated, and the boot file is used to determine the vehicle display data to be displayed based on the number of pictures.
[0088] The number of pictures can be used for generating a guide file, for example, by filling the number of pictures into a guide file template, and then the guide file can control the sending of the conversion file based on the number of pictures to correctly display the converted image data.
[0089] For ease of understanding, combined Figure 3 As shown, Figure 3The flowchart of the vehicle display data processing method in one embodiment is shown in FIG. 1 . In this embodiment, first open the software tool, select the "video to bin" function, and upload the vehicle display data to be converted, such as a video file. The software will automatically decompose the video file into frames of pictures. Step 2: Set the target resolution of the output picture, for example, set the target resolution to 1024*768. The software will extract the picture data in proportion to the current resolution of the input picture and the set output target resolution. Step 3: Select the "32 grayscale compression" conversion mode to split and combine pixel data. This method can reduce the amount of data and increase the processing speed. Other conversion modes can also be selected in other embodiments. Step 4: Fill in the size of each frame of picture data in the software, for example, set it to 8192 bytes. This parameter determines the amount of data for each frame of the picture. Step 5: Fill in the parameter of the tail data zero padding in the software, that is, set the size of each data packet, for example, set it to 64 bytes. This parameter determines the number of bytes filled in the tail data of each frame of the picture. Step 6: Fill in the generated bin file name in the software, for example, set it to "video conversion.bin". This parameter determines the name of the generated bin file. Step 7: Click the "Generate bin file" button and the software will start generating bin files. The generated bin files will be saved in the specified directory. Step 8: Add boot data in front of the generated bin file, such as adding "boot data.bin". This operation can easily import other bin files for further processing. Step 9: Turn on "Professional Mode" in the software. At this time, the software interface will change, and the "Total animation number" and "Edit animation number" interfaces will appear, so that you can preview and edit each video or picture set through these interfaces.
[0090] The above are the specific operation steps of this embodiment. Through this method, the video or picture can be converted into a data format recognizable by the LED matrix, which improves the processing speed and also ensures the quality of the converted picture.
[0091] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0092] Based on the same inventive concept, the embodiment of the present application also provides a vehicle-mounted display data processing device for implementing the vehicle-mounted display data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more vehicle-mounted display data processing devices provided below can refer to the limitations of the vehicle-mounted display data processing method above, and will not be repeated here.
[0093] In an exemplary embodiment, Figure 4 As shown, a vehicle-mounted display data processing device is provided, including: a data acquisition module 401, a decomposition module 402, a format conversion module 403, a conversion file generation module 404 and a boot file generation module 405, wherein:
[0094] The data acquisition module 401 is used to acquire the vehicle display data to be converted;
[0095] A decomposition module 402, used for decomposing the vehicle display data to be converted into at least one frame of picture;
[0096] The format conversion module 403 is used to convert the format of each frame of the picture to obtain a picture of a target format;
[0097] A conversion file generating module 404 is used to obtain a conversion file based on the image in the target format;
[0098] The boot file generation module 405 is used to generate a boot file of the conversion file based on the vehicle hardware requirements, and the boot file includes display control information of the conversion file.
[0099] In one of the optional embodiments, the above device further includes:
[0100] The conversion mode setting module is used to receive a format conversion mode setting instruction; determine the conversion mode of each frame of the image based on the format conversion mode, and the conversion mode includes a compression mode with different grayscale modes and a non-compression mode with different grayscale modes.
[0101] In one of the optional embodiments, the above device further includes:
[0102] The resolution conversion module is used to obtain the current resolution of the vehicle display data; determine the target resolution of the vehicle display data based on the vehicle hardware; and extract pixels of each frame of the image in proportion to the current resolution and the target resolution.
[0103] In one of the optional embodiments, the above device further includes:
[0104] The image data size setting module is used to determine the target data size corresponding to each frame of the image based on the data size in the vehicle hardware;
[0105] The conversion file generation module 404 is also used to perform format conversion on each frame of the picture to obtain a picture in a target format and with a data size equal to the target data size.
[0106] In one of the optional embodiments, the above device further includes:
[0107] A data packet size setting module is used to determine the data packet size of the data packet corresponding to each frame of the picture;
[0108] The conversion file generation module 404 is also used to fill the last data packet of each frame image by data filling until the last data packet reaches the data packet size when the last data packet does not reach the data packet size.
[0109] In one of the optional embodiments, the above device further includes:
[0110] The editing module is used to receive an editing mode setting instruction, and display a vehicle display data selection box to be converted and a picture quantity display box based on the editing mode setting instruction; receive a vehicle display data selection box selection instruction to be converted through the vehicle display data selection box to be converted; obtain the number of decomposed pictures corresponding to the selected vehicle display data to be converted based on the selection instruction; and display the number of pictures in the picture quantity display box.
[0111] In one of the optional embodiments, the above-mentioned boot file generation module 405 is also specifically used to generate a boot file for the conversion file based on the vehicle hardware requirements and the number of pictures, and the boot file is used to determine the vehicle display data to be displayed based on the number of pictures.
[0112] Each module in the above-mentioned vehicle-mounted display data processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0113] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a method for processing vehicle-mounted display data is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0114] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0115] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining vehicle display data to be converted; decomposing the vehicle display data to be converted into at least one frame of image; performing format conversion on each frame of image to obtain an image in a target format; obtaining a conversion file based on the image in the target format; and generating a boot file of the conversion file based on vehicle hardware requirements, wherein the boot file includes display control information of the conversion file.
[0116] In one embodiment, the processor executes a computer program to perform format conversion on each frame of the image, and before obtaining the image in the target format, it also includes: receiving a format conversion mode setting instruction; determining a conversion mode for each frame of the image based on the format conversion mode, the conversion mode including different grayscale mode compression modes and different grayscale non-compression modes.
[0117] In one embodiment, the format conversion of each frame of the image implemented by the processor when executing the computer program, before obtaining the image in the target format, also includes: obtaining the current resolution of the vehicle display data; determining the target resolution of the vehicle display data based on the vehicle hardware; and extracting pixels of each frame of the image in proportion to the current resolution and the target resolution.
[0118] In one embodiment, before the processor executes a computer program to perform format conversion on each frame of the image to obtain the image in the target format, it also includes: determining the target data size corresponding to each frame of the image based on the data size in the vehicle-mounted hardware; the processor executes a computer program to perform format conversion on each frame of the image to obtain the image in the target format, including: performing format conversion on each frame of the image to obtain the image in the target format with a data size of the target data size.
[0119] In one embodiment, before the processor executes a computer program to perform format conversion on each frame of the image to obtain a picture in a target format, the process also includes: determining the data packet size of the data packet corresponding to each frame of the image; the processor executes a computer program to perform format conversion on each frame of the image to obtain a picture in a target format, including: when the last data packet of each frame of the image does not reach the data packet size, filling the last data packet by data filling until the last data packet reaches the data packet size.
[0120] In one embodiment, when the processor executes the computer program, the following steps are also implemented: receiving an edit mode setting instruction, and displaying a vehicle display data selection box to be converted and a picture quantity display box based on the edit mode setting instruction; receiving a vehicle display data selection box selection instruction to be converted through the vehicle display data selection box to be converted; obtaining the number of decomposed pictures corresponding to the selected vehicle display data to be converted based on the selection instruction; and displaying the number of pictures in the picture quantity display box.
[0121] In one embodiment, the boot file for generating a conversion file based on vehicle hardware requirements implemented by the processor when executing a computer program includes: generating a boot file for generating a conversion file based on vehicle hardware requirements and the number of pictures, the boot file being used to determine the vehicle display data to be displayed based on the number of pictures.
[0122] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining vehicle display data to be converted; decomposing the vehicle display data to be converted into at least one frame of image; performing format conversion on each frame of image to obtain an image in a target format; obtaining a conversion file based on the image in the target format; and generating a boot file for the conversion file based on vehicle hardware requirements, the boot file including display control information of the conversion file.
[0123] In one embodiment, the computer program implemented by the processor when executed performs format conversion on each frame of the image, and before obtaining the image in the target format, it also includes: receiving a format conversion mode setting instruction; determining a conversion mode for each frame of the image based on the format conversion mode, the conversion mode including different grayscale mode compression modes and different grayscale non-compression modes.
[0124] In one embodiment, the computer program implemented by the processor when executed converts the format of each frame of the image before obtaining the image in the target format, and also includes: obtaining the current resolution of the vehicle display data; determining the target resolution of the vehicle display data based on the vehicle hardware; and extracting pixels of each frame of the image in proportion to the current resolution and the target resolution.
[0125] In one embodiment, before the computer program is executed by the processor and the format conversion of each frame of the image is performed to obtain the image in the target format, it also includes: determining the target data size corresponding to each frame of the image based on the data size in the vehicle-mounted hardware; the computer program is executed by the processor and the format conversion of each frame of the image is performed to obtain the image in the target format, including: performing format conversion on each frame of the image to obtain the image in the target format with a data size of the target data size.
[0126] In one embodiment, the computer program implemented when the processor executes the format conversion of each frame of the image to obtain the image in the target format also includes: determining the data packet size of the data packet corresponding to each frame of the image; the computer program implemented when the processor executes the format conversion of each frame of the image to obtain the image in the target format includes: when the last data packet of each frame of the image does not reach the data packet size, filling the last data packet by data filling until the last data packet reaches the data packet size.
[0127] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving an edit mode setting instruction, and displaying a vehicle display data selection box to be converted and a picture quantity display box based on the edit mode setting instruction; receiving a vehicle display data selection box selection instruction to be converted through the vehicle display data selection box to be converted; obtaining the number of decomposed pictures corresponding to the selected vehicle display data to be converted based on the selection instruction; and displaying the number of pictures in the picture quantity display box.
[0128] In one embodiment, the computer program implemented when executed by the processor generates a boot file for a conversion file based on vehicle hardware requirements, including: generating a boot file for a conversion file based on vehicle hardware requirements and the number of pictures, the boot file being used to determine vehicle display data to be displayed based on the number of pictures.
[0129] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the following steps: obtaining vehicle display data to be converted; decomposing the vehicle display data to be converted into at least one frame of image; performing format conversion on each frame of image to obtain an image in a target format; obtaining a conversion file based on the image in the target format; and generating a boot file of the conversion file based on vehicle hardware requirements, the boot file including display control information of the conversion file.
[0130] In one embodiment, the computer program implemented by the processor when executed performs format conversion on each frame of the image, and before obtaining the image in the target format, it also includes: receiving a format conversion mode setting instruction; determining a conversion mode for each frame of the image based on the format conversion mode, the conversion mode including different grayscale mode compression modes and different grayscale non-compression modes.
[0131] In one embodiment, the computer program implemented by the processor when executed converts the format of each frame of the image before obtaining the image in the target format, and also includes: obtaining the current resolution of the vehicle display data; determining the target resolution of the vehicle display data based on the vehicle hardware; and extracting pixels of each frame of the image in proportion to the current resolution and the target resolution.
[0132] In one embodiment, before the computer program is executed by the processor and the format conversion of each frame of the image is performed to obtain the image in the target format, it also includes: determining the target data size corresponding to each frame of the image based on the data size in the vehicle-mounted hardware; the computer program is executed by the processor and the format conversion of each frame of the image is performed to obtain the image in the target format, including: performing format conversion on each frame of the image to obtain the image in the target format with a data size of the target data size.
[0133] In one embodiment, the computer program implemented when the processor executes the format conversion of each frame of the image to obtain the image in the target format also includes: determining the data packet size of the data packet corresponding to each frame of the image; the computer program implemented when the processor executes the format conversion of each frame of the image to obtain the image in the target format includes: when the last data packet of each frame of the image does not reach the data packet size, filling the last data packet by data filling until the last data packet reaches the data packet size.
[0134] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving an edit mode setting instruction, and displaying a vehicle display data selection box to be converted and a picture quantity display box based on the edit mode setting instruction; receiving a vehicle display data selection box selection instruction to be converted through the vehicle display data selection box to be converted; obtaining the number of decomposed pictures corresponding to the selected vehicle display data to be converted based on the selection instruction; and displaying the number of pictures in the picture quantity display box.
[0135] In one embodiment, the computer program implemented when executed by the processor generates a boot file for a conversion file based on vehicle hardware requirements, including: generating a boot file for a conversion file based on vehicle hardware requirements and the number of pictures, the boot file being used to determine vehicle display data to be displayed based on the number of pictures.
[0136] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0138] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A vehicle display data processing method, characterized in that: The method comprises: Obtain the vehicle display data to be converted; Decomposing the vehicle-mounted display data to be converted into at least one frame of picture; Performing format conversion on each frame of the picture to obtain the picture in the target format; Obtaining a conversion file based on the image in the target format; Based on the vehicle hardware requirement, a boot file of the conversion file is generated, wherein the boot file includes display control information of the conversion file.
2. The method according to claim 1, characterized in that Before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes: Receive format conversion mode setting instructions; Determining a conversion mode of each frame of the picture based on the format conversion mode, wherein the conversion mode includes a compression mode with different grayscale modes and a non-compression mode with different grayscale modes; The step of converting the format of each frame of the picture to obtain the picture in a target format includes: The format of each frame of the picture is converted based on the conversion mode to obtain the picture in the target format.
3. The method according to claim 1, characterized in that Before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes: Obtaining the current resolution of the vehicle display data; Determining a target resolution of the in-vehicle display data based on in-vehicle hardware; According to the current resolution and the target resolution, pixel points of each frame of the image are extracted in equal proportion.
4. The method according to claim 1, characterized in that: Before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes: Determine the target data size corresponding to each frame of the picture based on the data size in the vehicle hardware; The step of converting the format of each frame of the picture to obtain the picture in a target format includes: The format of each frame of the picture is converted to obtain the picture in the target format and with a data size equal to the target data size.
5. The method according to claim 1, characterized in that Before converting the format of each frame of the picture to obtain the picture in the target format, the method further includes: Determine the data packet size of the data packet corresponding to each frame of the picture; The step of converting the format of each frame of the picture to obtain the picture in a target format includes: When the last data packet of each frame of the picture does not reach the data packet size, the last data packet is filled by data filling until the last data packet reaches the data packet size.
6. The method according to claim 1, characterized in that The method further comprises: receiving an edit mode setting instruction, and displaying a vehicle display data selection box to be converted and a picture quantity display box based on the edit mode setting instruction; Receiving a selection instruction of the vehicle-mounted display data selection box to be converted through the vehicle-mounted display data selection box to be converted; Based on the selection instruction, obtaining the number of decomposed pictures corresponding to the selected vehicle display data to be converted; The number of pictures is displayed in the picture number display box.
7. The method according to claim 6, characterized in that The step of generating the boot file of the conversion file based on the vehicle hardware requirements includes: Based on the vehicle hardware requirements and the number of pictures, a guide file for the conversion file is generated, and the guide file is used to determine the vehicle display data to be displayed based on the number of pictures.
8. A vehicle-mounted display data processing device, characterized in that: The device comprises: A data acquisition module, used to acquire the vehicle display data to be converted; A decomposition module, used for decomposing the vehicle-mounted display data to be converted into at least one frame of picture; A format conversion module, used to convert the format of each frame of the picture to obtain the picture in a target format; A conversion file generation module, used to obtain a conversion file based on the image in the target format; The boot file generation module is used to generate a boot file of the conversion file based on the vehicle hardware requirements, and the boot file includes display control information of the conversion file.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.