A panoramic surround view system and panoramic image fusion method based on weighted mask

Through the panoramic surround view system based on weight masks, the problem of image fusion distortion of multi-group car trains is solved, a clear panoramic surround view image display is achieved, and safe driving is ensured.

CN115412676BActive Publication Date: 2024-09-06TSINGHUA UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211107863.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-13
Publication Date
2024-09-06
Estimated Expiration
2042-09-13

AI Technical Summary

Technical Problem

In the existing technology, the panoramic view system of multi-group car trains can easily cause image distortion when fusing pixels, affecting safe driving.

Method used

A panoramic surround view system based on weight masks is used to obtain exterior environment images and workshop angle data through multiple fisheye cameras, angle sensors, image data collectors and image data processors, and perform image calibration, dedistortion, projection and Mask processing generates panoramic surround images to ensure clarity and field of view during image fusion.

Benefits of technology

The panoramic image fusion of multi-group car trains is realized, with a large field of view and no blind spots, ensuring the safe driving of car trains.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412676B
    Figure CN115412676B
Patent Text Reader

Abstract

The present invention relates to a panoramic surround view system and a panoramic image fusion method based on weighted mask, and belongs to the field of assisted driving. The system includes multiple fisheye cameras, an angle sensor, an image data collector, an image data processor and a display screen; the fisheye camera is used to collect images of the environment outside the vehicle; the angle sensor is used to collect the angle data of the workshop; the image data collector is used to transmit the collected images of the environment outside the vehicle and the angle data of the workshop to the image data processor; the image data processor is used to process the images of the environment outside the vehicle and the angle data of the workshop using a weighted mask processing method to generate a panoramic surround view image; the display screen is used to display the panoramic surround view image. The present invention can better fuse the images of multiple fisheye cameras, has a large field of view and no blind spots, and ensures safe driving of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of assisted driving, and in particular to a panoramic surround view system and a panoramic image fusion method based on weighted masks. Background Art

[0002] As the number of cars per capita in China increases, traffic accidents are becoming more and more serious. Most traffic accidents are caused by drivers' operating errors due to their lack of comprehensive knowledge of the environment around the vehicle. In response to this problem, Japan first proposed the concept of vehicle panoramic view in 2003. Panoramic view mainly uses multiple wide-angle cameras to collect environmental images of vehicle accessories, processes the images collected at the same time to finally form a 360° top view of the vehicle's vicinity, and finally displays it on the display screen in the vehicle. The panoramic view system on the market is currently mainly aimed at small passenger cars, with four cameras placed at the front, rear and under the left and right rearview mirrors to achieve panoramic view. A small number of commercial vehicles place cameras on the top of the vehicle to achieve the corresponding function. The relative position of the camera in a single carriage is fixed during driving, so there is essentially no difference in the way to achieve panoramic view for commercial vehicles or small passenger cars.

[0003] At present, single-carriage cars can no longer fully meet people's needs for transportation and travel, and multi-carriage trains have gradually become the backbone of China's transportation. Multi-carriage trains are more prone to traffic accidents than single-carriage trains due to their longer vehicles and more visual blind spots. Therefore, it is very necessary to apply panoramic surround vision to multi-carriage trains. The angle between the carriages of a multi-carriage train changes over time during the driving process, and the relative positions of the cameras on different carriages also change continuously. The panoramic surround vision method currently applied to single carriages cannot be applied to the panoramic surround vision requirements of multi-carriage trains for seamless connection of vehicles.

[0004] There are currently some studies targeting multi-unit articulated vehicles. Patent CN108263283A provides a panoramic view system for multi-unit articulated vehicles, which mainly collects and analyzes the articulation angle of the vehicle's articulated plate. When the carriages rotate relatively, that is, when the positions between the cameras change relatively, the controller realizes real-time seamless panoramic stitching of multiple units by modifying the panoramic stitching parameters in real time. Patent CN112224132A proposes to find and obtain the corresponding positions of the pixels in the original image in the panoramic image, and perform pixel fusion on the overlapping areas of the original images according to the fusion weights between the original images to obtain the pixel values ​​of each point in the panoramic image, and finally obtain a panoramic image. These methods can achieve panoramic view of multi-unit car trains to a certain extent, but the excessive loss of pixels in the fusion part will cause serious distortion of the panoramic image, which is not conducive to the safe driving of multi-unit car trains. Summary of the invention

[0005] The purpose of the present invention is to provide a panoramic view system and a panoramic image fusion method based on weighted masks, so as to solve the problem in the prior art that the fused panoramic image is severely distorted, which affects safe driving.

[0006] To achieve the above object, the present invention provides the following solutions:

[0007] A weighted mask-based panoramic surround viewing system, comprising: a plurality of fisheye cameras, an angle sensor, an image data collector, an image data processor and a display screen;

[0008] The plurality of fisheye cameras and the angle sensors are all connected to the image data collector; the image data collector is connected to the image data processor; the image data processor is connected to the display screen;

[0009] The fisheye camera is used to collect images of the environment outside the vehicle; the angle sensor is used to collect workshop angle data; the image data collector is used to transmit the collected images of the environment outside the vehicle and the workshop angle data to the image data processor; the image data processor is used to process the images of the environment outside the vehicle and the workshop angle data using a weighted mask processing method to generate a panoramic surround view image; the display screen is used to display the panoramic surround view image.

[0010] Optionally, the field of view of the fisheye camera is 190°.

[0011] Optionally, the image data collector includes an image acquisition unit and a workshop angle data acquisition unit;

[0012] The image acquisition unit is connected to the fisheye camera; the image acquisition unit is used to collect the image of the vehicle's external environment;

[0013] The workshop angle data acquisition unit is connected to the angle sensor; the workshop angle data acquisition unit is used to collect the workshop angle data.

[0014] Optionally, the image data processor includes an image calibration unit, an image dedistortion unit, an image projection unit, an image weight mask unit and an image fusion unit;

[0015] The image calibration unit is connected to the image acquisition unit; the image calibration unit is used to calibrate the vehicle exterior environment image to obtain a mapping relationship between the vehicle exterior environment image and the dedistorted image;

[0016] The image dedistortion unit is connected to the image calibration unit; the image dedistortion unit is used to perform dedistortion processing on the vehicle exterior environment image according to the mapping relationship to obtain a dedistorted image;

[0017] The image projection unit is connected to the image dedistortion unit and the workshop angle data acquisition unit respectively; the image projection unit is used to set the position of the projection point according to the workshop angle data, project the dedistorted image, and obtain a projection image;

[0018] The image weight mask unit is connected to the image projection unit; the image weight mask unit is used to perform mask processing on the projection image to obtain a weight mask image;

[0019] The image fusion unit is connected to the image weight mask unit; the image fusion unit is used to fuse multiple weight mask images to obtain a panoramic surround image.

[0020] A panoramic image fusion method based on weighted mask, the method is applied to the above-mentioned panoramic surround viewing system based on weighted mask, the panoramic image fusion method based on weighted mask includes:

[0021] Obtain the image of the vehicle's exterior environment and the data of the vehicle's angle with the workshop;

[0022] Calibrate the vehicle exterior environment image to obtain a mapping relationship between the vehicle exterior environment image and a checkerboard image at a corresponding standard position;

[0023] Performing dedistortion processing on the vehicle exterior environment image according to the mapping relationship to obtain a dedistorted image;

[0024] Setting the position of the projection point according to the workshop angle data, and projecting the dedistorted image to obtain a projection image;

[0025] Performing mask processing on the projection image to obtain a weighted mask image;

[0026] A plurality of weighted mask images are fused to obtain a panoramic surround image.

[0027] Optionally, performing mask processing on the projection image to obtain a weighted mask image specifically includes:

[0028] Measure the size of the car, design the canvas size according to the size of the car, and determine the scope of the area of ​​interest;

[0029] Determining a scaling ratio according to the range of the region of interest;

[0030] Determine the position coordinates of the key points of the mask in the projection image according to the workshop angle data; the key points of the mask include fixed points, rotation transformation points, projection boundary points and articulation transformation points;

[0031] Determining a mask image according to the position coordinates of the mask key points and the scaling ratio;

[0032] Calculating the mask weight value of each pixel in the mask image using a built-in algorithm;

[0033] The mask image is processed according to the mask weight value to obtain a weighted mask image.

[0034] Optionally, the mask image includes a mask area and a non-mask area; the weight of the non-mask area is 1, and the weight of the mask area is determined according to the weight of the pixel points.

[0035] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0036] The weighted mask-based panoramic surround view system of the present invention comprises a plurality of fisheye cameras, an angle sensor, an image data collector, an image data processor and a display screen. A panoramic surround view image is obtained by acquiring an external environment image and workshop angle data and performing mask processing on the external environment image. The method of the present invention can better fuse the images of a plurality of fisheye cameras, with a large field of view and no blind spots, thereby ensuring the safe driving of multi-articulated vehicle trains. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 A structural diagram of a weighted mask-based panoramic surround viewing system provided by the present invention;

[0039] Figure 2 A flow chart of a panoramic image fusion method based on weighted mask provided by the present invention;

[0040] Figure 3 A diagram of the system composition provided by the present invention;

[0041] Figure 4 A chessboard pattern required for image calibration provided by the present invention;

[0042] Figure 5 The image obtained by dedistorting the original image provided by the present invention;

[0043] Figure 6 The projection point position diagram provided by the present invention; wherein, Figure 6 (a) is the theoretical calibration position diagram of the projection point; Figure 6(b) is the corresponding projection point position diagram when the workshop angle of each vehicle is 0; Figure 6 (c) is the corresponding projection point position diagram when the workshop angle is not 0;

[0044] Figure 7 The image weight mask map provided by the present invention; wherein, Figure 7 (a) is a schematic diagram of the locations of eight fisheye cameras; Figure 7 (b) Schematic diagram of weight masking for the images captured by each fisheye camera;

[0045] Figure 8 The key point design diagram of the mask provided by the present invention;

[0046] Fig. 9 The image mask area map provided by the present invention;

[0047] Fig.10 A mask coordinate diagram provided by the present invention;

[0048] Fig.11 A schematic diagram of mask weight calculation provided by the present invention;

[0049] Fig.12 A diagram of an implementation scheme of the method provided by the present invention;

[0050] Fig.13 The panoramic view effect diagram provided by the present invention; wherein, Fig.13 (a) is the effect diagram of no workshop angle under straight road condition. Fig.13 (b) is the effect diagram of the workshop angle under the curved working condition.

[0051] Explanation of symbols: 1 to 8 are fisheye cameras; 9 to 10 are angle sensors; 11 is an image data collector; 12 is an image data processor; ① to ⑧ are non-mask areas; The mask area. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] The purpose of the present invention is to provide a panoramic view system and a panoramic image fusion method based on weighted masks to solve the problem that the fused panoramic image is seriously distorted in the prior art, which affects safe driving. The panoramic view system is mainly used in multi-car trains to ensure their driving safety.

[0054] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0055] Figure 1 A structural diagram of a weighted mask-based panoramic view system provided by the present invention, such as Figure 1 As shown, the system includes: multiple fisheye cameras, an angle sensor, an image data collector, an image data processor and a display screen.

[0056] The plurality of fisheye cameras and the angle sensor are all connected to the image data collector; the image data collector is connected to the image data processor; the image data processor is connected to the display screen. Specifically, the field of view of the fisheye camera is 190°.

[0057] The fisheye camera is used to collect images of the environment outside the vehicle; the angle sensor is used to collect workshop angle data; the image data collector is used to transmit the collected images of the environment outside the vehicle and the workshop angle data to the image data processor; the image data processor is used to process the images of the environment outside the vehicle and the workshop angle data using a weighted mask processing method to generate a panoramic surround view image; the display screen is used to display the panoramic surround view image.

[0058] In practical applications, the image data collector installed on the train is used to collect data. The data mainly includes the images of the outside environment collected by eight fisheye cameras with a field of view of 190 degrees and the workshop angle data collected by the angle sensor. After the image data collector collects the data, the data is transmitted to the image data processor in real time for processing to obtain a panoramic view image of the area around the train. The image is finally transmitted to the display screen for display.

[0059] Specifically, the image data acquisition device includes an image acquisition unit and a workshop angle data acquisition unit; the image acquisition unit is connected to the fisheye camera; the image acquisition unit is used to collect the image of the external environment of the vehicle; the workshop angle data acquisition unit is connected to the angle sensor; the workshop angle data acquisition unit is used to collect the workshop angle data.

[0060] In actual applications, due to the large number of fisheye cameras, data needs to be collected separately by process. Each of the eight fisheye cameras corresponds to a process, and the order of the fisheye cameras corresponds to process 0 to process 7. Each individual process needs to complete the calibration, dedistortion, projection and mask weighting of subsequent images to ensure that the image style can remain consistent when the process image is fused. The workshop angle data collection unit collects workshop angle data at all times, synchronized with the image input.

[0061] Specifically, the image data processor includes an image calibration unit, an image dedistortion unit, an image projection unit, an image weight mask unit and an image fusion unit. It mainly completes the generation of panoramic surround images. These units correspond to the steps of calibration, dedistortion, projection, weight mask generation and fusion of image processing respectively.

[0062] The image calibration unit is connected to the image acquisition unit; the image calibration unit is used to calibrate the image of the vehicle's exterior environment to obtain a mapping relationship between the image of the vehicle's exterior environment and the dedistorted image. In practical applications, the unit extracts a feature object image from the acquired image and optimizes the calibration parameters based on the feature object image. A calibration is required when the system is first installed and used. The main task of the calibration is to shoot a chessboard at various positions of the vehicle-mounted camera, and then calibrate using a dedistortion algorithm and a perspective transformation algorithm. The system can obtain the lens distortion parameters of the fisheye camera and the projection relationship between the cameras through image calibration.

[0063] The image dedistortion unit is connected to the image calibration unit; the image dedistortion unit is used to perform dedistortion processing on the vehicle exterior environment image according to the mapping relationship to obtain a dedistorted image. In practical applications, the original image (vehicle exterior environment image) taken by the fisheye camera will produce radial distortion, resulting in the position coordinates of the object on the original image not being consistent with the actual situation. The unit has a dedistortion model that can eliminate distortion according to the mapping correspondence between the original image and the dedistorted image before further processing of the image. After the image is dedistorted, the position of the checkerboard in the dedistorted image is the same as the actual position.

[0064] The image projection unit is connected to the image dedistortion unit and the workshop angle data acquisition unit respectively; the image projection unit is used to set the position of the projection point according to the workshop angle data, project the dedistorted image, and obtain a projected image. In practical applications, the unit uses an algorithm to set the projection point in the dedistorted image, so that the dedistorted image can retain as many clear parts as possible after projection. The position of the projection point will change with the change of the workshop angle, so the image can be projected and spliced ​​directly. This method is different from the traditional method of cropping and splicing, and can retain the surrounding environment area captured by the fisheye camera to the greatest extent to reduce the blind spot of the field of view.

[0065] The image weight mask unit is connected to the image projection unit; the image weight mask unit is used to perform mask processing on the projected image to obtain a weighted mask image. In practical applications, the eight fisheye cameras are placed in different positions, so the clarity of the pictures taken at the same position in the environment is also different. The unit needs to perform mask processing on the projected picture, that is, shield the unclear part of the image. The present invention sets the mask weight according to the distance of the image from the fisheye camera. The specific implementation method is: after fixing the environmental area that a single fisheye camera must retain, the mask weight of the remaining environmental area is smaller the farther away from the camera. In the area with a smaller mask weight, the fewer pixels in the image, the blurrier the image. This method can ensure that there is no conflict in the pixels of the pictures taken by different cameras during image fusion, making the image clearer.

[0066] The image fusion unit is connected to the image weight mask unit; the image fusion unit is used to fuse multiple weight mask images to obtain a panoramic surround image. In practical applications, after the eight processes are calibrated, dedistorted, projected and weight masked, the unit fuses and splices the images output by the eight processes. After the algorithm is used for global degree balance, a clear panoramic surround image is finally obtained. The system transmits the panoramic surround image to the display, so that the driver can see a clear panoramic surround image.

[0067] The effect of the present invention is obvious. At present, the traditional single-carriage panoramic view system is basically aimed at the situation where the relative position of the camera does not change. After basic calibration and de-distortion, the panoramic view image is directly spliced. When a multi-carriage train is turning or traveling on a complex curve, if the traditional single-carriage panoramic view method is used, there will be serious displacement between the images, resulting in the inability to splice. Most of the existing panoramic view systems of multi-carriage trains must be cropped and spliced. This method causes the original image to lose more pixels, resulting in a smaller field of view and an increased blind spot. The weighted mask method of the present invention can better fuse the images of multiple fisheye cameras, with a large field of view and no blind spots, to ensure the safe driving of trains.

[0068] Figure 2 A flowchart of a panoramic image fusion method based on weighted mask provided by the present invention, Fig.12 Schematic diagram of the method implementation scheme provided by the present invention, wherein the method is applied to the above-mentioned weighted mask-based panoramic view system, such as Figure 2 and Fig.12 As shown, the panoramic image fusion method based on weight mask includes:

[0069] Step 201: Obtain the image of the vehicle's exterior environment and the vehicle's angle data. Figure 3The order of arrangement in corresponds to process 0 to process 7. Each individual process needs to complete the calibration, distortion removal, projection and mask weighting of the subsequent image to ensure that the image style can be consistent when the process image is fused at the end. The workshop angle data acquisition unit collects the workshop angle data at all times, which is synchronized with the image input.

[0070] Step 202: Calibrate the vehicle exterior environment image to obtain a mapping relationship between the vehicle exterior environment image and a checkerboard image at a corresponding standard position.

[0071] In practical applications, the chessboard image captured during the calibration of the system is shown in Figure 4 As shown in the figure, the calibration mainly includes lens calibration and fisheye calibration. Lens calibration first needs to determine the number of corner points on the horizontal and vertical coordinates of the distorted chessboard; then the chessboard corner points are extracted using an algorithm. Fisheye calibration requires first initializing the external parameter values ​​of the fisheye camera, then performing iterative operations based on the Jacobian matrix to calculate the values ​​of these external parameters to obtain the translation matrix, rotation matrix and rotation vector. Secondly, these parameters are optimized, and the external parameters are repeatedly called for fisheye calibration until all parameters are optimized. At the same time, the error parameters are obtained by uncertainty evaluation. If the error parameters are controlled within a certain range, it is confirmed to be passed. Through fisheye calibration, the internal parameters and distortion coefficients of the fisheye camera can be calculated, which is convenient for image dedistortion.

[0072] Step 203: Dedistort the image of the vehicle exterior environment according to the mapping relationship to obtain a dedistorted image.

[0073] In practical applications, after the intrinsic parameter matrix and distortion parameters of the fisheye camera are obtained through image calibration, the original image to be corrected is input into the de-distortion model. The original image is corrected by the correspondence between the coordinates before and after lens distortion to obtain the final corrected image. The image obtained after the original image is de-distorted is as follows: Figure 5 shown.

[0074] Step 204: setting the position of the projection point according to the workshop angle data, and projecting the dedistorted image to obtain a projection image.

[0075] In practical applications, after image dedistortion, the dedistorted image needs to be projected to the corresponding position. The projection point is set as follows: Figure 6 The theoretical calibration position of the projection point is shown in Figure 6 As shown in (a), a chessboard is arranged around the train, and projection is performed corresponding to the positions of the chessboard. When the vehicle-to-vehicle angle is 0, the corresponding projection point position is as follows: Figure 6 (b) A single fisheye camera can take into account two chessboards in the longitudinal direction of the vehicle, ensuring the breadth and clarity of the projection. When the vehicle-vehicle angle is not 0, the corresponding projection point position is as follows Figure 6 (c) As shown. The projection point of the traditional panoramic view system of multi-car trains is fixed, and the projection position will overlap when the angle between the workshops changes. After the images overlap, they need to be cropped and spliced ​​using algorithms, which will cause the image to lose a large number of pixels, resulting in an increase in the blind area of ​​the field of vision. In the present invention, the position of the projection point changes with the change of the angle between the workshops, so that the image taken by the fisheye camera can be retained to the greatest extent and is clearer.

[0076] Step 205: performing mask processing on the projection image to obtain a weighted mask image.

[0077] Specifically, performing mask processing on the projection image to obtain a weighted mask image specifically includes:

[0078] Measure the dimensions of the car, design the canvas size based on the dimensions of the car, and determine the scope of the area of ​​interest.

[0079] The scaling factor is determined according to the range of the region of interest.

[0080] The position coordinates of the key points of the mask in the projection image are determined according to the workshop angle data; the key points of the mask include fixed points, rotation transformation points, projection boundary points and articulation transformation points.

[0081] A mask image is determined according to the position coordinates of the mask key points and the scaling ratio.

[0082] The mask weight value of each pixel in the mask image is calculated using a built-in algorithm.

[0083] Specifically, the mask image includes a mask area and a non-mask area; the weight of the non-mask area is 1, and the weight of the mask area is determined according to the weight of the pixel points.

[0084] The mask image is processed according to the mask weight value to obtain a weighted mask image.

[0085] In practical applications, the clarity of images obtained by projection is inconsistent, and the clear parts need to be retained. The present invention mainly achieves this through weighted masks. Images are composed of multiple pixel arrangements, with more pixels in clear areas and fewer pixels in blurred areas. Different cameras take pictures of the same location with different clarity, mainly because the pixels that make up the image at that location are different in different pictures. The present invention sets mask weights on the projected image and determines the percentage of pixels to be retained at each position of the image according to the weights. This method can avoid image cropping, and images taken by different cameras can complement each other to improve the overall imaging effect.

[0086] Image weight mask diagram Figure 7As shown, an and AT in the figure both represent nodes of the mask area. Figure 7 (a) corresponds to the position of eight fisheye cameras, Figure 7 (b) Schematic diagram of weighted masking of images captured by each camera. The mask is mainly divided into non-mask area and mask area. The weight of the non-mask area is set to 1 due to the clear field of view, and the weight of the mask area needs to be set according to the model. As can be seen from the figure, the non-mask area of ​​the image captured by fisheye camera 1 is BCab; the non-mask area of ​​the image captured by fisheye camera 2 is EGac; the non-mask area of ​​the image captured by fisheye camera 3 is FHbd; the non-mask area of ​​the image captured by fisheye camera 4 is IKeg; the non-mask area of ​​the image captured by fisheye camera 5 is JLfh; the non-mask area of ​​the image captured by fisheye camera 6 is MOim; the non-mask area of ​​the image captured by fisheye camera 7 is NPjn; the non-mask area of ​​the image captured by fisheye camera 8 is RSmn. These parts need to retain all the projection images of the corresponding processes and not mask the images.

[0087] The mask area is the overlapping part of the images taken by different cameras. The area that needs to be weighted masked when the image taken by fisheye camera 1 and the image taken by fisheye camera 2 are EABa; the area that needs to be weighted masked when the image taken by fisheye camera 2 and the image taken by fisheye camera 4 are GIec; the area that needs to be weighted masked when the image taken by fisheye camera 4 and the image taken by fisheye camera 6 are KMig; the area that needs to be weighted masked when the image taken by fisheye camera 6 and the image taken by fisheye camera 8 are OQRm; the area that needs to be weighted masked when the image taken by fisheye camera 1 and the image taken by fisheye camera 3 are CDFb; the area that needs to be weighted masked when the image taken by fisheye camera 3 and the image taken by fisheye camera 5 are HJfd; the area that needs to be weighted masked when the image taken by fisheye camera 5 and the image taken by fisheye camera 7 are LNjh; the area that needs to be weighted masked when the image taken by fisheye camera 7 and the image taken by fisheye camera 8 are PTSn. The mask weights of these parts need to be judged by the model. The smaller the weight, the fewer pixels are retained to ensure that there is no conflict when the images are fused.

[0088] In practical applications, the parameters that need to be configured for the mask include canvas size, car size, and scaling ratio. First, the size of the car needs to be measured, then the canvas size is designed based on the car size to determine the size of the area of ​​interest, and finally the scaling ratio is determined. Mask generation requires determining the position of the mask key points. According to the different ways of determining the position coordinates of the key points, the mask key points are divided into four types: fixed points, rotation transformation points, projection boundary points, and articulation transformation points. Figure 8 shown.

[0089] When the train is moving, the position of the mask point set in this solution will change accordingly with the change of the angle between the two cars. This ensures that the position of the mask generation changes with the change of the relative position of the 8 cameras. The position of the fixed point will not change with the change of the angle between the two cars. The positions of the rotation transformation point, projection boundary point and articulation transformation point will change with the change of the angle between the two cars. Fig.10 In the coordinate system established in , set O(x0,y0) as the origin of the coordinate system. The following will determine the method of calculating the coordinates of each point. Suppose the coordinates of each point when the workshop angle is not 0 are O' k (x' k ,y' k ), when the workshop angle is 0, the coordinates of each point are O k (x k ,y k ), when the workshop angle is 0, the coordinates of each point are known. When the workshop angle is θ, the coordinates of each rotation transformation point are calculated as follows:

[0090]

[0091] In order to better represent the number and position relationship of the projection boundary points and the hinge transformation points, the corresponding coordinates are plotted on Fig.10 The specific corresponding relationship is as follows Fig.10 When the workshop angle is θ, the fixed point D1(x D1 ,y D1 ) to find the coordinates of the hinge transformation point H1(x H1 ,y H1 ) and H2(x H2 ,y H2 ), the calculation method is as follows, and the coordinate calculation method of the other two hinge transformation points is the same as this method.

[0092]

[0093]

[0094] After obtaining the coordinates of the rotation transformation point, assume that the coordinates of the rotation transformation point R1(x R1 ,y R1 ), R2(x R2 ,y R2 ), the projection boundary corner coordinates O(x0,y0), A(x1,y1), B(x2,y2), C(x3,y3), then the projection boundary point P1(x P1 ,y P1 ), P2(x P2 ,y P2 ) is calculated as:

[0095]

[0096]

[0097] After all the mask coordinate points are determined, the mask map corresponding to each camera can be generated. The mask area is divided into a mask area and a non-mask area. Fig. 9 As shown in the figure. The mask weight of the non-masked area is set to 1, that is, all pixels in the area are retained. The serial number of each area corresponds to the label of each fisheye camera. The mask area is composed of pixels captured by different cameras, and the weight of a pixel in the mask area of ​​the corresponding camera needs to be determined. Fig.11 The specific calculation formula of the pixel at point M is as follows. When point M is the projection of the fisheye camera 5 to the mask area, the expression of the pixel weight at point M is:

[0098]

[0099] When point M is projected to the mask area by fisheye camera 3, the expression of the pixel weight of point M is:

[0100]

[0101] Then the maximum value between gray(M1) and gray(M2) is taken as the pixel at point M.

[0102] Step 206: Fuse the multiple weighted mask images to obtain a panoramic view image. In practical applications, the eight weighted masked images are spliced ​​together to obtain a panoramic view image of the vehicle or train. The fused image will be sent to the display for real-time display. Fig.13 As shown, Fig.13 (a) is the effect diagram of no workshop angle under straight road condition. Fig.13 (b) is the effect diagram of the workshop angle under the curved working condition.

[0103] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0104] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A weighted mask-based panoramic view system, characterized in that: include: Multiple fisheye cameras, angle sensors, image data collectors, image data processors and display screens; The plurality of fisheye cameras and the angle sensors are all connected to the image data collector; the image data collector is connected to the image data processor; the image data processor is connected to the display screen; The fisheye camera is used to collect the image of the environment outside the vehicle; the angle sensor is used to collect the workshop angle data; the image data collector is used to transmit the collected image of the environment outside the vehicle and the workshop angle data to the image data processor; The image data processor is used to process the vehicle exterior environment image and the vehicle-to-vehicle angle data using a weighted mask processing method to generate a panoramic surround view image; The display screen is used to display the panoramic surround image; The image data collector includes an image acquisition unit and a workshop angle data acquisition unit; The image acquisition unit is connected to the fisheye camera; the image acquisition unit is used to collect the image of the vehicle's external environment; The workshop angle data acquisition unit is connected to the angle sensor; the workshop angle data acquisition unit is used to collect the workshop angle data; The image data processor includes an image calibration unit, an image dedistortion unit, an image projection unit, an image weight mask unit and an image fusion unit; The image calibration unit is connected to the image acquisition unit; the image calibration unit is used to calibrate the vehicle exterior environment image to obtain a mapping relationship between the vehicle exterior environment image and the dedistorted image; The image dedistortion unit is connected to the image calibration unit; the image dedistortion unit is used to perform dedistortion processing on the vehicle exterior environment image according to the mapping relationship to obtain a dedistorted image; The image projection unit is connected to the image dedistortion unit and the workshop angle data acquisition unit respectively; the image projection unit is used to set the position of the projection point according to the workshop angle data, project the dedistorted image, and obtain a projection image; The image weight mask unit is connected to the image projection unit; the image weight mask unit is used to perform mask processing on the projection image to obtain a weight mask image; The image fusion unit is connected to the image weight mask unit; the image fusion unit is used to fuse multiple weight mask images to obtain a panoramic surround image.

2. The weighted mask-based panoramic view system according to claim 1, characterized in that: The field of view of the fisheye camera is 190°.

3. A panoramic image fusion method based on weighted mask, characterized in that: The method is applied to the panoramic view system based on weighted mask according to any one of claims 1 to 2, and the panoramic image fusion method based on weighted mask includes: Obtain the image of the vehicle's exterior environment and the data of the vehicle's angle with the workshop; Calibrate the vehicle exterior environment image to obtain a mapping relationship between the vehicle exterior environment image and a checkerboard image at a corresponding standard position; Performing dedistortion processing on the vehicle exterior environment image according to the mapping relationship to obtain a dedistorted image; Setting the position of the projection point according to the workshop angle data, and projecting the dedistorted image to obtain a projection image; Performing mask processing on the projection image to obtain a weighted mask image; A plurality of weighted mask images are fused to obtain a panoramic surround image.

4. The panoramic image fusion method based on weighted mask according to claim 3, characterized in that: The performing mask processing on the projection image to obtain a weighted mask image specifically includes: Measure the size of the car, design the canvas size according to the size of the car, and determine the scope of the area of ​​interest; Determining a scaling ratio according to the range of the region of interest; Determine the position coordinates of the key points of the mask in the projection image according to the workshop angle data; the key points of the mask include fixed points, rotation transformation points, projection boundary points and articulation transformation points; Determining a mask image according to the position coordinates of the mask key points and the scaling ratio; Calculating the mask weight value of each pixel in the mask image using a built-in algorithm; The mask image is processed according to the mask weight value to obtain a weighted mask image.

5. The method for panoramic image fusion based on weighted mask according to claim 4, characterized in that: The mask image includes a mask area and a non-mask area; the weight of the non-mask area is 1, and the weight of the mask area is determined according to the weight of the pixel point.