AR-HUD adaptive adjustment method and device, vehicle and medium

By detecting and calculating the center coordinates of the human eye through face images, the display height of the AR-HUD is automatically adjusted, which solves the problem that the AR-HUD cannot automatically adjust in the existing technology, and improves the driver's driving safety and environmental perception capabilities.

CN118769892APending Publication Date: 2024-10-15ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410944612.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing AR-HUD cannot automatically adjust the display height according to road conditions during driving, causing the driver to manually adjust the height, which is cumbersome and affects driving safety.

Method used

By acquiring the driver's face image, detecting the key points of the face, calculating the coordinates and distance of the human eye center, and automatically adjusting the display height of the AR-HUD to adjust the display position according to the driver's line of sight.

Benefits of technology

There is no need for manual adjustment by the driver, which improves the driver's safety during driving, reduces the time of sight switching, and improves the driver's environmental awareness of the road surface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118769892A_ABST
    Figure CN118769892A_ABST
Patent Text Reader

Abstract

The invention discloses an AR-HUD self-adaptive adjusting method and device, a vehicle and a medium. The invention relates to the technical field of vehicles, and the method comprises the steps: obtaining a to-be-detected face image; performing face key point detection on the to-be-detected face image to obtain a human eye center coordinate; carrying out expansion estimation on the to-be-detected face image to obtain a human eye center distance which is a distance from a human eye center to an image acquisition device; and according to the human eye center coordinate and the human eye center distance, calculating to obtain a target human eye coordinate, and according to the target human eye coordinate, adjusting the display height of the AR-HUD. According to the method, the display height of the AR-HUD is automatically adjusted according to the target human eye coordinates, manual adjustment of a driver is not needed, and the safety of the driver in the driving process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of vehicle technology, and in particular to an AR-HUD adaptive adjustment method, device, vehicle and medium. Background Art

[0002] With the development of society, people's demand for convenience in life is becoming more and more obvious. How to serve mankind more intelligently and proactively is the pursuit of the entire era. The augmented reality head-up display (AR-HUD) uses augmented reality technology to reasonably superimpose and display information such as vehicle speed, navigation, status of driving assistance systems, and surrounding environmental conditions in the driver's field of view, providing the driver with more intuitive and realistic information, enhancing the driver's environmental perception ability, reducing the driver's line of sight switching time between the road and the dashboard, allowing the driver to focus more on road information, and improving driving safety. At present, the height adjustment of AR-HUD is adjusted by the driver manually pressing buttons according to the road conditions during driving. The whole process is not only very cumbersome and time-consuming, but also affects the driver's driving safety during driving. Summary of the invention

[0003] The embodiments of the present invention provide an AR-HUD adaptive adjustment method, device, vehicle and medium, aiming to solve the problem that the existing AR-HUD cannot automatically adjust the height according to the road conditions during driving.

[0004] In a first aspect, an embodiment of the present invention provides an AR-HUD adaptive adjustment method, including:

[0005] Get the face image to be detected;

[0006] Performing facial key point detection on the face image to be detected to obtain the coordinates of the center of the human eye;

[0007] Expanding and estimating the face image to be detected to obtain the eye center distance, wherein the eye center distance is the distance from the eye center to the image acquisition device;

[0008] The target eye coordinates are calculated according to the eye center coordinates and the eye center distance, and the display height of the AR-HUD is adjusted according to the target eye coordinates.

[0009] In a second aspect, an embodiment of the present invention further provides an AR-HUD adaptive adjustment device, comprising:

[0010] An acquisition unit, used for acquiring a face image to be detected;

[0011] A detection unit, used for detecting key points of the face image to be detected to obtain the coordinates of the center of the eye;

[0012] An expansion estimation unit, used for expanding and estimating the face image to be detected to obtain a human eye center distance, wherein the human eye center distance is a distance from the human eye center to an image acquisition device;

[0013] A calculation and adjustment unit is used to calculate the target human eye coordinates according to the human eye center coordinates and the human eye center distance, and adjust the display height of the AR-HUD according to the target human eye coordinates.

[0014] In a third aspect, an embodiment of the present invention further provides a vehicle, comprising a memory and a processor, wherein a computer program is stored in the memory, and the above method is implemented when the processor executes the computer program.

[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0016] The embodiment of the present invention provides an AR-HUD adaptive adjustment method, device, vehicle and medium. The method includes: obtaining a face image to be detected; performing face key point detection on the face image to be detected to obtain the coordinates of the center of the eye; expanding and estimating the face image to be detected to obtain the distance of the center of the eye, wherein the distance of the center of the eye is the distance from the center of the eye to the image acquisition device; calculating the target eye coordinates according to the eye center coordinates and the eye center distance, and adjusting the display height of the AR-HUD according to the target eye coordinates. The technical solution of the embodiment of the present invention first performs face key point detection on the face image to be detected to obtain the coordinates of the center of the eye; then expands and estimates the face image to be detected to obtain the distance of the center of the eye; finally, calculates the target eye coordinates according to the eye center coordinates and the eye center distance, and automatically adjusts the display height of the AR-HUD according to the target eye coordinates, without the need for manual adjustment by the driver, thereby improving the safety of the driver during driving. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 A schematic diagram of a flow chart of an AR-HUD adaptive adjustment method provided by an embodiment of the present invention;

[0019] Figure 2A schematic diagram of normal convolution and dilated convolution provided in an embodiment of the present invention;

[0020] Figure 3 A schematic diagram of a normal convolution and a depth-wise separable convolution provided by an embodiment of the present invention;

[0021] Figure 4 A schematic diagram of a sub-process of an AR-HUD adaptive adjustment method provided by an embodiment of the present invention;

[0022] Figure 5 A schematic diagram of the position distribution of 98 key points provided in an embodiment of the present invention;

[0023] Figure 6 A schematic diagram of a sub-process of an AR-HUD adaptive adjustment method provided by an embodiment of the present invention;

[0024] Figure 7 A schematic diagram of a sub-process of an AR-HUD adaptive adjustment method provided by an embodiment of the present invention;

[0025] Figure 8 A schematic block diagram of an AR-HUD adaptive adjustment device provided in an embodiment of the present invention;

[0026] Fig. 9 A schematic block diagram of a vehicle provided in accordance with an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0029] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0030] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0031] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0032] See also Figure 1 , Figure 1 : is a flow chart of the AR-HUD adaptive adjustment method provided by an embodiment of the present invention. The AR-HUD adaptive adjustment method is described in detail below. Figure 1 As shown, the method includes the following steps S110-S140.

[0033] S110: Obtain a face image to be detected.

[0034] In an embodiment of the present invention, during driving, a video stream of the driver in the car is captured in real time by an in-car camera, and the image format in the video stream is processed to convert it into a preset target image format to obtain an image including the driver's face during driving, wherein the preset target image format is an RGB format. It can be understood that when the image format in the video stream is an RGB format, no image format conversion is required; when the image format in the video stream is not an RGB format, for example, a YUV format, an image format conversion is required. It should be noted that in this embodiment, the in-car camera is installed on the A-pillar, rearview mirror, or steering wheel in the car. The in-car camera can be an IR camera or an RGB camera. The resolution of the in-car camera is at least 2 million or more, so as to clearly capture the video stream including the driver's face. The image in the video stream is an IR image or an RGB image. The IR image is an infrared image, and the RGB image is a red, green, and blue image.

[0035] Furthermore, after obtaining an image including the driver's face during driving, face detection is performed on the image including the driver's face during driving by a face detection method to obtain the face image to be detected; the face image to be detected is a face detection frame image including the face; the face detection method includes an improved RetinaFace, and the improved RetinaFace replaces the convolution in the original RetinaFace backbone network with a depth-separable convolution or a hole convolution, and replaces the FPN in the RetinaFace backbone network with BiFPN. It should be noted that in this embodiment, the face detection method may also include face detection methods such as MTCNN, RetinaFace and Yolo, wherein MTCNN (Multi-Task Cascaded Convolutional Networks) is a deep learning model for face detection and recognition; RetinaFace is also a deep learning model for face detection and recognition; the face detection method may also include face detection methods such as face detector in Opencv and face detector in dlib. It should also be noted that, in this embodiment, the original RetinaFace backbone network is a Resnet network, which is a deep residual network; at the same time, the features of different layers are fused through the FPN structure; and the improved RetinaFace, when the convolution in the original RetinaFace backbone network is replaced with a deep separable convolution, the amount of network calculation can be reduced, thereby achieving the purpose of reducing the network size; when the convolution in the original RetinaFace backbone network is replaced with a hole convolution, the network's receptive field can be improved, and the FPN in the RetinaFace backbone network is replaced with BiFPN, and BiFPN (Bidirectional Feature Pyramid Network) is a deep learning model for target detection and instance segmentation tasks, which can better fuse features at different scales. The deep separable convolution is achieved by using mobileNetV3 to replace the original RetinaFace backbone network. Understandably, the improved RetinaFace can not only reduce the size of the face detection model in the custom face detection method, but also improve the accuracy of face detection.

[0036] Furthermore, in order to better understand the improved RetinaFace, Figure 2 As shown, Figure 2 A schematic diagram of normal convolution and dilated convolution provided by an embodiment of the present invention, Figure 2It can be seen that compared with normal convolution, the hole convolution increases the network's receptive field, thereby improving the accuracy of face detection. Figure 3 As shown, Figure 3 A schematic diagram of a normal convolution and a depth-separable convolution provided by an embodiment of the present invention, Figure 3 It can be seen that the amount of network calculation can be reduced, thus achieving the goal of reducing the network size.

[0037] S120, performing facial key point detection on the face image to be detected to obtain eye center coordinates.

[0038] In the embodiment of the present invention, after obtaining the face image to be detected, the face key points of the face image to be detected are detected to obtain the coordinates of the center of the human eye. Specifically, Figure 4 As shown, step S120 may include steps S121-S122: S121, performing facial key point detection on the face image to be detected by a facial key point detection method to obtain the left eye center coordinates and the right eye center coordinates; S122, calculating the eye center coordinates according to the left eye center coordinates and the right eye center coordinates. It should be noted that, in the present embodiment, the facial key point detection method may use a detection method based on facial key points, for example, PFLD (Planar Frontal Face Detector) is a deep learning model for detecting frontal faces; facial key point detection may also be performed using the Opencv open source library dlib. Facial key point detection methods include detection methods based on 5 key points, 68 key points, 98 key points, and even thousands of key points. Understandably, the higher the number of key points, the closer the description of facial details. In the present embodiment, 98 key points are used, Figure 5 The position distribution of 98 key points is given. Figure 5 It can be seen that key points 96 and 97 correspond to the left eye center and the right eye center respectively, and the coordinates of the left eye center are (X 96 , Y 96 ), the center coordinate of the right eye is (X 97 , Y 97 ), according to the left eye center coordinate and the right eye center coordinate, the eye center coordinate (X) can be calculated by formula (1) and formula (2) center , Y center ). Specifically, X in formula (1) and formula (2) 96 is the X coordinate of the center of the left eye, Y 96 is the Y coordinate of the center of the left eye, X 97 is the X coordinate of the center of the right eye, Y 97 is the Y coordinate of the center of the right eye, X center is the X coordinate of the center of the human eye, Y centerThe Y coordinate of the center of the human eye.

[0039] X center =1 / 2(X 96 + X 97 ) (1)

[0040] Y center =1 / 2(Y 96 + Y 97 ) (2)

[0041] S130, expanding and estimating the face image to be detected to obtain the eye center distance, wherein the eye center distance is the distance from the eye center to the image acquisition device.

[0042] In the embodiment of the present invention, after the facial key points of the face image to be detected are detected to obtain the coordinates of the center of the human eye, the face image to be detected is expanded and estimated to obtain the distance of the center of the human eye, wherein the distance of the center of the human eye is the distance from the center of the human eye to the image acquisition device; the image acquisition device is the in-vehicle camera; Figure 6 As shown, step S130 may include steps S131-S133: S131, expanding the face image to be detected to obtain an expanded face image to be detected; S132, performing depth estimation on the expanded face image to be detected through a depth estimation network to obtain a depth estimation map, wherein the depth estimation map includes the distances of all pixels on the expanded face image to be detected from the image acquisition device; S133, taking the depth value of the center of the human eye from the depth estimation map to obtain the distance of the center of the human eye. It should be noted that, in this embodiment, the face image to be detected is uniformly expanded up and down to a fixed size to obtain the expanded face image to be detected, for example, the expanded face image to be detected is an image with a size of 640*480; performing depth estimation on the expanded face image to be detected through a depth estimation network to obtain a depth estimation map, and taking the depth value of the center of the human eye from the depth estimation map to obtain the distance of the center of the human eye. It should also be noted that, in this embodiment, the depth estimation network is used to perform depth estimation on the expanded face image to be detected because the depth estimation network has good robustness and high accuracy.

[0043] S140. Calculate target eye coordinates according to the eye center coordinates and the eye center distance, and adjust the display height of the AR-HUD according to the target eye coordinates.

[0044] In the embodiment of the present invention, after obtaining the eye center coordinates, the target eye coordinates are calculated based on the eye center coordinates and the eye center distance, and the display height of the AR-HUD is adjusted based on the target eye coordinates. Specifically, Figure 7As shown, step S140 may include steps S141-S146: S141, obtaining preset calibration parameters corresponding to the image acquisition device, wherein the preset calibration parameters include internal calibration parameters and external calibration parameters; S142, calculating a first coordinate according to the human eye center coordinate and the internal calibration parameter; S143, calculating a second coordinate according to the first coordinate, the internal calibration parameter and the human eye center distance; S144, calculating the target human eye coordinate according to the second coordinate and the external calibration parameter; S145, obtaining a target display position of the AR-HUD from a preset mapping table according to the target human eye coordinate; S146, adjusting the display height of the AR-HUD according to the target display position. Specifically, calibrating the image acquisition device to obtain the internal calibration parameters and the external calibration parameters includes: acquiring a calibration plate image, and calibrating the image acquisition device according to the calibration plate image to obtain the internal calibration parameters. Specifically, in this embodiment, the image acquisition device is calibrated by Zhang Zhengyou's calibration method to obtain the internal calibration parameters. It can be understood that in other embodiments, other calibration methods can also be used to calibrate the image acquisition device; acquiring an in-vehicle scene image, selecting corner points on the in-vehicle scene image as feature points, and acquiring two-dimensional coordinate values ​​of the feature points to obtain two-dimensional coordinates of the feature points; acquiring preset three-dimensional coordinates corresponding to the two-dimensional coordinates of the feature points from preset car model data, and calibrating the image acquisition device according to the preset three-dimensional coordinates and the two-dimensional coordinates of the feature points through the PNP method to obtain the external calibration parameters. It should be noted that, in the present embodiment, the calibration plate image is an image obtained by photographing the calibration plate at multiple angles and different distances by the in-vehicle camera, and the calibration plate is a tool for camera calibration, usually composed of a black and white checkerboard or circular pattern, and the calculation of the external calibration parameters can be solved using Matlab toolbox or OpenCV. It should also be noted that, in the present embodiment, the in-vehicle camera is used to capture the in-vehicle scene image, the corner points on the in-vehicle scene image are selected as feature points, and the two-dimensional coordinates of the feature points are obtained to obtain the two-dimensional coordinates of the feature points, wherein the corner points (Corner) refer to the points in the in-vehicle scene image where the brightness changes dramatically, and these points are usually located on the edge or corner of the object; the preset three-dimensional coordinates corresponding to the two-dimensional coordinates of the feature points are obtained from the preset car model data, and the image acquisition device is calibrated according to the preset three-dimensional coordinates and the two-dimensional coordinates of the feature points by the PNP (Perspective-n-Point) method to obtain the external calibration parameters.

[0045] Further, after obtaining the internal calibration parameters and the external calibration parameters, the first coordinate is calculated by a first coordinate calculation formula according to the human eye center coordinate and the internal calibration parameters, wherein the first coordinate calculation formula is as shown in formula (3), in which (x, y, 1) is the first coordinate, (u, v, 1) is the human eye center coordinate, dx, dy, u0, v0 are internal calibration parameters, specifically, dx, dy are the actual physical sizes of pixels on the photosensitive chip in the image acquisition device, and u0, v0 are the plane centers of the image captured by the image acquisition device. It should be noted that the first coordinate is the coordinate of the image captured by the image acquisition device.

[0046]

[0047] Furthermore, after obtaining the first coordinate, the second coordinate is calculated by a second coordinate calculation formula according to the first coordinate, the internal calibration parameter and the human eye center distance, wherein the second coordinate calculation formula is as shown in formula (4), in which (Xc, Yc, Zc) is the second coordinate, f is the internal calibration parameter, and is the focal length of the image acquisition device. It should be noted that the second coordinate is the coordinate of the image acquisition device.

[0048]

[0049] Furthermore, after obtaining the second coordinate, the target eye coordinate is calculated by a third coordinate calculation formula according to the second coordinate and the external calibration parameter, wherein the third coordinate calculation formula is as shown in formula (5), in which (Xw, Yw, Zw) is the target eye coordinate, and R, T are external calibration parameters.

[0050]

[0051] It can be understood that after obtaining the target human eye coordinates, the display height of the AR-HUD will be adjusted according to the target human eye coordinates. Specifically, the target display position of the AR-HUD is obtained from a preset mapping table according to the target human eye coordinates, wherein the preset mapping table records the correspondence between the target human eye coordinates and the target display position of the AR-HUD; the display height of the AR-HUD is adjusted according to the target display position.

[0052] Figure 8 is a schematic block diagram of an AR-HUD adaptive adjustment device 200 provided in an embodiment of the present invention. Figure 8As shown, corresponding to the above AR-HUD adaptive adjustment method, the present invention also provides an AR-HUD adaptive adjustment device 200. The AR-HUD adaptive adjustment device 200 includes a unit for executing the above AR-HUD adaptive adjustment method, and the device can be configured in a vehicle. Figure 8 The AR-HUD adaptive adjustment device 200 includes an acquisition unit 201, a detection unit 202, an expansion estimation unit 203 and a calculation adjustment unit 204.

[0053] Among them, the acquisition unit 201 is used to acquire the face image to be detected; the detection unit 202 is used to perform face key point detection on the face image to be detected to obtain the coordinates of the center of the human eye; the expansion estimation unit 203 is used to expand and estimate the face image to be detected to obtain the center distance of the human eye, wherein the center distance of the human eye is the distance from the center of the human eye to the image acquisition device; the calculation and adjustment unit 204 is used to calculate the target eye coordinates according to the center coordinates of the human eye and the center distance of the human eye, and adjust the display height of the AR-HUD according to the target eye coordinates.

[0054] In some embodiments, such as this embodiment, the detection unit 202 includes a key point detection unit and a first calculation unit.

[0055] Among them, the key point detection unit is used to perform facial key point detection on the face image to be detected by a facial key point detection method to obtain the left eye center coordinates and the right eye center coordinates; the first calculation unit is used to calculate the eye center coordinates based on the left eye center coordinates and the right eye center coordinates.

[0056] In some embodiments, such as this embodiment, the expansion estimation unit 203 includes an expansion unit, a depth estimation unit, and a fetching unit.

[0057] Among them, the expansion unit is used to expand the face image to be detected to obtain an expanded face image to be detected; the depth estimation unit is used to perform depth estimation on the expanded face image to be detected through a depth estimation network to obtain a depth estimation map, wherein the depth estimation map includes the distance between all pixel points on the expanded face image to be detected and the image acquisition device; the extraction unit is used to extract the depth value of the center of the human eye from the depth estimation map to obtain the distance of the center of the human eye.

[0058] In some embodiments, such as this embodiment, the calculation and adjustment unit 204 includes a first acquisition unit, a second calculation unit, a third calculation unit, a fourth calculation unit, a second acquisition unit, and an adjustment unit.

[0059] Among them, the first acquisition unit is used to acquire preset calibration parameters corresponding to the image acquisition device, wherein the preset calibration parameters include internal calibration parameters and external calibration parameters; the second calculation unit is used to calculate the first coordinate according to the human eye center coordinate and the internal calibration parameter; the third calculation unit is used to calculate the second coordinate according to the first coordinate, the internal calibration parameter and the human eye center distance; the fourth calculation unit is used to calculate the target human eye coordinate according to the second coordinate and the external calibration parameter; the second acquisition unit is used to obtain the target display position of the AR-HUD from a preset mapping table according to the target human eye coordinate; the adjustment unit is used to adjust the display height of the AR-HUD according to the target display position.

[0060] In some embodiments, such as the present embodiment, calibrating the image acquisition device to obtain the intrinsic calibration parameters and the extrinsic calibration parameters includes a first calibration unit, a third acquisition unit, and a second calibration unit.

[0061] Among them, the first calibration unit is used to obtain the calibration plate image, and calibrate the image acquisition device according to the calibration plate image through Zhang Zhengyou's calibration method to obtain the internal calibration parameters; the third acquisition unit is used to obtain the in-vehicle scene image, and select the corner points on the in-vehicle scene image as feature points, and obtain the two-dimensional coordinate values ​​of the feature points to obtain the two-dimensional coordinates of the feature points; the second calibration unit is used to obtain the preset three-dimensional coordinates corresponding to the two-dimensional coordinates of the feature points from the preset car model data, and calibrate the image acquisition device according to the preset three-dimensional coordinates and the two-dimensional coordinates of the feature points through the PNP method to obtain the external calibration parameters.

[0062] The AR-HUD adaptive adjustment device can be implemented in the form of a computer program. Fig. 9 Running on the vehicle shown.

[0063] See also Fig. 9 , Fig. 9 3 is a schematic block diagram of a vehicle provided by an embodiment of the present invention. The vehicle 300 is a device with an AR-HUD adaptive adjustment function.

[0064] See also Fig. 9 The vehicle 300 includes a processor 302 , a memory, and a network interface 305 connected via a system bus 301 , wherein the memory may include a non-volatile storage medium 303 and an internal memory 304 .

[0065] The non-volatile storage medium 303 may store an operating system 3031 and a computer program 3032. When the computer program 3032 is executed, the processor 302 may execute an AR-HUD adaptive adjustment method.

[0066] The processor 302 is used to provide computing and control capabilities to support the operation of the entire vehicle 300 .

[0067] The internal memory 304 provides an environment for the operation of the computer program 3032 in the non-volatile storage medium 303. When the computer program 3032 is executed by the processor 302, the processor 302 can execute an AR-HUD adaptive adjustment method.

[0068] The network interface 305 is used to communicate with other devices over the network. Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the vehicle 300 to which the solution of the present invention is applied. The specific vehicle 300 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0069] The processor 302 is used to run a computer program 3032 stored in a memory to implement any embodiment of the above-mentioned AR-HUD adaptive adjustment method.

[0070] It should be understood that in the embodiment of the present invention, the processor 302 may be a central processing unit (CPU), and the processor 302 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0071] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0072] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes any embodiment of the above-mentioned AR-HUD adaptive adjustment method.

[0073] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0074] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0075] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0076] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0077] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a vehicle to execute all or part of the steps of the method described in each embodiment of the present invention.

[0078] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0079] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0080] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. An AR-HUD adaptive adjustment method, characterized in that: include: Get the face image to be detected; Performing facial key point detection on the face image to be detected to obtain the coordinates of the center of the eye; Expanding and estimating the face image to be detected to obtain the eye center distance, wherein the eye center distance is the distance from the eye center to the image acquisition device; The target eye coordinates are calculated according to the eye center coordinates and the eye center distance, and the display height of the AR-HUD is adjusted according to the target eye coordinates.

2. The method according to claim 1, characterized in that The step of expanding and estimating the face image to be detected to obtain the distance between the eyes includes: Expanding the face image to be detected to obtain an expanded face image to be detected; Performing depth estimation on the expanded face image to be detected by a depth estimation network to obtain a depth estimation map, wherein the depth estimation map includes the distances of all pixels on the expanded face image to be detected from the image acquisition device; The depth value of the center of the human eye is taken from the depth estimation map to obtain the distance of the center of the human eye.

3. The method according to claim 1, characterized in that The step of calculating the target eye coordinates according to the eye center coordinates and the eye center distance includes: Acquiring preset calibration parameters corresponding to the image acquisition device, wherein the preset calibration parameters include internal calibration parameters and external calibration parameters; Calculate a first coordinate according to the eye center coordinate and the internal calibration parameter; Calculate the second coordinate according to the first coordinate, the internal calibration parameter and the human eye center distance; The target human eye coordinates are calculated according to the second coordinates and the external calibration parameters.

4. The method according to claim 3, characterized in that Calibrating the image acquisition device to obtain the internal calibration parameters and the external calibration parameters includes: Acquire a calibration plate image, and calibrate the image acquisition device according to the calibration plate image to obtain the internal calibration parameters; Acquire an in-vehicle scene image, select corner points on the in-vehicle scene image as feature points, and acquire two-dimensional coordinate values ​​of the feature points to obtain two-dimensional coordinates of the feature points; The preset three-dimensional coordinates corresponding to the two-dimensional coordinates of the feature points are obtained from the preset car model data, and the image acquisition device is calibrated by the PNP method according to the preset three-dimensional coordinates and the two-dimensional coordinates of the feature points to obtain the external calibration parameters.

5. The method according to claim 1, characterized in that The step of performing facial key point detection on the face image to be detected to obtain the coordinates of the center of the human eye includes: Performing facial key point detection on the face image to be detected by a facial key point detection method to obtain left eye center coordinates and right eye center coordinates; The human eye center coordinates are calculated according to the left eye center coordinates and the right eye center coordinates.

6. The method according to claim 1, characterized in that The adjusting the display height of the AR-HUD according to the target human eye coordinates includes: Acquire the target display position of the AR-HUD from a preset mapping table according to the target human eye coordinates; The display height of the AR-HUD is adjusted according to the target display position.

7. The method according to claim 1, characterized in that The face image to be detected is an image obtained by performing face detection on an image including a driver's face during driving using a face detection method, wherein the face detection method includes an improved RetinaFace, and the improved RetinaFace replaces the convolution in the original RetinaFace backbone network with a depthwise separable convolution or a dilated convolution, and replaces the FPN in the RetinaFace backbone network with a BiFPN.

8. An AR-HUD adaptive adjustment device, characterized in that: include: An acquisition unit, used for acquiring a face image to be detected; A detection unit, used for detecting key points of the face image to be detected to obtain the coordinates of the center of the eye; An expansion estimation unit, used for expanding and estimating the face image to be detected to obtain a human eye center distance, wherein the human eye center distance is a distance from the human eye center to an image acquisition device; A calculation and adjustment unit is used to calculate the target human eye coordinates according to the human eye center coordinates and the human eye center distance, and adjust the display height of the AR-HUD according to the target human eye coordinates.

9. A vehicle, characterized in that: The vehicle includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Cited By

  • Auxiliary method and system for augmented reality head-up display intelligent rearview system

    CN119682538A

  • Height adjustment method and device of scroll screen, electronic equipment and storage medium

    CN120595913A

  • Electrical stimulation task processing method and device and terminal equipment

    CN121176882A

  • An electric stimulation task processing method, device and terminal equipment

    CN121176882B