Vehicle-mounted all-around panoramic image generation method and system

By obtaining the vehicle observation perspective and the initial fisheye image, using the vehicle surround view model to generate fusion area weights and performing mapping processing, the problem of misalignment and ghosting in the vehicle surround view panoramic image is solved, and image clarity and user experience are improved.

CN118587309APending Publication Date: 2024-09-03ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410739212.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Due to the lack of camera depth information and inherent calibration errors in existing vehicle-mounted panoramic imaging systems, the generated vehicle-mounted panoramic images have obvious misalignment or ghosting, affecting image clarity and user experience.

Method used

By obtaining the vehicle observation perspective and the initial vehicle fisheye image, the vehicle surround view model is used to generate the fusion area weight, and the initial image is mapped to generate the target vehicle fisheye image. Finally, the vehicle surround view panoramic image is generated through real-time rendering processing to avoid misalignment and Ghosting problem.

Benefits of technology

It improves the clarity of in-vehicle surround panoramic images, improves user experience, and solves the problems of image misalignment and ghosting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587309A
    Figure CN118587309A
Patent Text Reader

Abstract

The invention provides a method for generating a vehicle-mounted all-around panoramic image. The method comprises the following steps: acquiring a vehicle-mounted observation view angle and a corresponding initial vehicle-mounted fisheye image; obtaining a vehicle-mounted looking-around model, inputting the vehicle-mounted observation visual angle into the vehicle-mounted looking-around model for processing, and respectively generating fusion region weights corresponding to the plurality of initial vehicle-mounted fisheye images; performing mapping processing on the corresponding initial vehicle-mounted fisheye images according to the plurality of fusion region weights to generate a target vehicle-mounted fisheye image; and performing real-time rendering processing on the target vehicle-mounted fisheye image to generate a vehicle-mounted panoramic image. According to the generation method and system of the vehicle-mounted all-around panoramic image, the definition of the vehicle-mounted all-around panoramic image can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method and system for generating a vehicle-mounted surround view panoramic image. Background Art

[0002] In recent years, due to the rapid development of the automobile industry, more and more private cars have become an indispensable means of transportation for people to travel. With the rapid development of automobile safety technology, the on-board panoramic imaging system has become an indispensable configuration for automobiles.

[0003] However, due to the lack of camera depth information and inherent calibration errors, the existing on-board panoramic imaging system will cause obvious misalignment or ghosting in the generated on-board surround panoramic image, which affects the clarity of the panoramic image and reduces the user experience. Therefore, there is room for improvement. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method and system for generating a vehicle-mounted surround view panoramic image, which improves the problem of misalignment or ghosting of the vehicle-mounted surround view panoramic image.

[0005] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0006] The present invention provides a method for generating a vehicle-mounted surround view panoramic image, comprising:

[0007] Obtain the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image;

[0008] Acquire a vehicle-mounted surround view model, and input the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing, and respectively generate fusion area weights corresponding to a plurality of the initial vehicle-mounted fisheye images;

[0009] Mapping the corresponding initial vehicle-mounted fisheye image according to the plurality of fusion region weights to generate a target vehicle-mounted fisheye image;

[0010] The target vehicle-mounted fisheye image is subjected to real-time rendering processing to generate a vehicle-mounted surround view panoramic image.

[0011] In one embodiment of the present invention, the step of obtaining the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image includes:

[0012] Acquire a vehicle-mounted observation angle, and determine the coordinates of the vertex of the boundary ray according to the vehicle-mounted observation angle;

[0013] An initial on-board fisheye image corresponding to the on-board observation angle is acquired, and the initial on-board fisheye image at least includes an initial on-board fisheye image of the surrounding directions of the automobile body.

[0014] In one embodiment of the present invention, the plurality of fusion area weights are divided into a first fusion weight and a second fusion weight, the sum of the first fusion weight and the second fusion weight is 1, and the steps of obtaining a vehicle-mounted surround view model, inputting the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing, and respectively generating a plurality of fusion area weights corresponding to the initial vehicle-mounted fisheye images include:

[0015] Obtain the vehicle surround view model;

[0016] Processing the vehicle-mounted observation angle and the coordinates of the boundary ray vertices according to the vehicle-mounted surround view model to generate a first boundary ray and a second boundary ray, wherein a boundary ray angle and a to-be-fused area are formed between the first boundary ray and the second boundary ray;

[0017] Acquire the fixed point coordinates according to the vehicle-mounted observation angle, and process the fixed point coordinates according to the first boundary ray and the boundary ray vertex coordinates to generate a fixed point angle;

[0018] Based on the positional relationship between the fixed point coordinates and the boundary ray angle, the fixed point angle and the boundary ray angle are processed to generate a first fusion weight and a second fusion weight.

[0019] In one embodiment of the present invention, the step of processing the vehicle-mounted observation angle and the boundary ray vertex coordinates according to the vehicle-mounted surround view model to generate a first boundary ray and a second boundary ray, wherein a boundary ray angle and a region to be fused are formed between the first boundary ray and the second boundary ray includes:

[0020] Performing function mapping processing on the vehicle-mounted observation angle to generate a target boundary ray influence coefficient;

[0021] Performing ray slope function processing on the target boundary ray influence coefficient based on the vehicle body length and the vehicle body width to generate a ray slope data set, wherein the ray slope data set includes a first ray slope and a second ray slope;

[0022] Performing ray generation processing on the vertex coordinates of the boundary ray according to the first ray slope and the second ray slope, respectively, to generate a first boundary ray and a second boundary ray correspondingly;

[0023] A boundary ray angle is formed between the first boundary ray and the second boundary ray, and an area corresponding to the boundary ray angle is an area to be fused.

[0024] In one embodiment of the present invention, the step of performing function mapping processing on the vehicle-mounted observation angle to generate the target boundary ray influence coefficient includes:

[0025] Performing initial function mapping processing on the vehicle-mounted observation angle to generate a first influence coefficient;

[0026] Performing intermediate function mapping processing on the first influence coefficient to generate a second influence coefficient;

[0027] The second influence coefficient is subjected to objective function mapping processing to generate a target boundary influence coefficient.

[0028] In one embodiment of the present invention, the step of processing the fixed point angle and the boundary ray angle based on the positional relationship between the fixed point coordinates and the boundary ray angle to generate the first fusion weight and the second fusion weight includes:

[0029] Determine whether the fixed point coordinates are within the boundary ray angle;

[0030] If the fixed point coordinates are within the boundary ray angle, determining the first fusion weight according to the proportion of the fixed point angle in the boundary ray angle, and determining the second fusion weight according to the first fusion weight;

[0031] If the fixed point coordinates are outside the boundary ray angle, determining whether the fixed point coordinates are close to the first boundary ray;

[0032] If the fixed point coordinates are close to the first boundary ray, the first fusion weight is determined to be 1 and the second fusion weight is determined to be 0;

[0033] If the fixed point coordinates are close to the second boundary ray, the first fusion weight is determined to be 0 and the second fusion weight is determined to be 1.

[0034] In one embodiment of the present invention, the step of mapping the corresponding initial vehicle-mounted fisheye image according to the plurality of fusion region weights to generate a target vehicle-mounted fisheye image comprises:

[0035] According to the first fusion weight and the second fusion weight, the initial vehicle-mounted fisheye images in the corresponding directions are respectively intercepted and processed to generate a plurality of vehicle-mounted fisheye images to be fused;

[0036] Performing external parameter transformation processing on the plurality of vehicle-mounted fisheye images to be fused respectively, and correspondingly generating a plurality of external parameter transformed vehicle-mounted fisheye images;

[0037] The internal parameter mapping processing is performed on the multiple external parameter transformed vehicle-mounted fisheye images respectively, and multiple intermediate vehicle-mounted fisheye images are generated accordingly.

[0038] A weighted fusion process is performed on the plurality of intermediate vehicle-mounted fisheye images according to the first fusion weight and the second fusion weight to generate a target vehicle-mounted fisheye image.

[0039] In one embodiment of the present invention, the step of performing external parameter transformation processing on the plurality of vehicle-mounted fisheye images to be fused respectively and correspondingly generating a plurality of external parameter transformed vehicle-mounted fisheye images comprises:

[0040] Performing external parameter rotation matrix processing in corresponding directions on the multiple vehicle-mounted fisheye images to be fused respectively to generate multiple external parameter rotated fisheye images;

[0041] The plurality of external parameter rotated fisheye images are respectively processed with external parameter translation matrices in corresponding directions to generate a plurality of external parameter transformed vehicle-mounted fisheye images.

[0042] In one embodiment of the present invention, the step of performing internal parameter mapping processing on the plurality of external parameter transformed vehicle-mounted fisheye images respectively to generate a plurality of intermediate vehicle-mounted fisheye images accordingly comprises:

[0043] Performing internal reference transformation processing in corresponding directions on the plurality of external reference transformed vehicle-mounted fisheye images respectively to generate a plurality of corresponding internal reference fisheye images;

[0044] The multiple internal reference fisheye images are respectively subjected to dedistortion mapping processing in corresponding directions to generate multiple intermediate vehicle-mounted fisheye images.

[0045] The present invention also provides a vehicle-mounted surround view panoramic image generation system, comprising:

[0046] An information acquisition module, used to obtain the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image;

[0047] A model generation module, used for obtaining a vehicle-mounted surround view model, and inputting the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing, and respectively generating a plurality of fusion area weights corresponding to the initial vehicle-mounted fisheye images;

[0048] A fusion mapping module, used for mapping the corresponding initial vehicle-mounted fisheye image according to the plurality of fusion area weights to generate a target vehicle-mounted fisheye image;

[0049] The rendering processing module is used to perform real-time rendering processing on the target vehicle-mounted fisheye image to generate a vehicle-mounted surround view panoramic image.

[0050] As described above, the present invention provides a method and system for generating a vehicle-mounted surround view panoramic image, which can avoid problems such as misalignment or ghosting in the fusion area of ​​the vehicle-mounted surround view panoramic image, improve the clarity of the vehicle-mounted surround view panoramic image, and thus improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0052] Figure 1 is a flowchart of a method for generating a vehicle-mounted surround view panoramic image according to an exemplary embodiment of the present application;

[0053] Figure 2 yes Figure 1 Step S1010 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0054] Figure 3 Display as Figure 2 Schematic diagram of the body coordinate system in ;

[0055] Figure 4 yes Figure 1 Step S200 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0056] Figure 5 yes Figure 4 Step S220 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0057] Figure 6 yes Figure 5 Step S221 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0058] Figure 7 yes Figure 4 Step S240 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0059] Figure 8 Display as Figure 5 Schematic diagram of the area to be fused generated in ;

[0060] Fig. 9 Display as Figure 7 Schematic diagram showing the coordinates of the fixed point in the area to be fused;

[0061] Fig.10 yes Figure 1 Step S300 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0062] Fig.11 yes Fig.10 Step S320 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0063] Fig.12 yes Fig.10 Step S330 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0064] Fig.13 yes Figure 1 A schematic diagram of a system for generating a vehicle-mounted surround view panoramic image in the illustrated embodiment. DETAILED DESCRIPTION

[0065] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and the features in the embodiments can be combined with each other without conflict. It should also be understood that the terms used in the embodiments of the present invention are intended to describe specific embodiments, rather than to limit the scope of protection of the present invention. The processing methods for which specific conditions are not indicated in the following examples are usually carried out under conventional conditions or according to the conditions recommended by the manufacturers.

[0066] See also Figures 1 to 13 . It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change in the proportional relationship, or adjustment of the size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical content disclosed by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. Changes or adjustments in their relative relationships should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.

[0067] The present invention proposes a method and system for generating a vehicle-mounted surround view panoramic image, which relates to the field of image processing technology and can be specifically applied to generating a vehicle-mounted surround view panoramic image of a car in real time, and can avoid obvious dislocation and re-alignment in the vehicle-mounted surround view panoramic image, thereby improving the clarity of the vehicle-mounted surround view panoramic image and thus improving the user experience.

[0068] See also Figure 1 , Figure 1 The figure shows a flow chart of a method for generating a vehicle-mounted surround view panoramic image provided by the present invention. In one embodiment of the present invention, the method for generating a vehicle-mounted surround view panoramic image may include the following steps.

[0069] Step S100: obtaining a vehicle-mounted observation angle and a corresponding initial vehicle-mounted fisheye image.

[0070] Step S200: Obtain a vehicle-mounted surround view model, and input the vehicle-mounted observation perspective into the vehicle-mounted surround view model for processing, and generate fusion area weights corresponding to multiple initial vehicle-mounted fisheye images respectively.

[0071] Step S300: mapping the corresponding initial vehicle-mounted fisheye image according to multiple fusion area weights to generate a target vehicle-mounted fisheye image.

[0072] Step S400: Perform real-time rendering processing on the target vehicle-mounted fisheye image to generate a vehicle-mounted surround view panoramic image.

[0073] See also Figure 2 and Figure 3 In one embodiment of the present invention, when step S100 is executed, the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image are obtained. Specifically, step S100 may include steps S110 to S120, which are described in detail as follows.

[0074] Step S110: Acquire the vehicle-mounted observation angle, and determine the coordinates of the vertex of the boundary ray according to the vehicle-mounted observation angle.

[0075] Step S120, obtaining an initial vehicle-mounted fisheye image corresponding to the vehicle-mounted observation angle, and the initial vehicle-mounted fisheye image at least includes an initial vehicle-mounted fisheye image of the directions around the vehicle body.

[0076] In one embodiment of the present invention, when executing step S110, specifically, the vehicle-mounted observation angle can be obtained according to manual selection by the user, and the range of the vehicle-mounted observation angle can be greater than or equal to 0° and less than or equal to 360°. That is, the vehicle-mounted observation angle can be any angle around the vehicle body. For example, see Figure 3 , the vehicle-mounted observation angle in front of the vehicle body can be defined as 0°, and the vehicle-mounted observation angle increases counterclockwise based on the direction of the vehicle body top view. That is, based on the direction of the vehicle body top view, the vehicle-mounted observation angle facing the left side of the vehicle body is 90°, the vehicle-mounted observation angle facing the rear side of the vehicle body is 180°, and the vehicle-mounted observation angle facing the right side of the vehicle body is 270°.

[0077] In addition, a vehicle body coordinate system can be established with the center of the vehicle body as the origin, the direction directly in front of the vehicle body as the positive axis of the X axis, and the direction directly to the right of the vehicle body as the positive axis of the Y axis. The vertex coordinates of the boundary ray can be the coordinates of the four vertices of the vehicle body in the vehicle body coordinate system, and the vertex coordinates of the boundary ray can be determined according to the change of the vehicle-mounted observation angle. For example, see Figure 3, when the vehicle-mounted observation angle is 90°, the boundary ray vertex coordinates may be the coordinates of the left front vertex of the vehicle body in the vehicle body coordinate system. However, it is not limited thereto. In addition to the vehicle-mounted observation angle, the vehicle body length and body width may also be obtained, and the vehicle body length and body width may be preset values, and the vehicle body length and body width may not be specifically limited. For example, the vehicle body length may be 4770 mm, and the vehicle body width may be 1895 mm.

[0078] In one embodiment of the present invention, when executing step S120, specifically, the initial on-board fisheye images of the vehicle body in different directions can be determined according to the on-board observation angle, and the initial on-board fisheye images can at least include the initial on-board fisheye images of the directions around the vehicle body, and the initial on-board fisheye images can be acquired by respectively collecting fisheye cameras in the directions around the vehicle body. For example, the initial on-board fisheye images of the directions around the vehicle body can be acquired by respectively collecting fisheye cameras in the front, rear, left and right directions of the vehicle body. When the on-board observation angle is between 0° and 90°, the initial on-board fisheye images can include the initial on-board fisheye images acquired by the front-view fisheye camera of the vehicle body and the initial on-board fisheye images acquired by the left-view fisheye camera. In addition, the camera angle of the fisheye camera can be between 150 degrees and 180 degrees.

[0079] See also Figure 4 In one embodiment of the present invention, when step S200 is executed, the vehicle-mounted surround view model is obtained, and the vehicle-mounted observation angle is input into the vehicle-mounted surround view model for processing, and the fusion area weights corresponding to the multiple initial vehicle-mounted fisheye images are generated respectively. Specifically, step S200 may include steps S210 to S240, which are described in detail as follows.

[0080] Step S210: Acquire the vehicle-mounted surround view model.

[0081] Step S220: Process the vehicle-mounted observation angle and the coordinates of the boundary ray vertices according to the vehicle-mounted surround view model to generate a first boundary ray and a second boundary ray, wherein a boundary ray angle and a to-be-fused area are formed between the first boundary ray and the second boundary ray.

[0082] Step S230: acquiring the fixed point coordinates according to the vehicle-mounted observation angle, and processing the fixed point coordinates according to the first boundary ray and the boundary ray vertex coordinates to generate the fixed point angle.

[0083] Step S240: Based on the positional relationship between the fixed point coordinates and the boundary ray angle, the fixed point angle and the boundary ray angle are processed to generate a first fusion weight and a second fusion weight.

[0084] In one embodiment of the present invention, when executing step S210, specifically, the vehicle-mounted surround view model may be a bowl-shaped model, the bottom of which is circular, and the bowl wall is a quadratic curve. Figure 3 The top view of the vehicle surround model is circular, and the vehicle coordinate system can be established with the center of the vehicle body as the origin, the direction directly in front of the vehicle body as the positive axis of the X axis, and the direction directly to the right of the vehicle body as the positive axis of the Y axis. Among them, the characteristic of the quadratic curve is that the field of view is wider in the center and gradually narrows as it extends upward. This design can better reflect the sense of distance and depth of field of the vehicle's surrounding environment.

[0085] See also Figure 5 In one embodiment of the present invention, when step S220 is executed, the vehicle-mounted observation angle and the boundary ray vertex coordinates are processed according to the vehicle-mounted surround view model to generate a first boundary ray and a second boundary ray, and a boundary ray angle and a to-be-fused area are formed between the first boundary ray and the second boundary ray. Specifically, step S220 may include steps S221 to S223, which are described in detail as follows.

[0086] Step S221: Perform function mapping processing on the vehicle-mounted observation angle to generate a target boundary ray influence coefficient.

[0087] Step S222: performing ray slope function processing on the target boundary ray influence coefficient based on the vehicle body length and the vehicle body width to generate a ray slope data set, where the ray slope data set includes a first ray slope and a second ray slope.

[0088] Step S223, performing ray generation processing on the boundary ray vertex coordinates according to the first ray slope and the second ray slope, respectively, to generate a first boundary ray and a second boundary ray correspondingly, wherein a boundary ray angle is formed between the first boundary ray and the second boundary ray, and the area corresponding to the boundary ray angle is the area to be fused.

[0089] See also Figure 5 and Figure 6 In one embodiment of the present invention, when executing step S221, the vehicle-mounted observation angle is subjected to function mapping processing to generate the target boundary ray influence coefficient. Specifically, step S221 may include steps S2211 to S2213, which are described in detail as follows.

[0090] Step S2211: perform initial function mapping processing on the vehicle-mounted observation angle to generate a first influence coefficient.

[0091] Step S2212: Perform intermediate function mapping processing on the first influence coefficient to generate a second influence coefficient.

[0092] Step S2213: Perform objective function mapping processing on the second influence coefficient to generate a target boundary influence coefficient.

[0093] In one embodiment of the present invention, when step S2211 is executed, specifically, the vehicle-mounted observation angle is subjected to initial function mapping processing to generate a first influence coefficient to map the vehicle-mounted observation angle from 0°-360° to a specific value. The initial function mapping processing of the vehicle-mounted observation angle may satisfy the following formula:

[0094] factor1=||yaw-180.0|-90.0| / 90.0-0.5,

[0095] Among them, yaw can be expressed as the vehicle-mounted observation angle, yaw is greater than or equal to 0° and less than or equal to 360°, and factor1 can be expressed as the first influence coefficient. However, it is not limited to this, and the vehicle-mounted observation angle can also satisfy other formulas.

[0096] In one embodiment of the present invention, when executing step S2212, specifically, the first influence coefficient is subjected to intermediate function mapping processing to generate the second influence coefficient, that is, the second influence coefficient can be determined by the first influence. The intermediate function mapping processing of the first influence coefficient can satisfy the following formula,

[0097]

[0098] Among them, factor1 can be expressed as the first influence coefficient, factor2 can be expressed as the second influence coefficient, * can be expressed as the product symbol, and 0.5 can be an empirical value, that is, the intermediate function mapping processing of the first influence coefficient can also satisfy other formulas, as long as it can satisfy that when yaw is between 0°-90° or 180°-270°, factor2 can change from 1 to 0, and when yaw is between 90°-180° or 270°-360°, factor2 can change from 0 to 1.

[0099] In one embodiment of the present invention, when step S2213 is executed, specifically, the target mapping function processing performed on the second influence coefficient may satisfy the following formula:

[0100] kScale = 0.5-factor2*0.375,

[0101] Among them, factor2 can be represented as the second influence coefficient, * can be represented as the product symbol, kScale can be represented as the target boundary influence coefficient, and 0.5 and 0.375 can be represented as empirical values ​​for adjusting the target boundary influence coefficient, that is, 0.5 and 0.375 can also be replaced by other numbers.

[0102] See also Figure 5 , Figure 6 , Figure 8 and Fig. 9 In one embodiment of the present invention, when executing step S222, specifically, the vehicle body length and the vehicle body width are preset values, which may vary according to different vehicle models. The ray slope function processing of the target boundary ray influence coefficient based on the vehicle body length and the vehicle body width may include but is not limited to firstly performing ray slope processing on the vehicle body length, the vehicle body width and the target boundary ray influence coefficient to generate a first ray slope. Then, the first ray slope is subjected to coefficient product processing to generate a second ray slope.

[0103] Furthermore, the first ray slope can satisfy the following formula:

[0104] K1=(L / W)*kScale,

[0105] Wherein, L may be represented as the vehicle body length, W may be represented as the vehicle body width, * may be represented as a product sign, kScale may be represented as a target boundary influence coefficient, and K1 may be represented as a first ray slope.

[0106] Furthermore, the coefficient product processing is performed on the first ray slope to generate the second ray slope, which can satisfy the following formula:

[0107] K2=t*K1,

[0108] Among them, K1 can be expressed as the first ray slope, t can be expressed as a constant coefficient, and t can be 1.5 or other values, and K2 can be expressed as the second ray slope.

[0109] See also Figure 5 , Figure 6 , Figure 8 and Fig. 9 In one embodiment of the present invention, when executing step S223, specifically, performing ray generation processing on the boundary ray vertex coordinates according to the first ray slope and the second ray slope respectively means drawing boundary rays according to the first ray slope and the second ray slope, with the boundary ray vertex coordinates as the starting point and the Y-axis of the vehicle body coordinate system as the base line, so as to generate the first boundary ray and the second boundary ray accordingly.

[0110] The first boundary ray and the second boundary ray may form a boundary ray angle on the same plane, and the area corresponding to the boundary ray angle may be defined as the area to be fused. Figure 8, when the vehicle-mounted observation angle is 180°, the area to be fused can be A', and when the vehicle-mounted observation angle is 270°, the area to be fused can be B'. In addition, when the observation angle is changed from the rear view angle of 180° to the right view angle of 270°, the initial vehicle-mounted fisheye image of the left side of the vehicle body and the initial vehicle-mounted fisheye image of the front side of the vehicle body can be selected, and the corresponding generated area to be fused can be adjusted from A' to B'. Please refer to Fig. 9 , the first boundary ray may be K1, the second boundary ray may be K2, the area formed by K1 and K2 is the area to be fused, the vertex coordinate O of the boundary ray may be the vertex coordinate of the left front of the vehicle body, and the area to be fused formed by the second boundary ray K2 may fall on the left front of the vehicle body.

[0111] See also Figure 3 and Fig. 9 In one embodiment of the present invention, when executing step S230, specifically, the corresponding fixed point coordinates can be obtained according to the vehicle-mounted observation angle, and the fixed point coordinates can be preset arbitrary point coordinates in the surround model, and the fixed point coordinates can fall within the plane formed by the first boundary ray and the second boundary ray. For example, refer to Fig. 9 , the fixed point can be defined as point C. Processing the fixed point coordinates according to the first boundary ray and the boundary ray vertex coordinates means that a ray can be emitted from the boundary ray vertex coordinates to the fixed point coordinates to form a ray between the fixed point coordinates and the boundary ray vertex coordinates, and then the angle formed between the ray formed between the fixed point coordinates and the boundary ray vertex coordinates and the first boundary ray can be defined as the fixed point angle theta.

[0112] See also Figure 3 and Figure 7 In one embodiment of the present invention, when step S240 is executed, the fixed point angle and the boundary ray angle are processed based on the positional relationship between the fixed point coordinates and the boundary ray angle to generate a first fusion weight and a second fusion weight. Specifically, step S240 may include steps S241 to S245, which are described in detail as follows.

[0113] Step S241, determine whether the fixed point coordinates are within the boundary ray angle.

[0114] Step S242: If the fixed point coordinates are within the boundary ray angle, a first fusion weight is determined according to the proportion of the fixed point angle in the boundary ray angle, and a second fusion weight is determined according to the first fusion weight.

[0115] Step S243: If the fixed point coordinates are outside the boundary ray angle, determine whether the fixed point coordinates are close to the first boundary ray.

[0116] Step S244: If the fixed point coordinates are close to the first boundary ray, the first fusion weight is determined to be 1 and the second fusion weight is determined to be 0.

[0117] Step S245: If the fixed point coordinates are close to the second boundary ray, the first fusion weight is determined to be 0 and the second fusion weight is determined to be 1.

[0118] See also Figure 3 In one embodiment of the present invention, when executing step S240, specifically, multiple fusion area weights can be divided into a first fusion weight and a second fusion weight, and the sum of the first fusion weight and the second fusion weight is 1. Among them, the first fusion weight can be expressed as the proportion of the vehicle-mounted initial fisheye image on the left side of the vehicle-mounted observation angle in the area to be fused, and the second fusion weight can be expressed as the proportion of the vehicle-mounted initial fisheye image on the right side of the vehicle-mounted observation angle in the area to be fused. However, it is not limited to this. The first fusion weight can also be expressed as the proportion of the vehicle-mounted initial fisheye image on the right side of the vehicle-mounted observation angle in the area to be fused, and the second fusion weight can correspond to the proportion of the vehicle-mounted initial fisheye image on the left side of the vehicle-mounted observation angle in the area to be fused. For example, please refer to Figure 8 , when the vertex coordinates of the boundary ray are the vertex coordinates of the left front of the vehicle body, and the area to be fused formed by the first boundary ray and the second boundary ray falls on the left front of the vehicle body, the first fusion weight can be expressed as the proportion of the initial vehicle-mounted fisheye image in the left view direction of the vehicle body in the area to be fused. The second fusion weight can be expressed as the proportion of the initial vehicle-mounted fisheye image in the front view direction of the vehicle body in the area to be fused, and the sum of the first fusion weight and the second fusion weight is 1.

[0119] Furthermore, the first fusion weight and the second fusion weight can be determined by the following method. First, it can be determined whether the fixed point coordinates are within the boundary ray angle. If the fixed point coordinates are within the boundary ray angle, the first fusion weight can be determined according to the proportion of the fixed point angle in the boundary ray angle, and the second fusion weight can be determined according to the first fusion weight. Among them, when the fixed point coordinates are within the boundary ray angle, the first fusion weight can be the ratio between the fixed point angle and the boundary ray angle, and the second fusion weight can be determined by subtracting the first fusion weight from 1.

[0120] Furthermore, if the fixed point coordinates are outside the boundary ray angle, it is necessary to determine whether the fixed point coordinates are close to the first boundary ray to further determine the first fusion weight and the second fusion weight. Among them, if the fixed point coordinates are close to the first boundary ray, the first fusion weight is determined to be 1, and the second fusion weight is determined to be 0. That is, it means that there is no need to fuse the initial vehicle-mounted fisheye images on both sides of the vehicle-mounted observation angle, and the initial vehicle-mounted fisheye image corresponding to the first fusion weight can be directly selected as the vehicle-mounted fisheye image to be fused. However, it is not limited to this. If the fixed point coordinates are close to the second boundary ray, the first fusion weight is determined to be 0, and the second fusion weight is 1. That is, the initial vehicle-mounted fisheye image corresponding to the second fusion weight can be directly selected as the vehicle-mounted fisheye image to be fused.

[0121] See also Figure 1 and Fig.10 In one embodiment of the present invention, when step S300 is executed, the corresponding initial vehicle-mounted fisheye image is mapped according to the weights of the multiple fusion regions to generate a target vehicle-mounted fisheye image. Specifically, step S300 may include steps S310 to S340, which are described in detail as follows.

[0122] Step S310: intercepting and processing the initial vehicle-mounted fisheye images in corresponding directions according to the first fusion weight and the second fusion weight respectively to generate a plurality of vehicle-mounted fisheye images to be fused.

[0123] Step S320: perform external parameter transformation processing on the multiple vehicle-mounted fisheye images to be fused respectively, and generate multiple external parameter transformed vehicle-mounted fisheye images accordingly.

[0124] Step S330 , performing internal parameter mapping processing on the multiple external parameter transformed vehicle-mounted fisheye images respectively, and correspondingly generating multiple intermediate vehicle-mounted fisheye images.

[0125] Step S340: performing weighted fusion processing on the multiple intermediate vehicle-mounted fisheye images according to the first fusion weight and the second fusion weight to generate a target vehicle-mounted fisheye image.

[0126] In one embodiment of the present invention, when executing step S310, specifically, the initial vehicle-mounted fisheye images in the corresponding directions can be respectively intercepted and processed according to the first fusion weight and the second fusion weight to generate multiple vehicle-mounted fisheye images to be fused. Figure 8, when the vehicle-mounted observation angle is between 0° and 90°, the initial vehicle-mounted fisheye image can be the initial vehicle-mounted fisheye image acquired by the left-view fisheye camera of the vehicle body and the initial vehicle-mounted fisheye image acquired by the front-view fisheye camera of the vehicle body. When the first fusion weight is 0 and the second fusion weight is 1, it can be represented as the initial vehicle-mounted fisheye image acquired by the front-view fisheye camera of the vehicle body directly in the area to be fused. When the first fusion weight is 1 and the second fusion weight is 0, it can be represented as the initial vehicle-mounted fisheye image acquired by the left-view fisheye camera of the vehicle body directly in the area to be fused. When the first fusion weight and the second fusion weight are both between 0 and 1, it is necessary to intercept and process the initial vehicle-mounted fisheye image of the left view of the vehicle body and the initial vehicle-mounted fisheye image of the front view of the vehicle body according to the first fusion weight and the second fusion weight, respectively, to generate a plurality of vehicle-mounted fisheye images to be fused accordingly.

[0127] See also Fig.10 and Fig.11 In one embodiment of the present invention, when executing step S320, the plurality of vehicle-mounted fisheye images to be fused are respectively subjected to external parameter transformation processing, and a plurality of vehicle-mounted fisheye images transformed with external parameters are correspondingly generated. Specifically, step S320 may include steps S321 to S322, which are described in detail as follows.

[0128] Step S321: Perform extrinsic rotation matrix processing in corresponding directions on a plurality of vehicle-mounted fisheye images to be fused, to generate a plurality of extrinsic rotated fisheye images.

[0129] Step S322: Perform extrinsic translation matrix processing in corresponding directions on the multiple extrinsic rotated fisheye images to generate multiple extrinsic transformed vehicle-mounted fisheye images.

[0130] In one embodiment of the present invention, when executing step S321, specifically, performing extrinsic rotation matrix processing in corresponding directions on multiple vehicle-mounted fisheye images to be fused means multiplying the coordinates in the multiple vehicle-mounted fisheye images to be fused by the extrinsic rotation matrices of the fisheye cameras corresponding to both sides of the vehicle-mounted observation angle, so as to generate multiple extrinsic rotated fisheye images.

[0131] Furthermore, for example, the coordinates in the onboard fisheye image to be fused may be multiplied by the extrinsic rotation matrix of the left fisheye camera to obtain the extrinsic rotated fisheye image of the left fisheye camera. Then, the coordinates in the onboard fisheye image to be fused may be multiplied by the extrinsic rotation matrix of the front fisheye camera to obtain the extrinsic rotated fisheye image of the front fisheye camera.

[0132] In one embodiment of the present invention, when executing step S322, specifically, performing extrinsic translation matrix processing on a plurality of extrinsic rotated fisheye images in corresponding directions means adding the coordinates of the extrinsic rotated fisheye images to the extrinsic translation matrices of the fisheye cameras corresponding to both sides of the vehicle-mounted observation angle, respectively, to generate a plurality of extrinsic transformed vehicle-mounted fisheye images.

[0133] Furthermore, for example, the coordinates of the extrinsic rotated fisheye image of the left fisheye camera can be added to the extrinsic translation matrix of the left fisheye camera to generate the extrinsic transformed vehicle-mounted fisheye image of the left fisheye camera. The coordinates of the extrinsic rotated fisheye image of the front fisheye camera are added to the extrinsic translation matrix of the front fisheye camera to generate the extrinsic transformed vehicle-mounted fisheye image of the front fisheye camera, so as to transfer the coordinate points on the surround view model to the fisheye camera coordinate system.

[0134] See also Fig.10 and Fig.12 In one embodiment of the present invention, when executing step S330, the internal reference mapping process is performed on the multiple external reference transformed vehicle fisheye images respectively, and multiple intermediate vehicle fisheye images are generated accordingly. Specifically, step S330 may include steps S331 to S332, which are described in detail as follows.

[0135] Step S331, performing internal reference transformation processing in corresponding directions on a plurality of external reference transformed vehicle-mounted fisheye images, to generate a plurality of corresponding internal reference fisheye images.

[0136] Step S332: performing dedistortion mapping processing in corresponding directions on the multiple internal reference fisheye images to generate multiple intermediate vehicle-mounted fisheye images.

[0137] In one embodiment of the present invention, when executing step S331, specifically, performing internal parameter transformation processing in corresponding directions on multiple external parameter transformed vehicle-mounted fisheye images means performing internal parameter matrix processing on the coordinates of multiple external parameter transformed vehicle-mounted fisheye images within the corresponding side fisheye camera to obtain multiple internal reference fisheye images in the coordinate system of the corresponding side fisheye cameras.

[0138] In one embodiment of the present invention, when executing step S332, specifically, performing dedistortion processing on the corresponding directions of the multiple internal reference fisheye images respectively refers to performing dedistortion parameter mapping processing on the coordinates in the internal reference fisheye images under the corresponding side fisheye camera. Dedistortion parameter mapping processing refers to a technology in the field of image processing and computer vision, which is used to correct image distortion caused by fisheye camera lens distortion. Among them, the lens distortion of the fisheye camera includes two main forms: radial distortion and tangential distortion. The radial distortion is a distortion caused by the shape of the camera lens, which is mainly manifested as the pixels at the center and edge of the image being compressed or stretched, making the straight lines in the image look curved. The tangential distortion is a distortion caused by the non-parallelism of the camera lens and the image sensor, which is manifested as the object in the image being miscut in the horizontal or vertical direction. The dedistortion parameter mapping processing can restore the internal reference fisheye image to a perspective-correct image by performing an inverse distortion transformation on the internal reference fisheye image, thereby improving the accuracy and quality of the generated image, so as to achieve a one-to-one mapping of the pixels in the initial vehicle-mounted fisheye image in the vehicle-mounted surround view model.

[0139] See also Fig.10 In one embodiment of the present invention, when step S340 is executed, specifically, weighted fusion processing of multiple intermediate vehicle-mounted fisheye images according to the first fusion weight and the second fusion weight can satisfy the following formula:

[0140] rgb=weight1*rgb1+weight2*rgb2

[0141] Among them, weight1 can be expressed as the first fusion weight, rgb1 can be expressed as the pixel value of the pixel point in the middle vehicle-mounted fisheye image under the fisheye camera corresponding to the first fusion weight, weight2 can be expressed as the second fusion weight, rgb2 can be expressed as the pixel value of the pixel point in the middle vehicle-mounted fisheye image under the fisheye camera corresponding to the second fusion weight, and rgb can be expressed as the pixel value of the pixel point in the corresponding generated target vehicle-mounted fisheye image.

[0142] See also Figure 1In one embodiment of the present invention, when executing step S400, specifically, real-time rendering of the target vehicle-mounted fisheye image refers to the process of converting the generated target vehicle-mounted fisheye image into a two-dimensional image. In computer graphics and computer vision, rendering is the process of converting a virtual scene or a three-dimensional model into a final two-dimensional image or video. This process simulates factors that affect the appearance of objects in the real world, such as lighting, shadows, perspective, and materials, to produce realistic image or video effects. Among them, the rendering process may include but is not limited to ray tracing, raster rendering, voxel rendering and other methods, which combine the principles of mathematics, physics and computer graphics, and ultimately generate high-quality two-dimensional images or videos by modeling and processing the scene.

[0143] See also Fig.13 , Fig.13 The structure diagram of a vehicle-mounted surround view panoramic image generation system provided by the present invention is shown. In one embodiment of the present invention, the vehicle-mounted surround view panoramic image generation system may include but is not limited to an information acquisition module 510, a model generation module 520, a fusion mapping module 530, and a rendering processing module 540. Each functional module is described in detail as follows.

[0144] In one embodiment of the present invention, the information acquisition module 510 can be used to obtain the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image. The vehicle-mounted observation angle can be obtained according to manual selection by the user, and the range of the vehicle-mounted observation angle can be greater than or equal to 0° and less than or equal to 360°. That is, the vehicle-mounted observation angle can be any angle around the car body. For example, refer to Figure 3 , the vehicle-mounted observation angle in front of the vehicle body can be defined as 0°, and the vehicle-mounted observation angle increases counterclockwise based on the direction of the vehicle body top view. That is, based on the direction of the vehicle body top view, the vehicle-mounted observation angle facing the left side of the vehicle body is 90°, the vehicle-mounted observation angle facing the rear side of the vehicle body is 180°, and the vehicle-mounted observation angle facing the right side of the vehicle body is 270°.

[0145] In addition, a vehicle body coordinate system can be established with the center of the vehicle body as the origin, the direction directly in front of the vehicle body as the positive axis of the X axis, and the direction directly to the right of the vehicle body as the positive axis of the Y axis. The vertex coordinates of the boundary ray can be the coordinates of the four vertices of the vehicle body in the vehicle body coordinate system, and the vertex coordinates of the boundary ray can be determined according to the change of the vehicle-mounted observation angle. For example, see Figure 3, when the vehicle-mounted observation angle is 90°, the boundary ray vertex coordinates may be the coordinates of the left front vertex of the vehicle body in the vehicle body coordinate system. However, it is not limited thereto. In addition to the vehicle-mounted observation angle, the vehicle body length and body width may also be obtained, and the vehicle body length and body width may be preset values, and the vehicle body length and body width may not be specifically limited. For example, the vehicle body length may be 4770 mm, and the vehicle body width may be 1895 mm.

[0146] Furthermore, the initial on-board fisheye images of the vehicle body in different directions can be determined according to the on-board observation angle, and the initial on-board fisheye images can at least include the initial on-board fisheye images of the directions around the vehicle body, and the initial on-board fisheye images can be acquired by the fisheye cameras in the directions around the vehicle body. For example, the initial on-board fisheye images of the directions around the vehicle body can be acquired by the fisheye cameras in the front, rear, left and right directions of the vehicle body. When the on-board observation angle is between 0° and 90°, the initial on-board fisheye images can include the initial on-board fisheye images acquired by the front-view fisheye camera of the vehicle body and the initial on-board fisheye images acquired by the left-view fisheye camera. In addition, the camera angle of the fisheye camera can be between 150 degrees and 180 degrees.

[0147] The model generation module 520 can be used to obtain the vehicle-mounted surround view model, and input the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing, and generate fusion area weights corresponding to multiple initial vehicle-mounted fisheye images respectively. Among them, inputting the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing can include but is not limited to processing the vehicle-mounted observation angle and the boundary ray vertex coordinates according to the vehicle-mounted surround view model to generate a first boundary ray and a second boundary ray, and a boundary ray angle and a to-be-fused area are formed between the first boundary ray and the second boundary ray. Obtain the fixed point coordinates according to the vehicle-mounted observation angle, and process the fixed point coordinates according to the first boundary ray and the boundary ray vertex coordinates to generate a fixed point angle. Based on the positional relationship between the fixed point coordinates and the boundary ray angle, the fixed point angle and the boundary ray angle are processed to generate a first fusion weight and a second fusion weight.

[0148] Furthermore, processing the vehicle-mounted observation angle and the boundary ray vertex coordinates according to the vehicle-mounted surround view model may include but is not limited to performing function mapping processing on the vehicle-mounted observation angle to generate a target boundary ray influence coefficient. Performing ray slope function processing on the target boundary ray influence coefficient based on the vehicle body length and the vehicle body width to generate a ray slope data set, and the ray slope data set includes a first ray slope and a second ray slope. Performing ray generation processing on the boundary ray vertex coordinates according to the first ray slope and the second ray slope, respectively, correspondingly generates a first boundary ray and a second boundary ray, wherein a boundary ray angle is formed between the first boundary ray and the second boundary ray, and the area corresponding to the boundary ray angle is the area to be fused.

[0149] Furthermore, performing function mapping on the vehicle-mounted observation angle may include performing initial function mapping on the vehicle-mounted observation angle to generate a first influence coefficient. Performing intermediate function mapping on the first influence coefficient to generate a second influence coefficient. Performing target function mapping on the second influence coefficient to generate a target boundary influence coefficient. Specifically, performing initial function mapping on the vehicle-mounted observation angle to generate a first influence coefficient so as to map the vehicle-mounted observation angle from 0°-360° to a specific value, and performing initial function mapping on the vehicle-mounted observation angle may satisfy the following formula,

[0150] factor1=||yaw-180.0|-90.0| / 90.0-0.5,

[0151] Among them, yaw can be expressed as the vehicle-mounted observation angle, yaw is greater than or equal to 0° and less than or equal to 360°, and factor1 can be expressed as the first influence coefficient. However, it is not limited to this, and the vehicle-mounted observation angle can also satisfy other formulas.

[0152] The first influence coefficient is subjected to intermediate function mapping processing to generate the second influence coefficient, that is, the second influence coefficient can be determined by the first influence. The intermediate function mapping processing of the first influence coefficient can satisfy the following formula:

[0153]

[0154] Among them, factor1 can be expressed as the first influence coefficient, factor2 can be expressed as the second influence coefficient, * can be expressed as the product symbol, and 0.5 can be an empirical value, that is, the intermediate function mapping processing of the first influence coefficient can also satisfy other formulas, as long as it can satisfy that when yaw is between 0°-90° or 180°-270°, factor2 can change from 1 to 0, and when yaw is between 90°-180° or 270°-360°, factor2 can change from 0 to 1.

[0155] The target mapping function processing of the second influence coefficient can satisfy the following formula:

[0156] kScale = 0.5-factor2*0.375,

[0157] Among them, factor2 can be represented as the second influence coefficient, * can be represented as the product symbol, kScale can be represented as the target boundary influence coefficient, and 0.5 and 0.375 can be represented as empirical values ​​for adjusting the target boundary influence coefficient, that is, 0.5 and 0.375 can also be replaced by other numbers.

[0158] It is worth further explaining that the ray slope function processing of the target boundary ray influence coefficient based on the vehicle body length and the vehicle body width may include but is not limited to firstly performing ray slope processing on the vehicle body length, the vehicle body width and the target boundary ray influence coefficient to generate a first ray slope, and then performing coefficient product processing on the first ray slope to generate a second ray slope.

[0159] The slope of the first ray can satisfy the following formula:

[0160] K1=(L / W)*kScale,

[0161] Wherein, L may be represented as the vehicle body length, W may be represented as the vehicle body width, * may be represented as a product sign, kScale may be represented as a target boundary influence coefficient, and K1 may be represented as a first ray slope.

[0162] The coefficient product processing is performed on the first ray slope to generate the second ray slope, which can satisfy the following formula:

[0163] K2=t*K1,

[0164] Among them, K1 can be expressed as the first ray slope, t can be expressed as a constant coefficient, and t can be 1.5 or other values, and K2 can be expressed as the second ray slope.

[0165] Specifically, performing ray generation processing on the boundary ray vertex coordinates according to the first ray slope and the second ray slope respectively means drawing the boundary ray according to the first ray slope and the second ray slope, taking the boundary ray vertex coordinates as the starting point and the Y-axis of the vehicle body coordinate system as the base line, so as to generate the first boundary ray and the second boundary ray correspondingly.

[0166] The first boundary ray and the second boundary ray may form a boundary ray angle on the same plane, and the area corresponding to the boundary ray angle may be defined as the area to be fused. Figure 8 , when the vehicle-mounted observation angle is 180°, the area to be fused can be A', and when the vehicle-mounted observation angle is 270°, the area to be fused can be B'. In addition, when the observation angle is changed from the rear view angle of 180° to the right view angle of 270°, the initial vehicle-mounted fisheye image of the left side of the vehicle body and the initial vehicle-mounted fisheye image of the front side of the vehicle body can be selected, and the corresponding generated area to be fused can be adjusted from A' to B'. Please refer to Fig. 9 , the first boundary ray may be K1, the second boundary ray may be K2, the area formed by K1 and K2 is the area to be fused, the vertex coordinate O of the boundary ray may be the vertex coordinate of the left front of the vehicle body, and the area to be fused formed by the second boundary ray K2 may fall on the left front of the vehicle body.

[0167] It is worth further explaining that the corresponding fixed point coordinates can be obtained according to the vehicle observation angle, and the fixed point coordinates can be preset arbitrary point coordinates in the surround model, and the fixed point coordinates can fall within the plane formed by the first boundary ray and the second boundary ray. For example, refer to Fig. 9 , the fixed point can be defined as point C. Processing the fixed point coordinates according to the first boundary ray and the boundary ray vertex coordinates means that a ray can be emitted from the boundary ray vertex coordinates to the fixed point coordinates to form a ray between the fixed point coordinates and the boundary ray vertex coordinates, and then the angle formed between the ray formed between the fixed point coordinates and the boundary ray vertex coordinates and the first boundary ray can be defined as the fixed point angle theta.

[0168] Specifically, multiple fusion area weights can be divided into a first fusion weight and a second fusion weight, and the sum of the first fusion weight and the second fusion weight is 1. The first fusion weight can be expressed as the proportion of the initial vehicle-mounted fisheye image on the left side of the vehicle-mounted observation angle in the area to be fused, and the second fusion weight can be expressed as the proportion of the initial vehicle-mounted fisheye image on the right side of the vehicle-mounted observation angle in the area to be fused. However, it is not limited to this. The first fusion weight can also be expressed as the proportion of the initial vehicle-mounted fisheye image on the right side of the vehicle-mounted observation angle in the area to be fused, and the second fusion weight can correspond to the proportion of the initial vehicle-mounted fisheye image on the left side of the vehicle-mounted observation angle in the area to be fused. For example, please refer to Figure 8 , when the vertex coordinates of the boundary ray are the vertex coordinates of the left front of the vehicle body, and the area to be fused formed by the first boundary ray and the second boundary ray falls on the left front of the vehicle body, the first fusion weight can be expressed as the proportion of the initial vehicle-mounted fisheye image in the left view direction of the vehicle body in the area to be fused. The second fusion weight can be expressed as the proportion of the initial vehicle-mounted fisheye image in the front view direction of the vehicle body in the area to be fused, and the sum of the first fusion weight and the second fusion weight is 1.

[0169] Furthermore, the first fusion weight and the second fusion weight can be determined by the following method. First, it can be determined whether the fixed point coordinates are within the boundary ray angle. If the fixed point coordinates are within the boundary ray angle, the first fusion weight can be determined according to the proportion of the fixed point angle in the boundary ray angle, and the second fusion weight can be determined according to the first fusion weight. Among them, when the fixed point coordinates are within the boundary ray angle, the first fusion weight can be the ratio between the fixed point angle and the boundary ray angle, and the second fusion weight can be determined by subtracting the first fusion weight from 1.

[0170] Furthermore, if the fixed point coordinates are outside the boundary ray angle, it is necessary to determine whether the fixed point coordinates are close to the first boundary ray to further determine the first fusion weight and the second fusion weight. Among them, if the fixed point coordinates are close to the first boundary ray, the first fusion weight is determined to be 1, and the second fusion weight is determined to be 0. That is, it means that there is no need to fuse the initial vehicle-mounted fisheye images on both sides of the vehicle-mounted observation angle, and the initial vehicle-mounted fisheye image corresponding to the first fusion weight can be directly selected as the vehicle-mounted fisheye image to be fused. However, it is not limited to this. If the fixed point coordinates are close to the second boundary ray, the first fusion weight is determined to be 0, and the second fusion weight is 1. That is, the initial vehicle-mounted fisheye image corresponding to the second fusion weight can be directly selected as the vehicle-mounted fisheye image to be fused.

[0171] The fusion mapping module 530 can be used to map the corresponding initial vehicle-mounted fisheye images according to multiple fusion area weights to generate a target vehicle-mounted fisheye image. Among them, the fusion mapping module 530 can be used to intercept the initial vehicle-mounted fisheye images in the corresponding directions according to the first fusion weight and the second fusion weight to generate multiple vehicle-mounted fisheye images to be fused. The multiple vehicle-mounted fisheye images to be fused are respectively subjected to external parameter transformation processing to generate multiple external parameter transformed vehicle-mounted fisheye images. The multiple external parameter transformed vehicle-mounted fisheye images are respectively subjected to internal parameter mapping processing to generate multiple intermediate vehicle-mounted fisheye images. Finally, the multiple intermediate vehicle-mounted fisheye images are weightedly fused according to the first fusion weight and the second fusion weight to generate the target vehicle-mounted fisheye image.

[0172] Specifically, the fusion mapping module 530 can intercept and process the initial vehicle-mounted fisheye images in the corresponding directions according to the first fusion weight and the second fusion weight, and generate a plurality of vehicle-mounted fisheye images to be fused. Figure 8 , when the vehicle-mounted observation angle is between 0° and 90°, the initial vehicle-mounted fisheye image can be the initial vehicle-mounted fisheye image acquired by the left-view fisheye camera of the vehicle body and the initial vehicle-mounted fisheye image acquired by the front-view fisheye camera of the vehicle body. When the first fusion weight is 0 and the second fusion weight is 1, it can be represented as the initial vehicle-mounted fisheye image acquired by the front-view fisheye camera of the vehicle body directly in the area to be fused. When the first fusion weight is 1 and the second fusion weight is 0, it can be represented as the initial vehicle-mounted fisheye image acquired by the left-view fisheye camera of the vehicle body directly in the area to be fused. When the first fusion weight and the second fusion weight are both between 0 and 1, it is necessary to intercept and process the initial vehicle-mounted fisheye image of the left view of the vehicle body and the initial vehicle-mounted fisheye image of the front view of the vehicle body according to the first fusion weight and the second fusion weight, respectively, to generate a plurality of vehicle-mounted fisheye images to be fused accordingly.

[0173] Among them, performing external parameter transformation processing on multiple on-board fisheye images to be fused respectively may include performing external parameter rotation matrix processing on multiple on-board fisheye images to be fused in corresponding directions respectively to generate multiple external parameter rotated fisheye images. Performing external parameter translation matrix processing on multiple external parameter rotated fisheye images in corresponding directions respectively to generate multiple external parameter transformed on-board fisheye images. Performing external parameter rotation matrix processing on multiple on-board fisheye images to be fused in corresponding directions respectively refers to multiplying the coordinates in the multiple on-board fisheye images to be fused by the external parameter rotation matrices of the fisheye cameras corresponding to both sides of the on-board observation angle to generate multiple external parameter rotated fisheye images.

[0174] For example, the coordinates in the onboard fisheye image to be fused can be multiplied by the extrinsic rotation matrix of the left fisheye camera to obtain the extrinsic rotated fisheye image of the left fisheye camera. Then, the coordinates in the onboard fisheye image to be fused can be multiplied by the extrinsic rotation matrix of the front fisheye camera to obtain the extrinsic rotated fisheye image of the front fisheye camera.

[0175] Furthermore, performing extrinsic translation matrix processing in corresponding directions on multiple extrinsic rotated fisheye images means adding the coordinates of the extrinsic rotated fisheye images to the extrinsic translation matrices of the fisheye cameras corresponding to the two sides of the vehicle-mounted observation angle, so as to generate multiple extrinsic transformed vehicle-mounted fisheye images.

[0176] For example, the coordinates of the extrinsic rotated fisheye image of the left fisheye camera can be added to the extrinsic translation matrix of the left fisheye camera to generate the extrinsic transformed vehicle-mounted fisheye image of the left fisheye camera. The coordinates of the extrinsic rotated fisheye image of the front fisheye camera are added to the extrinsic translation matrix of the front fisheye camera to generate the extrinsic transformed vehicle-mounted fisheye image of the front fisheye camera, so as to transfer the coordinate points on the surround view model to the fisheye camera coordinate system.

[0177] Furthermore, the fusion mapping module 530 can perform internal reference transformation processing in corresponding directions on multiple external reference transformed vehicle fisheye images to generate multiple corresponding internal reference fisheye images. Perform dedistortion mapping processing in corresponding directions on multiple internal reference fisheye images to generate multiple intermediate vehicle fisheye images.

[0178] Specifically, performing internal parameter transformation processing in corresponding directions on multiple external parameter transformed vehicle-mounted fisheye images means performing internal parameter matrix processing on the coordinates of multiple external parameter transformed vehicle-mounted fisheye images within the corresponding side fisheye camera to obtain multiple internal parameter fisheye images in the coordinate system of the corresponding side fisheye camera.

[0179] Performing dedistortion processing on multiple internal reference fisheye images in corresponding directions refers to performing dedistortion parameter mapping processing on the coordinates in the internal reference fisheye images under the corresponding side fisheye camera. Dedistortion parameter mapping processing refers to a technology in the field of image processing and computer vision, which is used to correct image distortion caused by fisheye camera lens distortion. Among them, the lens distortion of the fisheye camera includes two main forms: radial distortion and tangential distortion. Radial distortion is a distortion caused by the shape of the camera lens, which is mainly manifested as the pixels at the center and edge of the image are compressed or stretched, making the straight lines in the image look curved. Tangential distortion is a distortion caused by the non-parallelism of the camera lens and the image sensor, which is manifested as the objects in the image being miscut in the horizontal or vertical direction. Dedistortion parameter mapping processing can restore the internal reference fisheye image to a perspective-correct image by performing an inverse distortion transformation on the internal reference fisheye image, thereby improving the accuracy and quality of the generated image, so as to achieve a one-to-one mapping of the pixels in the initial vehicle-mounted fisheye image in the vehicle-mounted surround view model.

[0180] It is worth further explaining that the weighted fusion processing of multiple intermediate vehicle-mounted fisheye images according to the first fusion weight and the second fusion weight can satisfy the following formula:

[0181] rgb=weight1*rgb1+weight2*rgb2

[0182] Among them, weight1 can be expressed as the first fusion weight, rgb1 can be expressed as the pixel value of the pixel point in the middle vehicle-mounted fisheye image under the fisheye camera corresponding to the first fusion weight, weight2 can be expressed as the second fusion weight, rgb2 can be expressed as the pixel value of the pixel point in the middle vehicle-mounted fisheye image under the fisheye camera corresponding to the second fusion weight, and rgb can be expressed as the pixel value of the pixel point in the corresponding generated target vehicle-mounted fisheye image.

[0183] The rendering processing module 540 can be used to perform real-time rendering processing on the target vehicle-mounted fisheye image to generate a vehicle-mounted panoramic view image. Specifically, real-time rendering processing on the target vehicle-mounted fisheye image refers to the process of converting the generated target vehicle-mounted fisheye image into a two-dimensional image. In computer graphics and computer vision, rendering is the process of converting a virtual scene or a three-dimensional model into a final two-dimensional image or video. This process simulates factors that affect the appearance of objects in the real world, such as lighting, shadows, perspectives, and materials, to produce realistic images or video effects. Among them, rendering processing may include but is not limited to ray tracing, raster rendering, voxel rendering and other methods, which combine the principles of mathematics, physics and computer graphics, and ultimately generate high-quality two-dimensional images or videos through modeling and processing of scenes.

[0184] For the specific definition of the vehicle-mounted surround view panoramic image generation system, please refer to the definition of the vehicle-mounted surround view panoramic image generation method mentioned above, which will not be repeated here. Each module in the above generation system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0185] In summary, the present invention provides a method and system for generating a vehicle-mounted surround view panoramic image. By determining the initial vehicle-mounted fisheye image according to the vehicle-mounted observation angle, and determining the fusion area weights corresponding to the area to be fused and the initial vehicle-mounted fisheye image according to the vehicle-mounted surround view model, the corresponding initial vehicle-mounted fisheye image can be region mapped according to the fusion area weights, and the target vehicle-mounted fisheye image after the fusion mapping processing can be rendered in real time, thereby avoiding problems such as misalignment or ghosting in the fusion area of ​​the vehicle-mounted surround view panoramic image, improving the clarity of the vehicle-mounted surround view panoramic image, and thereby improving the user experience.

[0186] In the description of this specification, the description with reference to the terms "this embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0187] The embodiments of the present invention disclosed above are only used to help illustrate the present invention. The embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A method for generating a vehicle-mounted surround view panoramic image, It is characterized in that include: Obtain the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image; Acquire a vehicle-mounted surround view model, and input the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing, and respectively generate fusion area weights corresponding to a plurality of the initial vehicle-mounted fisheye images; Mapping the corresponding initial vehicle-mounted fisheye image according to the plurality of fusion region weights to generate a target vehicle-mounted fisheye image; The target vehicle-mounted fisheye image is subjected to real-time rendering processing to generate a vehicle-mounted surround view panoramic image.

2. The method for generating a vehicle-mounted surround view panoramic image according to claim 1, It is characterized in that The step of obtaining the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image comprises: Acquire a vehicle-mounted observation angle, and determine the coordinates of the vertex of the boundary ray according to the vehicle-mounted observation angle; An initial on-board fisheye image corresponding to the on-board observation angle is acquired, and the initial on-board fisheye image at least includes an initial on-board fisheye image of the surrounding directions of the automobile body.

3. The method for generating a vehicle-mounted surround view panoramic image according to claim 1, It is characterized in that The plurality of fusion area weights are divided into a first fusion weight and a second fusion weight, the sum of the first fusion weight and the second fusion weight is 1, the steps of obtaining a vehicle-mounted surround view model, inputting the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing, and respectively generating a plurality of fusion area weights corresponding to the initial vehicle-mounted fisheye images include: Obtain the vehicle surround view model; Processing the vehicle-mounted observation angle and the coordinates of the boundary ray vertices according to the vehicle-mounted surround view model to generate a first boundary ray and a second boundary ray, wherein a boundary ray angle and a to-be-fused area are formed between the first boundary ray and the second boundary ray; Acquire the fixed point coordinates according to the vehicle-mounted observation angle, and process the fixed point coordinates according to the first boundary ray and the boundary ray vertex coordinates to generate a fixed point angle; Based on the positional relationship between the fixed point coordinates and the boundary ray angle, the fixed point angle and the boundary ray angle are processed to generate a first fusion weight and a second fusion weight.

4. The method for generating a vehicle-mounted surround view panoramic image according to claim 3, It is characterized in that The step of processing the vehicle-mounted observation angle and the boundary ray vertex coordinates according to the vehicle-mounted surround view model to generate a first boundary ray and a second boundary ray, wherein a boundary ray angle and a to-be-fused area are formed between the first boundary ray and the second boundary ray comprises: Performing function mapping processing on the vehicle-mounted observation angle to generate a target boundary ray influence coefficient; Performing ray slope function processing on the target boundary ray influence coefficient based on the vehicle body length and the vehicle body width to generate a ray slope data set, wherein the ray slope data set includes a first ray slope and a second ray slope; performing ray generation processing on the vertex coordinates of the boundary ray according to the first ray slope and the second ray slope, respectively, to generate a first boundary ray and a second boundary ray correspondingly; A boundary ray angle is formed between the first boundary ray and the second boundary ray, and an area corresponding to the boundary ray angle is an area to be fused.

5. The method for generating a vehicle-mounted surround view panoramic image according to claim 4, It is characterized in that The step of performing function mapping processing on the vehicle-mounted observation angle to generate the target boundary ray influence coefficient comprises: Performing initial function mapping processing on the vehicle-mounted observation angle to generate a first influence coefficient; Performing intermediate function mapping processing on the first influence coefficient to generate a second influence coefficient; The second influence coefficient is subjected to objective function mapping processing to generate a target boundary influence coefficient.

6. The method for generating a vehicle-mounted surround view panoramic image according to claim 3, It is characterized in that The step of processing the fixed point angle and the boundary ray angle based on the positional relationship between the fixed point coordinates and the boundary ray angle to generate the first fusion weight and the second fusion weight comprises: Determine whether the fixed point coordinates are within the boundary ray angle; If the fixed point coordinates are within the boundary ray angle, determining the first fusion weight according to the proportion of the fixed point angle in the boundary ray angle, and determining the second fusion weight according to the first fusion weight; If the fixed point coordinates are outside the boundary ray angle, determining whether the fixed point coordinates are close to the first boundary ray; If the fixed point coordinates are close to the first boundary ray, the first fusion weight is determined to be 1 and the second fusion weight is determined to be 0; If the fixed point coordinates are close to the second boundary ray, the first fusion weight is determined to be 0 and the second fusion weight is determined to be 1.

7. The method for generating a vehicle-mounted surround view panoramic image according to claim 1, It is characterized in that The step of mapping the corresponding initial vehicle-mounted fisheye image according to the plurality of fusion area weights to generate a target vehicle-mounted fisheye image comprises: According to the first fusion weight and the second fusion weight, the initial vehicle-mounted fisheye images in the corresponding directions are respectively intercepted and processed to generate a plurality of vehicle-mounted fisheye images to be fused; Performing external parameter transformation processing on the plurality of vehicle-mounted fisheye images to be fused respectively, and correspondingly generating a plurality of external parameter transformed vehicle-mounted fisheye images; The internal parameter mapping processing is performed on the multiple external parameter transformed vehicle-mounted fisheye images respectively, and multiple intermediate vehicle-mounted fisheye images are generated accordingly. A weighted fusion process is performed on the plurality of intermediate vehicle-mounted fisheye images according to the first fusion weight and the second fusion weight to generate a target vehicle-mounted fisheye image.

8. The method for generating a vehicle-mounted surround view panoramic image according to claim 7, It is characterized in that The step of performing external parameter transformation processing on the plurality of vehicle-mounted fisheye images to be fused respectively and correspondingly generating a plurality of external parameter transformed vehicle-mounted fisheye images comprises: Performing external parameter rotation matrix processing in corresponding directions on the multiple vehicle-mounted fisheye images to be fused respectively to generate multiple external parameter rotated fisheye images; The plurality of external parameter rotated fisheye images are respectively processed with external parameter translation matrices in corresponding directions to generate a plurality of external parameter transformed vehicle-mounted fisheye images.

9. The method for generating a vehicle-mounted surround view panoramic image according to claim 7, It is characterized in that The step of performing internal reference mapping processing on the plurality of external reference transformed vehicle-mounted fisheye images respectively to generate a plurality of intermediate vehicle-mounted fisheye images accordingly comprises: Performing internal reference transformation processing in corresponding directions on the plurality of external reference transformed vehicle-mounted fisheye images respectively to generate a plurality of corresponding internal reference fisheye images; The multiple internal reference fisheye images are respectively subjected to dedistortion mapping processing in corresponding directions to generate multiple intermediate vehicle-mounted fisheye images.

10. A vehicle-mounted surround view panoramic image generation system, It is characterized in that include: An information acquisition module, used to obtain the vehicle-mounted observation angle and the corresponding initial vehicle-mounted fisheye image; A model generation module, used for obtaining a vehicle-mounted surround view model, and inputting the vehicle-mounted observation angle into the vehicle-mounted surround view model for processing, and respectively generating a plurality of fusion area weights corresponding to the initial vehicle-mounted fisheye images; A fusion mapping module, used for mapping the corresponding initial vehicle-mounted fisheye image according to the weights of the plurality of fusion regions to generate a target vehicle-mounted fisheye image; The rendering processing module is used to perform real-time rendering processing on the target vehicle-mounted fisheye image to generate a vehicle-mounted surround view panoramic image.

Citation Information

Cited By

  • Vehicle model rendering method and device, electronic equipment and storage medium

    CN118864682A

  • Around-looking image generation method and device, electronic equipment and computer readable storage medium

    CN121329759A

  • Surround-view image generation method and apparatus, electronic device, and computer-readable storage medium

    CN121329759B

  • Three-dimensional reconstruction model training method and device, equipment and medium

    CN121564459A

  • Method and system for generating in-vehicle surround-view panoramic image

    WO2025252219A1