Electronic rearview mirror adjustment method, device, electronic equipment and storage medium

By establishing a distortion model and adjusting the optical axis position in the automotive electronic rearview mirror, the problems of limited field of view and nighttime reflection of traditional rearview mirrors are solved, achieving more accurate imaging and improving user experience and safety.

CN118665344BActive Publication Date: 2024-10-29CHENGDU CELIS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411164907.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-10-29
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

Traditional automobile electronic rearview mirrors have problems such as limited field of vision and nighttime reflection in some cases, resulting in imaging differences and inaccurate distance perception, affecting user acceptance and safety.

Method used

By obtaining the original rear view image of the electronic rear view mirror camera, determine its position in the target coordinate system, establish a distortion model to calculate the distortion coefficient, adjust the optical axis position to correct the rear view image, eliminate distortion, and improve image accuracy.

Benefits of technology

It eliminates rearview image distortion, improves the imaging accuracy of electronic rearview mirrors, reduces safety hazards, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118665344B_ABST
    Figure CN118665344B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose an electronic rearview mirror adjustment method, device, electronic device and storage medium. The method comprises: obtaining the original rearview image captured by the camera of the electronic rearview mirror at the current optical axis position; obtaining the original radial position in the original rearview image; establishing a distortion model corresponding to the original radial position, the distortion model is used to determine the distortion coefficient corresponding to the original radial position; adjusting the original rearview image based on the distortion coefficient to obtain a corrected rearview image, and obtaining an adjusted optical axis position based on the optical axis position of the camera of the corrected rearview image, so as to adjust the rearview image captured by the camera based on the adjusted optical axis position. The present invention can eliminate the imaging deformation of the electronic rearview mirror, improve the accuracy of the rearview image captured by the electronic rearview mirror, avoid the safety hazards caused by the distortion of the rearview image, and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control technology, and in particular to an electronic rearview mirror adjustment method, device, electronic equipment, and computer-readable storage medium. Background Art

[0002] With the development and progress of science and technology, my country has implemented the "Performance and Installation Requirements for Indirect Vision Devices for Motor Vehicles", and electronic rearview mirrors have gradually appeared on family cars. The field of view of the vehicle's electronic rearview mirror needs to meet certain industry specifications, that is, the electronic rearview mirror needs to meet the magnification requirements of the camera's field of view converted to the monitor's visible area, and the driver can see the required specification area through the monitor.

[0003] With the continuous development of the automotive industry, the safety and comfort of vehicles have received more and more attention. Traditional automotive electronic rearview mirrors have some limitations in some cases, such as limited field of view and night reflection. Therefore, more intelligent electronic rearview mirrors have been developed, and electronic rearview mirrors have gradually become a research hotspot in the automotive industry. However, in actual applications, the imaging of user electronic rearview mirrors and traditional electronic rearview mirrors is different, and the sense of distance is inaccurate, so users are not very accepting of them, and they are prone to safety hazards. Summary of the invention

[0004] To solve the above technical problems, embodiments of the present invention provide an electronic rearview mirror adjustment method and device, an electronic device, and a computer-readable storage medium.

[0005] According to one aspect of an embodiment of the present invention, a method for adjusting an electronic rearview mirror is provided, wherein the electronic rearview mirror comprises a camera, and the camera determines a field of view of the electronic rearview mirror based on an optical axis position, and the method comprises: obtaining an original rearview image captured by the camera of the electronic rearview mirror at a current optical axis position; obtaining an original radial position of the original rearview image, wherein the original radial position comprises a position of the original rearview image in a target coordinate system of the electronic rearview mirror; establishing a distortion model corresponding to the original radial position, wherein the distortion model is used to determine a distortion coefficient corresponding to the original radial position; adjusting the original rearview image based on the distortion coefficient to obtain a corrected rearview image, and adjusting the optical axis position of the camera based on the corrected rearview image to obtain an adjusted optical axis position, so as to adjust the rearview image captured by the camera based on the adjusted optical axis position.

[0006] According to one aspect of an embodiment of the present invention, the method of obtaining the original rearview image captured by the camera of the electronic rearview mirror at the current optical axis position includes: obtaining the operating condition information of the vehicle, determining the target coordinate system of the electronic rearview mirror based on the operating condition information, and the target coordinate system is used to determine the field of view of the electronic rearview mirror; and obtaining the original rearview image based on the field of view corresponding to the target coordinate system.

[0007] According to one aspect of an embodiment of the present invention, the establishing of a distortion model corresponding to the original radial position, wherein the distortion model is used to determine the distortion coefficient corresponding to the original radial position, comprises: determining a grid segmentation model of the electronic rearview mirror based on the target coordinate system, wherein the grid segmentation model comprises a checkerboard calibration plate; and determining the distortion coefficient corresponding to the distortion model based on a checkerboard density corresponding to the checkerboard calibration plate.

[0008] According to one aspect of an embodiment of the present invention, the distortion model includes a radial distortion model, and the method further includes: calculating the radial distance from the pixel point in the original rearview image corresponding to the checkerboard calibration plate to the image center corresponding to the checkerboard calibration plate; and adjusting the radial distance from the pixel point in the original rearview image to the image center based on the radial distortion model.

[0009] According to one aspect of an embodiment of the present invention, the distortion model also includes a tangential distortion model, and the method also includes: obtaining the position coordinates corresponding to the pixel points in the original rearview image corresponding to the checkerboard calibration plate; establishing a tangential regression equation based on the distortion coefficient and the position coordinates to determine the correction coordinates corresponding to the position coordinates based on the tangential regression equation.

[0010] According to one aspect of an embodiment of the present invention, the method also includes: preprocessing the corrected rear-view image to obtain edge information in the corrected rear-view image and a reference point corresponding to the edge information; calculating the position parameters corresponding to the edge information and the reference point, and determining the posture information corresponding to the corrected rear-view image based on the position parameters; if the posture information matches the preset posture information, using the corrected rear-view image as the target rear-view image; if the posture information does not match the preset posture information, using the reference image corresponding to the preset posture information to correct the image ratio of the corrected rear-view image, so that the corrected rear-view image is used as the target rear-view image.

[0011] According to one aspect of an embodiment of the present invention, the method further includes: acquiring driver habit information and driver input parameters, and training to obtain preset posture information based on the driver habit information and the input parameters.

[0012] According to one aspect of an embodiment of the present invention, there is provided an electronic rearview mirror adjustment device, wherein the electronic rearview mirror comprises a camera, and the camera determines a field of view of the electronic rearview mirror based on an optical axis position, and the device comprises: a first acquisition module, used to acquire an original rearview image captured by the camera of the electronic rearview mirror at a current optical axis position; a second acquisition module, used to acquire an original radial position of the original rearview image, wherein the original radial position comprises a position of the original rearview image in a target coordinate system of the electronic rearview mirror; a distortion module, used to establish a distortion model corresponding to the original radial position, wherein the distortion model is used to determine a distortion coefficient corresponding to the original radial position; and an adjustment module, used to adjust the original rearview image based on the distortion coefficient to obtain a corrected rearview image, and adjust the optical axis position of the camera based on the corrected rearview image to obtain an adjusted optical axis position, so as to adjust the rearview image captured by the camera based on the adjusted optical axis position.

[0013] According to one aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the electronic rearview mirror adjustment method as described above.

[0014] According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the electronic rearview mirror adjustment method as described above.

[0015] According to one aspect of an embodiment of the present invention, a computer program product is further provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps in the electronic rearview mirror adjustment method as described above are implemented.

[0016] In the technical solution provided in the embodiments of the present invention, by obtaining the original rearview image corresponding to the current optical axis position of the camera of the electronic rearview mirror, and then determining the original radial position in the original rearview image, the original radial image is the position of the rearview image under the coordinate axis of the target coordinate system of the camera, and then establishing a distortion model corresponding to the original radial position, and the distortion model is used to determine the distortion coefficient corresponding to the original radial position, so that the deformed area in the original rearview image can be adjusted according to the distortion coefficient, thereby realizing the adjustment of the optical axis position of the camera of the electronic rearview mirror, and then obtaining the adjusted optical axis position, thereby realizing the adjustment of the rearview image collected by the adjustment camera, eliminating the imaging deformation of the electronic rearview mirror, improving the accuracy of the rearview image collected by the electronic rearview mirror, avoiding the safety hazards caused by the distortion of the rearview image, and improving the user experience.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 is a schematic diagram of an implementation environment for adjusting an electronic rearview mirror according to an exemplary embodiment of the present invention;

[0020] Figure 2 is a flow chart of an electronic rearview mirror adjustment method shown in an exemplary embodiment of the present invention;

[0021] Figure 3 yes Figure 2 A specific flow chart of step S210 in an exemplary embodiment;

[0022] Figure 4 yes Figure 2 A specific flow chart of step S220 in an exemplary embodiment;

[0023] Figure 5 yes Figure 4 A specific flow chart of step S410 in an exemplary embodiment;

[0024] Figure 6 yes Figure 4 A specific flow chart of step S410 in an exemplary embodiment;

[0025] Fig. 7A is a schematic diagram of an X-axis installation of an electronic rearview mirror according to an exemplary embodiment of the present invention;

[0026] Figure 7B is a schematic diagram of the Z-axis installation of an electronic rearview mirror shown in an exemplary embodiment of the present invention;

[0027] Figure 8 is a flow chart of an electronic rearview mirror adjustment method shown in another exemplary embodiment of the present invention;

[0028] Fig. 9 is a schematic diagram of a brief process of adjusting an electronic rearview mirror in an exemplary application scenario;

[0029] Fig.10is a block diagram of an electronic rearview mirror adjustment device shown in an exemplary embodiment of the present invention;

[0030] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0031] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0034] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0035] First of all, it should be noted that with the continuous development of automotive electronic technology, electronic rearview mirrors (Camera Monitor System, CMS) are gradually being used in vehicles because of their advantages of providing a wider field of view, reducing blind spots, and improving nighttime visual effects. Compared with traditional physical rearview mirrors, CMS electronic rearview mirrors can provide a wider field of view and significantly reduce driving blind spots, especially at night or in bad weather conditions. Its visual effect is better, providing drivers with higher safety and a more comfortable driving experience.

[0036] And, in passenger cars, CMS is usually integrated with the vehicle's multimedia system or advanced driver assistance system (ADAS). The driver can view the CMS image and interact with other in-vehicle functions through the central control screen or control buttons on the steering wheel.

[0037] Figure 1 FIG. 1 is a schematic diagram of a real-time environment for adjusting an electronic rearview mirror according to an exemplary embodiment of the present invention. Figure 1 As shown, during the driving process of the vehicle, the rear-view image is acquired by the image acquisition device 110 in the CMS and displayed on the screen in the vehicle's cab. The control end server 120 can acquire the original rear-view image acquired by the image acquisition device 110 at the current optical axis position, and acquire the original radial position in the original rear-view image, wherein the original radial position includes the position of the original rear-view image in the target coordinate system of the camera, and establish a distortion model corresponding to the original radial position, and the distortion model is used to determine the distortion coefficient corresponding to the original radial position in the original rear-view image, and then the optical axis position of the camera of the image acquisition device 110 can be adjusted according to the distortion coefficient, and then the rear-view image acquired by the camera can be adjusted according to the adjusted optical axis position. Figure 1 The control end server 120 shown, for example, can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited here. The image acquisition device 110 can communicate with the control end server 120 through wireless networks such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), and 5G (fifth generation mobile information technology), which are not limited here. The field of view of the electronic rearview mirror of the vehicle needs to meet certain industry specifications, that is, the electronic rearview mirror needs to meet the magnification requirements of the camera field of view converted to the monitor visible area, and the driver can see the required standard area through the monitor.

[0038] With the continuous development of the automobile industry, the safety and comfort of vehicles have received more and more attention. Traditional automobile electronic rearview mirrors have some limitations in some cases, such as limited field of view, night reflection and other problems. Therefore, more intelligent electronic rearview mirrors have been produced, and electronic rearview mirrors have gradually become a research hotspot in the automotive industry. However, in actual applications, there are differences in imaging between user electronic rearview mirrors and traditional electronic rearview mirrors, and the sense of distance is inaccurate, so the user acceptance is not high, and it is easy to cause safety hazards. The above-mentioned problems are generally applicable in general travel scenarios. In order to solve these problems, the embodiments of the present invention respectively propose an electronic rearview mirror adjustment method, an electronic rearview mirror adjustment device, an electronic device, a computer-readable storage medium and a computer program product, and these embodiments will be described in detail below.

[0039] See also Figure 2 , Figure 2 is a flowchart of an exemplary embodiment of the present invention showing the adjustment of an electronic rearview mirror. The method can be applied to Figure 1 The implementation environment shown is specifically executed by the server 120 in the implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.

[0040] like Figure 2 As shown, in the following exemplary embodiment, the implementation process of the vehicle electronic rearview mirror adjustment method includes at least steps S210 to S240, which are described in detail as follows:

[0041] Step S210, obtaining an original rear-view image captured by the camera of the electronic rearview mirror at the current optical axis position.

[0042] Specifically, make sure that the CMS camera is properly installed and connected to the vehicle's power and control system. Check the camera for any physical damage or dirt that may affect the image quality, and make sure the camera is turned on and in normal working mode. In the control system or CPU / GPU, the received raw rear-view image is processed and analyzed as necessary, which may include image enhancement (such as contrast adjustment, noise suppression, etc.), image correction, and image recognition (such as license plate recognition, obstacle detection, etc.). The processed raw rear-view image will be transmitted to the display screen in the cab for the driver to view. The type and size of the display screen may vary depending on the model and configuration, but generally should have sufficient resolution and brightness to provide a clear image display. The driver can judge the traffic conditions and obstacle distribution behind the vehicle by observing the image on the display screen.

[0043] Exemplarily, an image of a field of view area corresponding to a current optical axis position of a camera of the electronic rearview mirror is acquired to obtain an original rearview image, where the original rearview image is acquired based on shooting parameters corresponding to the current electronic rearview mirror camera.

[0044] Step S220, obtaining an original radial position of the original rearview image, where the original radial position includes a position of the original rearview image in a target coordinate system of the electronic rearview mirror.

[0045] Specifically, the CMS system consists of a camera and a display screen. The camera captures the image behind the vehicle and displays it on the display screen after data processing. The image on the display screen is obtained after a series of processing based on the original image captured by the camera. To obtain the original radial position of the original rear-view image, it is first necessary to clarify the definition of "original radial position". Here, it is assumed that it refers to the position of a point (such as an object or feature point) in the original rear-view image in the target coordinate system of the camera, where the target coordinate system of the camera can be the original coordinate system of the camera. Since the original image captured by the camera is a two-dimensional array with pixels as units, the original radial position of this point is an (x, y) coordinate pair. Normally, the CMS system will not directly provide this original coordinate because it has been processed and converted. However, if the system supports the export or access of raw data, this coordinate can also be obtained from the raw data captured by the camera.

[0046] Step S230: establishing a distortion model corresponding to the original radial position, wherein the distortion model is used to determine the distortion coefficient corresponding to the original radial position.

[0047] Specifically, in a CMS system, the original rear view image captured by the camera is usually distorted due to the physical properties of the lens. In order to accurately understand and correct this distortion, a distortion model needs to be established, and the distortion coefficient corresponding to the original radial position needs to be determined through the model.

[0048] Among them, to determine the distortion coefficient, it is usually necessary to use a calibration object of known shape and size (such as a checkerboard calibration plate) for camera calibration. By taking multiple images of the calibration plate at different positions and angles, and using image processing and optimization algorithms, the distortion coefficient can be calculated. Take calibration images: Use the CMS camera to take multiple images containing the calibration plate. Detect feature points: Detect feature points (such as corner points) on the calibration plate in each calibration image; Estimate camera parameters: Use the detected feature points, for example, estimate the camera's intrinsic parameters (such as focal length, principal point coordinates) and distortion coefficients through a camera calibration algorithm (such as Zhang Zhengyou calibration method), and estimate the camera's extrinsic parameters (such as translation vector, rotation matrix); Optimize parameters: For example, use an optimization algorithm (such as the least squares method) to optimize the estimated camera's extrinsic parameters and camera's intrinsic parameters to reduce reprojection errors.

[0049] Step S240, adjusting the original rear view image based on the distortion coefficient to obtain a corrected rear view image, and adjusting the optical axis position of the camera based on the corrected rear view image to obtain an adjusted optical axis position, so as to adjust the rear view image captured by the camera based on the adjusted optical axis position.

[0050] Specifically, adjusting the optical axis position of the camera based on the known distortion coefficient to correct the rear view image is usually not a direct process, because the distortion coefficient is mainly used for correction at the image pixel level to obtain a corrected rear view image, rather than physically adjusting the camera position. Then, in some achievable embodiments, the position of the optical axis of the camera can be physically adjusted based on the corrected rear view image, thereby achieving adjustment of the rear view image captured by the camera based on the adjusted optical axis position.

[0051] Optionally, in some achievable embodiments, first, the original rear-view image captured by the camera is distorted using the previously calculated distortion coefficient. This is usually achieved by image processing software or an algorithm, mapping each pixel in the distorted image to a corrected position, thereby obtaining a corrected image. Analyze the corrected image to evaluate whether the correction effect meets the requirements. This can be done by comparing the image difference before and after correction, checking whether the straight lines in the image become straight, evaluating the clarity of the image edge, etc. If the corrected image still has obvious distortion or the field of view does not meet the requirements, it may be necessary to consider adjusting the optical axis position of the camera. This usually involves physical adjustments, such as rotating the camera, adjusting the camera bracket, etc. Determine the adjustment direction: According to the problems that still exist in the corrected image (such as field of view offset, residual distortion, etc.), determine the direction and angle of the camera optical axis that needs to be adjusted. Perform physical adjustments: By adjusting the camera motor, the optical axis points to the desired direction. Recapture and correct the image: After adjusting the camera optical axis, recapture the rear-view image and correct it using the same distortion coefficient. After finding a satisfactory optical axis position, record this position so that it can be quickly restored to this position when needed in the future. This can be achieved by marking, taking photos or recording adjustment parameters.

[0052] Optionally, in a feasible embodiment, the original rear view image captured by the rear view camera may be adjusted repeatedly through the distortion model, which may require multiple iterations and adjustments to achieve the best correction effect.

[0053] In this embodiment, by obtaining the original rear-view image corresponding to the current optical axis position of the CMS camera, and then determining the original radial position of the original rear-view image, the original radial position is the position of the rear-view image under the coordinate axis of the original coordinate system of the camera, and then establishing a distortion model corresponding to the original radial position, and the distortion model is used to determine the distortion coefficient corresponding to the original radial position, so that the deformed area in the original rear-view image can be adjusted according to the distortion coefficient, and then the optical axis position of the camera of the electronic rearview mirror is adjusted, and then the adjusted optical axis position is obtained, so as to adjust the rear-view image collected by the camera, eliminate or avoid CMS imaging deformation, improve the accuracy of the rear-view image collected by the CMS, avoid the safety hazards caused by rear-view image distortion, and improve user experience.

[0054] Further, based on the above embodiments, please refer to Figure 3 In one of the exemplary embodiments provided by the present invention, the specific implementation process of obtaining the original rear-view image corresponding to the camera of the electronic rearview mirror under the current optical axis may also include step S310 and step S320, which are described in detail as follows:

[0055] Step S310, obtaining the working condition information of the vehicle, and determining the target coordinate system of the electronic rearview mirror based on the working condition information, wherein the target coordinate system is used to determine the field of view of the electronic rearview mirror;

[0056] Step S320: acquiring an original rear-view image based on the field of view corresponding to the target coordinate system.

[0057] Specifically, first, the system needs to collect information about the current working condition of the vehicle. This working condition information may include but is not limited to vehicle speed, steering angle, vehicle posture (such as tilt), external environmental conditions (such as weather, lighting), etc. Once the system obtains the working condition information of the vehicle, it can use this information to determine a "target coordinate system" for the electronic rearview mirror. The target coordinate system is a mathematical model used to describe the optimal field of view of the electronic rearview mirror under different working conditions. For example, when the vehicle turns, the system may adjust the target coordinate system so that the electronic rearview mirror shows more of the field of view on the turning side. This process may involve complex algorithms and calculations to ensure that the target coordinate system can accurately reflect the optimal field of view requirements under the current working condition of the vehicle. After determining the target coordinate system, the system can use this coordinate system to guide the camera or other image acquisition device to obtain the original rearview image.

[0058] This may mean that the camera needs to adjust its viewing angle, focal length or other parameters to ensure that the captured image matches the field of view described by the target coordinate system. The original rearview image is the basis for subsequent processing (such as image enhancement, target detection, image fusion, etc.), so it is crucial to ensure the quality and accuracy of the image. Throughout the process, the system's goal is to achieve intelligent adjustment and optimization of the electronic rearview mirror's field of view to adapt to the needs of the vehicle under different working conditions. This not only improves the driver's field of view and safety, but also provides more accurate environmental perception information for the autonomous driving system.

[0059] In this embodiment, according to the different working conditions of the vehicle, the target coordinate system corresponding to the electronic rearview mirror is determined, and then the original rearview image in the field of view corresponding to the electronic rearview mirror is determined according to the target coordinate system, so that the adjusted and corrected rearview image is more in line with the working conditions of the vehicle, avoiding safety hazards caused by rearview image distortion and improving user experience.

[0060] Further, based on the above embodiments, please refer to Figure 4 In one of the exemplary embodiments provided by the present invention, the specific implementation process of the above-mentioned distortion model for determining the distortion coefficient corresponding to the original radial position may also include step S410 and step S420, which are described in detail as follows:

[0061] Step S410, determining a grid segmentation model of the electronic rearview mirror based on the target coordinate system, wherein the grid segmentation model includes a checkerboard calibration plate;

[0062] Step S420, determining the distortion coefficient corresponding to the distortion model based on the checkerboard density corresponding to the checkerboard calibration plate.

[0063] Specifically, first, a target coordinate system needs to be determined, which will be used to describe the points on the electronic rearview mirror and their positions. This is usually a two-dimensional coordinate system, where the x and y axes represent the width and height of the electronic rearview mirror, respectively. Establish a grid segmentation model: Next, a grid segmentation model needs to be established on the electronic rearview mirror. This model divides the electronic rearview mirror into multiple small areas, each of which can be identified by a unique coordinate. In this problem, the grid segmentation model is described as a checkerboard calibration plate, which means that the electronic rearview mirror is divided into multiple small squares similar to a checkerboard. Among them, determining the checkerboard density means that the checkerboard density refers to the size or size of each small square in the checkerboard. This density will directly affect the precision and accuracy of the distortion model. A smaller checkerboard density (i.e., smaller squares) will provide more refined corrections, but may also require more computing resources and time. When determining the checkerboard density, the size of the electronic rearview mirror, the degree of distortion, and the required correction accuracy need to be taken into account.

[0064] Then, establish a distortion model: Based on the checkerboard calibration plate and the checkerboard density, a distortion model can be established. This model will describe the mapping relationship from the original radial position to the corrected position.

[0065] The distortion model is usually a mathematical function that takes the original position As input, and output the corrected position The form of this function depends on the type and degree of distortion. Common types of distortion include radial distortion and tangential distortion.

[0066] For radial distortion, the distortion model may be a polynomial function such as:

[0067]

[0068] )

[0069] )

[0070] in, is the corrected radial position, is the original radial position, , and is the radial distortion coefficient, Represents the radial distance from the image center to the pixel. is the corrected position, is the original coordinate position.

[0071] Optionally, in some embodiments, the coefficients of the distortion model need to be determined. This is typically accomplished by taking multiple images of a checkerboard calibration plate and using image processing techniques to identify the corners on the checkerboard. The original positions of these corners and their positions in the real world (determined by the checkerboard density) can then be used to solve for the coefficients of the distortion model. This process typically involves an optimization algorithm, such as the least squares method, to minimize the error between the original position and the corrected position.

[0072] In this embodiment, the grid segmentation model of the electronic rearview mirror is determined by the target coordinate system of the electronic rearview mirror, wherein the grid segmentation model includes a checkerboard calibration plate, so as to determine the distortion coefficient corresponding to the distortion model based on the checkerboard density corresponding to the checkerboard calibration plate, thereby improving the effect of distortion correction of the original electronic rearview mirror image, eliminating deformation in the original electronic rearview mirror, and improving the user experience.

[0073] Further, based on the above embodiments, please refer to Figure 5 In one of the exemplary embodiments provided by the present invention, the above-mentioned distortion model includes a radial distortion model, and the specific implementation process of the electronic rearview mirror adjustment method may also include step S510 and step S520, which are described in detail as follows:

[0074] Step S510, calculating the radial distance between the pixel point in the original rearview image corresponding to the checkerboard calibration plate and the image center corresponding to the checkerboard calibration plate;

[0075] Step S520: adjusting the radial distance from the pixel point in the original rearview image to the image center based on the radial distortion model.

[0076] Specifically, the original rearview image is divided into a plurality of checkerboards by a checkerboard calibration plate, wherein the distance between the pixel points in the plurality of checkerboards and the pixel point at the center of the image is r, and then the radial distance from the pixel point to the center of the image is adjusted by a radial distortion model, wherein the radial distortion model can use the following formula:

[0077]

[0078] in is the corrected radial position, is the original radial position, , and is the radial distortion coefficient, Represents the radial distance from the image center to the pixel.

[0079] Exemplarily, in order to calculate the radial distance from the pixel point in the original rear-view image corresponding to the checkerboard calibration board to the center of the checkerboard calibration board image, and adjust the position of these pixel points based on the radial distortion model, the following is a simplified step: Read the original rear-view image and the checkerboard calibration board information: First, you need to read the original rear-view image containing the checkerboard calibration board and know the size of the checkerboard (such as the number of internal corner points). Find the checkerboard corners, where the findChessboardCorners function of OpenCV can be used to find the corners of the checkerboard. Then, calculate the image center, which is usually half the width and height of the image (for non-distorted images). Finally, calculate the radial distance from the pixel point to the image center. For each detected corner point, calculate its Euclidean distance to the image center. Then use a preset radial distortion model, such as using a known radial distortion coefficient (such as , and ) to adjust the radial distance of each corner point. In addition, the pixel positions can be adjusted, for example, if the adjusted distances need to be converted back to pixel coordinates, the inverse transformation can be used to redraw the corrected image.

[0080] In this embodiment, the radial distance in the rearview image can be corrected by calculating the radial distance from the pixel point in the original rearview image under the checkerboard calibration plate to the image center corresponding to the checkerboard calibration plate. By correcting these coefficients, the radial distortion can be reduced or eliminated, making the lines and shapes in the image closer to the state in the real world.

[0081] Further, based on the above embodiment, please refer to Figure 6 In one of the exemplary embodiments provided by the present invention, the specific implementation process of the electronic rearview mirror adjustment method may further include step S610 and step S620, which are described in detail as follows:

[0082] Step S610, obtaining the position coordinates of the pixel points in the original rearview image corresponding to the checkerboard calibration plate;

[0083] Step S620: establishing a tangential regression equation based on the distortion coefficient and the position coordinates, so as to determine the correction coordinates corresponding to the position coordinates based on the tangential regression equation.

[0084] Specifically, the tangential distortion is approximated by the following formula:

[0085]

[0086]

[0087] in and are the corrected image coordinates, and are the original image coordinates, and is the tangential distortion coefficient, Represents the radial distance from the center of the image to the pixel. Then, the least squares method is used to fit the radial distortion and tangential distortion by the known image size of the pattern (chessboard calibration plate) to obtain the tangential distortion coefficient. and and radial distortion coefficient , and .

[0088] Exemplarily, in the context of camera calibration and distortion correction, and Usually, it is not the physical length used to drive the motor to move that is directly represented, but the pixel offset in the image coordinate system. Use a calibration plate (such as a checkerboard calibration plate) to obtain the camera's internal parameters (focal length, principal point, etc.) and distortion coefficients. This requires knowing the mechanical relationship between the camera and the motor. For example, you may know how many pixels the camera will offset on the image for every unit length of the motor. Using this relationship, you can and Converts to the physical length the motor needs to move.

[0089] Optionally, in some feasible embodiments, such as Fig. 7A and Figure 7B As shown, Fig. 7A and Figure 7B FIG. 1 is a schematic diagram of the installation of the X-axis and Z-axis of a camera of an electronic rearview mirror according to an exemplary embodiment of the present invention, as shown in FIG. Fig. 7A and Figure 7B As shown, the X-axis of the camera is parallel to the side of the vehicle, and the Z-axis is perpendicular to the X-axis. By precisely adjusting the optical axis of the CMS camera lens to make it parallel to the outside of the vehicle body, the driver's field of view and driving safety are improved.

[0090] In this embodiment, by correcting the position coordinates corresponding to the pixel points in the original electronic rearview mirror image under the checkerboard calibration plate through the distortion coefficient, the tangential distortion can be reduced or eliminated, so that the lines and shapes in the image are closer to the state in the real world.

[0091] Further, based on the above embodiments, please refer to Figure 8 In one of the exemplary embodiments provided by the present invention, the specific implementation process of the electronic rearview mirror adjustment method may further include steps S810 to S840, which are described in detail as follows:

[0092] Step S810: pre-process the corrected image to obtain edge information in the corrected image and reference points corresponding to the edge information.

[0093] Specifically, the corrected rear-view image can be preprocessed, wherein the preprocessing includes denoising, filtering, and edge detection operations on the corrected rear-view image to extract edge information in the image, wherein edge detection is a very important step in image processing, which is used to identify points in the image where the intensity changes significantly. These points usually correspond to the boundaries of objects or the junctions of different areas. The reference points corresponding to the edge information can be shapes and lines that can uniquely identify the corrected electronic rearview mirror image.

[0094] For example, denoising operations aim to reduce or eliminate noise in an image, which may be caused by a variety of factors, such as sensor noise, transmission errors, or environmental conditions. There are several common denoising methods: mean filtering: Calculate the average value of a pixel neighborhood and replace the original pixel value with that value. This method is simple but may result in blurry images; median filtering: Take the median of a pixel neighborhood as the output pixel value, which is particularly effective in removing salt and pepper noise; Gaussian filtering: Apply a Gaussian weighting function to a pixel neighborhood to smooth the image and reduce noise; bilateral filtering: Preserve edge information while smoothing the image, which combines a weighting function of spatial proximity and pixel value similarity.

[0095] Step S820, calculating the position parameters corresponding to the edge information and the reference points, and determining the posture information corresponding to the corrected rear view image based on the position parameters.

[0096] Specifically, the position information corresponding to the corrected rear-view image can be determined based on the edge information in the corrected rear-view image and the position parameters between the reference points corresponding to the edge information, and then based on the position parameters.

[0097] Exemplarily, parameterization processing is first performed. For each edge point, its position relationship (such as distance and angle) relative to the reference point is calculated, and these position parameters will be used for voting in the accumulator space; voting: for each edge point in the image, according to its parameters relative to the reference point, vote at the corresponding parameter position in the accumulator space; then, peak detection: find peaks in the accumulator space, these peaks correspond to the possible positions and postures of the shapes in the corrected after-view image; finally, shape localization: once the peak is found, the specific position and posture of the shape in the corrected after-view image are determined according to the parameters in the accumulator.

[0098] Optionally, the GHT transform (Generalized Hough Transform) calibration algorithm is a method for detecting irregular shapes or objects in an image. The algorithm is extended based on the Hough transform to enable it to handle more complex shape detection tasks. In GHT, at least one reference point is defined, where the reference point is a point inside the shape.

[0099] Assume that the coordinates of the reference point are ( , ). For each edge point in the image ( , ), calculate its position relative to the reference point ( , In the accumulator space, place at least one reference point position ( , ) to vote. The voting process involves calculating the edge points ( , ) in the rotation angle The position relative to the reference point ( , ) matches a position in the accumulator space ( , ) matches. If it matches, then ( , , ) position is incremented by 1. The formula for the accumulator can be expressed as:

[0100] ( , , )=𝐴( , , )+1

[0101] in, is the accumulator array, ( , ) is the offset of the center of the image shape in accumulator space relative to the global coordinate system, and 𝜃 is the rotation angle, where the global coordinate system is related to the coordinate system adopted by the image.

[0102] For each edge point in the rectified image, repeat this process to traverse all possible rotation angles. In the accumulator space, if multiple edge points belong to the same shape instance and the shape is aligned with the reference point in the correct pose and position, then they will be in the corresponding ( , , ) position to generate a peak, and then obtain the posture information corresponding to the corrected image.

[0103] Step S830: If the position and posture information matches the preset position and posture information, the corrected rear-view image is used as the target rear-view image.

[0104] Specifically, if the posture information of the corrected rear-view image meets the preset posture information, the corrected rear-view image can be used as the target rear-view image, wherein the preset posture information can be the posture information reflecting the actual distance relationship in the electronic rearview mirror image. Based on the above-calculated position parameters, the posture information of the image can be determined. The posture information generally includes a translation vector (indicating the displacement of the image in the x and y directions) and a rotation angle (indicating the rotation of the image relative to the target coordinate system). These translation vectors and rotation angles can be solved by an optimization algorithm (such as the least squares method) to minimize the position error between the edge point on the edge information and the reference point, wherein the key point is the key point obtained by voting according to the above-mentioned position parameters. The preset posture information can be set based on the needs of a specific application scenario. For example, in autonomous driving, it may be required that the posture difference between the rear-view image of the vehicle and the preset posture information is within a certain range. By comparing the calculated posture information with the preset posture information, it can be determined whether the corrected rear-view image meets the requirements. If the posture information of the corrected rear-view image meets the preset posture information, it can be regarded as a target rear-view image for subsequent processing or display. Otherwise, it may be necessary to re-calibrate the image or adjust the pose parameters until the requirements are met.

[0105] Step S840: If the posture information does not match the preset posture information, the image ratio of the corrected rear-view image is corrected using the reference image corresponding to the preset posture information, so as to use the corrected rear-view image as the target rear-view image.

[0106] Specifically, by comparing the calculated pose information with the preset pose information, it can be determined whether the corrected rear-view image meets the requirements. If the pose information of the corrected rear-view image does not meet the preset pose information, the correction process is entered. Among them, the reference image is pre-defined, and its pose information (such as scaling, rotation angle, translation, etc.) matches the preset pose information. Ensure that the reference image is available and its pose information is accurately known. Calculate the scale correction factor based on the size, shape and pose information of the reference image and the current rear-view image. This usually involves calculating the scaling difference between the two images, as well as other possible transformation parameters (such as tilt, rotation angle, etc.). Use the calculated scale correction factor to correct the scale of the corrected rear-view image. This can be achieved by scaling, cropping or padding the image to match its size and shape with the reference image. At the same time, the image can also be rotated and translated as needed to further adjust its pose. After correction, recalculate the pose information of the corrected image and compare it with the preset pose information to verify whether the correction effect meets the requirements. If not, it may be necessary to readjust the scale correction factor and repeat the above steps. If the position and posture information of the corrected rear-view image meets the preset conditions, it can be used as the target rear-view image for subsequent processing or display.

[0107] In addition, when performing image ratio correction, it is necessary to ensure that important information in the image will not be cropped or distorted. If there is a large difference between the corrected image and the original image, it may be necessary to consider the impact of this difference on subsequent processing or analysis. In practical applications, it may be necessary to adjust the correction strategy and parameter settings according to the specific application scenarios and requirements.

[0108] In addition, in some achievable embodiments, a reference image without distortion and distortion can be obtained by taking multiple photos using a standard object of known size, and then, using the standard object in the reference image, appropriate key feature points are selected to set calibration parameters and run the calibration program to calculate the internal and external parameters of the camera, and the input image is processed by denoising and smoothing to extract the key feature points in the input image. For example, the key feature points can be extracted from the input image by the SURF algorithm, where the SURF (Speeded Up Robust Features) algorithm is a feature extraction algorithm based on scale space.

[0109] Then, the integral image is used to quickly calculate the determinant of the Hessian matrix of different scales in the image to detect feature points. The integral image is a two-dimensional array used to quickly calculate the pixel sum of any rectangular area in the image. For a point in the image ( , ) Its integral graph ( , ) is defined as:

[0110] ( , )= ( , )+ ( , )+ , )− ( -1, )

[0111] in, ( , ) is the original image at point ( , )’s pixel value.

[0112] Among them, the Hessian matrix determinant is used to detect spots in the image, which correspond to stable feature points in the scale space. For each point in the image, its Hessian matrix 𝐻 is defined as:

[0113]

[0114] in, , and is the second-order derivative of the image at that point, which can be quickly calculated by the integral graph. The determinant Δ is: Δ = − , where the feature points are detected at the local maxima of Δ.

[0115] Then, the camera's internal and external parameters and feature point information can be used to calculate the distortion correction matrix, convert the distorted pixel coordinates into real world coordinates, and apply the distortion correction matrix to the coordinates of each feature point to eliminate the distortion effect; use the feature point information after distortion correction to restore the shape and size of the object in the original image (such as triangulation and straight line fitting); detect whether the corrected image meets expectations, and use evaluation indicators such as mean square error and root mean square error (RMSE) to measure the correction results.

[0116] In this embodiment, it is verified whether the corrected rear-view image obtained after correction can satisfy the preset posture information, that is, whether it satisfies the driver's distance perception. If it satisfies the driver's distance perception, the corrected rear-view image is used as the target rear-view image and displayed on the corresponding screen. If it does not satisfy the driver's distance perception, the image ratio of the corrected rear-view image is corrected to use the corrected rear-view image as the target rear-view image, thereby improving the visibility of the target rear-view image and satisfying the driver's driving needs.

[0117] Further, based on the above embodiment, in one of the exemplary embodiments provided by the present invention, the specific implementation process of the above electronic rearview mirror adjustment method can also be as follows, which are described in detail as follows:

[0118] The driver's habit information and the driver's input parameters are obtained, and preset posture information is obtained through training based on the driver's habit information and the input parameters.

[0119] Specifically, driver habit information: This includes the driver's behavioral habits during driving, such as common driving paths, steering preferences, parking habits, etc. This information can be collected through on-board sensors (such as cameras, radars, GPS, etc.) and driver assistance systems (such as adaptive cruise control, automatic parking, etc.). Driver input parameters: This refers to the operation data input by the driver through the vehicle control interface (such as steering wheel, accelerator, brake, gear lever, etc.). These data can be recorded in real time, including the angle of the steering wheel, the pressure of the accelerator and brake, the timing of shifting, etc. Extract features related to the vehicle posture from the driver habit information and input parameters. These features may include the driver's steering speed, acceleration, shifting frequency, etc. These features can also be automatically learned using machine learning or deep learning methods. Select a suitable machine learning or deep learning model, such as a neural network, a decision tree, a support vector machine, etc. Use the extracted features and the corresponding vehicle posture information as training data to train the model. By adjusting the parameters of the model and the optimization algorithm, the model can accurately predict the real-time image ratio relationship displayed on the screen under given driver habits and input parameters. When the model training is complete, it can be applied to new driver data to predict the corresponding image ratios displayed on the screen in real time. These predicted image ratios displayed on the screen in real time can be used as preset pose information for subsequent vehicle control or driver assistance systems.

[0120] For example, different databases are established for drivers with less experience (i.e., those who have just started driving for a short time) and drivers with more experience (i.e., those who have been driving for a long time / have used traditional electronic rearview mirrors for a long time); drivers with less experience have a shorter driving experience, adapt to CMS more quickly, and most of them lack their own personal driving habits, while drivers with more experience are the opposite; therefore, a general solution based on a large number of tests is used for CMS image control for drivers with less experience, while drivers with more experience can adjust the CMS camera rotation, image scale, etc. according to their own driving habits; a virtual camera can be used to simulate the working principle of an actual camera and display the real-time image scale relationship on the screen. This method requires adding a virtual camera module to CMS and synchronizing it with the actual camera. When the actual camera captures a new image, the virtual camera will automatically update and display the real-time image scale relationship.

[0121] In this embodiment, by fully referring to the driver's driving habits and the output parameter information, the adjusted target rearview image can be made more in line with the driver's personalized needs, thereby improving the flexibility and intelligence of the electronic rearview mirror adjustment and enhancing the user experience.

[0122] Fig. 9 It is a brief flowchart of adjusting the electronic rearview mirror in the navigation interface in an exemplary application scenario. In the application scenario shown in 9, the working condition information of the vehicle is obtained, and the target coordinate system of the electronic rearview mirror is determined based on the working condition information of the vehicle, and the target coordinate system is used to determine the field of view of the electronic rearview mirror; the original rearview image is obtained based on the field of view corresponding to the target coordinate system, and the original radial position of the original rearview image is obtained, and the original radial position includes the position of the original rearview image in the target coordinate system of the electronic rearview mirror; a distortion model corresponding to the original radial position is established, and the distortion model is used to determine the distortion coefficient corresponding to the original radial position; the original rearview image is adjusted based on the distortion coefficient to obtain a corrected rearview image, and the corrected rearview image is preprocessed to obtain edge information in the corrected rearview image and a reference point corresponding to the edge information; the position parameters corresponding to the edge information and the reference point are calculated, and the posture information corresponding to the corrected rearview image is determined based on the position parameters; if the posture information matches the preset posture information, the corrected rearview image is used as the target rearview image; if the posture information does not match the preset posture information, the image ratio of the corrected rearview image is corrected using the reference image corresponding to the preset posture information, so that the corrected rearview image is used as the target rearview image. For the detailed implementation process, please refer to the records in the aforementioned embodiments, which will not be described in detail here.

[0123] Fig.10 is a block diagram of an electronic rearview mirror adjustment device according to an exemplary embodiment of the present invention. The device can be applied to Figure 1The implementation environment shown in the figure is specifically configured in the server 120. The device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applied.

[0124] like Fig.10 As shown, the exemplary electronic rearview mirror adjustment device includes: a first acquisition module 1010, used to acquire the original rearview image captured by the camera of the electronic rearview mirror at the current optical axis position; a second acquisition module 1020, used to acquire the original radial position of the original rearview image, the original radial position includes the position of the original rearview image in the target coordinate system of the electronic rearview mirror; a distortion module 1030, used to establish a distortion model corresponding to the original radial position, the distortion model is used to determine the distortion coefficient corresponding to the original radial position; an adjustment module 1040, used to adjust the original rearview image based on the distortion coefficient to obtain a corrected rearview image, and adjust the optical axis position of the camera based on the corrected rearview image to obtain an adjusted optical axis position, so as to adjust the rearview image captured by the camera based on the adjusted optical axis position.

[0125] According to one aspect of an embodiment of the present invention, the above-mentioned first acquisition module 1010 is also used to obtain the operating condition information of the vehicle, determine the target coordinate system of the electronic rearview mirror based on the operating condition information, and the target coordinate system is used to determine the field of view area of ​​the electronic rearview mirror; and obtain the original rearview image based on the field of view area corresponding to the target coordinate system.

[0126] According to one aspect of an embodiment of the present invention, the above-mentioned distortion module 1030 is also used to determine a grid segmentation model of the electronic rearview mirror based on a target coordinate system, wherein the grid segmentation model includes a checkerboard calibration plate; and determine a distortion coefficient corresponding to the distortion model based on a checkerboard density corresponding to the checkerboard calibration plate.

[0127] According to one aspect of an embodiment of the present invention, the above-mentioned distortion module 1030 is also used to calculate the radial distance from the pixel point in the original rearview image corresponding to the checkerboard calibration plate to the image center corresponding to the checkerboard calibration plate; and adjust the radial distance from the pixel point in the original rearview image to the image center based on the radial distortion model.

[0128] According to one aspect of an embodiment of the present invention, the above-mentioned distortion module 1030 is also used to obtain the position coordinates corresponding to the pixel points in the original rear-view image corresponding to the checkerboard calibration plate; establish a tangential regression equation based on the distortion coefficient and the position coordinates to determine the correction coordinates corresponding to the position coordinates based on the tangential regression equation.

[0129] According to one aspect of an embodiment of the present invention, the above-mentioned electronic rearview mirror adjustment device also includes: a preprocessing module, which is used to preprocess the corrected rearview image to obtain edge information in the corrected rearview image and a reference point corresponding to the edge information; a calculation module, which is used to calculate the position parameters corresponding to the edge information and the reference point, and determine the posture information corresponding to the corrected rearview image based on the position parameters; an adjustment module, which is used to use the corrected rearview image as the target rearview image if the posture information matches the preset posture information; and a correction module, which is used to use the reference image corresponding to the preset posture information to correct the image ratio of the corrected rearview image if the posture information does not match the preset posture information, so as to use the corrected rearview image as the target rearview image.

[0130] According to one aspect of an embodiment of the present invention, the electronic rearview mirror adjustment device further includes: a training module for acquiring driver habit information and driver input parameters, and obtaining preset posture information through training based on the driver information and input parameters.

[0131] It should be noted that the electronic rearview mirror adjustment device provided in the above embodiment and the electronic rearview mirror adjustment method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the electronic rearview mirror adjustment device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0132] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the electronic rearview mirror adjustment method provided in the above-mentioned embodiments.

[0133] Fig.11 The structure diagram of the computer system of the electronic device suitable for implementing the embodiment of the present invention is shown. It should be noted that: Fig.11 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0134] like Fig.11As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103, such as executing the method in the above embodiment. In the RAM 1103, various programs and data required for system operation are also stored. The CPU 1101, the ROM 1102 and the RAM 1103 are connected to each other through the bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.

[0135] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0136] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1109, and / or installed from a removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, various functions defined in the system of the present invention are executed.

[0137] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0139] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, limit the units themselves.

[0140] Another aspect of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the electronic rearview mirror adjustment method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0141] Another aspect of the present invention further provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the electronic rearview mirror adjustment method provided in each of the above embodiments.

[0142] The above contents are only preferred exemplary embodiments of the present invention and are not intended to limit the implementation scheme of the present invention. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope required by the claims.

Claims

1. A method for adjusting an electronic rearview mirror, characterized in that: The electronic rearview mirror includes a camera, and the camera determines a visual field area of ​​the electronic rearview mirror based on an optical axis position. The method includes: Obtaining an original rear-view image captured by the camera of the electronic rearview mirror at the current optical axis position; Acquire an original radial position of the original rearview image, wherein the original radial position includes a position of the original rearview image in a target coordinate system of the electronic rearview mirror; Establishing a distortion model corresponding to the original radial position, wherein the distortion model is used to determine a distortion coefficient corresponding to the original radial position; The original rear-view image is adjusted based on the distortion coefficient to obtain a corrected rear-view image, and the optical axis position of the camera is adjusted based on the corrected rear-view image to obtain an adjusted optical axis position, so as to adjust the rear-view image captured by the camera based on the adjusted optical axis position; The obtaining of the original rear view image collected by the camera of the electronic rearview mirror at the current optical axis position includes: Acquire operating condition information of the vehicle, and determine a target coordinate system of the electronic rearview mirror based on the operating condition information, wherein the target coordinate system is used to determine a field of view of the electronic rearview mirror; Acquire the original rearview image based on the field of view corresponding to the target coordinate system; The distortion model is used to determine the distortion coefficient corresponding to the original radial position, including: Determining a grid segmentation model of the electronic rearview mirror based on the target coordinate system, wherein the grid segmentation model includes a checkerboard calibration plate; The distortion coefficient corresponding to the distortion model is determined based on the checkerboard density corresponding to the checkerboard calibration plate.

2. The method according to claim 1, characterized in that The distortion model includes a radial distortion model, and the method further includes: Calculating the radial distance between the pixel point in the original rearview image corresponding to the checkerboard calibration plate and the image center corresponding to the checkerboard calibration plate; The radial distance from the pixel point in the original rearview image to the center of the image is adjusted based on the radial distortion model.

3. The method according to claim 1, characterized in that The distortion model further includes a tangential distortion model, and the method further includes: Obtaining the position coordinates of the pixel points in the original rearview image corresponding to the checkerboard calibration plate; A tangential regression equation is established based on the distortion coefficient and the position coordinates, so as to determine the correction coordinates corresponding to the position coordinates based on the tangential regression equation.

4. The method according to claim 1, characterized in that The method further comprises: Preprocessing the corrected visual image to obtain edge information in the corrected visual image and reference points corresponding to the edge information; Calculating position parameters corresponding to the edge information and the reference point, and determining position and posture information corresponding to the corrected rear view image based on the position parameters; If the posture information matches the preset posture information, the corrected rear-view image is used as the target rear-view image; If the position and posture information does not match the preset position and posture information, the image ratio of the corrected rearward-view image is corrected using a reference image corresponding to the preset position and posture information, so as to use the corrected rearward-view image as a target rearward-view image.

5. The method according to claim 4, characterized in that The method further comprises: The driver's habit information and the driver's input parameters are obtained, and preset posture information is obtained through training based on the driver's habit information and the input parameters.

6. An electronic rearview mirror adjustment device, characterized in that: The electronic rearview mirror includes a camera, and the camera determines the field of view of the electronic rearview mirror based on the position of the optical axis. The device includes: A first acquisition module is used to acquire an original rear-view image acquired by the camera of the electronic rear-view mirror at the current optical axis position; the acquisition of the original rear-view image acquired by the camera of the electronic rear-view mirror at the current optical axis position includes: acquiring working condition information of the vehicle, and determining a target coordinate system of the electronic rear-view mirror based on the working condition information, wherein the target coordinate system is used to determine the field of view of the electronic rear-view mirror; Acquire the original rearview image based on the field of view corresponding to the target coordinate system; A second acquisition module, configured to acquire an original radial position in the original rearview image, wherein the original radial position includes a position of the original rearview image in a target coordinate system of the electronic rearview mirror; A distortion module, used to establish a distortion model corresponding to the original radial position, wherein the distortion model is used to determine the distortion coefficient corresponding to the original radial position; the distortion model is used to determine the distortion coefficient corresponding to the original radial position, including: determining a grid segmentation model of the electronic rearview mirror based on the target coordinate system, wherein the grid segmentation model includes a checkerboard calibration plate; determining the distortion coefficient corresponding to the distortion model based on the checkerboard density corresponding to the checkerboard calibration plate; An adjustment module is used to adjust the original rear-view image based on the distortion coefficient to obtain a corrected rear-view image, and adjust the optical axis position of the camera based on the corrected rear-view image to obtain an adjusted optical axis position, so as to adjust the rear-view image captured by the camera based on the adjusted optical axis position.

7. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the electronic rearview mirror adjustment method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the electronic rearview mirror adjustment method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for determining visual field of electronic outside rear-view mirror system

    CN115139911A

  • Visual field scheduling and auxiliary identifier setting method and device suitable for electronic rearview mirror, processor and storage medium thereof

    CN116797458A