Data projection method, device, storage medium and vehicle
By collecting and analyzing real-life images of the environment in front of the vehicle in real time, and dynamically adjusting the projection color to maintain high contrast, it solves the problem of AR-HUD technology's unclear information under different light and real-scene changes, and improves driving safety.
Patent Information
- Application Number
- CN202210633105.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-06
AI Technical Summary
Existing AR-HUD technology cannot always display projected information clearly during the day and night, when there is a large difference in light levels between backlighting and backlighting, and when the real scene outside the car changes.
The camera collects the real-life image of the environment in front of the vehicle, obtains the area information of the elements to be projected, calculates the color information of the image area, determines the projection color to maintain high contrast with the real-scene background, and adjusts the projection color under different lighting conditions to ensure information Always clearly visible on the windshield.
It achieves a high contrast between the projected information and the real scene outside the car under different light and real scene changes, ensuring that the driver can clearly identify navigation, vehicle speed and other information, improving driving safety and friendliness.
Smart Images

Figure CN115118951B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular, to a data projection method, device, storage medium and vehicle. Background Art
[0002] AR-HUD (Augmented Reality Head Up Display) technology projects navigation information, vehicle speed information, etc. onto a transparent front windshield, allowing the driver to see the above information at a glance without having to frequently look down at the dashboard and navigation map. However, the light levels during the day and night, backlight and backlight vary greatly, and the real scene outside the car also changes constantly during driving. How to always clearly display the above information on the windshield has become a difficult problem for current AR-HUD technology. Summary of the invention
[0003] The purpose of the present disclosure is to provide a data projection method, device, storage medium and vehicle to solve the problem that the prior art cannot always clearly display the projection information on the windshield.
[0004] In order to achieve the above objectives, in a first aspect, the present disclosure provides a data projection method, comprising:
[0005] Acquire a real-life image of the environment in front of the vehicle captured by a camera;
[0006] Acquire at least one element to be projected and area information of each element to be projected on the real scene image;
[0007] According to the area information of each element to be projected, determine the image area corresponding to each area information from the real scene image, and calculate the color information of each image area;
[0008] Determine the projection color of the corresponding element to be projected according to the color information of each image area; wherein the color contrast between the projection color and the color information is greater than a preset contrast;
[0009] Each of the elements to be projected is projected onto a windshield of the vehicle according to the projection color of each of the elements to be projected.
[0010] Optionally, the method further includes: obtaining the current light intensity of the environment in which the vehicle is located collected by the light intensity sensor; and determining the projection color of the corresponding element to be projected according to the color information of each image area, including:
[0011] For each image area, based on the target light intensity range of the current light intensity and the target color range of the color information of the image area, the projection color corresponding to the target light intensity range and the target color range is determined from a color mapping table; wherein the color mapping table includes projection colors corresponding to different light intensity ranges and different color ranges.
[0012] Optionally, calculating the color information of each image area includes:
[0013] For each image region, the average color of the image region is calculated according to the pixel value of each pixel in the image region as the color information of the image region.
[0014] Optionally, the average color of the image area is represented by the average brightness of the image area in three color channels; and determining the projection color of the corresponding element to be projected according to the color information of each image area includes:
[0015] Determine a plurality of cut cubes obtained by cutting a color cube, wherein the color cube is a cube formed according to brightness ranges of three color channels;
[0016] Determine a corresponding target cut cube from the multiple cut cubes according to the average brightness of the image area on the three color channels;
[0017] According to the target cut cube corresponding to the image area, a projection color corresponding to the target cut cube is determined from a color mapping table; wherein the color mapping table includes projection colors corresponding to color ranges represented by different cut cubes.
[0018] Optionally, the at least one element to be projected includes an element generated based on at least one of identification information of the road element, navigation information, vehicle body operation information and multimedia information.
[0019] In a second aspect, the present disclosure provides a data projection device, comprising:
[0020] A real-scene image acquisition module is used to acquire a real-scene image of the environment in front of the vehicle captured by a camera;
[0021] A projection element determination module, used to obtain at least one element to be projected and area information of each element to be projected on the real scene image;
[0022] A background color calculation module, used to determine the image area corresponding to each area information from the real scene image according to the area information of each element to be projected, and calculate the color information of each image area;
[0023] A projection color determination module, used to determine the projection color of the corresponding element to be projected according to the color information of each image area; wherein the color contrast between the projection color and the color information is greater than a preset contrast;
[0024] The projection module is used to project each of the elements to be projected onto the windshield of the vehicle according to the projection color of each of the elements to be projected.
[0025] Optionally, the device further comprises: a light intensity acquisition module, used to acquire the current light intensity of the environment where the vehicle is located collected by the light intensity sensor;
[0026] The projection color determination module is used to determine, for each image area, the projection color corresponding to the target light intensity range and the target color range from a color mapping table according to the target light intensity range of the current light intensity and the target color range of the color information of the image area; wherein the color mapping table includes projection colors corresponding to different light intensity ranges and different color ranges.
[0027] In a third aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0028] In a fourth aspect, the present disclosure provides a vehicle, comprising:
[0029] A camera, used to collect real-life images of the environment in front of the vehicle;
[0030] An optical machine, used for projecting each element to be projected onto a windshield of a vehicle;
[0031] A processor is used to execute a computer program in a memory to implement the steps of the method described in the first aspect.
[0032] Optionally, it also includes: a light intensity sensor, which is used to collect the current light intensity of the environment where the vehicle is located.
[0033] In the above scheme, a camera is used to capture a real-life image of the environment in front of the vehicle, and the color information of the area in the real-life image that serves as the projection background of the element to be projected is determined. The projection color of the corresponding element to be projected is determined based on the color information of the area, so that the projection color of each element to be projected changes dynamically with the real scene outside the vehicle, and the projection of each element can always maintain a high contrast with the real scene outside the vehicle. No matter how the real scene outside the vehicle changes, the information displayed on the windshield is always clearly visible.
[0034] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0036] Figure 1 A flow chart of a data projection method provided by an exemplary embodiment is shown;
[0037] Figure 2 A schematic diagram showing a projection information list is shown;
[0038] Figure 3 A flowchart showing a specific implementation of step S104 in an exemplary embodiment;
[0039] Figure 4 A schematic diagram showing a method for projecting multiple elements to be projected onto a windshield according to the data projection method provided by the present disclosure is shown;
[0040] Figure 5 A block diagram of a data projection device provided by an exemplary embodiment is shown;
[0041] Figure 6 A block diagram of a vehicle is shown according to an exemplary embodiment. DETAILED DESCRIPTION
[0042] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0043] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0044] Research has found that the light levels during the day and at night, and between backlight and backlight, vary greatly, and the real scene outside the vehicle changes constantly as the vehicle is driving, resulting in the information projected on the windshield not always being clearly visible. For example, when it is necessary to project a white vehicle speed information on the upper right corner of the front windshield of the vehicle, if the real scene at this position on the windshield is green trees, after projection, a data projection with a green background and white vehicle speed information is formed. Since the color contrast between green and white is high, the vehicle speed information is easy to distinguish. However, as the vehicle continues to drive, the real scene at this position on the windshield changes from green trees to white sky. After projection, a data projection with a white background and white vehicle speed information is formed. The vehicle speed information is integrated with the background sky, resulting in the vehicle speed information being difficult to distinguish.
[0045] Therefore, the embodiment of the present disclosure provides a data projection method, which uses a camera to collect a real-life image of the environment in front of a vehicle, and determines the projection color of each element to be projected based on the color information of the area in the real-life image that serves as the projection background of the element to be projected, so that the projection color of each element to be projected changes with the real scene outside the vehicle, and the projection of each element can always maintain a high contrast with the real scene outside the vehicle. No matter how the real scene outside the vehicle changes, the information displayed on the windshield is always clearly visible.
[0046] Figure 1 FIG. 4 is a flow chart showing a data projection method provided by an exemplary embodiment. Figure 1 As shown, the method includes:
[0047] S101, obtaining a real-life image of the environment in front of the vehicle captured by a camera.
[0048] The vehicle is provided with a camera arranged in the direction of the vehicle's travel, and the camera is used to collect real-life images of the environment in front of the vehicle. During the vehicle's travel, the real-life images collected by the camera are obtained in real time.
[0049] S102: Obtain at least one element to be projected and area information of each element to be projected on the real scene image.
[0050] In some embodiments, the AR-HUD function of the vehicle needs to integrate one or more of the following information: identification information of road elements, scanning and identifying ROI (region of interest) in the real scene ahead, and obtaining road objects such as lane lines, vehicles, pedestrians, non-motor vehicles, traffic signs, and traffic lights; navigation information, including lane changes, turns, distance from the destination, estimated remaining time to the destination, etc., as well as navigation instructions such as road conditions, accessible lanes at intersections, POI (Point of Interest) along the way, electronic eyes, and other information; vehicle body operation information, such as vehicle speed, rotation speed, water temperature, voltage, tire pressure monitoring, blind spot prompts, and other information; multimedia information, such as incoming calls, Bluetooth, FM radio, and other information.
[0051] An element to be projected is generated based on at least one of the identification information of the road element, the navigation information, the vehicle body operation information and the multimedia information, and at least one element to be projected is obtained. Each element to be projected can be text, such as "12 kilometers", "27 minutes", "arrive at 13:50", etc., or a graphic indication generated based on the information, such as an arrow indication of a turn or a lane change.
[0052] Further, the area information of each element to be projected on the real scene image is obtained, and each area information includes the edge starting position, height and width. In a specific embodiment, the projection information list is obtained, Figure 2A schematic diagram of a projection information list is shown, such as Figure 2 As shown, assuming that M elements to be projected are obtained, the projection information list includes the area information corresponding to the M elements to be projected on the real scene image.
[0053] Exemplarily, the area information of the element to be projected is represented according to the following example:
[0054] Left=806; Top=0; Height=104; Width=100;
[0055] The area information of the element to be projected is: the 806th pixel from left to right of the real scene image is used as the starting point of the left edge, and the 0th pixel from top to bottom of the real scene image is used as the starting point of the upper edge, the height is 104 pixels, and the width is 100 pixels.
[0056] In a specific implementation, at least one element to be projected and a projection information list are obtained, the projection information list is parsed, and the area information of each element to be projected on the real scene image is obtained.
[0057] It should be noted that steps S101 and S102 are not limited to be executed in the order shown in the drawings; S101 and S102 may be executed simultaneously, or S102 may be executed before S101.
[0058] S103, according to the region information of each element to be projected, determining the image region corresponding to each region information from the real scene image, and calculating the color information of each image region.
[0059] According to the area information of each element to be projected, for each element to be projected, the image area corresponding to the area information of the element to be projected is determined from the real scene image captured by the camera, and the color information of the image area is calculated. Each element to be projected corresponds to an image area on the real scene image, and the color information of the image area corresponding to each element to be projected is finally calculated.
[0060] Continuing with the above example, the 806th pixel from left to right of the real scene image is taken as the starting point of the left edge, and the 0th pixel from top to bottom of the real scene image is taken as the starting point of the upper edge, and an area with a height of 104 pixels and a width of 100 pixels is determined as the image area corresponding to the area information of the element to be projected.
[0061] S104, determining a projection color of a corresponding element to be projected according to the color information of each image region; wherein a color contrast between the projection color and the color information of the image region is greater than a preset contrast.
[0062] Assuming that a certain element to be projected is to be projected onto a windshield, the element to be projected will be projected into a corresponding projection area on the windshield, and the projection area corresponds to an image area in the real scene image. The real scene outside the vehicle in the projection area observed from the windshield is consistent with the content of the image area, so the color information of the image area can represent the background color of the element to be projected when it is projected onto the windshield. Therefore, the present disclosure determines the projection color of the element to be projected based on the color information of the image area, that is, the background color of the element to be projected when it is projected onto the windshield. Based on the above steps, the projection color of each element to be projected can be dynamically adjusted in real time according to the color information of each image area. In this way, after each element to be projected is colored with a corresponding projection color and then projected onto the windshield, the information projected on the windshield can be in high contrast with the real scene outside the vehicle, thereby ensuring that the projected information is easy to be clearly distinguished by the driver.
[0063] Exemplarily, the color contrast calculation method provided in the WCAG (Web Content Accessibility Guidelines) standard can be used to determine the color contrast between two different colors, wherein the color contrast between the projected color of each element to be projected and the color information of the corresponding image area should be greater than a preset contrast, for example, the preset contrast can be set to a 3:1 contrast of WCAG2.0 level A.
[0064] In a specific implementation, a color mapping table is pre-designed, and the color mapping table includes projection colors corresponding to different color ranges, and each color range includes multiple colors with similar colors. The projection color corresponding to each color range should have a high contrast with the color represented by the color range, such as greater than a preset contrast. Optionally, the designer can pre-select one color from multiple colors with a color contrast greater than a preset contrast with the color represented by different color ranges as the projection color corresponding to the color, thereby forming a color mapping table and storing the color mapping table.
[0065] In the above steps, a color mapping table is obtained, and for the color information of each image area, a target color range of the color information is determined, and a projection color corresponding to the target color range is searched from the color mapping table as the projection color of the corresponding element to be projected.
[0066] S105 , projecting each element to be projected onto the windshield of the vehicle according to the projection color of each element to be projected.
[0067] Each element to be projected is projected onto the windshield of the vehicle through an optical machine according to the projection color of each element to be projected.
[0068] In a specific implementation, after obtaining the projection color of each element to be projected, each element to be projected is colored with the corresponding projection color to obtain a colored element to be projected, and then a projection image is generated based on all the colored elements to be projected, and the projection image is sent to the optical machine, and the optical machine is instructed to project the projection image onto the windshield of the vehicle. After receiving the projection image, the optical machine projects the projection image onto the windshield of the vehicle, thereby displaying the information of each element to be projected on the windshield.
[0069] The above scheme can dynamically adjust the projection color according to the real scene of the corresponding projection area of each element to be projected on the windshield, so that no matter how the real scene outside the car changes, the information of each projected element is always clearly visible. For example, when it is necessary to project an element of vehicle speed information at the upper right corner of the windshield, the image area of the element on the real scene image captured by the camera is determined. Assuming that the real scene at this position on the windshield is green trees, the calculated color information of the image area should also be green. Therefore, the corresponding projection color can be automatically determined according to the color information of the image area. If the projection color is white, after projection, a projection with a green background and white vehicle speed information is formed. Since the color contrast between green and white is high, the vehicle speed information is easy to distinguish. As the vehicle continues to move, the real scene at this position on the windshield changes from green trees to white sky, so the calculated color information of the image area should also become white. Therefore, a new projection color is re-determined based on the color information of the image area. For example, if the new projection color is dark blue, after projection, a projection with a white background and dark blue vehicle speed information is formed. Since the color contrast between dark blue and white is high, the vehicle speed information is easy to distinguish.
[0070] Therefore, the above solution can always clearly display various information such as identification information of road elements, navigation information, vehicle body operation information and multimedia information on the windshield. The driver can easily identify the projected information, thereby improving driving safety and friendliness.
[0071] Furthermore, in actual applications, the color will change under different lighting conditions. If only the corresponding relationship between the color information of the real scene outside the vehicle and the projected color is considered when designing the color mapping table, once the environment where the vehicle is located has strong lighting, the projected color will change under the lighting conditions of the environment where the vehicle is located, and the color contrast between the changed color and the real scene of the corresponding projection area will not reach the 3:1 contrast of WCAG2.0 A level. Therefore, when determining the projection color, it is also necessary to consider the impact of the light intensity factor on the color change.
[0072] In an exemplary embodiment, a light intensity sensor is provided on the vehicle, and the light intensity sensor is used to collect the current light intensity of the environment where the vehicle is located. The data projection method further includes: obtaining the current light intensity collected by the light intensity sensor. In step S104, the projection color of the corresponding element to be projected is determined according to the current light intensity and the color information of each image area.
[0073] In a specific implementation, the color mapping table includes projection colors corresponding to different light intensity ranges and different color ranges. In step S104, the target light intensity range of the current light intensity is determined, and the target color range of the color information of each image area is determined. According to the target light intensity range and the target color range, the projection color corresponding to the target light intensity range and the target color range is searched and determined from the color mapping table.
[0074] Optionally, the designer may pre-characterize the colors of different color ranges, and based on the color change of the color under different light intensity ranges, select one from a plurality of colors whose color contrast with the changed color is greater than a preset contrast as the projection color corresponding to the changed color, thereby obtaining the projection colors corresponding to different color ranges and different light intensity ranges, and then forming a color mapping table, and storing the color mapping table. Since the projection color is obtained by considering the influence of the light intensity factor on the color change, after projection, the color changes based on the effect of the current light intensity, and the changed color can still achieve a 3:1 contrast ratio of WCAG2.0 A level with the real scene of the corresponding projection area.
[0075] In an optional embodiment, in step S103, for each image region, according to the pixel value of each pixel in the image region, the average color of the image region is calculated as the color information of the image region. Exemplarily, for an RGB real-scene image, the pixel value of each pixel on the RGB real-scene image includes the brightness value of three color channels of R (red), G (green), and B (blue). The color of each pixel is obtained by mixing the brightness on the three color channels of R, G, and B. Each color channel has 256 levels of brightness, which are represented by numbers of 0 to 255. According to the pixel value of each pixel in the image region, the average brightness of the image region on the three color channels of R, G, and B is calculated. The color composed of the brightness averages on the three color channels is the average color of the image region, and the brightness averages on the three color channels are used as the color information of the image region.
[0076] Based on the above embodiment, a color cube is pre-constructed, and the color cube is a cube composed of the brightness ranges of three color channels. For example, the X-axis direction in the color cube represents the color range of the R channel, the Y-axis direction represents the color range of the G channel, and the Z-axis direction represents the color range of the B channel. The brightness range of each color channel is 0 to 255. Then the color cube is cut, and multiple cuts are performed at equal intervals in each direction to obtain multiple small cubes, which are recorded as cut cubes. The colors in each cut cube are relatively similar, and the boundary of the cut cube can be used as the boundary of a color range.
[0077] Optionally, when constructing the color cube, the brightness range in each direction may be divided by 256, so as to normalize the brightness range in each direction to a range of 0 to 1. Exemplarily, each direction of the color cube is cut at an interval of 0.2, and five cuts are performed in each direction, so that a total of 125 cut cubes can be obtained.
[0078] Figure 3 FIG. 4 is a flowchart showing a specific implementation of step S104 in an exemplary embodiment. Figure 3 As shown, step S104 includes:
[0079] S201, determining a plurality of cut cubes obtained by cutting a color cube, wherein the color cube is a cube formed according to brightness ranges of three color channels.
[0080] Each cut cube is used to represent a color range.
[0081] S202: Determine a corresponding target cut cube from a plurality of cut cubes according to the average brightness of the image region on three color channels.
[0082] S203: According to the target cut cube corresponding to the image area, determine the projection color corresponding to the target cut cube from the color mapping table.
[0083] The color mapping table includes projection colors corresponding to color ranges represented by different cut cubes. In this way, the color range corresponding to each image area can be determined conveniently and quickly according to the color cube, thereby quickly determining the projection color of the element to be projected.
[0084] In an exemplary embodiment, in step S104, based on the target light intensity range of the current light intensity and the target cutting cube corresponding to the image area, the projection color corresponding to the target light intensity range and the target cutting cube is determined from a color mapping table; wherein the color mapping table includes projection colors corresponding to different light intensity ranges and color ranges represented by different cutting cubes.
[0085] Figure 4 A schematic diagram is shown of projecting a plurality of elements to be projected onto a windshield according to the data projection method provided by the present disclosure. Figure 4 In the figure, each dotted box represents an element projected onto the windshield. The projection color of each element is dynamically adjusted according to the current light intensity of the vehicle's environment and the real scene color of the corresponding projection area. The projection color of the same element is the same, and the projection colors of different elements may be the same or different depending on the real scene color of the corresponding projection area.
[0086] Figure 5 FIG. 4 is a block diagram of a data projection device provided by an exemplary embodiment. Figure 5 As shown, the data projection device 300 includes:
[0087] A real scene image acquisition module 301 is used to acquire a real scene image of the environment in front of the vehicle captured by a camera;
[0088] The projection element determination module 302 is used to obtain at least one element to be projected and the area information of each element to be projected on the real scene image;
[0089] A background color calculation module 303 is used to determine the image area corresponding to each area information from the real scene image according to the area information of each element to be projected, and calculate the color information of each image area;
[0090] The projection color determination module 304 is used to determine the projection color of the corresponding element to be projected according to the color information of each image area; wherein the contrast between the projection color and the color information is greater than a preset contrast;
[0091] The projection module 305 is used to project each of the elements to be projected onto the windshield of the vehicle according to the projection color of each of the elements to be projected.
[0092] Optionally, the device further includes: a light intensity acquisition module, which is used to acquire the current light intensity of the environment where the vehicle is located, which is collected by the light intensity sensor.
[0093] Among them, the projection color determination module 304 is used to determine, for each image area, the projection color corresponding to the target light intensity range and the target color range from a color mapping table according to the target light intensity range of the current light intensity and the target color range of the color information of the image area; wherein the color mapping table includes projection colors corresponding to different light intensity ranges and different color ranges.
[0094] Optionally, the background color calculation module 303 is used to calculate, for each image region, the average color of the image region according to the pixel value of each pixel in the image region as the color information of the image region.
[0095] Optionally, the average color of the image area is represented by the average brightness of the image area in three color channels; the projection color determination module 304 includes:
[0096] A cube acquisition module, used for determining a plurality of cut cubes obtained by cutting a color cube, wherein the color cube is a cube composed according to brightness ranges of three color channels;
[0097] A cube determination module, configured to determine a corresponding target cut cube from the multiple cut cubes according to the average brightness of the image area on the three color channels;
[0098] A color search module is used to determine a projection color corresponding to a target cut cube from a color mapping table according to a target cut cube corresponding to the image area; wherein the color mapping table includes projection colors corresponding to color ranges represented by different cut cubes.
[0099] Optionally, the at least one element to be projected includes an element generated based on at least one of identification information of the road element, navigation information, vehicle body operation information and multimedia information.
[0100] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0101] Figure 6 4 is a block diagram of a vehicle 400 according to an exemplary embodiment. Figure 6 As shown, the vehicle 400 may include: a processor 401, a memory 402, a camera 403, and an optical machine 404. The vehicle 400 may also include one or more of a light intensity sensor 405, a multimedia component 406, an input / output (I / O) interface 407, and a communication component 408.
[0102] The camera 403 is used to collect the real scene image of the environment in front of the vehicle and send the collected real scene image to the processor 401. The light intensity sensor 405 is used to collect the current light intensity of the environment where the vehicle is located and send the collected current light intensity to the processor 401. The optical machine 404 is used to project each element to be projected onto the windshield of the vehicle 400. Specifically, it can be used to receive the projection image generated by coloring the corresponding projection color for each element to be projected sent by the processor 401, and project the projection image onto the windshield of the vehicle 400.
[0103] The processor 401 is used to read the computer program stored in the memory 402 to implement all or part of the steps in the above-mentioned data projection method. The memory 402 is used to store various types of data to support the operation of the vehicle 400, and these data may include, for example, instructions for any application or method used to operate on the vehicle 400, and application-related data, such as contact data, sent and received messages, pictures, audio, video, identification information of road elements, navigation information, vehicle body operation information, and multimedia information, etc. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0104] The multimedia component 406 may include a screen and an audio component, wherein the screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals.
[0105] The I / O interface 407 provides an interface between the processor 401 and other interface modules, and the other interface modules may be buttons, etc. These buttons may be virtual buttons or physical buttons.
[0106] The communication component 408 is used for the vehicle 400 to perform wired or wireless communication. Wireless communication, such as Wi-Fi, Bluetooth, FM radio, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 408 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0107] In another exemplary embodiment, a computer-readable storage medium including a computer program is also provided, and when the computer program is executed by a processor, the steps of the above-mentioned data projection method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 402 including the computer program, and the above-mentioned computer program can be executed by the processor 401 of the vehicle 400 to complete the above-mentioned data projection method.
[0108] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0109] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0110] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A data projection method, characterized in that: include: Acquire a real-life image of the environment in front of the vehicle captured by a camera; Acquire at least one element to be projected and area information of each element to be projected on the real scene image; According to the area information of each element to be projected, determine the image area corresponding to each area information from the real scene image, and calculate the color information of each image area; Determine, according to the color information of each image area, the projection color of the corresponding element to be projected; wherein the color contrast between the projection color and the color information is greater than a preset contrast, and the preset contrast is a 3:1 contrast of WCAG2.0 A level; Projecting each of the elements to be projected onto a windshield of a vehicle according to a projection color of each of the elements to be projected; The method further comprises: Get the current light intensity of the vehicle's environment collected by the light intensity sensor; Determining the projection color of the corresponding element to be projected according to the color information of each image area includes: For each image area, according to the target light intensity range of the current light intensity and the target color range of the color information of the image area, determine the projection color corresponding to the target light intensity range and the target color range from a color mapping table; wherein the color mapping table includes projection colors corresponding to different light intensity ranges and different color ranges, and the color mapping table includes projection colors corresponding to color ranges represented by different cut cubes; The calculating the color information of each image area includes: For each image region, the average color of the image region is calculated according to the pixel value of each pixel in the image region as the color information of the image region; the average color of the image region is represented by the average brightness of the image region in three color channels.
2. The method according to claim 1, characterized in that Determining the projection color of the corresponding element to be projected according to the color information of each image area includes: Determine a plurality of cut cubes obtained by cutting a color cube, wherein the color cube is a cube formed according to brightness ranges of three color channels; Determine a corresponding target cut cube from the multiple cut cubes according to the average brightness of the image area on the three color channels; According to the target cut cube corresponding to the image area, a projection color corresponding to the target cut cube is determined from a color mapping table.
3. The method according to claim 1 or 2, characterized in that: The at least one element to be projected includes an element generated according to at least one of identification information of the road element, navigation information, vehicle body operation information, and multimedia information.
4. A data projection device, characterized in that: include: A real-scene image acquisition module is used to acquire a real-scene image of the environment in front of the vehicle captured by a camera; A projection element determination module, used to obtain at least one element to be projected and area information of each element to be projected on the real scene image; A background color calculation module, used to determine the image area corresponding to each area information from the real scene image according to the area information of each element to be projected, and calculate the color information of each image area; A projection color determination module, used to determine the projection color of the corresponding element to be projected according to the color information of each image area; wherein the color contrast between the projection color and the color information is greater than a preset contrast, and the preset contrast is a 3:1 contrast of WCAG2.0 A level; A projection module, used for projecting each of the elements to be projected onto the windshield of the vehicle according to the projection color of each of the elements to be projected; The device further comprises: a light intensity acquisition module, which is used to acquire the current light intensity of the environment where the vehicle is located collected by the light intensity sensor; The projection color determination module is used to determine, for each image area, a projection color corresponding to the target light intensity range and the target color range according to the target light intensity range of the current light intensity and the target color range of the color information of the image area from a color mapping table; wherein the color mapping table includes projection colors corresponding to different light intensity ranges and different color ranges, and the color mapping table includes projection colors corresponding to color ranges represented by different cut cubes; Among them, the background color calculation module is used to calculate the average color of each image area according to the pixel value of each pixel in the image area as the color information of the image area; the average color of the image area is represented by the brightness average of the image area in three color channels.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 3 are implemented.
6. A vehicle, characterized in that: include: A camera, used to collect real-life images of the environment in front of the vehicle; An optical machine, used for projecting each element to be projected onto a windshield of a vehicle; A processor, configured to execute a computer program in a memory to implement the steps of the method according to any one of claims 1 to 3.
7. The vehicle according to claim 6, characterized in that Also includes: The light intensity sensor is used to collect the current light intensity of the vehicle's environment.
Citation Information
Patent Citations
Vehicle-mounted projection system
CN104833367A
Vehicle-mounted head rising display system and user interface projection display method thereof
CN105799513A
Display image color self-adaptation method and device for head up displayer
CN106199971A
System and method for light and image projection
CN107851184A
Head-up display system, head-up display method, and driving device
CN108322719A
