In-vehicle blind area projection method and device
By obtaining the external scene image information of the blind spot in the car for three-dimensional reconstruction and forming a projection image at the driver's line of sight, the problem of incomplete transparency of the blind spot in the car in the existing technology is solved, and the vehicle structure is realized without changing the vehicle structure. Full transparency improves driving safety.
Patent Information
- Application Number
- CN202310366181.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
When the existing technology improves the safety performance of the entire vehicle, the visual blind spot area of the driver inside the vehicle increases, and the blind area in the vehicle cannot be completely transparent by opening the window, which affects driving safety.
By obtaining the external scene image information of the blind spot in the car for three-dimensional reconstruction, the projection image information in the projection coordinate system is obtained, and a projected image is formed at the driver's line of sight, achieving full transparency of the blind spot in the car, using external binocular cameras The equipment, in-car binocular camera equipment, depth camera equipment and projection equipment cooperate to perform mapping relationship conversion.
Without changing the vehicle structure, the blind area in the vehicle is fully transparent, improving the driver's safety factor and ensuring the robustness of the vehicle structure.
Smart Images

Figure CN118735997A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile projection technology, and in particular to a method for projecting a blind spot in a vehicle, a projection system for achieving transparency of the blind spot in the vehicle, and a computer-readable storage medium. Background Art
[0002] The overall structural frame strength of a car is crucial to its safety factor. Currently, due to increasingly stringent safety collision test requirements, in order to improve the safety performance of the entire vehicle, car companies are designing vehicles with wider and wider overall structures. However, this also leads to larger and larger visual blind spots for drivers inside the vehicle, and the driving risk for the driver also increases accordingly.
[0003] In current technology, it is proposed to make the blind spots in the car transparent by opening several small triangular windows in the blind spots inside the car. However, this method sacrifices the solidity of the vehicle structure, and the blind spots in the car cannot be made completely transparent by opening windows, and other blind spots still exist. Summary of the invention
[0004] In order to solve the above problems, the present application proposes a method for projecting blind spots inside a vehicle, a projection system for achieving transparency of blind spots inside a vehicle, and a computer-readable storage medium. By projection, full transparency of blind spots inside a vehicle can be achieved without significantly changing the vehicle structure.
[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a method for blind spot projection inside a vehicle, the method comprising: obtaining image information of an external scene in the blind spot inside the vehicle, and performing three-dimensional reconstruction of the scene based on the image information to obtain three-dimensional image information; obtaining projection image information in a projection coordinate system based on the three-dimensional image information; obtaining the line of sight position of the driver in the blind spot inside the vehicle; and forming a projection image at the line of sight position based on the projection image information.
[0006] Among them, the steps of obtaining image information of the external scene in the blind spot inside the vehicle and reconstructing the scene in three dimensions based on the image information to obtain three-dimensional image information include: using an external binocular camera device to obtain image information of the external scene in the blind spot inside the vehicle; and using a deep learning binocular depth estimation method based on the image information to reconstruct the scene in three dimensions to obtain three-dimensional image information.
[0007] Among them, the step of obtaining projection image information in a projection coordinate system based on three-dimensional image information includes: obtaining a first mapping relationship between the coordinate system of an external binocular camera device and the coordinate system of a driver's human eye; obtaining a second mapping relationship between the human eye coordinate system and the projection coordinate system; and obtaining projection image information in a projection coordinate system based on the three-dimensional image information, the first mapping relationship and the second mapping relationship.
[0008] Among them, the step of obtaining a first mapping relationship between the coordinate system of an external binocular camera device and the coordinate system of a driver's eye includes: obtaining a third mapping relationship between the coordinate system of an external binocular camera device and the coordinate system of a depth camera device; obtaining a fourth mapping relationship between the coordinate system of the depth camera device and the coordinate system of an in-vehicle binocular camera device; obtaining a fifth mapping relationship between the coordinate system of the in-vehicle binocular camera device and the coordinate system of a human eye; and obtaining a first mapping relationship based on the third mapping relationship, the fourth mapping relationship and the fifth mapping relationship.
[0009] Among them, before the step of obtaining the first mapping relationship between the external binocular camera device coordinate system and the driver's eye coordinate system, it also includes: using the binocular camera device in the car to obtain the driver's facial image information; and obtaining the eye coordinate system based on the facial image information.
[0010] Among them, the step of obtaining the human eye coordinate system based on the face image information includes: estimating the facial key points based on the face image information to obtain the facial key points; reconstructing based on the facial key points using a binocular camera device to obtain the three-dimensional points corresponding to the facial key points; and establishing the human eye coordinate system based on the three-dimensional points.
[0011] Among them, the step of obtaining the driver's line of sight position in the blind spot inside the vehicle includes: establishing a model for the blind spot inside the vehicle and the depth camera device; obtaining the sixth mapping relationship between the depth camera device coordinate system and the human eye coordinate system; and obtaining the driver's line of sight position in the blind spot inside the vehicle based on the model and the sixth mapping relationship.
[0012] In order to solve the above technical problems, another technical solution adopted by this application is: to provide a projection system for realizing the transparency of the blind spot in the car, which includes an external binocular camera device, an in-car binocular camera device, a projection device, a depth camera device and a control device. The external binocular camera device is used to obtain image information of the external scene in the blind spot in the car; the in-car binocular camera device is used to obtain the facial image information of the driver; the projection device is used to project the projection image information in the projection coordinate system onto the blind spot in the car; the depth camera device is used as a conversion of the mapping relationship between the external binocular camera device and the in-car binocular camera device and the projection device; the control device is used for any of the above-mentioned methods for projecting the blind spot in the car.
[0013] Among them, the depth camera device and the binocular camera device in the vehicle have no overlapping field of view, and the projection system also includes a calibration camera device, which is used to obtain a fourth mapping relationship between the coordinate system of the depth camera device and the coordinate system of the binocular camera device in the vehicle.
[0014] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a computer-readable storage medium, which stores program instructions, and the program instructions are executed to implement any of the above-mentioned in-vehicle blind spot projection methods.
[0015] The beneficial effects of the present application are as follows: Different from the prior art, the in-vehicle blind spot projection method of the present application can obtain the three-dimensional image information of the external blind spot of the vehicle by obtaining the image information of the external scene of the in-vehicle blind spot of the vehicle, and reconstruct the scene in three dimensions based on the image information; and convert the three-dimensional image information into projection image information under the projection coordinate system. In order to realize the transparency of the blind spot of the whole vehicle, the in-vehicle blind spot projection method of the present application also obtains the line of sight position of the driver on the blind spot of the vehicle; and forms a projection image at the line of sight position, thereby realizing eye tracking of the driver, and realizing the projection of external image information in the corresponding in-vehicle blind spot according to the line of sight position of the driver. In the above manner, the in-vehicle blind spot projection method of the present application can realize the transparency of the whole vehicle while ensuring the firmness of the vehicle structure without changing the vehicle structure, thereby improving the safety factor of driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of the first embodiment of the in-vehicle blind spot projection method of the present application;
[0017] Figure 2 yes Figure 1 A schematic diagram of a specific embodiment of step 101;
[0018] Figure 3 yes Figure 1 A schematic diagram of the process flow of the first embodiment of step 102;
[0019] Figure 4 yes Figure 3 A flowchart of a specific embodiment of step 301;
[0020] Figure 5 yes Figure 1 A schematic diagram of the flow chart of the second embodiment of step 102;
[0021] Figure 6 yes Figure 5 A schematic diagram of the flow chart of the second embodiment of step 502;
[0022] Figure 7 is a schematic diagram of an embodiment of establishing a face coordinate system in the present application;
[0023] Figure 8 It is a flow chart of the second embodiment of the in-vehicle blind spot projection method of the present application;
[0024] Fig. 9 It is a structural schematic diagram of an embodiment of a projection system for realizing the transparency of blind areas in a vehicle according to the present application;
[0025] Fig.10 It is a structural schematic diagram of another embodiment of the projection system for realizing the transparency of blind areas in vehicles in the present application;
[0026] Fig.11 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] In the automotive field, the overall structural frame strength of a car is crucial to its safety factor. Currently, due to increasingly stringent requirements for safety collision tests, in order to improve the safety performance of the entire vehicle, car companies are designing vehicles with wider and wider overall structures. However, this also leads to larger and larger visual blind spots for drivers inside the vehicle, and the driving risk for the driver also increases accordingly.
[0029] In current technology, it is proposed to make the blind spots in the car transparent by opening several small triangular windows in the blind spots inside the car. However, this method sacrifices the solidity of the vehicle structure, and the blind spots in the car cannot be made completely transparent by opening windows, and other blind spots still exist.
[0030] Therefore, in order to solve the problems existing in the above-mentioned prior art, the present application first proposes a method for projecting blind spots in a vehicle, see Figure 1 , Figure 1 1 is a flow chart of the first embodiment of the in-vehicle blind spot projection method of the present application. Figure 1 As shown, the in-vehicle blind spot projection method of this embodiment specifically includes steps S101 to S104:
[0031] Step S101: acquiring image information of an external scene in a blind spot inside a vehicle, and performing three-dimensional reconstruction of the scene based on the image information to acquire three-dimensional image information.
[0032] In this embodiment, the projection system that realizes the transparency of the blind spot inside the vehicle can obtain image information of the external scene of the blind spot inside the vehicle through an external binocular camera device arranged outside the vehicle, and reconstruct the external scene of the blind spot inside the vehicle in three dimensions based on the image information of the external scene of the blind spot inside the vehicle, thereby obtaining three-dimensional image information of the external scene of the blind spot inside the vehicle.
[0033] The three-dimensional reconstruction of the scene refers to reconstructing the three-dimensional structure of the external scene through an external binocular camera device, thereby obtaining three-dimensional image information of the external scene. In this embodiment, the external binocular camera device can be a binocular camera device, a multi-line laser radar or a 3D camera device, etc., which is not limited here.
[0034] Step S102: acquiring projection image information in a projection coordinate system based on the three-dimensional image information.
[0035] After obtaining the three-dimensional image information of the external scene in the blind spot inside the car, the projection system that realizes the transparency of the blind spot inside the car can obtain the projection image information in the projection coordinate system based on the mapping relationship between the three-dimensional image information and the coordinate system of the external binocular camera device and the coordinate system of the projection device by obtaining the mapping relationship between the coordinate system of the external binocular camera device and the coordinate system of the projection device.
[0036] Among them, when obtaining the mapping relationship between the coordinate system of the external binocular camera device and the coordinate system of the projection device, other devices need to be used for conversion, such as depth camera devices, in-vehicle binocular camera devices, etc. The specific conversion process is described as follows.
[0037] Step S103: Obtain the driver's sight line position on the blind spot in the vehicle.
[0038] In order to obtain the driver's line of sight position in the blind spot inside the vehicle, a projection system that realizes the transparency of the blind spot inside the vehicle can establish a model of the blind spot inside the vehicle and the depth camera device; and obtain the mapping relationship between the coordinate system of the depth camera device and the coordinate system of the human eye; based on the model and the mapping relationship between the coordinate system of the depth camera device and the coordinate system of the human eye, the driver's line of sight position in the blind spot inside the vehicle is obtained.
[0039] Step S104: forming a projection image at the sight line position based on the projection image information.
[0040] After obtaining the projection image information and the line of sight position of the human eye in the blind spot in the vehicle, the projection system that realizes the transparency of the blind spot in the vehicle can match the projection image information with the blind spot corresponding to the line of sight position one by one, that is, a projection image can be formed at the line of sight position based on the projection image information.
[0041] Different from the prior art, the in-vehicle blind spot projection method of the present application can obtain the three-dimensional image information of the external blind spot of the vehicle by obtaining the image information of the external scene of the in-vehicle blind spot of the vehicle, and reconstruct the scene in three dimensions based on the image information; and convert the three-dimensional image information into projection image information under the projection coordinate system. In order to achieve the transparency of the blind spot of the whole vehicle, the in-vehicle blind spot projection method of the present application also obtains the line of sight position of the driver on the blind spot of the vehicle; and forms a projection image at the line of sight position, thereby realizing eye tracking of the driver, and realizing the projection of external image information in the corresponding in-vehicle blind spot according to the line of sight position of the driver. In the above manner, the in-vehicle blind spot projection method of the present application can achieve the transparency of the whole vehicle while ensuring the firmness of the vehicle structure without changing the vehicle structure, thereby improving the safety factor of driving.
[0042] Optionally, the method for obtaining three-dimensional image information is as follows: Figure 2 See Figure 2 , Figure 2 yes Figure 1 101 is a flow chart of a specific embodiment of the present invention. Figure 2 The method shown implements step S101, and the specific implementation steps include steps S201 to S202:
[0043] Step S201: using an external binocular camera device to obtain image information of the external scene in the blind spot inside the vehicle.
[0044] In this embodiment, the external binocular camera device of the projection system that realizes the blind spot transparency in the vehicle can be used to obtain the image information of the external scene in the blind spot in the vehicle. The external binocular camera device can be installed at the external position corresponding to the blind spot in the vehicle, which is conducive to obtaining the image information of the external scene in the blind spot in the vehicle.
[0045] Step S202: Reconstruct the scene in three dimensions using a deep learning binocular depth estimation method based on the image information to obtain three-dimensional image information.
[0046] In this embodiment, after acquiring image information of the external scene in the blind spot inside the vehicle, the external binocular camera device of the projection system that realizes the transparency of the blind spot inside the vehicle can use the deep learning binocular depth estimation method to perform three-dimensional reconstruction of the scene based on the image information to obtain three-dimensional image information outside the vehicle. The deep learning binocular depth estimation method refers to estimating the depth information of the scene through the binocular camera device. After obtaining the depth information of the scene, each point in the image can be converted into a point cloud in combination with the depth information, and then three-dimensional object detection is performed through the point cloud target detection / segmentation method to obtain the three-dimensional image information of the current scene.
[0047] In other embodiments, the three-dimensional reconstruction of the scene may also use a traditional three-dimensional reconstruction method, such as binocular stereo correction, stereo matching, and finally three-dimensional reconstruction, which is not limited here.
[0048] Optionally, the method for obtaining the projection image information in the projection coordinate system is as follows: Figure 3 See Figure 3 , Figure 3 yes Figure 1 102 of the first embodiment. Figure 3 The method shown implements step S102, and the specific implementation steps include steps S301 to S303:
[0049] Step S301: obtaining a first mapping relationship between an external binocular camera device coordinate system and a driver's eye coordinate system.
[0050] When obtaining the mapping relationship between the coordinate system of the external binocular camera device and the coordinate system of the projection device, the projection system for realizing the transparency of the blind spot in the vehicle needs to first obtain the first mapping relationship between the coordinate system of the external binocular camera device and the coordinate system of the driver's human eye.
[0051] In order to obtain the mapping relationship between the external binocular camera device and the binocular camera device and projection device inside the vehicle, in this embodiment, a depth camera device is also set on the structure of the blind spot inside the vehicle. For example, a depth camera device can be set on the A-pillar of the vehicle.
[0052] In this embodiment, the first mapping relationship can be obtained by obtaining the mapping relationship between the external binocular camera device and the depth camera device, the mapping relationship between the depth camera device and the in-vehicle binocular camera device, and the mapping relationship between the in-vehicle binocular camera device and the human eye coordinate system. In addition, when obtaining the mapping relationship between the above devices, the positional relationship between the above devices needs to be calibrated.
[0053] Step S302: Obtain a second mapping relationship between the human eye coordinate system and the projection coordinate system.
[0054] In this embodiment, the driver's human eye can be simplified into a pinhole camera model. Therefore, this embodiment uses a pinhole camera model to replace the human eye. At this time, a human eye coordinate system can be established, and the projection system that realizes the transparency of the blind spot in the car can obtain the second mapping relationship between the human eye coordinate system and the projection coordinate system.
[0055] In this embodiment, the second mapping relationship can be obtained by obtaining the mapping relationship between the human eye coordinate system and the depth camera device and the mapping relationship between the depth camera device and the projection coordinate system. Similarly, when obtaining the second mapping relationship between the human eye coordinate system and the projection coordinate system, the depth camera device and the projection device also need to be calibrated.
[0056] Step S303: acquiring projection image information in a projection coordinate system based on the three-dimensional image information, the first mapping relationship and the second mapping relationship.
[0057] The projection system for realizing the transparency of the blind spot in the vehicle obtains the projection image information in the projection coordinate system based on the three-dimensional image information, the first mapping relationship and the second mapping relationship.
[0058] That is, the projection system that realizes the transparency of the blind spot inside the vehicle can obtain the three-dimensional image information of the external scene of the vehicle in the human eye coordinate system based on the three-dimensional image information and the first mapping relationship. Since in this embodiment, the human eye can be replaced by a pinhole camera model, it can finally be converted based on the formula of the pinhole camera model to obtain the human eye mapping image information of the image information of the external scene of the blind spot inside the vehicle in the human eye image plane coordinate system.
[0059] Optionally, the method for obtaining the first mapping relationship between the external binocular camera device coordinate system and the human eye coordinate system of the vehicle driver is as follows: Figure 4 See Figure 4 , Figure 4 yes Figure 3 301 in the flowchart of a specific embodiment. This embodiment can be Figure 4 The method shown implements step S301, and the specific implementation steps include steps S401 to S404:
[0060] Step S401: obtaining a third mapping relationship between an external binocular camera device coordinate system and a depth camera device coordinate system.
[0061] When obtaining the third mapping relationship between the coordinate system of the external binocular camera device and the coordinate system of the depth camera device, it is necessary to calibrate the external binocular camera device and the depth camera device. In this process, it is only necessary to calibrate the positional relationship between the depth camera device and the external binocular camera device and the calibration of the camera of the external binocular camera device. In the calibration process, a stereo calibration method or other methods can be used, which is not limited here.
[0062] After calibration, the positional relationship between the external binocular camera coordinate system and the depth camera can be obtained as R wd , T wd , where R wd is a 3x3 matrix, T wdis a 3x1 matrix. Among them, the internal parameters of the left and right cameras of the external binocular camera are M wl 、M wr , the external parameter is R w , T w .
[0063] Based on the above positional relationship, the third mapping relationship between the external binocular camera device coordinate system and the depth camera device coordinate system can be obtained. The third mapping relationship is as follows:
[0064]
[0065] Step S402: Obtain a fourth mapping relationship between the depth camera device coordinate system and the in-vehicle binocular camera device coordinate system.
[0066] When obtaining the fourth mapping relationship between the depth camera device coordinate system and the in-vehicle binocular camera device coordinate system, it is also necessary to calibrate the depth camera device and the in-vehicle binocular camera device. In the calibration process, it is first necessary to calibrate the camera of the in-vehicle binocular camera device, which includes the calibration of the camera internal parameters and the calibration of the position relationship between the cameras. In this embodiment, the chessboard stereo calibration method can be used for calibration, so as to obtain the internal parameters of the left and right cameras of the in-vehicle binocular camera device as M nl 、M nr , the external parameter is R n , T n , where M nl 、M nr , R n is a 3x3 matrix, T n It is a 3x1 matrix. The depth camera device has calibrated the camera intrinsic parameters and extrinsic parameters when it leaves the factory, so here you only need to calibrate the positional relationship between the depth camera device and the in-vehicle binocular camera device. Since there is no overlapping field of view between the depth camera device and the in-vehicle binocular camera device, it is necessary to place a calibration camera device between the depth camera device and the in-vehicle binocular camera device to ensure that the calibration camera device and one of the depth camera device and the in-vehicle binocular camera device have an overlapping field of view. The calibration of the positional relationship between the depth camera device and the in-vehicle binocular camera device can also use a stereo calibration method. After calibration, the positional relationship between the depth camera device and the in-vehicle binocular camera device can be obtained as: R dn , T dn , where R dn is a 3x3 matrix, T dn is a 3x1 matrix.
[0067] Based on the positional relationship between the depth camera device and the in-vehicle binocular camera device, a fourth mapping relationship between the depth camera device coordinate system and the in-vehicle binocular camera device coordinate system can be obtained. The fourth mapping relationship is as follows:
[0068]
[0069] Step S403: obtaining a fifth mapping relationship between the in-vehicle binocular camera device coordinate system and the human eye coordinate system.
[0070] In this embodiment, facial image information of the driver can be acquired through a binocular camera device in the vehicle and a human eye coordinate system can be established based on the facial image information.
[0071] When establishing the face coordinate system, this embodiment can obtain the face key points by performing three-dimensional reconstruction on the face image information, and establish the eye coordinate system based on the face key points. Therefore, after the eye coordinate system is established, the human eye can be simplified to a pinhole camera model. In this embodiment, the human eye is replaced by the pinhole camera model, and the internal parameter of the camera model is set to M e Based on this, the external parameters of the pinhole camera model relative to the in-car binocular camera device can be obtained as R ne , T ne , where M e , R ne is a 3x3 matrix, T ne It is a 3x1 matrix. Based on the external parameters of the pinhole camera model relative to the in-vehicle binocular camera device, the fifth mapping relationship between the in-vehicle binocular camera device coordinate system and the human eye coordinate system can be obtained. The fifth mapping relationship is as follows:
[0072]
[0073] Step S404: acquiring the first mapping relationship based on the third mapping relationship, the fourth mapping relationship and the fifth mapping relationship.
[0074] The projection system that realizes the transparency of the blind spot in the vehicle can obtain the first mapping relationship based on the third mapping relationship, the fourth mapping relationship and the fifth mapping relationship.
[0075] In one embodiment, let P e , P w are the homogeneous three-dimensional point coordinates in the human eye coordinate system and the external binocular camera device coordinate system, respectively, where P e , P w is a 4x1 matrix.
[0076] Based on the third mapping relationship, the fourth mapping relationship and the fifth mapping relationship, the positional relationship between the external binocular camera device and the human eye can be obtained, and the positional relationship is shown in formula (1):
[0077]
[0078] When obtaining the second mapping relationship between the human eye coordinate system and the projection coordinate system, as described above, it is also necessary to obtain the mapping relationship between the human eye coordinate system and the depth camera device and the mapping relationship between the depth camera device and the projection coordinate system, so as to obtain the second mapping relationship between the human eye coordinate system and the projection coordinate system.
[0079] As mentioned above, the human eye can be simplified into a pinhole camera model, and the positional relationship between the human eye and the depth camera device is shown in formula (2):
[0080]
[0081] Among them, P e , P d are the homogeneous three-dimensional point coordinates in the human eye coordinate system and the depth camera coordinate system, respectively. e , P d is a 4x1 matrix.
[0082] In order to obtain the second mapping relationship between the human eye coordinate system and the projection coordinate system, in this embodiment, it is also necessary to obtain the mapping relationship between the depth camera device and the projection device. Before this, the depth camera device and the projection device need to be calibrated. As mentioned above, the depth camera device has calibrated the camera internal parameters and external parameters when it leaves the factory. Here, only the position relationship between the depth camera device and the projection device and the internal parameters of the projection device need to be calibrated. The multi-frequency phase shift method or the stereo calibration method can be used in the calibration process. After calibration, the position relationship between the depth camera device and the projection device can be obtained as R pd , T pd , the internal parameter of the projection device is M p , where M p , R pd is a 3x3 matrix, T pd is a 3x1 matrix. Based on the positional relationship between the depth camera device and the projection device, the mapping relationship between the coordinate systems of the two can be obtained, as shown in formula (3):
[0083]
[0084] Among them, P p , P d are the homogeneous three-dimensional point coordinates in the projection coordinate system and the depth camera device coordinate system, respectively, p , P d is a 4x1 matrix.
[0085] Based on formula (2) and formula (3), the second mapping relationship between the human eye coordinate system and the projection coordinate system can be obtained, as shown in formula (4):
[0086]
[0087] When the human eye is replaced by a pinhole camera model, the transmission projection model of the pinhole camera model is shown in formula (5):
[0088]
[0089] Among them, M is a 3X3 intrinsic parameter matrix, R is a 3X3 rotation matrix, T is a 3X1 translation matrix, p is a 3X1 matrix, which is the pixel coordinate in the human eye image plane coordinate system, and P is a 4X1 matrix, which is the homogeneous three-dimensional point coordinate in the human eye coordinate system.
[0090] Finally, in this embodiment, after the driver's eye coordinate system is established, the three-dimensional image information is obtained through three-dimensional reconstruction, that is, the homogeneous three-dimensional point coordinates P in the coordinate system of the external binocular camera device w , the homogeneous three-dimensional point coordinates P in the external binocular camera coordinate system can be obtained by formula (1) w Convert to the homogeneous three-dimensional point coordinates P in the human eye coordinate system e , and then use formula (5) to convert the homogeneous three-dimensional point coordinates P in the human eye coordinate system e Converted to the human eye image plane coordinate system p e (3x1 pixel coordinates).
[0091] Optionally, the method for obtaining the projection image information in the projection coordinate system is as follows: Figure 5 See Figure 5 , Figure 5 yes Figure 1 102 of the second embodiment. Figure 5 The method shown implements step S102, and the specific implementation steps include steps S501 to S505:
[0092] Step S501: Acquire the driver's facial image information using the binocular camera device in the vehicle.
[0093] In this embodiment, in order to establish the human eye coordinate system, it is first necessary to obtain the driver's facial image information. In this embodiment, the driver's facial image information can be directly obtained by using a binocular camera device in the car.
[0094] Step S502: Acquire the eye coordinate system based on the face image information.
[0095] After obtaining the face image information, the present embodiment can use the face key point estimation algorithm to obtain the face key points in the face image information, and then establish the eye coordinate system based on the face key points. The process of establishing the eye coordinate system is as follows.
[0096] Step S503: Acquire a first mapping relationship between the external binocular camera device coordinate system and the driver's eye coordinate system.
[0097] Step S503 is the same as step S301 and will not be described again.
[0098] Step S504: obtaining a second mapping relationship between the human eye coordinate system and the projection coordinate system.
[0099] Step S504 is consistent with step S302 and will not be described again.
[0100] Step S505: acquiring projection image information in a projection coordinate system based on the three-dimensional image information, the first mapping relationship and the second mapping relationship.
[0101] Step S505 is consistent with step S303 and will not be described again.
[0102] Optionally, the method for obtaining the human eye coordinate system is as follows: Figure 6 See Figure 6 , Figure 6 yes Figure 5 502 of the second embodiment of the process flow diagram. This embodiment can be Figure 6 The method shown implements step S502, and the specific implementation steps include steps S601 to S603:
[0103] Step S601: Estimating facial key points based on facial image information to obtain facial key points.
[0104] In this example, see Figure 7 , Figure 7 FIG. 1 is a schematic diagram of an embodiment of establishing a face coordinate system in the present application. Figure 7 As shown in (a), in this embodiment, the positions of facial key points in the image, such as eyeballs, eye corners, nose tip, mouth corners, chin, etc., are obtained by estimating facial key points, as shown in the figure.
[0105] The estimation of key points of human face is relatively mature at present, and there are 5-point estimation, 18-point estimation, 108-point estimation, etc. In this embodiment, 5-point estimation can be adopted, that is, the center point of the eyeball, the tip of the nose, and the corner of the mouth are estimated. Figure 7 As shown in (b). Of course, multiple point estimates can be made, which will result in higher accuracy and require higher computing power. The key points obtained here are two-dimensional points.
[0106] Step S602: Reconstruct the facial key points using a binocular camera device to obtain three-dimensional points corresponding to the facial key points.
[0107] After acquiring the two-dimensional key points of the human face, the present embodiment can perform three-dimensional reconstruction through a binocular camera device in the vehicle, thereby obtaining three-dimensional points corresponding to the acquired key points of the human face.
[0108] Step S603: establishing a human eye coordinate system based on the three-dimensional points.
[0109] The human eye coordinate system is based on three-dimensional points, such as Figure 7 As shown in (c), in this embodiment, the eye line is taken as the X-axis, the midpoint of the eye line is taken as the origin, the plane perpendicular to the five key points is taken as the Z-axis, and the cross product of the X-axis and the Z-axis is taken as the Y-axis, thereby establishing the eye coordinate system. The establishment of the eye coordinate system can obtain the eye position of the driver in real time and solve the problem of the change of the viewing angle caused by the change of the eye position.
[0110] Optionally, the method for obtaining the sight line position of the driver in the blind spot in the vehicle is as follows: Figure 8 See Figure 8 , Figure 8 yes Figure 1 103 in the flowchart of a specific embodiment. Figure 8 The method shown implements step S103, and the specific implementation steps include steps S701 to S703:
[0111] Step S701: Building a model for the blind spot in the vehicle and the depth camera equipment.
[0112] In this embodiment, a projection system that realizes transparency of the blind spot inside the car performs 3D modeling of the blind spot inside the car and the depth camera equipment, and segments the structure corresponding to the blind spot inside the car to obtain the electric fish corresponding to the blind spot inside the car, wherein the segmentation can adopt deep learning methods, such as deeplab-v3, BiseNet, ReBiseNet, etc.
[0113] Taking the A-pillar of a car as an example of the blind spot inside the car, in this embodiment, the A-pillar photographed by the depth camera device can be segmented to obtain a point cloud corresponding to the A-pillar.
[0114] Step S702: Acquire a sixth mapping relationship between the depth camera device coordinate system and the human eye coordinate system.
[0115] The projection system for realizing the transparency of the blind spot in the vehicle can first obtain the fourth mapping relationship between the depth camera device coordinate system and the in-vehicle binocular camera device coordinate system and the fifth mapping relationship between the in-vehicle binocular camera device coordinate system and the human eye coordinate system as mentioned above.
[0116] Based on the fourth mapping relationship and the fifth mapping relationship, a sixth mapping relationship between the depth camera device coordinate system and the human eye coordinate system can be calculated and obtained.
[0117] Step S703: Obtain the driver's sight line position on the blind spot in the vehicle based on the model and the sixth mapping relationship.
[0118] After the projection system that realizes the transparency of the blind spot in the car obtains the point cloud corresponding to the blind spot in the car based on the model, the driver's line of sight position in the blind spot in the car can be obtained based on the sixth mapping relationship between the depth camera device coordinate system and the human eye coordinate system.
[0119] In addition, based on the above embodiment, in order to make the projection image projected at the blind spot line of sight position inside the vehicle consistent with the external scene, it is necessary to make one-to-one correspondence between the point cloud of the structure corresponding to the blind spot inside the vehicle in the human eye image plane coordinate system and the point cloud of the structure corresponding to the blind spot inside the vehicle in the projection coordinates.
[0120] In this embodiment, the structure of the blind spot in the car can be 3D modeled to obtain the point cloud of the structure of the blind spot in the car. Based on formula (4), the structure point cloud of the blind spot in the car can be converted into a three-dimensional homogeneous coordinate in the human eye coordinate system. Then, based on formula (5), the pixel coordinates p of the structure point cloud of the blind spot in the car in the human eye image plane coordinate system can be obtained. a (3x1 pixel coordinates); The structural point cloud of the blind spot inside the car can be converted into three-dimensional homogeneous coordinates in the projection coordinate system based on formula (3), and the pixel coordinates p of the structural point cloud of the blind spot inside the car in the projection image plane coordinate system are obtained based on formula (5) p (3x1 pixel coordinates), and finally the pixel coordinates p a and pixel coordinates p p In a one-to-one correspondence, the image information of the external scene can be projected onto the driver's line of sight in the blind spot inside the car.
[0121] Different from the prior art, the in-vehicle blind spot projection method of the present application can obtain the three-dimensional image information of the external blind spot of the vehicle by obtaining the image information of the external scene of the in-vehicle blind spot of the vehicle, and reconstruct the scene in three dimensions based on the image information; and convert the three-dimensional image information into projection image information under the projection coordinate system. In order to achieve the transparency of the blind spot of the whole vehicle, the in-vehicle blind spot projection method of the present application also obtains the line of sight position of the driver on the blind spot of the vehicle; and forms a projection image at the line of sight position, thereby realizing eye tracking of the driver, and realizing the projection of external image information in the corresponding in-vehicle blind spot according to the line of sight position of the driver. In the above manner, the in-vehicle blind spot projection method of the present application can achieve the transparency of the whole vehicle while ensuring the firmness of the vehicle structure without changing the vehicle structure, thereby improving the safety factor of driving.
[0122] Optionally, the present application further proposes a projection system that realizes the transparency of the blind area in the vehicle. Fig. 9 , Fig. 9 FIG. 1 is a schematic diagram of a structure of an embodiment of a projection system for realizing the transparency of blind spots in a vehicle according to the present application. Fig. 9As shown, the projection system 100 for realizing the transparency of the blind spot in the vehicle in this embodiment includes an external binocular camera device 10, an in-vehicle binocular camera device 20, a projection device 30, a depth camera device 40 and a control device 50.
[0123] The external binocular camera device 10 is used to obtain image information of external scenes in the blind spot inside the vehicle; the binocular camera device 20 inside the vehicle is used to obtain facial image information of the driver; the projection device 30 is used to project the projection image information in the projection coordinate system onto the blind spot inside the vehicle; the depth camera device 40 is used to convert the mapping relationship between the external binocular camera device 10 and the binocular camera device 20 and the projection device 30 inside the vehicle; the control device 50 is used to implement the blind spot projection method inside the vehicle of any of the above-mentioned embodiments.
[0124] See also Fig.10 , Fig.10 FIG. 1 is a schematic diagram of another embodiment of the projection system for realizing the transparency of the blind area in the vehicle according to the present application. Fig.10 As shown, Fig.10 The right side is a schematic diagram of the hardware structure of the projection system that realizes the transparency of the blind spot in the car. After the system hardware structure is determined and installed, the various devices in the system need to be calibrated. System calibration is the calibration of the parameters in each sensor and the positional relationship between sensors. To put it more specifically, it is the calibration of the in-car binocular camera device, the calibration of the depth camera device and the projection device, the calibration of the in-car binocular camera device and the depth camera device, and the calibration of the depth camera device and the external binocular camera device mentioned above.
[0125] Among them, Fig.10 As shown on the left, since the depth camera device and the binocular camera device have no overlapping field of view, it is necessary to place a calibration camera device (not shown) for calibration between the depth camera device and the binocular camera device in the vehicle. When setting the calibration camera device, it is necessary to ensure that the camera and one of the binocular cameras in the vehicle and the depth camera device have an overlapping field of view. Based on the calibration camera device, the fourth mapping relationship between the depth camera device coordinate system and the binocular camera device coordinate system in the vehicle can be indirectly obtained. In this application, the calibration camera device is used to solve the problem that there is no common field of view between the devices and they cannot be calibrated.
[0126] Optionally, the present application further proposes a computer-readable storage medium. Fig.11 , Fig.11 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application.
[0127] The computer-readable storage medium 200 of the embodiment of the present application stores program instructions 210 therein, and the program instructions 210 are executed to implement the above-mentioned in-vehicle blind spot projection method.
[0128] Among them, the program instructions 210 can form a program file and be stored in the above-mentioned storage medium in the form of a software product, so that an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or terminal devices such as computers, servers, mobile phones, tablets, etc.
[0129] The computer-readable storage medium 200 of this embodiment may be, but is not limited to, a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy drive, a flash memory, a multimedia memory card, a server, and the like.
[0130] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the steps in the above-mentioned method embodiments.
[0131] In addition, if the above functions are implemented in the form of software functions and sold or used as independent products, they can be stored in a storage medium readable by a mobile terminal, that is, the present application also provides a storage device storing program data, the program data can be executed to implement the method of the above embodiment, and the storage device can be, for example, a USB flash drive, an optical disk, a server, etc. In other words, the present application can be embodied in the form of a software product, which includes a number of instructions for enabling a smart terminal to execute all or part of the steps of the method described in each embodiment.
[0132] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0133] Any process or method description in a flowchart or otherwise described herein may be understood to represent a mechanism, segment or portion of a code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0134] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (which can be a personal computer, server, network device or other system that can fetch instructions from the instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0135] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for projecting blind spots in a vehicle, characterized in that: include: Acquire image information of an external scene in a blind spot in the vehicle, and perform three-dimensional reconstruction of the scene based on the image information to acquire three-dimensional image information; Acquire projection image information in a projection coordinate system based on the three-dimensional image information; Obtaining the sight line position of the driver on the blind spot in the vehicle; A projection image is formed at the sight line position based on the projection image information.
2. The method for projecting blind spots in a vehicle according to claim 1, characterized in that: The step of acquiring image information of the external scene of the blind spot in the vehicle and performing three-dimensional reconstruction of the scene based on the image information to acquire three-dimensional image information includes: Using an external binocular camera device to obtain image information of the external scene in the blind spot inside the vehicle; Based on the image information, a deep learning binocular depth estimation method is used to perform three-dimensional reconstruction of the scene to obtain the three-dimensional image information.
3. The method for projecting blind spots in a vehicle according to claim 2, characterized in that: The step of acquiring projection image information in a projection coordinate system based on the three-dimensional image information comprises: Acquire a first mapping relationship between the external binocular camera device coordinate system and the driver's eye coordinate system; Acquire a second mapping relationship between the human eye coordinate system and the projection coordinate system; Projection image information in the projection coordinate system is acquired based on the three-dimensional image information, the first mapping relationship, and the second mapping relationship.
4. The method for in-vehicle blind spot projection according to claim 3, characterized in that: The step of obtaining a first mapping relationship between the external binocular camera device coordinate system and the driver's eye coordinate system comprises: Acquire a third mapping relationship between the external binocular camera device coordinate system and the depth camera device coordinate system; Acquire a fourth mapping relationship between the depth camera device coordinate system and the in-vehicle binocular camera device coordinate system; Acquire a fifth mapping relationship between the in-vehicle binocular camera device coordinate system and the human eye coordinate system; The first mapping relationship is acquired based on the third mapping relationship, the fourth mapping relationship and the fifth mapping relationship.
5. The method for projecting blind spots in a vehicle according to claim 3, characterized in that: Before the step of acquiring a first mapping relationship between the external binocular camera device coordinate system and the driver's eye coordinate system, the method further includes: Acquiring facial image information of the driver using a binocular camera device in the vehicle; The eye coordinate system is acquired based on the face image information.
6. The method for projecting blind spots in a vehicle according to claim 5, characterized in that: The step of acquiring the eye coordinate system based on the face image information comprises: Based on the face image information, the face key points are estimated to obtain the face key points; Reconstructing the facial key points using the binocular camera device to obtain three-dimensional points corresponding to the facial key points; The human eye coordinate system is established based on the three-dimensional points.
7. The method for in-vehicle blind spot projection according to claim 1, characterized in that: The step of obtaining the sight line position of the driver on the blind spot in the vehicle includes: Establishing a model for the blind spot in the vehicle and the depth camera equipment; Acquire a sixth mapping relationship between the depth camera device coordinate system and the human eye coordinate system; The sight line position of the driver on the blind spot in the vehicle is obtained based on the model and the sixth mapping relationship.
8. A projection system for achieving transparency of blind spots in a vehicle, characterized in that: include: External binocular camera equipment, used to obtain image information of external scenes in the blind spots inside the vehicle; In-car binocular camera equipment, used to obtain facial image information of the driver; A projection device, used for projecting projection image information in a projection coordinate system onto the blind spot in the vehicle; A depth camera device, used for converting the mapping relationship between the external binocular camera device and the in-vehicle binocular camera device and the projection device; A control device, used to execute the in-vehicle blind spot projection method described in any one of claims 1-7.
9. The projection system for achieving transparency of blind spots in vehicles according to claim 8, characterized in that: The depth camera device and the in-vehicle binocular camera device have no overlapping field of view, and the projection system also includes a calibration camera device, which is used to obtain a fourth mapping relationship between the depth camera device coordinate system and the in-vehicle binocular camera device coordinate system.
10. A computer-readable storage medium, characterized in that: Program instructions are stored internally, and it is characterized in that the program instructions are executed to implement the in-vehicle blind spot projection method described in any one of claims 1-7.
