Display method and device and computer equipment
By obtaining vehicle driving information and multiple camera images, image fusion and resolution adjustment are performed, which solves the problem of multiple camera images being unable to be displayed uniformly and improves driving safety.
Patent Information
- Application Number
- CN202410457164.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2024-08-30
Smart Images

Figure CN118570999A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a display method, device and computer equipment. Background Art
[0002] Electronic exterior rearview mirrors are a new type of rearview mirror used to replace traditional optical rearview mirrors. Electronic exterior rearview mirrors collect information about the external environment behind the vehicle through a high-definition camera, process the information, and display it on a display inside the vehicle. Since electronic exterior rearview mirrors usually use wide-angle cameras, they have a wider field of view than traditional rearview mirrors. In addition, on rainy days, displaying images on a display can avoid blurred vision caused by fogging. At the same time, by processing the image, the night vision effect can be further improved.
[0003] In the current related technologies, multiple external cameras are set up on the vehicle to collect images within their respective fields of view. Different cameras have different shooting parameters and different resolutions of the collected images, so that multiple images cannot be displayed on the same display screen. It is necessary to display the collected images on multiple different display screens. For example, the streaming media rearview camera captures the environmental information of the rear of the vehicle and displays it through the streaming media rearview mirror; the surround camera captures the environmental information around the vehicle and displays it through the main driver's display screen; the electronic exterior rearview camera captures the environmental information of the side and rear of the vehicle and displays it through the electronic exterior rearview mirror. Based on the above, the driver can only obtain the environmental information collected by a single camera on the same display screen. The display screen with a single display scene has many blind spots for the displayed environmental information, which affects the safety of driving. Summary of the invention
[0004] Based on this, it is necessary to provide a display method, device and computer equipment to address the above technical problems.
[0005] In a first aspect, the present application provides a display method, which includes: obtaining driving information of a vehicle and multiple original images captured by multiple types of cameras; determining multiple target images based on the driving information and the multiple original images; and fusing the multiple target images to obtain a target display image and displaying it.
[0006] In one embodiment, determining a plurality of target images according to the driving information and the plurality of original images comprises: determining an image fusion mode according to the driving information; and determining a plurality of target images according to the image fusion mode and the plurality of original images.
[0007] In one of the embodiments, after determining the multiple target images according to the image fusion mode and the multiple original images, the method further includes: determining a target type camera according to the image fusion mode; using the target image corresponding to the target type camera as the main image, and using the remaining target images as auxiliary images.
[0008] In one of the embodiments, fusing the multiple target images to obtain a target display image and displaying it includes: adjusting the resolutions of the multiple target images to make the resolutions of the multiple target images the same; fusing the multiple target images to obtain a target display image and displaying it.
[0009] In one of the embodiments, the method of fusing the multiple target images to obtain a target display image includes: the target image includes a main image and an auxiliary image; dividing the main image into a plurality of first pixel blocks of a first preset size, and dividing the auxiliary image into a plurality of second pixel blocks of a first preset size; comparing each of the first pixel blocks with each of the second pixel blocks respectively to determine a non-overlapping image with the main image in the auxiliary image; and fusing the non-overlapping image with the main image to obtain the target display image.
[0010] In one of the embodiments, comparing each of the first pixel blocks with each of the second pixel blocks to determine the non-overlapping picture in the auxiliary picture with the main picture includes: obtaining the first pixel value of each pixel position in the first target pixel block; the first target pixel block is any pixel block among the multiple first pixel blocks; obtaining the second pixel value of each pixel position in the second target pixel block; the second target pixel block is any pixel block among the multiple second pixel blocks; determining the absolute value of the difference at each pixel position based on the first pixel value and the second pixel value at the same pixel position; summing the absolute values of the differences corresponding to all pixel positions to obtain the absolute difference between the first target pixel block and the second target pixel block; and determining the non-overlapping picture in the auxiliary picture with the main picture based on the absolute difference between the first pixel blocks and the second pixel blocks.
[0011] In one of the embodiments, determining the non-overlapping picture with the main picture in the auxiliary picture based on the absolute difference between the first pixel block and the second pixel block in pairs includes: if the absolute difference between the first pixel block and the second pixel block is less than or equal to a preset threshold, the first pixel block and the second pixel block are overlapping pictures between the auxiliary picture and the main picture; determining a first initial non-overlapping picture in the main picture and a second initial non-overlapping picture in the auxiliary picture based on the overlapping pictures; reducing the first preset size by a preset step size to obtain multiple second preset sizes; dividing the first initial non-overlapping picture and the second initial non-overlapping picture by multiple second preset sizes respectively, and determining the non-overlapping picture with the main picture in the auxiliary picture.
[0012] In the second aspect, the present application also provides a display device, which includes: an acquisition module for acquiring vehicle driving information and multiple original images captured by multiple types of cameras; a picture selection module for determining multiple target pictures based on the driving information and the multiple original pictures; and a picture fusion module for fusing the multiple target pictures to obtain a target display picture and display it.
[0013] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, any one of the display methods in the first aspect is implemented.
[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, any one of the display methods in the first aspect is implemented.
[0015] The above display method, device and computer equipment obtain the driving information of the vehicle and multiple original images collected by various types of cameras, and then determine multiple target images based on the driving information and the multiple original images, and finally fuse the multiple target images to obtain and display the target display image. Multiple target images are selected according to the driving information, and then the multiple target images are fused and displayed, which increases the display field of view of a single display screen and reduces the display blind area of a single display screen, thereby further improving driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the position of the camera installation in one embodiment;
[0017] Figure 2 is a schematic diagram of the field of view of a camera in one embodiment;
[0018] Figure 3A schematic diagram of the structure of a vehicle display system in one embodiment;
[0019] Figure 4 A schematic flow chart showing a method in one embodiment;
[0020] Figure 5 A schematic diagram of a flow chart of a method for determining a target screen in one embodiment;
[0021] Figure 6 is a schematic diagram of a flow chart of a screen fusion method in one embodiment;
[0022] Figure 7 is a structural block diagram of a display device in one embodiment;
[0023] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0025] In the current related technologies, multiple external cameras are set up on the vehicle to collect images within their respective fields of view. Different cameras have different shooting parameters and different resolutions of the collected images, so that multiple images cannot be displayed on the same display screen. It is necessary to display the collected image information on multiple different display screens. For example, the streaming media rearview camera captures the environmental information at the rear of the vehicle and displays it through the streaming media rearview mirror; the surround camera captures the environmental information around the vehicle and displays it through the main driver's display screen; the electronic exterior rearview camera captures the environmental information behind the side of the vehicle and displays it through the electronic exterior rearview mirror. Based on the above, the driver can only obtain the environmental information collected by a single camera on the same display screen. On the display screen with a single display scene, there are many blind spots for the displayed environmental information, which affects driving safety.
[0026] The present application embodiment provides a camera installation method, such as Figure 1As shown, the vehicle is provided with various types of cameras. Different types of cameras have different camera parameters such as shooting field of view angle, field of view range and resolution. In the embodiment of the present application, the various types of cameras may include: three types, five types, etc. The embodiment of the present application does not make specific limitations. For example, the various types of cameras may include three types of cameras, namely: the first type of camera: electronic exterior rear view camera; the second type of camera: surround view camera; the third type of camera: rear view camera. Among them, the electronic exterior rear view camera includes: a left electronic exterior rear view camera and a right electronic exterior rear view camera. The surround view camera includes: a left surround view camera and a right surround view camera. Take three types of cameras as an example for illustration: the field of view environment information of the left rear of the vehicle is collected by the left electronic exterior rear view camera; the field of view environment information of the right rear of the vehicle is collected by the right electronic exterior rear view camera; the field of view environment information of the left side of the vehicle body is collected by the left surround view camera; the field of view environment information of the right side of the vehicle body is collected by the right surround view camera; the field of view environment information of the rear of the vehicle is collected by the rear view camera.
[0027] like Figure 2 As shown, Figure 2 The field of view of the right electronic exterior rear view camera, the right surround view camera and the rear view camera are shown. It can be understood that the field of view of the left electronic exterior rear view camera and the right electronic exterior rear view camera are symmetrical about the midline of the front-to-back direction of the vehicle; the field of view of the left surround view camera and the right surround view camera are symmetrical about the midline of the front-to-back direction of the vehicle. Figure 2 In the figure, the blue area is the field of view of the right electronic exterior rearview camera. Due to the obstruction of the vehicle body, the side and rear of the vehicle are the blind spots of the right electronic exterior rearview camera. The green area is the field of view of the right surround camera. The area collected by the camera is concentrated on the right side of the vehicle body. The area outside the corresponding green area is the blind spot of the camera. The red area is the field of view of the rearview camera. At this time, both sides of the vehicle body and part of the rear side of the vehicle body, that is, outside the red area, are the blind spots of the camera.
[0028] The present application embodiment provides a vehicle display system, such as Figure 3As shown, the vehicle display system includes: a first type of camera, a second type of camera, and a third type of camera. The above cameras are all connected to the cockpit domain controller (DHU), and the cockpit domain controller splices and fuses the images captured by the above cameras, and then displays the spliced and fused images on the display screen. At this time, the display screen can display as complete environmental information about the vehicle's surroundings as possible. The display screen can be set at any position within the driver's field of view. For example, it can be set in a field of view that the driver can observe without turning his head, such as: a central control display screen, a streaming media rearview mirror, an electronic rearview mirror and other display screens.
[0029] In one embodiment, if Figure 4 As shown, a display method is provided, which is applied to Figure 3 Take the cockpit domain controller in the example as an example, including the following steps:
[0030] Step 402: Acquire the driving information of the vehicle and a plurality of original images captured by various types of cameras.
[0031] The driving information of the vehicle, that is, the driving behavior of the vehicle, includes: the driving information of the vehicle when it is stationary and the driving information of the vehicle during driving. For example, the driving information of the vehicle may include: driving information such as the vehicle being stationary, the vehicle turning, the vehicle reversing, and the vehicle switching lanes. The multiple original images collected by various types of cameras may be images collected by all types of cameras set on the vehicle. When three types of cameras are set on the vehicle, it includes multiple original images collected by three types of cameras; when five types of cameras are set on the vehicle, it includes multiple original images collected by five types of cameras. The following is an example of multiple types of cameras including: the first type of camera is an electronic exterior rearview camera; the second type of camera is a surround camera; and the third type of camera is a rearview camera. The description of the above multiple types of cameras is only for example. In actual application, more types of cameras may be included. The embodiment of the present application does not specifically limit the number and setting position of multiple types of cameras. During the actual driving of the vehicle, the chassis domain can collect the driving information of the vehicle, and the chassis domain sends the collected driving information to the cockpit domain controller. Various types of cameras collect original images within their respective fields of view and send them to the cockpit domain controller.
[0032] Step 404: Determine multiple target images based on the driving information and the multiple original images.
[0033] Different driving information means different driving behaviors of vehicles. Drivers need to observe different external visual fields for different driving behaviors. Therefore, it is necessary to select the target screen corresponding to the external visual field that needs to be observed in the current driving behavior from multiple original screens according to the driving information of the driver. For example, the multiple types of cameras are three types of cameras including: electronic external rearview camera, surround camera and rearview camera as an example for explanation. When the driving information is that the vehicle is stationary, due to the uncertainty of the position of pedestrians, animals and various facilities around the vehicle, it is necessary to select the original screens collected by all types of cameras as the target screen. When the driving information is that the vehicle is reversing, the driver needs to focus on the visual field behind the vehicle, so it is necessary to select the original screens collected by the rearview camera, the left electronic external rearview camera and the right electronic external rearview camera as the target screen. When the driving information is that the vehicle switches lanes, the driver needs to focus on the visual field of the side of the vehicle, so it is necessary to select the original screens collected by the left electronic external rearview camera, the right electronic external rearview camera, the left surround camera and the right surround camera as the target screen.
[0034] Step 406: fuse the multiple target images to obtain a target display image and display it.
[0035] After determining the target images corresponding to different driving behaviors according to the driving information, it is necessary to fuse the multiple target images, and display the fused target display image on the display screen. The display screen can be set at any position within the driver's field of view. For example, it can be set in a field of view that the driver can observe without turning his head, such as a central control display screen, a streaming media rearview mirror, and an electronic rearview mirror. For example, the display screens respectively set on the left and right sides of the vehicle are used as an example to illustrate. When the driving information is that the vehicle is reversing, the corresponding target images are the images captured by the rearview camera, the left electronic exterior rearview camera, and the right electronic exterior rearview camera. When the images are fused, the images captured by the rearview camera and the left electronic exterior rearview camera are fused, and the target display image obtained is displayed on the display on the left side of the vehicle. The images captured by the rearview camera and the right electronic exterior rearview camera are fused, and the target display image obtained is displayed on the display on the right side of the vehicle. When the driving information is that the vehicle changes lanes, the corresponding target images are respectively the images captured by the left electronic exterior rearview camera, the right electronic exterior rearview camera, the left surround view camera and the right surround view camera. When the images are fused, the images captured by the left electronic exterior rearview camera and the left surround view camera are fused, and the obtained target display image is displayed on the monitor on the left side inside the vehicle. The images captured by the right electronic exterior rearview camera and the right surround view camera are fused, and the obtained target display image is displayed on the monitor on the right side inside the vehicle.
[0036] In the embodiment of the present application, by obtaining the driving information of the vehicle and multiple original images collected by multiple types of cameras, multiple target images are determined based on the driving information and the multiple original images, and finally the multiple target images are fused to obtain the target display image and display it. Multiple target images are selected based on the driving information, and then the multiple target images are fused and displayed on the display screen, which increases the display field of view of a single display and reduces the display blind area of a single display, thereby further improving driving safety.
[0037] In one embodiment, if Figure 5 As shown, a method for determining a target picture is provided, comprising the following steps:
[0038] Step 502: Determine the image fusion mode according to the driving information.
[0039] Because drivers need to observe different external fields of view for different driving behaviors. Therefore, the picture fusion mode includes multiple fusion modes. Different driving information can be divided into different picture fusion modes according to the driving information. Among them, each picture fusion mode corresponds to a different target picture to be fused, that is, each fusion mode corresponds to a different field of view, so that the needs of different driving information can be adapted through multiple picture fusion modes. For example, driving information such as a stationary vehicle, a straight-line vehicle, and a turning vehicle can be divided into a first fusion mode; driving information such as a vehicle reversing can be divided into a second fusion mode; driving information such as a vehicle switching lanes can be divided into a third fusion mode. A mapping relationship table is established based on the correspondence between the above driving information and the picture fusion mode. When the picture fusion mode is determined by the driving information, the corresponding picture fusion mode can be determined by obtaining the driving information search table.
[0040] Step 504: determine a plurality of target images according to the image fusion mode and a plurality of original images.
[0041] Since different image fusion modes correspond to different visual ranges, that is, different image fusion modes require corresponding selection of different target images, and different visual ranges are displayed by fusing different target images. Take the multiple types of cameras as three types of cameras including: electronic exterior rearview camera, surround view camera and rearview camera as an example for explanation. The first fusion mode is to use the original images captured by the electronic exterior rearview camera, surround view camera and rearview camera as target images respectively; the second fusion mode is to use the original images captured by the electronic exterior rearview camera and the rearview camera as target images respectively; the third fusion mode is to use the original images captured by the electronic exterior rearview camera and the surround view camera as target images respectively.
[0042] In one embodiment, after determining multiple target images, it is also necessary to: determine the target type camera according to the image fusion mode; use the target image corresponding to the target type camera as the main image, and use the remaining target images as the auxiliary images. After determining multiple target images, since different image fusion modes correspond to different visual ranges, based on different driving information, the key visual area that the driver needs to observe is also different when different image fusion modes correspond to different visual ranges. The target type camera is the camera corresponding to the key visual area corresponding to the image fusion mode. It can be understood that in the fused target display image, the image collected by the target type camera needs to be displayed in the middle area of the display screen as much as possible. Take the multiple types of cameras as three types of cameras including: electronic exterior rearview camera, surround view camera and rearview camera as an example for explanation. The target type camera corresponding to the first fusion mode is an electronic exterior rearview camera; the target type camera corresponding to the second fusion mode is a rearview camera; and the target type camera corresponding to the third fusion mode is a surround view camera.
[0043] The example of the multiple types of cameras including three types of cameras including: electronic exterior rear view camera, surround view camera and rear view camera is used for explanation. The original images captured by the multiple types of cameras include at least: a first image, a second image and a third image; the first image includes an image captured by the electronic exterior rear view camera; specifically, the first image includes a first left image captured by the left electronic exterior rear view camera and a first right image captured by the right electronic exterior rear view camera. The second image includes an image captured by the surround view camera; specifically, the second image includes a second left image captured by the left surround view camera and a second right image captured by the right surround view camera. The third image includes an image captured by the rear view camera.
[0044] If the picture fusion mode is the first fusion mode, the first picture, the second picture and the third picture are selected as the target pictures; and the first picture captured by the electronic exterior rearview camera is the main picture, and the second picture and the third picture are auxiliary pictures. For example, when the vehicle is stationary and the vehicle is driving in a straight line, it is necessary to fully observe all external environments, so all pictures need to be used as target pictures. Take the electronic rearview mirror including displays respectively arranged on the left and right sides of the vehicle as an example to illustrate, with the first left picture as the main picture, the second left picture and the third picture as the auxiliary pictures, and determine the target display picture corresponding to the display on the left side of the vehicle; with the first right picture as the main picture, the second right picture and the third picture as the auxiliary pictures, and determine the target display picture corresponding to the display on the right side of the vehicle.
[0045] If the picture fusion mode is the second fusion mode, the first picture and the third picture are selected as the target pictures; and the third picture captured by the rear-view camera is the main picture, and the first picture is the auxiliary picture. For example, when the vehicle is reversing, it is necessary to focus on observing the environmental information behind the vehicle, so it is necessary to select the first picture and the third picture as the target pictures. Take the electronic rearview mirror including displays respectively arranged on the left and right sides of the vehicle as an example to illustrate, with the third picture as the main picture and the first left picture as the auxiliary picture, determine the target display picture corresponding to the display on the left side of the vehicle; with the third picture as the main picture and the first right picture as the auxiliary picture, determine the target display picture corresponding to the display on the right side of the vehicle.
[0046] If the picture fusion mode is the third fusion mode, the first picture and the second picture are selected as the target pictures; and the second picture captured by the surround view camera is used as the main picture, and the first picture is used as the auxiliary picture. For example, when the vehicle switches lanes, it is necessary to focus on observing the environmental information on the side of the vehicle, so it is necessary to select the first picture and the second picture as the target pictures. Take the electronic rearview mirror including displays respectively arranged on the left and right sides of the vehicle as an example to illustrate, with the second left picture as the main picture and the first left picture as the auxiliary picture, to determine the target display picture corresponding to the display on the left side of the vehicle; with the second right picture as the main picture and the first right picture as the auxiliary picture, to determine the target display picture corresponding to the display on the right side of the vehicle.
[0047] In the embodiment of the present application, different screen fusion modes are selected according to different driving information, thereby selecting different target screens. Different target screens are fused according to different driving information, so that the screen display is more in line with the driver's current driving behavior, thereby further improving driving safety. The main screen and auxiliary screen can be flexibly defined according to the driver's current driving behavior, and the driver can obtain complete vehicle surrounding information that conforms to the usage scenario in different usage scenarios on the same display screen.
[0048] In one of the embodiments, when a plurality of target images are fused to obtain a target display image and display it: the resolutions of the plurality of target images are adjusted to make the resolutions of the plurality of target images the same; the plurality of target images are fused to obtain a target display image and display it. For example, a standard resolution may be set in advance, and then the resolutions of all target images may be adjusted to a preset standard resolution by inserting pixels or extracting pixels. This lays the foundation for the subsequent image fusion. The standard resolution may be the physical resolution of the display screen corresponding to the target display image, or it may be a standard resolution set by oneself according to actual usage requirements, and the embodiments of the present application do not make specific limitations thereon.
[0049] It is understandable that before adjusting the resolution of multiple target images to the same, the target images need to be color corrected, denoised, sharpened, white balanced and format converted through the ISP chip to obtain the target images in YUV format. Among them, the ISP chip is a chip specifically used for image signal processing, which is mainly responsible for processing the images captured from the image sensor, performing image processing operations such as format conversion, color correction, noise reduction, sharpening, white balance, etc. on the images to generate high-quality images or videos. The images captured by the sensor module of the camera are in RGB format. Each pixel in the RGB format is composed of the three primary colors of RGB, R represents red, G represents green, and B represents blue. Each pixel in the YUV format is composed of YUV fields, Y represents brightness, U represents chromaticity, and V represents contrast. Finally, the resolution of multiple target images in YUV format is adjusted to obtain multiple target images with the same resolution.
[0050] The embodiment of the present application can improve the quality of the picture by converting the target picture into a target picture in YUV format, and at the same time adjust the resolutions of multiple target pictures to be the same, laying a foundation for subsequent picture fusion, thereby improving the fusion efficiency and fusion quality of picture fusion.
[0051] In one embodiment, if Figure 6 As shown, a picture fusion method is provided, comprising the following steps:
[0052] Step 602: divide the main picture into a plurality of first pixel blocks of a first preset size, and divide the auxiliary picture into a plurality of second pixel blocks of a first preset size.
[0053] Based on the above, for different picture fusion modes, the target pictures include the main picture and the auxiliary picture. Taking the display screens as the displays respectively arranged on the left and right sides of the vehicle as an example, in different picture fusion modes, the displays on the left and right sides also correspond to their own main pictures and auxiliary pictures respectively.
[0054] In the first fusion mode, the display on the left side of the vehicle corresponds to the first left picture as the main picture, and the second left picture and the third picture are auxiliary pictures; the display on the right side of the vehicle corresponds to the first right picture as the main picture, and the second right picture and the third picture are auxiliary pictures.
[0055] In the second fusion mode, the display on the left side of the vehicle corresponds to the third screen as the main screen, and the first left screen is the auxiliary screen; the display on the right side of the vehicle corresponds to the third screen as the main screen, and the first right screen is the auxiliary screen.
[0056] In the third fusion mode, the display on the left side of the vehicle corresponds to the second left picture as the main picture, and the first left picture as the auxiliary picture; the display on the right side of the vehicle corresponds to the second right picture as the main picture, and the first right picture as the auxiliary picture.
[0057] When fusing the images, the display on the left side of the vehicle interior and the display on the right side of the vehicle interior are fused separately. For any display, first, the main screen is divided into a plurality of first pixel blocks according to a pre-set first preset size; the auxiliary screen is divided into a plurality of second pixel blocks. It can be understood that the size of the first pixel block and the size of the second pixel block are both the first preset size. For example, when the main screen is divided into a plurality of first pixel blocks, the first first pixel block is first divided at the starting position of the main screen, and then all the first pixel blocks are divided in sequence by moving one pixel point each time. When the auxiliary screen is divided into a plurality of second pixel blocks, the first second pixel block is first divided at the starting position of the auxiliary screen, and then all the second pixel blocks are divided in sequence by moving one pixel point each time.
[0058] Step 604 , respectively compare each first pixel block with each second pixel block to determine non-overlapping images of the auxiliary image with the main image.
[0059] After the main screen and the auxiliary screen are divided, each first pixel block corresponding to the main screen is compared with each second pixel block corresponding to the auxiliary screen to determine whether the two compared pixel blocks are the same screen, and multiple second pixel blocks in the auxiliary screen that are different from the main screen display screen are used as non-overlapping screens in the auxiliary screen with the main screen.
[0060] When specifically comparing any first pixel block and second pixel block, the following steps are included:
[0061] Step 1: obtain a first pixel value of each pixel position in a first target pixel block; the first target pixel block is any pixel block among a plurality of first pixel blocks; obtain a first pixel value of each pixel point in the first target pixel block.
[0062] Step 2, obtaining a second pixel value of each pixel position in a second target pixel block; the second target pixel block is any pixel block among the plurality of second pixel blocks; obtaining a second pixel value of each pixel point in the second target pixel block.
[0063] Step 3, determining the absolute value of the difference at each pixel position based on the first pixel value and the second pixel value at the same pixel position; since the first target pixel block and the second target pixel block have the same size, the first pixel value and the second pixel value at the same pixel position are subtracted, and then the absolute value is calculated to obtain the absolute value of the difference at each pixel position.
[0064] Step 4, summing the absolute values of the differences corresponding to all pixel positions to obtain the absolute difference between the first target pixel block and the second target pixel block. Summing the absolute values of the differences at all pixel positions to obtain the absolute difference between the first target pixel block and the second target pixel block. The absolute difference can reflect the difference in picture content between the first target pixel block and the second target pixel block.
[0065] Step 5: Determine non-overlapping pictures with the main picture in the auxiliary picture according to the absolute differences between the first pixel blocks and the second pixel blocks in pairs.
[0066] If the absolute difference between the first pixel block and the second pixel block is less than or equal to a preset threshold, the first pixel block and the second pixel block are overlapping images of the auxiliary image and the main image, that is, at this time, the images corresponding to the first pixel block and the second pixel block have the same field of view. If the absolute difference between the first pixel block and the second pixel block is greater than the preset threshold, there may be non-overlapping images of the auxiliary image and the main image in the corresponding first pixel block and the second pixel block. According to the overlapping images, the first initial non-overlapping image in the main image and the second initial non-overlapping image in the auxiliary image are determined. For example, according to the overlapping images determined by the first pixel block and the second pixel block, the overlapping images are removed in the main image to obtain the first initial non-overlapping image in the main image, and the overlapping images are removed in the auxiliary image to obtain the second initial non-overlapping image in the auxiliary image. The first preset size is reduced by a preset step size to obtain multiple second preset sizes. The first initial non-overlapping image and the second initial non-overlapping image are divided by multiple second preset sizes respectively, and the non-overlapping image with the main image in the auxiliary image is determined. For example, the first preset size is reduced by a preset step size to obtain a second preset size, and then the first initial non-overlapping picture is divided into a plurality of third pixel blocks based on the above segmentation method, and the second initial non-overlapping picture is divided into a plurality of fourth pixel blocks based on the above segmentation method, and then each third pixel block is compared with each fourth pixel block to determine the overlapping picture of the auxiliary picture and the main picture. Then the non-overlapping pictures in the main picture and the auxiliary picture are extracted, and the second preset size is reduced again by a preset step size until the second preset size is reduced to the minimum size, and the non-overlapping pictures with the main picture in the final auxiliary picture are determined.
[0067] Step 606: merge the non-overlapping images with the main image to obtain a target display image.
[0068] In the first fusion mode, the display on the left side of the vehicle corresponds to the first left picture as the main picture, and the second left picture and the third picture as the auxiliary pictures; there is a first non-overlapping picture between the first left picture and the second left picture, and there is a second non-overlapping picture between the first left picture and the third picture, and the first left picture is fused with the first non-overlapping picture and the second non-overlapping picture to obtain the target display picture corresponding to the display on the left side of the vehicle. The display on the right side of the vehicle corresponds to the first right picture as the main picture, and the second right picture and the third picture as the auxiliary pictures; there is a first non-overlapping picture between the first right picture and the second right picture, and there is a second non-overlapping picture between the first right picture and the third picture, and the first right picture is fused with the first non-overlapping picture and the second non-overlapping picture to obtain the target display picture corresponding to the display on the right side of the vehicle.
[0069] In the second fusion mode, the display on the left side of the vehicle corresponds to the third screen as the main screen, and the first left screen is the auxiliary screen; there is a non-overlapping screen between the third screen and the first left screen, and the third screen and the non-overlapping screen are fused to obtain the target display screen corresponding to the display on the left side of the vehicle. The display on the right side of the vehicle corresponds to the third screen as the main screen, and the first right screen is the auxiliary screen; there is a non-overlapping screen between the third screen and the first right screen, and the third screen and the non-overlapping screen are fused to obtain the target display screen corresponding to the display on the right side of the vehicle.
[0070] In the third fusion mode, the display on the left side of the vehicle corresponds to the second left picture as the main picture, and the first left picture as the auxiliary picture; there is a non-overlapping picture between the second left picture and the first left picture, and the second left picture and the non-overlapping picture are fused to obtain the target display picture corresponding to the display on the left side of the vehicle. The display on the right side of the vehicle corresponds to the second right picture as the main picture, and the first right picture as the auxiliary picture; there is a non-overlapping picture between the second right picture and the first right picture, and the second right picture and the non-overlapping picture are fused to obtain the target display picture corresponding to the display on the right side of the vehicle.
[0071] In the embodiment of the present application, by dividing the images of different cameras for analysis and comparison, the overlapping boundaries of the imaging scenes of different cameras are quickly located, and then the scenes are spliced, and finally the splicing of the imaging frames of different cameras in two frames is realized. In addition, in combination with different image fusion modes, the main image and auxiliary image can be flexibly defined according to driving needs, and the driver can obtain complete vehicle surrounding information that meets the usage scenario in different usage scenarios on the same display screen. At the same time, the display screen can be reduced, saving costs.
[0072] In one embodiment, multiple cameras may be calibrated before fusion display. For example, a vehicle is placed in an area with obvious external environmental features, and multiple cameras are used to collect high-resolution images of the vehicle body surrounding environment with obvious picture differences. Through manual observation, it is preliminarily determined whether there are overlapping areas between multiple types of cameras. If there are overlapping areas, fusion display is performed using the above method.
[0073] In one specific embodiment, COMS Sensors of multiple cameras obtain RAW data signals through imaging. After signal conversion, image calibration, and coordinate conversion by the ISP chip, YUV signals with slight distortion and a common coordinate system are output to the cache at the DHU end.
[0074] The main task of image stitching is to reasonably crop the images of each camera and transmit the cropped image window information to the GPU in the DHU for display output. Taking the first fusion mode as an example, the steps of cropping the images of each camera are as follows:
[0075] Step 1: Select the shooting field of view of the electronic rearview camera as the basic picture, such as Figure 2 The blue area in the
[0076] Step 2: The electronic exterior rear view camera, surround view camera and rear view camera output RAW data signals to the ISP chip. The ISP chip first performs de-mosaic processing, then converts RGB into YUV signals, inputs them to the DHU, and processes them through the scaler up module to make the images collected by the three cameras have the same resolution. Among them, the resolution is adjusted according to the physical resolution of the display screen, and the resolution of all cameras is processed to the physical resolution of the display screen through the scaler up module.
[0077] Step 3: Divide the images captured by the three cameras into several blocks of a*b pixels.
[0078] Step 4: Through the high-resolution physical images of the vehicle body's surrounding environment collected by three different cameras with obvious picture differences, the overlapping area of the three cameras' fields of view can be subjectively determined. If there is an overlapping area, continue to perform the following steps.
[0079] Step 5: Based on the scene image captured by the electronic exterior rearview camera, and taking each a*b pixel block data of its image as the benchmark, respectively compare the data with the a*b pixel block data of the scene image captured by the surround view camera and the rearview camera, and calculate the absolute difference between the pixel blocks, where a and b are two variable integers. When matching pixel block data, a and b can take larger values. When the absolute difference is less than or equal to the threshold, it is determined that the two pixel blocks are overlapping content captured by different cameras. Figure 2 The area marked by the "3" area in the figure is the overlapped part of the images captured by the surround view camera and the electronic exterior rear view camera. When the absolute difference is greater than the threshold, the values of a and b can be gradually reduced until a and b are reduced to the set minimum value. If no match that satisfies the absolute difference is less than or equal to the absolute difference occurs, it can be determined that the current pixel block is a camera and does not overlap with the images captured by other cameras. Figure 2 The area marked by the "1" area in the figure is the non-overlapping part of the images captured by the surround view camera and the electronic exterior rear view camera; Figure 2 The area marked by "2" is the non-overlapping portion of the images captured by the rearview camera and the electronic exterior rearview camera.
[0080] The absolute difference between two pixel blocks is calculated as follows:
[0081] S(x,y) represents the pixel value of a pixel block at the coordinate (x,y) in the image captured by the electronic exterior rearview camera, T(x,y) represents the pixel value of a pixel block at the coordinate (x,y) in the image captured by the surround view camera or rearview camera, W represents the number of pixels in the pixel block in the x direction, H represents the number of pixels in the pixel block in the y direction, SAD represents the absolute difference, and the calculation formula of the SAD value is as follows:
[0082]
[0083] Step 6: According to the operation method of step 5, pixel-by-pixel matching can be performed to quickly determine the image area information content of areas "1" and "2". The image captured by the electronic exterior rearview camera plus the image of area "1" and area "2" can be the maximum shooting scene image that can be captured by the three cameras.
[0084] Step 7: Input the images captured by the electronic exterior rearview camera, the images of area "1" and the images of area "2" into the GPU, complete the image stitching and rendering, and output the scene image captured by the right half of the complete vehicle body. The scene image captured by the left half of the vehicle body can be obtained in the same way.
[0085] Step 8: DHU outputs the scene image captured around the complete vehicle body to the display screen for display.
[0086] Based on the above, the fusion of the vehicle's exterior scene with the electronic exterior rearview camera as the main camera is realized. The same process can obtain the fusion of the vehicle's exterior scene with the rearview camera or the surround-view camera as the main camera.
[0087] The actual driving process of a vehicle involves driving scenarios such as reversing, parking, normal driving and turning. The chassis domain transmits the driving behavior to the MCU in the cockpit domain through CAN signals. The MCU sends the driving behavior instructions to the GPU in the cockpit domain. The GPU in the cockpit domain selects the main screen of the acquisition scenes of various types of cameras based on the received command signals, and performs rendering processing for screen fusion.
[0088] When the vehicle turns during normal driving, the chassis domain synchronizes the driving behavior to the cockpit domain MCU through the CAN signal. After the MCU recognizes and processes the scene, it is sent to the GPU through the SPI signal. The GPU actively selects the scene captured by the electronic exterior rearview camera as the main scene, and the scenes captured by the rearview camera and the surround view camera as the auxiliary scenes for image fusion and output to the display. When the vehicle driving behavior received by the GPU is reversing, the scene captured by the rearview camera is selected as the main scene, and the scene captured by the electronic exterior rearview camera is selected as the auxiliary scene for image fusion and output to the display. When the vehicle driving behavior received by the GPU is switching lanes, in order to see the situation on the side and rear of the vehicle body clearly, the scene captured by the surround view camera is selected as the main scene, and the scene captured by the electronic exterior rearview camera is selected as the auxiliary scene for image fusion and output to the display.
[0089] In the above embodiment, the images of various types of cameras are divided into blocks according to different pixel points, and the pixel blocks are compared according to a specific algorithm. By judging the size of the error sum between the pixel blocks of different cameras, it is judged whether the current pixel block corresponds to the same vehicle body surrounding scene corresponding to different cameras. The above information can be used for frame splicing, so as to achieve the purpose of finally displaying the images of different cameras on the same display screen; and the vehicle driving status is synchronized to the cockpit domain through the chassis domain through the CAN signal. The cockpit domain controller adjusts the display content in real time according to the acquired driving status information, so as to provide the driver with a reasonable image of the scene outside the vehicle, thereby reducing blind spots according to different driving needs.
[0090] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0091] Based on the same inventive concept, the embodiment of the present application also provides a display device for implementing the above-mentioned display method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more display device embodiments provided below can refer to the limitations on the display method above, and will not be repeated here.
[0092] In one embodiment, Figure 7 As shown, a display device is provided, comprising:
[0093] An acquisition module 100 is used to acquire the driving information of the vehicle and a plurality of original images captured by various types of cameras;
[0094] A picture selection module 200, for determining a plurality of target pictures according to the driving information and the plurality of original pictures;
[0095] The picture fusion module 300 is used to fuse the multiple target pictures to obtain a target display picture and display it.
[0096] The picture selection module 200 is further used to determine a picture fusion mode according to the driving information; and to determine a plurality of target pictures according to the picture fusion mode and the plurality of original pictures.
[0097] The picture selection module 200 is further used to determine the target type camera according to the picture fusion mode; use the target picture corresponding to the target type camera as the main picture, and use the remaining target pictures as auxiliary pictures.
[0098] The picture fusion module 300 is further used to adjust the resolutions of the multiple target pictures so that the resolutions of the multiple target pictures are the same; and to fuse the multiple target pictures to obtain a target display picture and display it.
[0099] The screen fusion module 300 is also used for the target screen including a main screen and an auxiliary screen; dividing the main screen into a plurality of first pixel blocks of a first preset size, and dividing the auxiliary screen into a plurality of second pixel blocks of a first preset size; respectively comparing each of the first pixel blocks with each of the second pixel blocks to determine a non-overlapping screen with the main screen in the auxiliary screen; and fusing the non-overlapping screen with the main screen to obtain a target display screen.
[0100] The picture fusion module 300 is also used to obtain the first pixel value of each pixel position in the first target pixel block; the first target pixel block is any pixel block among the multiple first pixel blocks; obtain the second pixel value of each pixel position in the second target pixel block; the second target pixel block is any pixel block among the multiple second pixel blocks; determine the absolute value of the difference at each pixel position based on the first pixel value and the second pixel value at the same pixel position; sum the absolute values of the differences corresponding to all pixel positions to obtain the absolute difference between the first target pixel block and the second target pixel block; determine the non-overlapping picture with the main picture in the auxiliary picture based on the absolute difference between the first pixel blocks and the second pixel blocks.
[0101] The picture fusion module 300 is also used to determine, if the absolute difference between the first pixel block and the second pixel block is less than or equal to a preset threshold, that the first pixel block and the second pixel block are overlapping pictures of the auxiliary picture and the main picture; determine, according to the overlapping pictures, a first initial non-overlapping picture in the main picture and a second initial non-overlapping picture in the auxiliary picture; reduce the first preset size by a preset step size to obtain multiple second preset sizes; divide the first initial non-overlapping picture and the second initial non-overlapping picture by the multiple second preset sizes respectively, and determine a non-overlapping picture with the main picture in the auxiliary picture.
[0102] Each module in the above display device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0103] In one embodiment, a computer device is provided. The computer device may be a vehicle control system, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the data used and generated in the above method embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a display method is implemented.
[0104] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0105] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method in any of the above embodiments is implemented.
[0106] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method in any of the above embodiments is implemented.
[0107] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in any of the above embodiments is implemented.
[0108] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0110] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0111] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A display method, characterized in that: The method comprises: Obtain vehicle driving information and multiple original images captured by various types of cameras; Determining a plurality of target images according to the driving information and the plurality of original images; The plurality of target images are merged to obtain a target display image and then displayed.
2. The method according to claim 1, characterized in that Determining a plurality of target pictures according to the driving information and the plurality of original pictures comprises: Determining a picture fusion mode according to the driving information; According to the picture fusion mode and the multiple original pictures, a plurality of target pictures are determined.
3. The method according to claim 2, characterized in that After determining the plurality of target images according to the image fusion mode and the plurality of original images, the method further comprises: Determine the target type camera according to the image fusion mode; The target screen corresponding to the target type camera is used as the main screen, and the remaining target screens are used as auxiliary screens.
4. The method according to claim 1, characterized in that The performing image fusion on the plurality of target images to obtain a target display image and displaying the target display image comprises: Adjusting the resolutions of the plurality of target images so that the resolutions of the plurality of target images are the same; The plurality of target images are merged to obtain a target display image and then displayed.
5. The method according to claim 3, characterized in that: The performing picture fusion on the plurality of target pictures to obtain a target display picture comprises: the target picture comprises a main picture and an auxiliary picture; Dividing the main picture into a plurality of first pixel blocks of a first preset size, and dividing the auxiliary picture into a plurality of second pixel blocks of a first preset size; Comparing each of the first pixel blocks with each of the second pixel blocks respectively, to determine a non-overlapping picture with the main picture in the auxiliary picture; The non-overlapping images are merged with the main image to obtain a target display image.
6. The method according to claim 5, characterized in that The step of comparing each of the first pixel blocks with each of the second pixel blocks to determine a non-overlapping picture in the auxiliary picture with the main picture comprises: Acquire a first pixel value of each pixel position in a first target pixel block; the first target pixel block is any pixel block among the plurality of first pixel blocks; Acquire a second pixel value of each pixel position in a second target pixel block; the second target pixel block is any pixel block among the plurality of second pixel blocks; Determine the absolute value of the difference at each pixel position according to the first pixel value and the second pixel value at the same pixel position; Sum the absolute values of the differences corresponding to all pixel positions to obtain the absolute difference between the first target pixel block and the second target pixel block; According to the absolute difference between the first pixel blocks and the second pixel blocks in pairs, a non-overlapping picture with the main picture in the auxiliary picture is determined.
7. The method according to claim 6, characterized in that The determining, according to the absolute difference between the first pixel blocks and the second pixel blocks in pairs, a non-overlapping picture with the main picture in the auxiliary picture comprises: If the absolute difference between the first pixel block and the second pixel block is less than or equal to a preset threshold, the first pixel block and the second pixel block are overlapping pictures of the auxiliary picture and the main picture; Determining, according to the overlapping pictures, a first initial non-overlapping picture in the main picture and a second initial non-overlapping picture in the auxiliary picture; Reducing the first preset size by a preset step length to obtain a plurality of second preset sizes; The first initial non-overlapping picture and the second initial non-overlapping picture are divided into a plurality of second preset sizes respectively, and a non-overlapping picture with the main picture in the auxiliary picture is determined.
8. A display device, characterized in that: The device comprises: An acquisition module is used to acquire the driving information of the vehicle and multiple original images collected by various types of cameras; A picture selection module, used for determining a plurality of target pictures according to the driving information and the plurality of original pictures; The image fusion module is used to fuse the multiple target images to obtain a target display image and display it.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
