Automobile transparent A column image display system and method based on similarity matching
Through the automotive transparent A-pillar scene depth detection system based on similarity matching and the use of binocular cameras for three-dimensional scene reconstruction, the problem of the impact of the A-pillar blind zone in the existing technology has been solved, and the perfect combination of the transparent A-pillar display and the real scene has been achieved, improving improve driving safety.
Patent Information
- Application Number
- CN202311382028.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2024-09-03
AI Technical Summary
Existing technologies have problems such as display misalignment, different sizes of display content and real scene, and slow detection speed when solving the impact of the A-pillar blind area of automobiles, which affects driving safety.
A car transparent A-pillar scene depth detection system based on similarity matching is used to collect images through binocular cameras, determine spatial depth information based on similarity, and perform three-dimensional scene reconstruction to achieve the perfect combination of transparent A-pillar display and real scene.
It overcomes problems such as display misalignment, different sizes between the display and the real scene, and stuck display screens, improves driving safety, and achieves the effect of virtual transparency of the A-pillar.
Smart Images

Figure CN118578975A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile auxiliary technology, and in particular to an automobile transparent A-pillar image display system and method based on similarity matching. Background Art
[0002] The A-pillar is an important structural support component in the car cockpit that is related to driving safety. Its structure and size are strictly regulated. When the vehicle is moving, the driver's vision will inevitably be blocked by the A-pillar, forming a blind spot (such as Figure 1 As shown), thus threatening driving safety.
[0003] The "A-pillar" blind spot exists on every car, and the size of this blind spot depends on the thickness of the vehicle's "A-pillar". The thickness of the "A-pillar" is a dilemma: if the "A-pillar" is too thin, the car body will be insufficiently strong, making it difficult to protect the safety of people in the car in the event of a car accident; if the "A-pillar" is too thick, it will affect the driver's field of vision. Generally speaking, the width of the vehicle's "A-pillar" is about 8 cm, which will form a fan-shaped blind spot with an angle of about 6 degrees, and the fan-shaped blind spot will spread outward and can even block the entire body of an adult. When the driver merges or turns, the A-pillar can easily block his or her vision, causing an accident.
[0004] At present, the mature technical solutions mainly install monocular cameras or binocular cameras on the outside of the left and right "A-pillars" of the car, and then obtain the intersection of the display screen occlusion area and the camera shooting area through calibration and calculation, and map the intersection image to the display screen inside the "A-pillar" through affine transformation, so as to achieve a "transparent" effect. Among them, the monocular camera can only obtain two-dimensional plane information (image), and the missing depth (distance) information mostly depends on manual settings, and it is impossible to detect the depth information of the scene, so that the image of the display screen is misaligned with the real scene, and the size of the scene on the display screen is different from the real scene, that is, the scene in the blind spot cannot be accurately displayed on the display screen, and the impact of the "A-pillar" blind spot cannot be truly solved. The binocular camera solution can use the feature point matching algorithm combined with the triangulation algorithm to detect the spatial depth of the scene, or use the parallax algorithm to realize the spatial depth detection of the scene, but there are many problems such as uncontrollable detection position and slow detection speed.
[0005] The monocular camera solution has display misalignment and discrepancies between the displayed content and the actual scene due to the lack of scene depth. The binocular camera solution may cause depth loss at some key locations due to the uncontrollable detection position, which may also cause display misalignment and discrepancies between the displayed content and the actual scene; slow detection speed will cause the screen to freeze, affecting the user experience. These defects not only cannot eliminate the blind impact, but may increase the threat to driving safety. How to overcome the above defects is the key to solving the impact of the "A-pillar" blind spot. Summary of the invention
[0006] In view of the problem that the misalignment of A-pillar image display in the prior art affects driving safety, the present invention proposes a scene depth detection system and method for transparent A-pillars of automobiles based on similarity matching. By processing images collected by a binocular camera, the scene depth information of the space is determined based on the similarity, and three-dimensional scene reconstruction is performed, thereby achieving a perfect combination of transparent A-pillar display and real scene, overcoming the problems of display misalignment, different sizes between display and real scene, and display screen freeze in previous methods, thereby improving driving safety.
[0007] In order to achieve the above object, the present invention provides the following technical solutions:
[0008] An automobile transparent A-pillar image display system based on similarity matching includes a controller, a display screen, an automatic calibration platform, a pupil camera, a first camera, and a second camera;
[0009] The first camera and the second camera are respectively installed on the outside of the A-pillar of the car to collect images of the outside world;
[0010] Pupil camera, used to locate the spatial position of the driver's eyes in real time;
[0011] An automatic calibration platform, used to calibrate the spatial coordinates of the first camera and the second camera and the spatial position of the driver's eyes;
[0012] A controller, configured to calculate first image data blocked by the A-pillar according to an image of the outside world, calibrated spatial coordinates of the first camera and the second camera, and a spatial position of the driver's eyes;
[0013] The display screen is used to display the second image data after the controller processes the first image data.
[0014] Preferably, the display screen adopts an OLED / LCD screen, which is installed on the inner side of the A-pillar of the car, and its width is not greater than the width of the A-pillar.
[0015] Preferably, the pupil camera is installed above the inner side of the front windshield.
[0016] Preferably, the automatic calibration platform includes a movable mechanical arm and a clamping device; the movable mechanical arm is installed outside the vehicle close to the cab, and the clamping device on the movable mechanical arm is installed with a calibration plate, which drives the calibration plate to move in the cab.
[0017] The present invention also provides a method for displaying an image of a transparent A-pillar of an automobile based on similarity matching, which specifically comprises the following steps:
[0018] S1: Use the automatic calibration platform to calibrate the parameters of the binocular camera, pupil camera, and the spatial position of the display screens inside the left and right A-pillars;
[0019] S2: Using the field of view conversion technology and the pupil detection technology to calculate in real time the portion of the driver's field of view blocked by the A-pillar, and then calculating a first mapping relationship of the portion blocked by the A-pillar in the binocular camera;
[0020] S3: searching and determining the spatial depth of any processing point in the visual field blocked by the A-pillar based on similarity matching and the first mapping relationship;
[0021] S4: Calculate the corresponding spatial coordinates of the processing point in the binocular camera according to the determined spatial depth and pixel coordinates of any processing point, thereby constructing a second mapping relationship between the binocular camera pixel point and the processing point, and obtaining a first image captured by the binocular camera;
[0022] S5: Performing homography transformation on the first image transmission to obtain a second image, and displaying the second image on a display screen.
[0023] Preferably, in S1, the specific calibration method is:
[0024] First, the vehicle body is positioned, the spatial coordinates of the automatic calibration platform are fixed and calculated, and the binocular camera and pupil camera are connected to the automatic calibration platform. The automatic calibration platform will move the chessboard pattern calibration plate on the platform. The binocular camera and pupil camera will take pictures of the calibration plate and calculate the parameters of the binocular camera and pupil camera. At the same time, the auxiliary camera on the automatic calibration platform will also take pictures of the display screen on the A-pillar and the chessboard pattern calibration plate to calculate the spatial position and posture of the A-pillar display screen.
[0025] Preferably, S2 includes:
[0026] S2-1: A pupil camera is installed in front of the driver to locate the spatial position of the driver's eyes in real time, that is, the driver's viewpoint E, whose spatial coordinates are (X E ,Y E ,Z E );
[0027] S2-2: constructing four ray equations formed by the driver's viewpoint and the four inner corner vertices of the calibrated corresponding display screen, and the area extended by these four rays is the driver's field of view blocked by the A-pillar;
[0028] Point E is the spatial coordinate of the driver's viewpoint, A, B, C, and D are the four inner corner vertices of the display screen, and the spatial coordinates of the four inner corner vertices of the display screen are A(X1, Y1, Z1), B(X2, Y2, Z2), C(X3, Y3, Z3), and D(X4, Y4, Z4). The four ray equations constructed with the driver's viewpoint (human eye) as the starting point are:
[0029] EA ray equation:
[0030] EB ray equation:
[0031] EC ray equation
[0032] ED ray equation
[0033] S2-3: For any point M(u L ,v L ), use the preset depth L to calculate the spatial coordinate point P (X, Y, L) on the left camera, and then use the projection equation of the right camera to obtain the corresponding point N (u R ,v R );
[0034] Solution of spatial coordinate point P:
[0035]
[0036] In formula (5), RT L Represents the transformation matrix from the predefined world coordinate system to the left camera coordinate system, represents the inverse matrix of the left camera intrinsic parameter, s represents the scaling factor; (u L ,v L ) represents the coordinates of any point M in the field of view blocked by the A-pillar; (X, Y, L) represents the coordinates of the spatial coordinate point P of point M on the left camera;
[0037] The coordinates of the corresponding point N on the right camera (u R ,v R ) is calculated as:
[0038]
[0039] In formula (6), RT RR Represents the transformation matrix from the right camera coordinate system to the predefined world coordinate system, K R represents the inverse matrix of the right camera internal parameters; (u R ,v R ) represents the coordinates of the corresponding point N of point M on the right camera.
[0040] Preferably, the method for determining the spatial depth of the processing point in S3 is:
[0041] S3-1: Determine the pixel coordinates of the point M to be processed in the field of view blocked by the A-pillar, and preset a neighborhood width W, spatial point depth L, and spatial search step length S for it, and calculate the right image matching point N corresponding to the point M according to formula (5) and formula (6);
[0042] S3-2: According to the neighborhood width W, the left image pixel coordinate M and the calculated right image pixel coordinate N, two neighborhood blocks of the left image and the right image are obtained, each of which is centered on the left image point M and the right image point N, and the neighborhood block width is W;
[0043] S3-3: Use the similarity matching function to calculate the similarity of the two neighborhood blocks:
[0044]
[0045] In formula (7), γ m represents the variance of the neighborhood where point M is located in the left figure, γ n represents the standard deviation of the neighborhood of point N in the right image, (u,v) represents the pixel coordinates of point M in the left image, and (x,y) represents the pixel coordinates of point N in the right image. represents the mean value of the neighborhood pixels of point M, represents the mean value of the neighborhood pixels of point N; C represents the similarity between the neighborhood image centered on point M in the left image and the neighborhood image centered on point N in the right image; i represents the pixel point in the i-th column of the neighborhood image, and j represents the pixel point in the j-th row of the neighborhood image;
[0046] S3-4: Search from the initial search depth L to the two ends of the depth interval according to the search step S, and calculate the similarity matching coefficient according to formula (7), and repeat steps S3-2 to S3-3 to obtain the similarities corresponding to other search depths;
[0047] S3-5: When the number of consecutive searches reaches three or more, determine whether the search can be exited normally based on the similarity matching data: when the similarity matching data corresponding to the three search depths form a peak and the peak exceeds the threshold, it is considered that the neighborhood areas of the left and right images are the most similar at this time, and the search depth corresponding to the similarity peak is the actual depth, then the search is exited normally.
[0048] Preferably, in S3-5, when the search is completed and the conditions for normal exit from the search are not met, it is considered that there is no matching area in the current neighborhood, and a halved search strategy is adopted: assuming that the original neighborhood width is W, the decomposed search width is W / 2, and steps S3-1 to S3-5 are repeated.
[0049] In summary, due to the adoption of the above technical solution, compared with the prior art, the present invention has at least the following beneficial effects:
[0050] The present invention analyzes the driver's viewpoint, processes the images collected by the binocular camera, determines the scene depth information of the space based on similarity, and reconstructs the three-dimensional scene, thereby achieving a perfect combination of transparent A-pillar display and real scene, overcoming the problems of display misalignment, different sizes between display and real scene, and display screen freeze in previous methods, and achieving the effect of making the "A-pillar" virtual transparent. Improve driving safety, BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 Schematic diagram of a scene depth detection system for a transparent A-pillar of an automobile based on similarity matching according to an exemplary embodiment of the present invention.
[0052] Figure 2 Schematic diagram of a method for scene depth detection of a transparent A-pillar of an automobile based on similarity matching according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0053] The present invention is further described in detail below in conjunction with the examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following examples, and all technologies realized based on the content of the present invention belong to the scope of the present invention.
[0054] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0055] like Figure 1 As shown, the present invention provides a vehicle transparent A-pillar scene depth detection system based on similarity matching, including a controller, a display screen, an automatic calibration platform, a pupil camera, and two binocular cameras (the opening angle of the binocular camera is preferably greater than 45°, but it is not a necessary specification requirement); wherein the display screen, the automatic calibration platform, the pupil camera, and the binocular camera are electrically connected to the controller respectively.
[0056] In this embodiment, a binocular camera is installed on the outer side of the left and right A-pillars of the car, and is installed below the rearview mirror to capture the external environment and obtain first image data. The first image data will be transmitted to the controller in real time for processing to obtain second image data.
[0057] The display screen can be an OLED / LCD screen, which can be installed on the inside of the left and right A-pillars of the car respectively (for example, one display screen is installed on the inside of each left and right A-pillar of the car). Its width should not be greater than the width of the A-pillar and is used to display the second image data processed by the controller for the driver to watch.
[0058] The pupil camera can be installed above the inner side of the front windshield to locate the spatial position of the driver's eyes in real time; and transmit the spatial position of the driver's eyes to the controller to calculate the first image of the driver blocked by the "A-pillar", thereby displaying the first image on the display screen.
[0059] The automatic calibration platform is used to calibrate the spatial coordinates of the camera and the spatial coordinates of the driver's eyes, so that the controller can calculate the first image taken by the camera.
[0060] In this embodiment, the automatic calibration platform is composed of a movable mechanical arm and a clamping device, and the clamping device can be installed with a pupil camera or a calibration plate, etc. The automatic calibration platform is placed outside the vehicle near the cab, and the clamping device on its mechanical arm is installed with a calibration plate, which drives the calibration plate to move in the cab, takes pictures with the pupil camera, and obtains the calibration parameters of the pupil camera through automatic calculation.
[0061] refer to Figure 2 Based on the above-mentioned automobile transparent A-pillar scene depth detection system based on similarity matching, the present invention also provides automobile transparent A-pillar scene depth detection based on similarity matching, which specifically includes the following steps:
[0062] S1: Use the automatic calibration platform to calibrate the parameters of the binocular camera, pupil camera, and the spatial position of the display screens inside the left and right A-pillars.
[0063] In this embodiment, the vehicle body is first positioned using a calibration auxiliary device, the spatial coordinates of the automatic calibration platform are fixed and calculated, the binocular camera and the pupil camera are connected to the automatic calibration platform, and the automatic calibration platform moves the chessboard pattern calibration plate on the platform. The binocular camera and the pupil camera take pictures of the calibration plate, and the parameters of the binocular camera and the pupil camera (including intrinsic parameters, distortion coefficients, and extrinsic parameters) are calculated. At the same time, the auxiliary camera on the automatic calibration platform also takes pictures of the display screen on the A-pillar and the chessboard pattern calibration plate to calculate the spatial position and posture of the A-pillar display screen.
[0064] In this embodiment, the calibration method is a prior art, and thus will not be described in detail herein.
[0065] S2: The portion of the driver's field of view blocked by the A-pillar is calculated in real time through the field of view conversion technology and the pupil detection technology, and then the first mapping relationship of the portion blocked by the A-pillar in the binocular camera is calculated.
[0066] In this embodiment, the collection of one-side A-pillar is used for illustration, and specifically includes the following steps:
[0067] S2-1: Install a pupil camera in front of the driver (for example, above the inner side of the main driver's front windshield) to locate the spatial position of the driver's eyes in real time, that is, the driver's viewpoint E, whose spatial coordinates are (X E ,Y E ,Z E );
[0068] S2-2: Construct four ray equations formed by the driver's viewpoint and the four inner corner vertices of the calibrated corresponding display screen. The area extended by these four rays is the driver's field of view blocked by the A-pillar.
[0069] A three-dimensional coordinate system is established, where point E is the spatial coordinate of the driver's viewpoint (human eye), A, B, C, and D are the four inner corner vertices of the display screen, and the spatial coordinates of the four inner corner vertices of the display screen are A (X1, Y1, Z1), B (X2, Y2, Z2), C (X3, Y3, Z3), and D (X4, Y4, Z4). The four ray equations constructed with the driver's viewpoint (human eye) as the starting point are:
[0070] EA ray equation:
[0071] EB ray equation:
[0072] EC ray equation:
[0073] ED ray equation:
[0074] S2-3: For any point M(u L ,v L ), use the preset depth L (the preset depth has two sources: one is that when no detection is performed, a value is set based on experience, which is generally the middle value of the detection range. For example, if the detection range is 1-9 meters, the preset depth is mostly set at 5 meters; the other is that the detection has been performed, and the depth of a feature point detection has been obtained. The feature points near this feature point use this known detection depth as the preset depth. This is mainly to consider the non-mutational nature of the object depth) to calculate its spatial coordinate point P (X, Y, L) on the left camera, and then use the projection equation of the right camera to obtain the corresponding point N (u R ,v R ), when the corresponding point relationship is confirmed, the scene depth information L corresponding to the spatial point P is the preset scene depth.
[0075] In this embodiment, the spatial coordinate point P is solved as follows:
[0076]
[0077] In formula (5), RT L Represents the transformation matrix from the predefined world coordinate system to the left camera coordinate system, represents the inverse matrix of the left camera intrinsic parameter, s represents the scaling factor; (u L ,v L ) represents the coordinates of any point M in the field of view blocked by the A-pillar; (X, Y, L) represents the coordinates of the spatial coordinate point P of point M on the left camera;
[0078] In this embodiment, the coordinates of the corresponding point N on the right camera (u R ,v R ) is calculated as:
[0079]
[0080] In formula (6), RT RR Represents the transformation matrix from the right camera coordinate system to the predefined world coordinate system, K R represents the inverse matrix of the right camera internal parameters; (u R ,v R ) represents the coordinates of the corresponding point N of point M on the right camera.
[0081] In this embodiment, for any point M in the field of view blocked by the A-pillar, corresponding space points P and N can be generated by the left binocular camera and the right binocular camera, thereby forming a first mapping relationship.
[0082] S3: Search and determine the spatial depth of any processing point in the field of view blocked by the A-pillar based on similarity matching and the first mapping relationship.
[0083] An update is performed to obtain a second mapping relationship, thereby obtaining the corresponding first image data.
[0084] In this embodiment, due to the influence of light and shadow, there is a possibility of mismatching of a single corresponding point. The matching criterion of the similarity search algorithm uses the similarity of the neighborhood area of the corresponding point for matching, which can effectively reduce the possibility of mismatching.
[0085] Taking the left picture captured by the binocular camera on the left as an example, the specific search steps are as follows.
[0086] ① Determine the pixel coordinates of the point M to be processed (i.e., a point in the left image) in the field of view blocked by the A-pillar, and preset a neighborhood width W, spatial point depth L, and spatial search step S for it. Calculate the matching point N in the right image corresponding to point M according to formulas (5) and (6).
[0087] ② According to the neighborhood width W, the pixel coordinates M of the left image and the calculated pixel coordinates N of the right image, two neighborhood blocks in the left image and the right image are obtained. Each neighborhood block is centered on the left image point M and the right image point N, and the neighborhood block width is W.
[0088] ③ Use the similarity matching function to calculate the similarity of the two neighborhood blocks. Currently, the single-channel texture (grayscale) matching consistency is used for similarity matching. In order to better express the similarity of the two neighborhood blocks, a texture intensity discriminant function can also be introduced to have better discrimination ability for large blocks of similar color areas. The calculation formula of the similarity matching coefficient designed by the present embodiment is as follows.
[0089]
[0090] In formula (7), γ m represents the variance of the neighborhood where point M is located in the left figure, γ n represents the standard deviation of the neighborhood of point N in the right image, (u,v) represents the pixel coordinates of point M in the left image, and (x,y) represents the pixel coordinates of point N in the right image. represents the mean value of the neighborhood pixels of point M, represents the mean value of the neighborhood pixels of point N; C represents the similarity between the neighborhood image centered on point M in the left image and the neighborhood image centered on point N in the right image; the sizes of these two neighborhood blocks are the same, both W. When performing similarity comparison, it is necessary to traverse the pixels of the neighborhood image, i represents the pixel in the i-th column of the neighborhood image, and j represents the pixel in the j-th row of the neighborhood image.
[0091] ④ Search from the initial search depth L to the two ends of the depth interval according to the search step S, and calculate the similarity matching coefficient according to formula (7), and repeat steps ② to ③ to obtain the similarity corresponding to other search depths. For a certain point M in the left image, the corresponding N point pixel position in the right image will change with the search depth. Each time the search depth changes, a set of image pairs (the M point neighborhood subgraph in the left image and the corresponding N point neighborhood subgraph in the right image) and the similarity data of this set of image pairs will be generated.
[0092] ⑤ When the number of consecutive searches reaches three or more times, three or more similarity matching data will be generated; the monotonicity of these similarity matching data can be judged to determine whether the search can be exited normally: when the similarity data corresponding to the above three search depths form a peak and the peak exceeds the threshold (the two cameras are only responsible for collecting pictures, and a group of neighborhood images matched in the left and right pictures only produces one similarity. The two conditions in the previous sentence must be met at the same time, that is, a peak is formed and the peak must exceed the threshold to avoid falling into a local extreme value), it is considered that the neighborhood areas of the left and right pictures are the most similar at this time, and the search depth corresponding to the similarity peak is the actual depth, then the search is exited normally; if the similarities corresponding to the above three search depths do not meet the above conditions, repeat steps ② to ④.
[0093] In this embodiment, when the search is completed and the conditions for normal exit from the search are not met, it is considered that there is no matching area in the current neighborhood (this situation generally occurs at the junction of the foreground and background, because the viewpoint positions of the left and right cameras form an occlusion, resulting in the spatial information that the left camera can see cannot be seen by the right camera, or the spatial information that the right camera can see cannot be seen by the left camera).
[0094] ⑥For the unmatched area, it is necessary to decompose it according to its neighborhood width, that is, a halved search strategy can be adopted: assuming that the original neighborhood width is W, the search width after decomposition is W / 2, and repeat steps ① to ⑥.
[0095] After steps ① to ⑥, the depth of most pixels in the scene can be obtained. A small number of pixels whose depth cannot be obtained are located at the junction of the foreground and background, which can be completed by various methods such as nearest neighbor depth completion and linear interpolation.
[0096] S4: According to the spatial depth and pixel coordinates determined by the points to be processed, the corresponding spatial coordinates of each point in the binocular camera can be calculated according to formula (5) and formula (6), and the mapping relationship between the spatial point and the processing point can be obtained, thereby constructing a second mapping relationship between the binocular camera pixel point and the processing point, and obtaining the first image captured by the binocular camera.
[0097] S5: Transmitting the first image captured by the binocular camera to the controller for homography transformation to obtain a second image, and displaying it on the display screen.
[0098] Homography transformation is a mapping transformation or smoothing process from a plane region to another plane region. This is a relatively classic and common content in image processing, so it will not be elaborated on here.
[0099] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A transparent A-pillar image display system for automobiles based on similarity matching, characterized in that: It includes a controller, a display screen, an automatic calibration platform, a pupil camera, a first camera and a second camera; The first camera and the second camera are respectively installed on the outside of the A-pillar of the car to collect images of the outside world; Pupil camera, used to locate the spatial position of the driver's eyes in real time; An automatic calibration platform, used to calibrate the spatial coordinates of the first camera and the second camera and the spatial position of the driver's eyes; A controller, configured to calculate first image data blocked by the A-pillar according to an image of the outside world, calibrated spatial coordinates of the first camera and the second camera, and a spatial position of the driver's eyes; The display screen is used to display the second image data after the controller processes the first image data.
2. The automobile transparent A-pillar image display system based on similarity matching according to claim 1, characterized in that: The display screens are OLED / LCD screens, which are respectively installed on the inner sides of the A-pillars of the automobile, and the widths thereof are not greater than the widths of the A-pillars.
3. The automobile transparent A-pillar image display system based on similarity matching according to claim 1, characterized in that: The pupil camera is installed above the inner side of the front windshield.
4. The automobile transparent A-pillar image display system based on similarity matching as claimed in claim 1, characterized in that: The automatic calibration platform includes a movable mechanical arm and a clamping device; the movable mechanical arm is installed outside the vehicle near the cab, and the clamping device on the movable mechanical arm is installed with a calibration plate to drive the calibration plate to move in the cab.
5. The method for displaying an image of a transparent A-pillar of an automobile based on similarity matching according to any one of claims 1 to 4, characterized in that: The specific steps include: S1: Use the automatic calibration platform to calibrate the parameters of the binocular camera, pupil camera, and the spatial position of the display screens inside the left and right A-pillars; S2: Using the field of view conversion technology and the pupil detection technology to calculate in real time the portion of the driver's field of view blocked by the A-pillar, and then calculating a first mapping relationship of the portion blocked by the A-pillar in the binocular camera; S3: searching and determining the spatial depth of any processing point in the visual field blocked by the A-pillar based on similarity matching and the first mapping relationship; S4: Calculate the corresponding spatial coordinates of the processing point in the binocular camera according to the determined spatial depth and pixel coordinates of any processing point, thereby constructing a second mapping relationship between the binocular camera pixel point and the processing point, and obtaining a first image captured by the binocular camera; S5: Performing homography transformation on the first image transmission to obtain a second image, and displaying the second image on a display screen.
6. The method for displaying a transparent A-pillar image of an automobile based on similarity matching according to claim 5, characterized in that: In S1, the specific calibration method is: First, the vehicle body is positioned, the spatial coordinates of the automatic calibration platform are fixed and calculated, and the binocular camera and pupil camera are connected to the automatic calibration platform. The automatic calibration platform will move the chessboard pattern calibration plate on the platform. The binocular camera and pupil camera will take pictures of the calibration plate and calculate the parameters of the binocular camera and pupil camera. At the same time, the auxiliary camera on the automatic calibration platform will also take pictures of the display screen on the A-pillar and the chessboard pattern calibration plate to calculate the spatial position and posture of the A-pillar display screen.
7. The method for displaying a transparent A-pillar image of an automobile based on similarity matching according to claim 5, characterized in that: The S2 includes: S2-1: A pupil camera is installed in front of the driver to locate the spatial position of the driver's eyes in real time, that is, the driver's viewpoint E, whose spatial coordinates are (X E ,Y E ,Z E ); S2-2: constructing four ray equations formed by the driver's viewpoint and the four inner corner vertices of the calibrated corresponding display screen, and the area extended by these four rays is the driver's field of view blocked by the A-pillar; Point E is the spatial coordinate of the driver's viewpoint, A, B, C, and D are the four inner corner vertices of the display screen, and the spatial coordinates of the four inner corner vertices of the display screen are A(X1, Y1, Z1), B(X2, Y2, Z2), C(X3, Y3, Z3), and D(X4, Y4, Z4). The four ray equations constructed with the driver's viewpoint (human eye) as the starting point are: EA ray equation: EB ray equation: EC ray equation: ED ray equation: S2-3: For any point M(u L ,v L ), use the preset depth L to calculate the spatial coordinate point P (X, Y, L) on the left camera, and then use the projection equation of the right camera to obtain the corresponding point N (u R ,v R ); Solution of spatial coordinate point P: In formula (5), RT L Represents the transformation matrix from the predefined world coordinate system to the left camera coordinate system, represents the inverse matrix of the left camera intrinsic parameter, s represents the scaling factor; (u L ,v L ) represents the coordinates of any point M in the field of view blocked by the A-pillar; (X, Y, L) represents the coordinates of the spatial coordinate point P of point M on the left camera; The coordinates of the corresponding point N on the right camera (u R ,v R ) is calculated as: In formula (6), RT RR Represents the transformation matrix from the right camera coordinate system to the predefined world coordinate system, K R represents the inverse matrix of the right camera internal parameters; (u R ,v R ) represents the coordinates of the corresponding point N of point M on the right camera.
8. The method for displaying a transparent A-pillar image of an automobile based on similarity matching according to claim 5, characterized in that: The method for determining the spatial depth of the processing point in S3 is: S3-1: Determine the pixel coordinates of the point M to be processed in the field of view blocked by the A-pillar, and preset a neighborhood width W, spatial point depth L, and spatial search step length S for it, and calculate the right image matching point N corresponding to the point M according to formula (5) and formula (6); S3-2: According to the neighborhood width W, the left image pixel coordinate M and the calculated right image pixel coordinate N, two neighborhood blocks of the left image and the right image are obtained, each of which is centered on the left image point M and the right image point N, and the neighborhood block width is W; S3-3: Use the similarity matching function to calculate the similarity of the two neighborhood blocks: In formula (7), γ m represents the variance of the neighborhood where point M is located in the left figure, γ n represents the standard deviation of the neighborhood of point N in the right image, (u,v) represents the pixel coordinates of point M in the left image, and (x,y) represents the pixel coordinates of point N in the right image. represents the mean value of the neighborhood pixels of point M, represents the mean value of the neighborhood pixels of point N; C represents the similarity between the neighborhood image centered on point M in the left image and the neighborhood image centered on point N in the right image; i represents the pixel point in the i-th column of the neighborhood image, and j represents the pixel point in the j-th row of the neighborhood image; S3-4: Search from the initial search depth L to the two ends of the depth interval according to the search step S, and calculate the similarity matching coefficient according to formula (7), and repeat steps S3-2 to S3-3 to obtain the similarities corresponding to other search depths; S3-5: When the number of consecutive searches reaches three or more, determine whether the search can be exited normally based on the similarity matching data: when the similarity matching data corresponding to the three search depths form a peak and the peak exceeds the threshold, it is considered that the neighborhood areas of the left and right images are the most similar at this time, and the search depth corresponding to the similarity peak is the actual depth, then the search is exited normally.
9. The method for displaying a transparent A-pillar image of an automobile based on similarity matching according to claim 8, characterized in that: In S3-5, when the search is completed and the conditions for normal exit from the search are not met, it is considered that there is no matching area in the current neighborhood, and a halved search strategy is adopted: assuming that the original neighborhood width is W, the decomposed search width is W / 2, and steps S3-1 to S3-5 are repeated.
