Pixel headlamp control method of vehicle and related device
By using FPGA in vehicle lighting devices for image data segmentation processing, the problem of low display resolution and frame rate in the prior art is solved, and support of multiple display modes and high-quality image display is realized.
Patent Information
- Application Number
- CN202310954540.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2043-07-31
AI Technical Summary
The existing vehicle lighting devices are relatively low in display resolution and frame rate, and it is difficult to meet users' customization needs for dual-light different display mode.
By acquiring custom image and display mode indication information, the rendered image data is converted into RGB image data using FPGA, and segmentation processing is performed to control the vehicle's left and right pixel headlights to display different image data.
Achieve high resolution and high frame rate pixel headlight display, meeting users' needs for multiple display modes, including dual-light integrated mode, dual-light same-display mode and dual-light different-display mode, improving display quality and User experience.
Smart Images

Figure CN119446002A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle lighting devices, and in particular to a vehicle pixel headlight control method and related devices. Background Art
[0002] In the existing technical solutions, the content displayed by the dual-lamp projection is strongly related to the multimedia host and is heavily dependent on the hardware capabilities of the multimedia host. The hardware specifications are severely coupled, resulting in low display resolution and frame rate of the pixel headlights. At the same time, the displayed content also depends on the content supported by the multimedia host, which is difficult to meet user customization needs. Users not only need the content projected and displayed by the left pixel lamp and the right pixel lamp to be spliced together (dual-lamp splicing mode), but more requirements are that the content projected and displayed by the left pixel lamp and the right pixel lamp is different (dual-lamp different display mode). Transmission through the multimedia host can meet the needs of the dual-lamp splicing mode, but it is difficult to meet the needs of the dual-lamp different display mode. Summary of the invention
[0003] In response to the above problems, the present application example provides a vehicle pixel headlight control method and related devices, which can meet the user's needs for multiple display modes.
[0004] To achieve the above-mentioned objectives, in a first aspect, an embodiment of the present application provides a method for controlling pixel headlights of a vehicle, the method comprising: obtaining a custom image and display mode indication information; and controlling the pixel headlights to display image data rendered from the custom image according to the display mode indication information.
[0005] The vehicle's pixel headlights are controlled to display custom images based on the display mode indication information, meeting the user's customized display needs.
[0006] In combination with the first aspect, in a possible embodiment, the pixel headlight includes a first pixel headlight and a second pixel headlight located on the left and right sides of the vehicle.
[0007] In combination with the first aspect, in a possible embodiment, the display mode indication information is used to indicate the dual-light-in-one mode, and the pixel headlights are controlled to display the image data after rendering the custom image according to the display mode indication information, including: converting the rendered image data into RGB image data; segmenting the RGB image data to obtain first image data and second image data; controlling the first pixel headlight to display the first image data, and controlling the second pixel headlight to display the second image data.
[0008] The above-mentioned conversion of the rendered image data into RGB image data and division of the RGB image data into two parts may be implemented by a system on chip (System on Chip, SOC) or by a field programmable gate array (Field Programmable Gate Array, FPGA) in a controller.
[0009] In the embodiment of the present application, by introducing FPGA, the rendered image data is converted into RGB image data, and the RGB image data is segmented to obtain first image data and second image data, thereby improving the accuracy of segmentation and reducing the occurrence of overlapping areas in the first image data and the second image data obtained after segmentation, thereby improving the display quality.
[0010] In combination with the first aspect, in a possible embodiment, the display mode indication information is used to indicate the dual-light display mode, and the pixel headlights are controlled to display the image data after rendering the custom image according to the display mode indication information, including: controlling the first pixel headlight to display the rendered image data, and controlling the second pixel headlight to display the rendered image data.
[0011] In an embodiment of the present application, in the dual-light display mode, the first pixel headlight and the second pixel headlight are directly controlled to display the rendered image data, which saves the stitching and segmentation steps, improves the display speed and display efficiency of the pixel headlights, and because the rendered image data is not segmented, the display quality is improved.
[0012] In combination with the first aspect, in a possible embodiment, the custom image includes a first custom image and a second custom image, the display mode indication information is used to indicate the dual-light display mode, the rendered image data includes a third image data obtained by rendering the first custom image and a fourth image data obtained by rendering the second custom image, and the pixel headlights are controlled to display the image data after rendering the custom images according to the display mode indication information, including: controlling the first pixel headlight to display the third image data; controlling the second pixel headlight to display the fourth image data; wherein the first custom image comes from the first terminal device, and the second custom image comes from the second terminal device.
[0013] In the embodiment of the present application, in the dual-light different display mode, the first custom image and the second custom image are rendered respectively, and the third image data and the fourth image data are displayed respectively through the first pixel headlight and the second pixel headlight, which meets the user's demand for the first pixel headlight and the second pixel headlight to display different image data respectively. In addition, the first custom image and the second custom image come from different terminal devices respectively, which meets the display needs of different users at the same time.
[0014] In combination with the first aspect, in a possible embodiment, the method also includes: obtaining the resolution of the first pixel headlight, the resolution of the second pixel headlight, and the number of pixel bytes of the custom image; determining the display cache and the drawing cache according to the resolution of the first pixel headlight, the resolution of the second pixel headlight, and the number of pixel bytes of the custom image; drawing a third custom image that is a splicing of the first custom image and the second custom image in the drawing cache; and storing the third custom image in the display cache.
[0015] In an embodiment of the present application, by determining the drawing cache and display cache of the custom image, a third custom image is drawn in the drawing cache, and the completed third custom image is stored in the display cache, so that the drawing cache can draw the custom image of the next frame, thereby improving the efficiency of processing custom images, and thus allowing the pixel headlights to display image data with a higher frame rate, thereby improving the display quality.
[0016] In combination with the first aspect, in a possible embodiment, if the driving speed of the vehicle is greater than a first preset threshold, the first pixel headlight and the second pixel headlight are controlled to stop displaying the rendered image data.
[0017] In an embodiment of the present application, if the driving speed of the vehicle is greater than a first preset threshold, the rendered image data is stopped from being displayed, so that the first pixel headlight and the second pixel headlight can play a lighting role, thereby ensuring the driving safety of the vehicle.
[0018] In combination with the first aspect, in a possible embodiment, after the vehicle's driving speed is greater than a first preset threshold, if the vehicle's driving speed is less than a second preset threshold for a first preset time period, the first pixel headlight and the second pixel headlight are controlled to redisplay the rendered image data.
[0019] In an embodiment of the present application, when the vehicle's driving speed is less than the second preset threshold for the first preset time, it can be inferred that the vehicle has stopped driving again. At this time, the first pixel headlight and the second pixel headlight are re-controlled to redisplay the rendered image data, saving the user's operation.
[0020] In combination with the first aspect, in a possible embodiment, after the vehicle's driving speed is less than a second preset threshold for a first preset time, if the custom image sent by the cloud server cannot be obtained after the second preset time, the method also includes: rendering the fifth image data stored locally to obtain the rendered fifth image data; controlling the first pixel headlight and the second pixel headlight to display the rendered fifth image data.
[0021] In an embodiment of the present application, when the custom image sent by the cloud server cannot be obtained after the second preset time period, the fifth image data stored locally is rendered to obtain the rendered fifth image data, and the fifth image data is displayed, thereby enriching the types of images displayed by the pixel headlights and solving the problem that the pixel headlights cannot display image data in scenarios such as no signal.
[0022] In a second aspect, an embodiment of the present application provides a controller for executing a method for controlling pixel headlights of a vehicle, the controller comprising: an acquisition unit for acquiring a custom image and display mode indication information; a display unit for controlling the pixel headlight to display image data rendered from the custom image according to the display mode indication information.
[0023] In a third aspect, an embodiment of the present application provides a controller comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and one or more instructions are suitable for being loaded by the processor and executing part or all of the method of the first aspect.
[0024] In a fourth aspect, an embodiment of the present application provides a vehicle, comprising the controller of the second aspect or the third aspect mentioned above.
[0025] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A schematic diagram of an application scenario of a vehicle pixel headlight control method provided in an embodiment of the present application;
[0028] Figure 2 A schematic flow chart of a method for controlling pixel headlights of a vehicle provided in an embodiment of the present application;
[0029] Figure 3A A schematic diagram of the structure of an existing domain controller provided in an embodiment of the present application;
[0030] Figure 3B A schematic diagram of the structure of a domain controller provided in an embodiment of the present application;
[0031] Figure 4A A schematic diagram of first image data of a dual-light-in-one mode provided in an embodiment of the present application;
[0032] Figure 4B A schematic diagram of second image data of a dual-light-in-one mode provided in an embodiment of the present application;
[0033] Figure 5A A schematic diagram of a third image data provided in an embodiment of the present application;
[0034] Figure 5B A schematic diagram of a fourth image data provided in an embodiment of the present application;
[0035] Figure 6 A schematic diagram of the structure of a controller provided in an embodiment of the present application;
[0036] Figure 7 A schematic diagram of the structure of another controller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0039] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0040] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0041] See also Figure 1 , Figure 1 The present invention provides a schematic diagram of an application scenario of a method for controlling pixel headlights of a vehicle provided in an embodiment of the present application. The application scenario 100 includes a vehicle 101, a cloud server 102, and a terminal device 103. The vehicle 101 includes a controller 1011 and a pixel headlight optical module 1012. The terminal device 103 connects to the cloud server 102 and sends instructions to the cloud server 102, so that the cloud server 102 sends a custom image and display mode indication information to the controller 1011 of the vehicle 101. The terminal device 103 can also bypass the cloud server 102 and send a custom image and display mode indication information to the controller 1011 connected to the vehicle 101. The controller 1011 generates corresponding image data according to the custom image and display mode indication information, and controls the pixel headlight optical module 1012 to display the corresponding image data.
[0042] The controller here mainly includes functions such as processing images and controlling the pixel headlight optical module to display processed images, and can be specifically a domain controller (Domain Controller, DC), a microcontroller unit (Microcontroller Unit; MCU) and a central processing unit (Central Processing Unit, CPU). The terminal device here is an intelligent terminal with wireless transceiver function, which can be a smart phone, a tablet computer, a laptop computer and other devices. The cloud server here includes at least one multimedia system, which has functions such as multimedia material uploading, multimedia editing, multimedia generation, multimedia distribution, and device management. Users can upload customized pictures, videos, voices and other materials through the application APP or applet of the terminal device 103, and can edit and combine them into the style the user wants through the application APP or applet. The pixel headlight optical module 1012 here includes at least one pixel headlight, and the number of pixel headlights is not limited here. Each pixel headlight is composed of multiple light-emitting units, which can emit light of different shapes, brightness, and lighting angles according to the actual situation of the road surface. In addition, it also supports multiple colors to achieve an effect similar to image projection.
[0043] It can be seen that the controller controls the first pixel headlight and the second pixel headlight of the vehicle to display the custom image sent by the cloud server in different display modes according to the display mode indication information sent by the cloud server. The display mode indication information sent by the cloud server meets the user's demand for customized display content; the controller instructs the rendering of the display content of the first pixel headlight and the second pixel headlight according to the display mode indication information, thereby meeting the user's demand for multiple display modes.
[0044] See also Figure 2 , Figure 2 A schematic diagram of a process flow of a vehicle pixel headlight control method provided in an embodiment of the present application can be based on Figure 1 The application scenario shown is implemented as follows Figure 2 As shown, steps S201-S202 are included:
[0045] S201: Obtain custom image and display mode indication information.
[0046] Specifically, the cloud server can generate a custom image and display mode indication information according to the instructions of the terminal device and send it to the controller. The custom image here can be a preset image stored in the cloud server, or it can be an image included in the instructions of the terminal device. The cloud server edits these images (splicing, editing, soundtracking, etc.) to obtain a custom image. In addition, in the absence of a cloud server, the custom image and display mode indication information can also be sent directly to the controller through the terminal device.
[0047] The custom image may be a single-frame picture or a video with sound, etc., which is not limited here.
[0048] S202: Controlling the pixel headlights to display image data after rendering the custom image according to the display mode indication information.
[0049] Specifically, the controller obtains rendered image data according to the custom image and display mode information. If the display mode indication information here includes dual-light integration mode, dual-light different display mode, dual-light same display mode, etc. The dual-light integration mode is that the first pixel headlight and the second pixel headlight are different parts of the same image. The dual-light different display mode is that the first pixel headlight and the second pixel headlight display different images respectively. The dual-light same display mode is that the first pixel headlight and the second pixel headlight display the same image at the same time.
[0050] The controller renders the acquired custom image to realize functions such as video playback, graphics rendering, image stitching, layer overlay, etc. Further, the controller renders the custom image into rendered image data whose image format meets the display requirements of the first pixel headlight and the second pixel headlight. The image format here can be determined by resolution (such as 720p, 1080p, etc.), aspect ratio (such as 4:3, 16:9, etc.), display direction (horizontal and vertical, etc.).
[0051] In a possible embodiment, the pixel headlight includes a first pixel headlight and a second pixel headlight located on the left and right sides of the vehicle.
[0052] Specifically, the first pixel headlight and the second pixel headlight here may be the left and right headlights of the vehicle, and further, may also include pixel headlights installed at other positions on the vehicle.
[0053] In a possible embodiment, the display mode indication information is used to indicate the dual-light-in-one mode, and the controller controls the pixel headlights to display the image data after rendering the custom image according to the display mode indication information, including: converting the rendered image data into RGB image data; the controller segments the RGB image data to obtain first image data and second image data; the controller controls the first pixel headlight to display the first image data, and controls the second pixel headlight to display the second image data.
[0054] Specifically, Figure 3A A schematic diagram of the structure of an existing domain controller provided in an embodiment of the present application. In the domain controller of the prior art, the image data is mainly rendered, segmented, and processed through the system on chip (SOC), but the processing capability of the SOC is limited. Not only is the displayed content limited, it cannot meet the user's demand for customized pixel lamp projection display content, but also the embodiment of the present application summarizes the requirement for the SOC to support at least two video outputs. With the access of more and more display screens and display devices, the requirements for SOC are getting higher and higher, especially the requirements for SOC display capabilities are getting higher and higher. Generally, SOCs can often meet the needs of multi-screen display. Please refer to Figure 3B , Figure 3BA schematic diagram of the structure of a domain controller provided in an embodiment of the present application, wherein the domain controller is used to execute the steps that the controller needs to execute in the embodiment of the present application, wherein the domain controller includes a microprocessor (Microcontroller Unit, MCU), a SOC, and a field programmable gate array FPGA. The MCU is the control core of the domain controller, responsible for coordinating the SOC, FPGA, etc. The SOC is used to implement specific rendering steps and render the custom image into rendered image data. The FPGA is responsible for segmenting the rendered image data to obtain the first image data and the second image data. The MCU and the SOC are respectively connected to the CAN bus, and the SOC can receive the custom image through the CAN and MCU, and can also receive the custom image directly from the cloud server through the wireless network. The pixel headlight optical module is used to display the first image data and the second image data. The SOC, FPGA and the pixel headlight optical module can be directly connected through the high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIE) or the mobile industry processor interface (Mobile Industry Processor Interface, MIPI), low voltage differential signal (Low Voltage Differential Signaling, LVDS) and other protocols.
[0055] When the controller renders the custom image, a complete rendered image data can be obtained. If the number of pixel headlights is two or more, the complete rendered image data needs to be segmented. At this time, the FPGA converts the rendered image data into an RGB image, which is a data format of an image. The FPGA segments the RGB image to obtain the first image data and the second image data, or even multiple image data. The image segmentation method can be vertical segmentation or horizontal segmentation, which can be determined according to the display direction of the image data or specified by the terminal device.
[0056] Exemplarily, the controller may vertically split the RGB image by default to obtain the first image data and the second image data, and then control the first pixel headlight and the second pixel headlight to display the first image data and the second image data respectively. The target user can change the segmentation mode to horizontal segmentation through the terminal device. By segmenting the RGB image through FPGA, it is possible to obtain first image data and second image data without overlap, thereby avoiding the problem of overlap in the first image data and the second image data caused by SOC segmentation, or the problem of image data loss after segmentation. The image data loss here refers to the fact that the middle part of the image is neither segmented into the first image data nor into the second image data due to inaccurate segmentation, resulting in the first image data and the second image data being unable to be completely restored to the RGB image after being re-stitched together.
[0057] In one example, Figure 4A shows the first image data displayed by the first pixel headlight, Figure 4B The second image data displayed by the first pixel headlight is shown. Figure 4A and Figure 4B It can be seen that Figure 4A and Figure 4B These are two incomplete images obtained by segmenting the same image. The first pixel headlight and the second pixel headlight of the vehicle are displayed simultaneously. Figure 4A and Figure 4B When the pixel headlight is displayed, the user can see a complete image, where the first pixel headlight and the second pixel headlight usually include the pixel headlight and the right pixel headlight of the vehicle.
[0058] In an embodiment of the present application, by introducing FPGA in the controller, the rendered image data is converted into RGB image data, and the RGB image data is segmented to obtain first image data and second image data, thereby improving the accuracy of segmentation and reducing the occurrence of overlapping areas in the first image data and the second image data obtained after segmentation, thereby improving the display quality.
[0059] In a possible embodiment, the display mode indication information is used to indicate a dual-light display mode, and the controller controls the pixel headlights to display the image data after rendering the custom image according to the display mode indication information, including: the controller controls the first pixel headlight to display the rendered image data, and controls the second pixel headlight to display the rendered image data.
[0060] Specifically, if the display mode indication information is used to indicate the dual-light display mode, then there is no need to segment the rendered image with the FPGA in the controller. It is only necessary to directly control the first pixel headlight and the second pixel headlight to display the rendered image data.
[0061] Optionally, if the rendered image data is not a custom image obtained, but a preset image stored locally in the vehicle, such as a background image filled with a regular repeating pattern, a wallpaper image, etc., the above image will not be segmented and will not affect the final imaging effect, and the dual-light simultaneous display mode is applicable.
[0062] In an embodiment of the present application, in the dual-light display mode, the controller directly controls the first pixel headlight and the second pixel headlight to display the rendered image data, saving the splicing and segmentation steps, improving the display speed and display efficiency of the pixel headlights, and because the rendered image data is not segmented, the display quality is improved.
[0063] In a possible embodiment, the custom image includes a first custom image and a second custom image, the display mode indication information is used to indicate the dual-light display mode, the rendered image data includes a third image data obtained by rendering the first custom image and a fourth image data obtained by rendering the second custom image, and the controller controls the pixel headlights to display the image data rendered from the custom images according to the display mode indication information, including: the controller controls the first pixel headlight to display the third image data; the controller controls the second pixel headlight to display the fourth image data; wherein the first custom image comes from the first terminal device, and the second custom image comes from the second terminal device.
[0064] Specifically, different users can display different images through the first pixel headlight and the second pixel headlight, respectively. For example, the controller obtains the first custom image from the first terminal device and the second custom image from the second terminal device, and the display mode indication information is used to indicate the dual-light abnormal display mode. The controller renders the first custom image and the second custom image through the SOC, respectively, to obtain the third image data and the fourth image data, and controls the first pixel headlight to display the third image data, and controls the second pixel headlight to display the fourth image data. Furthermore, due to the control logic of the controller, the FPGA will segment the custom image before controlling the pixel headlight display, so the first custom image and the second custom image cannot be directly rendered, and then directly control the first pixel headlight and the second pixel headlight to display. Therefore, when the display mode indication information is used to indicate the dual-light abnormal display mode, the first custom image and the second custom image need to be spliced and rendered by the SOC, and finally sent to the FPGA for segmentation so that the first pixel headlight and the second pixel headlight display the corresponding image data.
[0065] In one example, Figure 5A The third image data displayed by the first pixel headlight is shown. Figure 5B The fourth image data displayed by the second pixel headlight is shown.
[0066] In the embodiment of the present application, in the dual-light different display mode, the controller renders the first custom image and the second custom image respectively, and displays the third image data and the fourth image data respectively through the first pixel headlight and the second pixel headlight, meeting the user's demand for the first pixel headlight and the second pixel headlight to display different image data respectively. In addition, the first custom image and the second custom image come from different terminal devices respectively, meeting the display needs of different users at the same time.
[0067] In a possible embodiment, the display mode indication information includes first display mode indication information and second display mode indication information, and the method further includes: the controller controls the first pixel headlight to display the third image data according to the first display mode information; the controller controls the second pixel headlight to display the fourth image data according to the second display mode information; if the display mode indicated by the first display mode indication information and the display mode indicated by the second display mode indication information are different, the first pixel headlight is controlled to display the third image data, and the second pixel headlight is controlled to display the fourth image data according to the first display mode indication information. The first display mode indication information comes from the first terminal device, the second display mode indication information comes from the second terminal device, and the priority of the first terminal device is higher than the priority of the second terminal device.
[0068] Specifically, the controller obtains the custom image and display mode indication information from the first terminal device,
[0069] When the custom image includes the first custom image and the second custom image, the display mode defaults to the dual-light differential display mode, and the first custom image and the second custom image are displayed by the first pixel headlight and the second pixel headlight, respectively. In addition, the user can also adjust the specific display mode through the first terminal device and the second terminal device. Exemplarily, the user can send the first display mode indication information to the controller through the first terminal device to control the first pixel headlight to adjust from the longitudinal display mode to the transverse display mode. When the first display mode indication information and the second display mode indication information conflict, for example, the first display mode indication indicates that the image data is displayed through the dual-light differential display mode. The second display mode indication indicates that the image data is displayed through the dual-light integrated mode. At this time, since the first terminal device has a higher priority, the first pixel headlight and the second pixel headlight are still controlled by the dual-light differential display mode to display the image data rendered by the first custom image and the second custom image, respectively. In addition, the first terminal device has the highest command priority. When the vehicle needs to start driving, the first terminal device can turn off the image display function by sending a command. After the image display function is turned off, the second terminal cannot send the custom image and the second display mode indication information to the controller.
[0070] In the embodiment of the present application, the first pixel headlight and the second pixel headlight are instructed to change the display mode through the first display mode indication information and the second display mode indication information, thereby improving the operability of the image data displayed by the first pixel headlight and the second pixel headlight. When the first display mode indication information and the second display mode indication information conflict, the first pixel headlight and the second pixel headlight are controlled according to the first display mode indication information with higher priority, thereby ensuring the driving safety of the vehicle in scenarios such as when the vehicle needs to drive.
[0071] In a possible embodiment, the method also includes: the controller obtains the resolution of the first pixel headlight, the resolution of the second pixel headlight and the number of pixel bytes of the custom image; the controller determines the display cache and the drawing cache according to the resolution of the first pixel headlight, the resolution of the second pixel headlight and the number of pixel bytes of the custom image; the controller draws a third custom image that is a splicing of the first custom image and the second custom image in the drawing cache; and the controller stores the third custom image in the display cache.
[0072] Specifically, the SOC of the controller needs to determine the size of the display cache and the drawing cache when rendering a custom image. And draw the third custom image obtained by splicing the first custom image and the second custom image in the drawing cache. After the third custom image is drawn, the SOC will store the third custom image in the display cache, send it to the FPGA after rendering, and draw the next frame of the custom image in the drawing cache.
[0073] Exemplarily, the resolution of the pixel headlight here is used to calculate the number of pixels of the pixel headlight, such as 1920x1080, 1600x900, etc. The display cache and drawing cache are calculated in the same way, which is: the sum of the number of pixel bytes of the custom image multiplied by the number of pixels of the first pixel headlight and the number of pixel bytes of the custom image multiplied by the number of pixels of the second pixel headlight. The display cache and drawing cache are the same size. The number of pixel bytes of the custom image here is determined by the data format of the custom image. If the data format of the custom image is RGB, the corresponding number of pixel bytes is 3; if the data format of the custom image is ARGB, the corresponding number of pixel bytes is 4.
[0074] In an embodiment of the present application, the drawing cache and display cache of the custom image are determined by the controller. After the custom image is rendered in the drawing cache, the rendered image data is stored in the display cache so that the drawing cache can render the next frame of the image, thereby improving the efficiency of the controller in processing custom images, thereby enabling the pixel headlights to display image data with a higher frame rate, thereby improving the display quality of the image data.
[0075] In a possible embodiment, if the driving speed of the vehicle is greater than a first preset threshold, the controller controls the first pixel headlight and the second pixel headlight to stop displaying the rendered image data.
[0076] Specifically, when the pixel headlights of a vehicle display image data, if the vehicle suddenly starts to move, it is necessary to pause the display of image data so that the pixel headlights can achieve normal lighting functions. The first preset threshold here can specifically be 0km / h, 5km / h, etc. When the pixel headlights are used to display image data, it is obviously unable to normally meet the lighting needs of the vehicle when it is driving. By setting the first preset threshold, when the vehicle's driving speed exceeds the first preset threshold, the controller can judge that the vehicle has entered a driving state and stop displaying the rendered image data, so that the pixel headlights can normally achieve lighting functions, and further stop receiving custom images and display mode indication information.
[0077] In an embodiment of the present application, if the driving speed of the vehicle is greater than a first preset threshold, the controller stops displaying the rendered image data so that the first pixel headlight and the second pixel headlight can play a lighting role, thereby ensuring the driving safety of the vehicle.
[0078] In a possible embodiment, after the vehicle's driving speed is greater than a first preset threshold, if the duration for which the vehicle's driving speed is less than a second preset threshold reaches a first preset duration, the controller controls the first pixel headlight and the second pixel headlight to redisplay the rendered image data according to the display mode indication information.
[0079] Specifically, the second preset threshold here is used to determine whether the vehicle stops driving or decelerates to stop driving, which can be greater than the first preset threshold or less than the first preset threshold, and can be specifically 0km / h, 5km / h, etc. If the driving speed is greater than the first preset threshold when the controller controls the pixel headlights to display the rendered image data, the controller temporarily stops controlling the pixel headlights to display the rendered image data. When the driving speed of the vehicle is less than the second preset duration, and the duration reaches the first preset duration, the first pixel headlight and the second pixel headlight are controlled again to display the rendered image data. Since the vehicle is suddenly started when displaying the rendered image data, the above situation may occur in scenarios where the vehicle needs to move a short distance, such as temporarily changing the parking position, temporarily moving the vehicle, etc., so the controller determines that the vehicle stops driving or decelerates to stop driving through the second preset threshold and the first preset duration.
[0080] Exemplarily, if the controller stops controlling the first pixel headlight and the second pixel headlight to display the rendered image data according to the stop display instruction, after the vehicle's driving speed is greater than the first preset threshold, if the duration for which the vehicle's driving speed is less than the second preset threshold reaches the first preset duration, there is no need to redisplay the rendered image data. The stop display instruction here can be sent according to the terminal device or sent by the vehicle. Since the stop display instruction is sent by the target user, in this scenario, the vehicle is more likely to need to travel a long distance, and the duration for which the driving speed is less than the second preset threshold reaches the first preset duration may be due to waiting for a red light. Therefore, considering the driving safety of the vehicle, the rendered image data cannot be redisplayed at this time.
[0081] In an embodiment of the present application, when the vehicle's driving speed is less than the second preset threshold for the first preset time, the controller can infer that the vehicle has stopped driving again. At this time, the first pixel headlight and the second pixel headlight are re-controlled to redisplay the rendered image data, saving the user's operation.
[0082] In a possible embodiment, when the custom image cannot be obtained after the second preset time period, the controller renders the fifth image data stored locally to obtain the rendered fifth image data; the controller controls the first pixel headlight and the second pixel headlight to display the rendered fifth image data.
[0083] Specifically, the controller may be unable to obtain the custom image sent by the cloud server. For example, if the custom image sent by the cloud server is of video type, the controller may be unable to continue to obtain video frames after the video is played; or the vehicle enters an area with poor signal and cannot continue to obtain custom images due to the inability to communicate with the server. At this time, the fifth image data stored locally can be rendered, and the first pixel headlight and the second pixel headlight can be controlled to display the rendered fifth image data.
[0084] In an embodiment of the present application, when the controller is unable to obtain the custom image sent by the cloud server after the second preset time period, the fifth image data stored locally is rendered to obtain the rendered fifth image data, and the fifth image data is displayed, thereby enriching the types of images displayed by the pixel headlights and solving the problem that the pixel headlights cannot display image data in scenarios such as no signal.
[0085] By implementing the method in the above embodiment, it can be seen that the controller renders the display content of the first pixel headlight and the second pixel headlight according to the display mode indication information, thereby realizing multiple display modes of image data, displaying the custom image sent by the cloud server in different display modes, and meeting the user's customized display content needs. In the dual-light integration mode, the accuracy of segmentation is improved, thereby improving the image quality of the final display content. In the dual-light same display mode, the display speed and display efficiency of the pixel headlight are improved, so that image data with higher picture quality can be displayed, and the image quality of the displayed image data is improved. In the dual-light different display mode, the user's demand for the first pixel headlight and the second pixel headlight to display different image data respectively is solved. The controller determines the drawing cache and display cache of the custom image, thereby improving the efficiency of the controller in processing the custom image. The display data is paused when the vehicle is driving, and it is redisplayed after the form stops, which ensures the driving safety of the vehicle and saves the user's operation. Displaying local image data when the custom image cannot be received enriches the types of images displayed by the pixel headlight, and solves the problem that the controller cannot receive the custom image sent by the cloud server in scenes such as no signal, thereby causing the pixel headlight to be unable to display image data normally.
[0086] Based on the description of the above configuration method embodiment, the present application further provides a controller 600, which may be a computer program (including program code) running in a terminal. The controller 600 may execute Figure 2 See the method shown in Figure 6 , Figure 6 A schematic diagram of the structure of a controller provided in an embodiment of the present application includes:
[0087] The acquisition unit 601 is used to acquire the custom image and display mode indication information through the controller.
[0088] Display unit 602: used to control the pixel headlight display to display image data after rendering the custom image according to the display mode indication information through the controller.
[0089] In a possible embodiment, the pixel headlight includes a first pixel headlight and a second pixel headlight located on the left and right sides of the vehicle.
[0090] In a possible embodiment, the controller also includes a rendering unit 603, and the display mode indication information is used to indicate the dual-light-in-one mode. The controller controls the pixel headlights to display the image data after rendering the custom image according to the display mode indication information. The rendering unit 603 and the display unit 602 are also specifically used to: convert the rendered image data into RGB image data; the controller segments the RGB image data to obtain first image data and second image data; the controller controls the first pixel headlight to display the first image data, and controls the second pixel headlight to display the second image data.
[0091] In a possible embodiment, the display mode indication information is used to indicate the dual-light display mode, and the controller controls the pixel headlights to display the image data after rendering the custom image according to the display mode indication information. The rendering unit 603 and the display unit 602 are also specifically used for: the controller controls the first pixel headlight to display the rendered image data, and controls the second pixel headlight to display the rendered image data.
[0092] In a possible embodiment, the custom image includes a first custom image and a second custom image, the display mode indication information is used to indicate the dual-light display mode, the rendered image data includes a third image data obtained by rendering the first custom image and a fourth image data obtained by rendering the second custom image, and the controller controls the pixel headlights to display the image data after rendering the custom images according to the display mode indication information. The display unit 602 is also specifically used for: the controller controls the first pixel headlight to display the third image data; the controller controls the second pixel headlight to display the fourth image data; wherein the first custom image comes from the first terminal device, and the second custom image comes from the second terminal device.
[0093] In a possible embodiment, the rendering unit 603 is also specifically used for: the controller obtains the resolution of the first pixel headlight, the resolution of the second pixel headlight and the number of pixel bytes of the custom image; the controller determines the display cache and the drawing cache according to the resolution of the first pixel headlight, the resolution of the second pixel headlight and the number of pixel bytes of the custom image; the controller draws a third custom image that is a splicing of the first custom image and the second custom image in the drawing cache; the controller stores the third custom image in the display cache.
[0094] In a possible embodiment, if the driving speed of the vehicle is greater than a first preset threshold, the rendering unit 603 is further used for: the controller controls the first pixel headlight and the second pixel headlight to stop displaying the rendered image data.
[0095] In a possible embodiment, after the vehicle's driving speed is greater than a first preset threshold, if the duration for which the vehicle's driving speed is less than a second preset threshold reaches a first preset duration, the rendering unit 603 is also used to: control the first pixel headlight and the second pixel headlight to redisplay the rendered image data through the controller according to the display mode indication information.
[0096] In a possible embodiment, when the custom image cannot be obtained after the second preset time period, the rendering unit 603 is also used for: the controller renders the fifth image data stored locally to obtain the rendered fifth image data; the controller controls the first pixel headlight and the second pixel headlight to display the rendered fifth image data.
[0097] Based on the description of the above method embodiment and device embodiment, please refer to Figure 7 , Figure 7 FIG. 7 is a schematic diagram of the structure of another controller 700 provided in an embodiment of the present application. The controller 700 described in this embodiment is as follows: Figure 7 As shown, the controller 700 includes a processor 701, a memory 702, a communication interface 703, and one or more programs. The one or more programs are stored in the memory in the form of application code and are configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:
[0098] The controller obtains the custom image and display mode indication information; the controller renders the custom image to obtain rendered image data; the controller controls the pixel headlights to display the rendered image data of the custom image according to the display mode indication information.
[0099] In a possible embodiment, the pixel headlight includes a first pixel headlight and a second pixel headlight located on the left and right sides of the vehicle.
[0100] In a possible embodiment, the display mode indication information is used to indicate the dual-light-in-one mode, and the controller controls the pixel headlights to display the image data after rendering the custom image according to the display mode indication information, including: converting the rendered image data into RGB image data; the controller segments the RGB image data to obtain first image data and second image data; the controller controls the first pixel headlight to display the first image data, and controls the second pixel headlight to display the second image data.
[0101] In a possible embodiment, the display mode indication information is used to indicate a dual-light display mode, and the controller controls the pixel headlights to display the image data after rendering the custom image according to the display mode indication information, including: the controller controls the first pixel headlight to display the rendered image data, and controls the second pixel headlight to display the rendered image data.
[0102] In a possible embodiment, the custom image includes a first custom image and a second custom image, the display mode indication information is used to indicate the dual-light display mode, the rendered image data includes a third image data obtained by rendering the first custom image and a fourth image data obtained by rendering the second custom image, and the controller controls the pixel headlights to display the image data rendered from the custom images according to the display mode indication information, including: the controller controls the first pixel headlight to display the third image data; the controller controls the second pixel headlight to display the fourth image data; wherein the first custom image comes from the first terminal device, and the second custom image comes from the second terminal device.
[0103] In a possible embodiment, the method also includes: the controller obtains the resolution of the first pixel headlight, the resolution of the second pixel headlight and the number of pixel bytes of the custom image; the controller determines the display cache and the drawing cache according to the resolution of the first pixel headlight, the resolution of the second pixel headlight and the number of pixel bytes of the custom image; the controller draws a third custom image that is a splicing of the first custom image and the second custom image in the drawing cache; and the controller stores the third custom image in the display cache.
[0104] In a possible embodiment, if the driving speed of the vehicle is greater than a first preset threshold, the controller controls the first pixel headlight and the second pixel headlight to stop displaying the rendered image data.
[0105] In a possible embodiment, after the vehicle's driving speed is greater than a first preset threshold, if the duration for which the vehicle's driving speed is less than a second preset threshold reaches a first preset duration, the controller controls the first pixel headlight and the second pixel headlight to redisplay the rendered image data according to the display mode indication information.
[0106] In a possible embodiment, when the custom image cannot be obtained after the second preset time period, the controller renders the fifth image data stored locally to obtain the rendered fifth image data; the controller controls the first pixel headlight and the second pixel headlight to display the rendered fifth image data.
[0107] Exemplarily, the controller may include, but is not limited to, a processor, a memory, a communication interface, and one or more programs, and may also include a multimedia module, a Bluetooth module, a memory, a power supply, an application client module, etc. Those skilled in the art will appreciate that the schematic diagram is merely an example of a controller and does not constitute a limitation on the controller, and may include more or fewer components than shown in the diagram, or combine certain components, or different components.
[0108] The embodiment of the present application also provides a computer storage medium (Memory), which is a memory device in an information processing device, an information sending device, or an information receiving device, for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the terminal and the extended storage medium supported by the terminal. The computer storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-volatile Memory), such as at least one disk memory; optionally, it can also be at least one computer storage medium located away from the aforementioned processor. In one embodiment, the processor can load and execute one or more instructions stored in the computer storage medium to implement the corresponding steps of the application scenario schematic diagram of the above-mentioned vehicle pixel headlight control method.
[0109] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for controlling pixel headlights of a vehicle, characterized in that: The method comprises: Get custom image and display mode indication information; The pixel headlight is controlled to display image data after rendering the custom image according to the display mode indication information.
2. The method according to claim 1, characterized in that The pixel headlights include a first pixel headlight and a second pixel headlight located on the left and right sides of the vehicle.
3. The method according to claim 2, characterized in that The display mode indication information is used to indicate the dual-light-in-one mode, and the controlling the pixel headlight to display the image data rendered by the custom image according to the display mode indication information includes: Converting the rendered image data into RGB image data; Segmenting the RGB image data to obtain first image data and second image data; The first pixel headlight is controlled to display the first image data, and the second pixel headlight is controlled to display the second image data.
4. The method according to claim 2, characterized in that: The display mode indication information is used to indicate a dual-headlight simultaneous display mode, and the controlling the pixel headlight to display image data rendered from the custom image according to the display mode indication information includes: The first pixel headlight is controlled to display the rendered image data, and the second pixel headlight is controlled to display the rendered image data.
5. The method according to claim 2, characterized in that: The custom image includes a first custom image and a second custom image, the display mode indication information is used to indicate a dual-light different display mode, the rendered image data includes a third image data obtained by rendering the first custom image and a fourth image data obtained by rendering the second custom image, and controlling the pixel headlight to display the image data rendered from the custom image according to the display mode indication information includes: Controlling the first pixel headlight to display the third image data; controlling the second pixel headlight to display the fourth image data; The first customized image comes from a first terminal device, and the second customized image comes from a second terminal device.
6. The method according to claim 5, characterized in that The method further comprises: Obtaining the resolution of the first pixel headlight, the resolution of the second pixel headlight, and the number of pixel bytes of the custom image; Determine a display cache and a drawing cache according to a resolution of the first pixel headlight, a resolution of the second pixel headlight, and a number of pixel bytes of the custom image; Drawing a third custom image obtained by splicing the first custom image and the second custom image in the drawing buffer; The third customized image is stored in the display buffer.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: If the driving speed of the vehicle is greater than a first preset threshold, the first pixel headlight and the second pixel headlight are controlled to stop displaying the rendered image data.
8. The method according to claim 7, characterized in that The method further comprises: If the duration during which the driving speed of the vehicle is less than the second preset threshold reaches the first preset duration, the first pixel headlight and the second pixel headlight are controlled to redisplay the rendered image data according to the display mode indication information.
9. The method according to claim 8, characterized in that The method further comprises: When the custom image cannot be obtained after the second preset time period, rendering the fifth image data stored locally to obtain the rendered fifth image data; The first pixel headlight and the second pixel headlight are controlled to display the rendered fifth image data.
10. A controller, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 9.
11. A vehicle, characterized in that: Comprising the controller as claimed in claim 10.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method for splicing and fusing image in multi-projection display system
CN102881006A
Automobile virtual instrument emergency processing system and method
CN114132175A
Vehicle appearance real-time rendering method and device based on v2x and vehicle
CN114627449A
Integrated light controller and automobile
CN116001677A
Apparatus and method for refresh process when displaying images on LED panel
CN116114008A
Cited By
Double-lamp fusion image generation method and system for vehicle headlamp projection
CN120807316A
A method and system for generating a dual-lamp fusion image projected by a vehicle headlamp
CN120807316B