Method and system for adjusting automatic rearview mirror in vehicle
The angle of the rearview mirror is automatically adjusted through the human eye recognition camera and algorithm processing module, which solves the problem of manual adjustment when changing drivers, realizes the adaptive field of vision safety of different drivers, and improves driving safety.
Patent Information
- Application Number
- CN202211286165.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-20
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-10-20
AI Technical Summary
The prior art cannot automatically adjust the rearview mirror in the vehicle when changing the driver to adapt to the eye position of different drivers, resulting in manual adjustments that affect safety.
The human eye recognition camera is used to obtain the midpoint space coordinates of the driver's human eye spacing, and the mirror normal vector and coordinate transformation of the rearview mirror are calculated through the algorithm processing module, and the up and down direction of the rearview mirror is automatically adjusted. to achieve adaptive adjustment.
There is no need to manually adjust the rearview mirror, ensuring that different drivers can get the best rear view angle, improving driving safety.
Smart Images

Figure CN115675285B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automatic adjustment of auxiliary driving components in a vehicle, and relates to a method and a system for adjusting an automatic rearview mirror in a vehicle. Background Art
[0002] With the development of the economy, family income is increasing, and the demand for family cars is growing day by day. Most families will own at least one car, and even high-income families will own two or three cars for different purposes. On the other hand, driving skills have become a basic skill in modern society. The car in the family will be selectively driven by two or three people. In order to cope with the frequent adjustment problems of seat adjustment, steering wheel adjustment, rearview mirror, etc. brought about by this situation, automobile manufacturers have solved the pain point brought about by seat adjustment - seat memory function. The rearview mirror inside the car is equally important as a tool to provide rear vision during reversing or driving, and there will also be a user pain point of changing the driver and re-adjusting the rearview mirror inside the car.
[0003] At present, automobile manufacturers generally use manual adjustment methods or streaming media rearview mirrors when adjusting the rearview mirrors inside the car. There is no need to adjust the rearview mirrors, just adjust the rearview mirrors to a more comfortable viewing position.
[0004] The patent document with announcement number CN109849794A discloses an automatic adjustment device and method for the interior rearview mirror. The device includes a ball joint, a ball joint rod, a vertical angle sensor, a horizontal angle sensor, a vertical adjustment hydraulic rod, a vertical adjustment hydraulic cylinder, a vertical adjustment solenoid valve, a horizontal adjustment hydraulic rod, a horizontal adjustment hydraulic cylinder, a horizontal adjustment solenoid valve, a low-pressure oil source, a high-pressure oil source, an electronic control unit, an inclination sensor, and a displacement sensor. Before driving, after the driver adjusts the seat position, the device automatically collects seat position and seat angle signals, and then automatically adjusts the vertical and horizontal positions of the rearview mirror. The present invention adopts an electro-hydraulic device, which is safe and reliable in operation, quick in response, and has a wide range of applications. It also utilizes the oil source in the hydraulic power steering, saves energy consumption, and can realize the function of automatic adjustment of the interior rearview mirror.
[0005] This patent only describes the structure and system connection control of an automatic adjustment of the interior rearview mirror, and does not provide a detailed description of the specific algorithm for implementing the automatic adjustment.
[0006] The patent document with the announcement number CN107826040B discloses an automatically adjustable interior rearview mirror, including an image input processor, an interior rearview mirror imaging system, a return-to-zero device, an interior rearview mirror automatic adjustment controller and a camera arranged on the interior rearview mirror. The interior rearview mirror imaging system includes an image processor with an image memory module and an image analysis module. The interior rearview mirror automatic adjustment controller includes a drive regulator and a micro-reduction motor connected to the interior rearview mirror. A camera electrically connected to the image input processor is arranged on the frame of the interior rearview mirror. The rear stage of the interior rearview mirror imaging system is electrically connected to the interior rearview mirror automatic adjustment controller. When the engine is started, the return-to-zero device is activated to perform a zero reset operation on the interior rearview mirror imaging system and the interior rearview mirror automatic adjustment controller, and the interior rearview mirror is automatically adjusted again. The interior rearview mirror is automatically adjusted to the best viewing angle, the clarity of the interior rearview mirror is maintained, and the automatic adjustment and safety are improved.
[0007] This patent only describes the structural composition and control logic of an automatic adjustment of the interior rearview mirror, but does not elaborate on the specific algorithm for implementing the automatic adjustment. Summary of the invention
[0008] The main purpose of this patent is to solve the problem that when the driver is changed, the rearview mirror in the car can be adaptively adjusted according to the different eye positions of the driver without manual adjustment.
[0009] The present invention is only aimed at adjusting rearview mirrors that use the optical mirror reflection principle for imaging, and streaming media rearview mirrors do not need to adopt this function.
[0010] The main purpose of this patent is to solve the problem that when the driver is changed, the rearview mirror in the car can be adaptively adjusted according to the different eye positions of the driver without manual adjustment; in official cars or family cars, the angle can be adaptively adjusted for different drivers to ensure the safety of the rear view for different drivers with different eye positions without manual adjustment.
[0011] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0012] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions:
[0013] A method for adjusting an automatic rearview mirror in a vehicle, characterized by comprising:
[0014] The driver's eye recognition camera in the car obtains the spatial coordinates E (a, b, c) of the midpoint of the driver's eye distance and inputs the coordinates to the algorithm processing module;
[0015] The algorithm processing module obtains the mirror normal vector of the interior rearview mirror And the coordinates of the midpoint of the human eye distance are transformed to obtain E1 (a+m, b+k, c+d);
[0016] The algorithm processing module calculates the acquired data and obtains the up and down flipping direction of the rearview mirror. Angle and the interior rearview mirror rotate around the z-axis by an angle θ; if both are 0, there is no need to adjust the interior rearview mirror; if they are not zero, both parameters are input into the interior rearview mirror for automatic adjustment.
[0017] Furthermore, a method for adjusting an automatic rearview mirror in a vehicle further includes:
[0018] The driver's eye recognition camera in the car has been in working state since the vehicle was started, and has been calculating the spatial coordinates of the midpoint of the driver's eye distance; repeatedly performing the following logical operations to complete the real-time adjustment of the optimal viewing angle of the rearview mirror in the car:
[0019] The algorithm processing module obtains the mirror normal vector of the interior rearview mirror And the coordinates of the midpoint of the human eye distance are transformed to obtain E1 (a+m, b+k, c+d);
[0020] The algorithm processing module calculates the acquired data and obtains the up and down flipping direction of the rearview mirror. Angle and the interior rearview mirror rotate around the z-axis by an angle θ; if both are 0, there is no need to adjust the interior rearview mirror; if they are not zero, both parameters are input into the interior rearview mirror for automatic adjustment.
[0021] Furthermore, the algorithm for adjusting the rotation angle of the interior rearview mirror includes the following contents: the positive direction of rotation around the z-axis direction is defined as the counterclockwise direction when viewed from above, and the positive direction of rotation around the horizontal direction of the rearview mirror itself is defined as downward rotation;
[0022] Calculate the rotation angle of the interior rearview mirror around the rotation center of the z-axis algorithm
[0023] When the rearview mirror rotates around the z-axis, the flip angle of the rotation around the z-axis is converted into the angle of the projection vector of the xO1y plane, which is At this time, the reflection normal vector The projection vector is Normal vector of the rearview mirror surface The projection vector is Obtained from the spatial solid geometric relationship Then we get
[0024] is the reflection normal vector Projection vector The angle with the positive x-axis, is the normal vector of the rearview mirror surface Projection vector Angle with the positive x-axis;
[0025] The flip angle of the interior rearview mirror around the z-axis
[0026] Furthermore, if The interior rearview mirror flips up and down and rotates forward angle;
[0027] like Then the interior rearview mirror does not need to rotate in the up and down direction;
[0028] like The interior rearview mirror flips up and down and rotates negatively angle.
[0029] Furthermore, the algorithm for calculating the rotation angle θ of the rearview mirror around the rotation center of the y-axis direction is:
[0030] When considering the rotation around the rotation center of the y-axis, the rotation angle of the interior rearview mirror around its own horizontal axis is converted into the reflection normal vector Normal vector of the rearview mirror surface The angle difference with the xO1y plane is θ, and the reflected normal vector The projection vector is Projection vector Length is Similarly, the normal vector of the rearview mirror surface is The projection vector is Projection vector Length is
[0031] Obtained from the spatial solid geometric relationship
[0032] get θ1 is the reflection normal vector Projection vector The angle with the positive direction of the xOy plane, θ2 is the normal vector of the rearview mirror surface Projection vector The angle with the positive direction of the xOy plane;
[0033] The flip angle of the rearview mirror around the z-axis is θ=|θ2-θ1|.
[0034] Furthermore, if θ2-θ1>0, the interior rearview mirror is flipped up and down and rotated forward by an angle of θ;
[0035] If θ2-θ1=0, the interior rearview mirror does not need to rotate in the up and down direction;
[0036] If θ2-θ1<0, the interior rearview mirror will flip up and down and rotate negatively by an angle of θ.
[0037] Furthermore, the algorithm for adjusting the rotation angle of the interior rearview mirror includes:
[0038] After the driver gets in the car and turns on the ignition switch, the driver's eye recognition camera in the car starts working, obtains the spatial position coordinates E(a, b, c) of the midpoint of the driver's eye distance, and inputs the coordinate data into the algorithm processing module for row coordinate conversion to obtain the coordinates E1(a+m, b+k, c+d) in the O1-xyz space;
[0039] The spatial position coordinates of the midpoint of the human eye distance E1, the geometric center coordinates of the rear window G and O1 - The three points O of the xyz space coordinate origin form a reflection plane, and the reflection normal vector is:
[0040]
[0041] Let the reflection normal vector Where n1, n2, n3 are equal to Coordinate values that correspond one to one;
[0042] The normal vector of the rearview mirror surface is obtained according to the current state of the interior rearview mirror in the O1-xyz space. Calculate the normal vector of the rearview mirror surface with the reflection normal vector The mirror surface of the rearview mirror with the same direction rotates around the rotation center of the interior rearview mirror in the z-axis direction by an angle And the rotation angle θ around the rotation center of the interior rearview mirror in the y-axis direction.
[0043] Furthermore, a method for adjusting an automatic rearview mirror in a vehicle further includes: turning the rearview mirror in the vehicle up and down by an angle θ and rotating the rearview mirror in the vehicle around the z-axis by an angle The transmission is transmitted to the interior rearview mirror rotation actuator motor to rotate, and then rotates horizontally. Angle and up and down rotation angle θ twice angle correction, rearview mirror mirror normal vector and the normal vector of the reflection surface The directions are consistent, and the interior rearview mirror is adjusted to the driver's optimal rearward field of view.
[0044] An automatic rearview mirror adjustment system in a vehicle, comprising an interior rearview mirror, an interior driver eye recognition camera, and an algorithm processing module;
[0045] The in-vehicle driver eye recognition camera is used to obtain the spatial coordinates E (a, b, c) of the midpoint of the driver's eye distance and input the coordinates to the algorithm processing module;
[0046] The algorithm processing module is used to obtain the mirror normal vector of the interior rearview mirror And the coordinates of the midpoint of the human eye distance are transformed to obtain E1 (a+m, b+k, c+d);
[0047] The algorithm processing module calculates the up and down rotation direction of the interior rearview mirror according to the acquired data. Angle and the interior rearview mirror rotate around the z-axis by an angle θ; if both are 0, there is no need to adjust the interior rearview mirror; if they are not zero, both parameters are input into the interior rearview mirror for automatic adjustment.
[0048] Furthermore, the in-vehicle driver eye recognition camera is in working state after the vehicle is started, and is calculating the spatial coordinates of the midpoint of the eye distance of the driver; repeatedly performing the following logical operations to complete the real-time in-vehicle rearview mirror optimal viewing angle adjustment:
[0049] The algorithm processing module obtains the mirror normal vector of the interior rearview mirror And the coordinates of the midpoint of the human eye distance are transformed to obtain E1 (a+m, b+k, c+d);
[0050] The algorithm processing module calculates the acquired data and obtains the up and down flipping direction of the rearview mirror. Angle and the interior rearview mirror rotate around the z-axis by an angle θ; if both are 0, there is no need to adjust the interior rearview mirror; if they are not zero, both parameters are input into the interior rearview mirror for automatic adjustment.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] When the driver is changed, the interior rearview mirror of the vehicle can be adaptively adjusted according to the different eye positions of the driver without manual adjustment; in official vehicles or family cars, the angle can be adaptively adjusted for different drivers to ensure the rear view safety regardless of the different eye positions of different drivers without manual adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The present invention will be further described below in conjunction with the accompanying drawings:
[0054] Figure 1 Schematic diagram of the normal vector of the space inside the car and the position of the human eye;
[0055] Figure 2 To find the rotation angle around the z-axis Schematic diagram;
[0056] Figure 3 Schematic diagram for obtaining the rotation angle θ around its own horizontal axis;
[0057] Figure 4 The present invention provides a logic block diagram of an in-vehicle automatic rearview mirror adjustment method. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical scheme and advantages of the implementation of the present invention clearer, the technical scheme in the embodiment of the present invention will be described in more detail below in conjunction with the drawings in the embodiment of the present invention. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of the present invention, not all of the embodiments. The embodiments described below with reference to the drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limitations on the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. The embodiments of the present invention are described in detail below in conjunction with the drawings.
[0059] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships 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 should not be understood as limiting the scope of protection of the present invention.
[0060] The present invention is described in detail below in conjunction with the accompanying drawings:
[0061] (I) Algorithm for intelligently adjusting the rotation angle of rearview mirrors in the car
[0062] See also Figure 1 , Figure 2 , Figure 3 , Figure 4, a human eye spatial position recognition camera is pre-installed in the car, and a spatial rectangular coordinate system O-xyz is established with the camera installation position as the coordinate origin, where the positive direction of the x-axis is from the front of the car to the rear of the car, the positive direction of the y-axis is from the driver's seat to the co-driver's seat, and the positive direction of the z-axis is from the ground to the sky. The camera obtains the coordinates E (a, b, c) of the midpoint of the driver's eye distance;
[0063] Taking the geometric center of the interior rearview mirror as the coordinate origin, a spatial rectangular coordinate system O1-xyz is established. The direction of the coordinate axis is consistent with the direction of the coordinate axis of the O-xyz coordinate system. It has only two degrees of freedom for automatic adjustment:
[0064] 1. Rotate around its z-axis rotation center (i.e. the rearview mirror rotates horizontally); 2. Rotate around the rearview mirror's own horizontal rotation center (i.e. the rearview mirror flips up and down along the plumb line), other than that, no translational movement or rotational movement in other directions can be performed;
[0065] In this coordinate system, the following can be known from the assembly position of the vehicle parts: the geometric center coordinates of the rear window G (x0, y0, z0), and the installation point coordinates of the human eye spatial position recognition camera S (m, k, d);
[0066] Step 1: After the driver gets in the car and turns on the ignition switch, the human eye space position recognition camera in the car starts working, obtains the spatial position coordinates E(a, b, c) of the midpoint of the driver's eye distance, and inputs the coordinate data into the algorithm processing module for row coordinate conversion to obtain the coordinates E1(a+m, b+k, c+d) in the O1-xyz space;
[0067] Step 2: This step is completed by the algorithm processing module; from the principle of mirror reflection imaging, it can be known that if you want to see the complete view outside the rear window, you must ensure that the light received by the human eye is incident after reflection through the geometric center point of the inner rearview mirror. It can be known that the spatial position coordinate E1 of the midpoint of the human eye distance, the geometric center coordinate point 6 of the rear window and the origin O of the O1-xyz space coordinate (hereinafter referred to as the origin O) form a reflection plane, then the reflection normal vector is:
[0068]
[0069] For the convenience of subsequent expression, the reflection normal vector is set Where n1, n2, n3 are equal to Coordinate values that correspond one to one;
[0070] The normal vector of the rearview mirror surface can be obtained according to its current state in the O1-xyz space Now we just need to calculate the normal vector of the rearview mirror surface. with the reflection normal vector The mirror surface of the rearview mirror with the same direction rotates around its rotation center in the z-axis direction by an angle And rotate it around its rotation center in the y-axis direction by an angle θ;
[0071] Step 3: This step is completed by the algorithm processing module; it is stipulated that the positive direction of rotation around the z-axis (i.e., the rearview mirror flips left and right) is counterclockwise when looking down, and the positive direction of rotation around the horizontal direction of the rearview mirror itself (i.e., the rearview mirror flips up and down along the plumb bob) is downward rotation;
[0072] 1. Find the rotation angle of the rearview mirror around the rotation center of the z-axis algorithm
[0073] When only the rearview mirror is considered to rotate around the z-axis, the flip angle around the z-axis (i.e. the rearview mirror flips left and right) can be converted into the angle of the projection vector of the xO1y plane, that is, At this time, the reflection normal vector The projection vector is Normal vector of the rearview mirror surface The projection vector is From the spatial solid geometric relationship, we can get Then we can get
[0074] is the reflection normal vector Projection vector The angle with the positive x-axis, is the normal vector of the rearview mirror surface Projection vector Angle with the positive x-axis;
[0075] Then the flip angle of the rearview mirror around the z-axis (i.e. the rearview mirror flips left and right) but
[0076] like The rearview mirror flips up and down and rotates forward angle;
[0077] like Then the rearview mirror does not need to rotate in the up and down direction;
[0078] like The rearview mirror flips up and down and rotates in the negative direction angle;
[0079] 2. Algorithm for calculating the rotation angle θ of the rearview mirror around the rotation center of the y-axis
[0080] When only considering the rotation around the rotation center of the y-axis, the angle of rotation of the rearview mirror around its own horizontal axis (i.e. the rearview mirror flips up and down) can be converted into a reflection normal vector Normal vector of the rearview mirror surface The angle difference with the xO1y plane is θ, and the reflected normal vector The projection vector is Its length is Similarly, the normal vector of the rearview mirror surface is The projection vector is Its length is
[0081] From the spatial solid geometric relationship, we can get
[0082] Then we can get θ1 is the reflection normal vector Projection vector The angle with the positive direction of the xOy plane, θ2 is the normal vector of the rearview mirror surface Projection vector The angle with the positive direction of the xOy plane;
[0083] Then the flip angle θ of the rearview mirror rotating around the z-axis (i.e., the rearview mirror flips left and right) = |θ2-θ1|, then
[0084] If θ2-θ1>0, the rearview mirror will flip up and down and rotate forward by an angle of θ;
[0085] If θ2-θ1=0, the rearview mirror does not need to rotate in the up and down direction;
[0086] If θ2-θ1<0, the rearview mirror will flip up and down and rotate negatively by an angle of θ;
[0087] Step 4: Flip the rearview mirror up and down by an angle θ and rotate the rearview mirror around the z-axis (i.e. flip it left and right) by an angle The rearview mirror is transmitted to the actuator motor for rotation, and then rotates horizontally. The angle is corrected twice by rotating the angle θ in the up and down direction (the rotation sequence can be either left-right flipping first and then up-down flipping, or up-down flipping first and then horizontal flipping), the mirror normal vector and the normal vector of the reflection surface The directions are consistent, and the rearview mirror is adjusted to the driver's optimal rearward field of view;
[0088] (II) Control system logic
[0089] 1) System composition: interior rearview mirror, interior driver eye recognition camera, algorithm processing module;
[0090] 2) The driver's eye recognition camera in the car obtains the spatial coordinates E (a, b, c) of the midpoint of the driver's eye distance and inputs the coordinates into the algorithm processing module;
[0091] 3) The algorithm processing module obtains the mirror normal vector of the interior rearview mirror And the coordinates of the midpoint of the human eye distance are transformed to obtain E1 (a+m, b+k, c+d);
[0092] 4) The algorithm processing module calculates the acquired data and obtains the up and down flipping rotation of the interior rearview mirror. Angle and the interior rearview mirror rotates around the z-axis (i.e., horizontal positive rotation) angle θ. If both are 0, there is no need to adjust the interior rearview mirror; if not zero, both parameters are input to the interior rearview mirror for automatic adjustment;
[0093] 5) Since the driver's eye recognition camera in the car has been in working state after the vehicle is started, it has been calculating the spatial coordinates of the midpoint of the driver's eye distance, so the above logical operation is repeatedly performed to complete the real-time adjustment of the optimal viewing angle of the interior rearview mirror;
[0094] The above is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any modification, equivalent replacement and improvement made by any person skilled in the art within the technical scope disclosed by the present invention and within the spirit and principle of the present invention shall be covered within the protection scope of the present invention. At the same time, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims
1. A method for adjusting an automatic rearview mirror in a vehicle, characterized in that: include: Taking the installation position of the driver's eye recognition camera in the car as the coordinate origin, establish a spatial rectangular coordinate system O-xyz; Taking the geometric center of the interior rearview mirror as the coordinate origin, establish the spatial rectangular coordinate system O1-xyz; The driver's eye recognition camera in the car obtains the spatial coordinates E (a, b, c) of the midpoint of the driver's eye distance in the spatial rectangular coordinate system O-xyz, and inputs the coordinates to the algorithm processing module; The algorithm processing module obtains the mirror normal vector of the interior rearview mirror The coordinates of the midpoint of the eye distance are transformed to obtain E1 (a+m, b+k, c+d) in the spatial rectangular coordinate system O1-xyz; The algorithm processing module calculates based on the acquired data and obtains the rotation of the interior rearview mirror around the z-axis of the O1-xyz coordinate system. Angle and the angle θ between the normal vector of the interior rearview mirror and the xO1y plane; if both are 0, there is no need to adjust the interior rearview mirror; if not zero, both parameters are input to the interior rearview mirror for automatic adjustment; The algorithm for adjusting the rotation angle of the interior rearview mirror includes the following contents: the positive direction of rotation around the z-axis is defined as the counterclockwise direction when viewed from above, and the positive direction of rotation around the horizontal direction of the rearview mirror itself is defined as downward rotation; Calculate the rotation angle of the interior rearview mirror around the rotation center of the z-axis algorithm When the rearview mirror rotates around the z-axis, the flip angle of the rotation around the z-axis is converted into the angle of the projection vector on the xO1y plane, which is At this time, the reflection normal vector The projection vector is Normal vector of the rearview mirror surface The projection vector is Obtained from the spatial solid geometric relationship Then we get is the reflection normal vector Projection vector The angle with the positive x-axis, is the normal vector of the rearview mirror surface Projection vector Angle with the positive x-axis; The flip angle of the interior rearview mirror around the z-axis 2. The method for adjusting an automatic rearview mirror in a vehicle according to claim 1, characterized in that: Also includes: The driver's eye recognition camera in the car has been in working state since the vehicle was started, and has been calculating the spatial coordinates of the midpoint of the driver's eye distance; repeatedly performing the following logical operations to complete the real-time adjustment of the optimal viewing angle of the rearview mirror in the car: The algorithm processing module obtains the mirror normal vector of the interior rearview mirror And the coordinates of the midpoint of the human eye distance are transformed to obtain E1 (a+m, b+k, c+d); The algorithm processing module calculates based on the acquired data and obtains the rotation of the interior rearview mirror around the z-axis of the O1-xyz coordinate system. Angle and the angle θ between the normal vector of the interior rearview mirror and the xO1y plane; if both are 0, there is no need to adjust the interior rearview mirror; if they are not zero, both parameters are input into the interior rearview mirror for automatic adjustment.
3. The method for adjusting an automatic rearview mirror in a vehicle according to claim 1, characterized in that: like The interior rearview mirror flips up and down and rotates forward angle; like Then the interior rearview mirror does not need to rotate in the up and down direction; like The interior rearview mirror flips up and down and rotates negatively angle.
4. The method for adjusting an automatic rearview mirror in a vehicle according to claim 3, characterized in that: Algorithm for finding the angle θ between the rearview mirror normal vector and the xO1y plane: When considering the rotation around the rotation center of the y-axis, the rotation angle of the interior rearview mirror around its own horizontal axis is converted into the reflection normal vector Normal vector of the rearview mirror surface The angle difference with the xO1y plane is θ, and the reflected normal vector The projection vector is Projection vector Length is Similarly, the normal vector of the rearview mirror surface is The projection vector is Projection vector Length is Obtained from the spatial solid geometric relationship get θ1 is the reflection normal vector Projection vector The angle with the positive direction of the xOy plane, θ2 is the normal vector of the rearview mirror surface Projection vector The angle with the positive direction of the xOy plane; The flip angle of the rearview mirror around the z-axis is θ=|θ2-θ1|.
5. The method for adjusting an automatic rearview mirror in a vehicle according to claim 4, characterized in that: If θ2-θ1>0, the interior rearview mirror will flip up and down and rotate forward by an angle of θ; If θ2-θ1=0, the interior rearview mirror does not need to rotate in the up and down direction; If θ2-θ1<0, the interior rearview mirror will flip up and down and rotate negatively by an angle of θ.
6. The method for adjusting an automatic rearview mirror in a vehicle according to claim 1, characterized in that: The algorithm for adjusting the rotation angle of the interior rearview mirror includes: After the driver gets in the car and turns on the ignition switch, the driver's eye recognition camera in the car starts working, obtains the spatial position coordinates E(a, b, c) of the midpoint of the driver's eye distance, and inputs the coordinate data into the algorithm processing module for row coordinate conversion to obtain the coordinates E1(a+m, b+k, c+d) in the O1-xyz space; The spatial position coordinate E1 of the midpoint of the human eye distance, the geometric center coordinate point G of the rear window and the origin O of the O1-xyz spatial coordinate form a reflection plane, and the reflection normal vector is: Let the reflection normal vector Where n1, n2, n3 are equal to Coordinate values that correspond one to one; The normal vector of the rearview mirror surface is obtained according to the current state of the interior rearview mirror in the O1-xyz space. Calculate the normal vector of the rearview mirror with the reflected normal vector The rotation angle of the interior rearview mirror in the same direction around the z-axis of the O1-xyz coordinate system And the angle θ between the normal vector of the interior rearview mirror and the xO1y plane.
7. The method for adjusting an automatic rearview mirror in a vehicle according to claim 6, characterized in that: Also includes: The angle θ between the normal vector of the interior rearview mirror and the xO1y plane and the rotation angle of the interior rearview mirror around the z-axis The transmission is transmitted to the interior rearview mirror rotation actuator motor to rotate, and then rotates horizontally. The angle and the mirror normal vector are rotated by θ angle twice with the xO1y plane to correct the angle. The mirror normal vector of the rearview mirror and the normal vector of the reflection surface The directions are consistent, and the interior rearview mirror is adjusted to the driver's optimal rearward field of view.
8. An automatic rearview mirror adjustment system in a vehicle, characterized in that: Including interior rearview mirror, interior driver eye recognition camera, and algorithm processing module; The in-vehicle driver eye recognition camera is used to obtain the spatial coordinates E (α, b, c) of the midpoint of the driver's eye distance and input the coordinates to the algorithm processing module; The algorithm processing module is used to obtain the mirror normal vector of the interior rearview mirror And the coordinates of the midpoint of the human eye distance are transformed to obtain E1 (a+m, b+k, c+d); The algorithm processing module calculates according to the acquired data to obtain the rotation direction of the interior rearview mirror around the z-axis direction of the O1-xyz coordinate system. Angle and the angle θ between the normal vector of the interior rearview mirror and the xO1y plane; if both are 0, there is no need to adjust the interior rearview mirror; if not zero, both parameters are input to the interior rearview mirror for automatic adjustment; The algorithm for adjusting the rotation angle of the interior rearview mirror includes the following contents: the positive direction of rotation around the z-axis is defined as the counterclockwise direction when viewed from above, and the positive direction of rotation around the horizontal direction of the rearview mirror itself is defined as downward rotation; Calculate the rotation angle of the interior rearview mirror around the rotation center of the z-axis algorithm When the rearview mirror rotates around the z-axis, the flip angle of the rotation around the z-axis is converted into the angle of the projection vector on the xO1y plane, which is At this time, the reflection normal vector The projection vector is Normal vector of the rearview mirror surface The projection vector is Obtained from the spatial solid geometric relationship Then we get is the reflection normal vector Projection vector The angle with the positive x-axis, is the normal vector of the rearview mirror surface Projection vector Angle with the positive x-axis; The flip angle of the interior rearview mirror around the z-axis 9. The automatic rearview mirror adjustment system in a vehicle according to claim 8, characterized in that: The in-vehicle driver eye recognition camera is in working state after the vehicle is started, and is calculating the spatial coordinates of the midpoint of the driver's eye distance; repeatedly performing the following logical operations to complete the real-time in-vehicle rearview mirror optimal viewing angle adjustment: The algorithm processing module obtains the mirror normal vector of the interior rearview mirror The coordinates of the midpoint of the eye distance are transformed to obtain E1 (a+m, b+k, c+d) in the spatial rectangular coordinate system O1-xyz; The algorithm processing module calculates based on the acquired data and obtains the rotation of the interior rearview mirror around the z-axis of the O1-xyz coordinate system. Angle and the angle θ between the normal vector of the interior rearview mirror and the xO1y plane; if both are 0, there is no need to adjust the interior rearview mirror; if they are not zero, both parameters are input into the interior rearview mirror for automatic adjustment.
