HUD projection height adjusting method and device and medium

By calculating the initial eye height and identifying the driver's emotions in real time, combined with the double-layer quantum tensor enhanced convolution model, the HUD projection height is dynamically adjusted, which solves the problem that the existing HUD system cannot adaptively adjust, and improves the driver's user experience and Security.

CN118790041AActive Publication Date: 2024-10-18CHENGDU CELIS TECH CO LTD

Patent Information

Application Number
CN202411280776.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-10-18
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

The existing HUD system cannot adaptively adjust the projection height, which requires manual adjustment during driving and cannot take the driver's subjective feelings into account. The adjustment results are unsatisfactory, affecting driving safety and convenience.

Method used

By calculating the initial eye height, the driver's emotions are recognized in real time and the HUD projection height is adjusted according to changes in eye height. A double-layer quantum tensor enhanced convolution model is used to identify emotions, and the projection height is dynamically adjusted based on changes in human eye sight.

Benefits of technology

It realizes adaptive adjustment according to different drivers' needs for HUD height, ensuring that the projected content is within the best line of sight in real time, improving the driver's user experience and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118790041A_ABST
    Figure CN118790041A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of head-up display, in particular to an HUD projection height adjusting method and device and a medium. The method comprises the following steps: calculating an initial projection height of a head up display (HUD) according to an initial eye height of a driver; in the HUD display process, if the driver shows a negative emotion, calculating the newest projection height of the HUD according to the current eye height of the driver; and adjusting the projection height of the HUD according to the initial projection height and the latest projection height. According to the emotion of the driver and the change of the eye height, it is recognized that the height of the HUD needs to be adjusted, the projection height of the HUD is adjusted in real time based on the change condition of the eye height, and when the eye height of the driver is different from the habitual observation angle, the HUD can be adjusted to the appropriate projection height in a self-adaptive mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of head-up display, and in particular to a method, device and medium for adjusting the projection height of a HUD. Background Art

[0002] The application of Head Up Display (HUD) technology in the automotive industry has become a trend, providing drivers with real-time information, which not only helps drivers improve their perception and reaction speed, but also further improves driving safety and convenience.

[0003] Due to different physiological characteristics of drivers such as eye height and different observation angles, the height of the HUD display often needs to be adjusted. However, most HUDs currently cannot be adjusted adaptively and can only be adjusted manually, which is particularly inconvenient and unsafe during driving.

[0004] In view of this, the present invention is proposed. Summary of the invention

[0005] The purpose of the present invention is to provide a method, device and medium for adjusting the projection height of a HUD, so as to identify that the height of the HUD needs to be adjusted according to the driver's mood and changes in eye height, and adjust the projection height of the HUD in real time based on the changes in eye height. When the driver's eye height and accustomed observation angle are different, the projection height can also be adaptively adjusted to a suitable height.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, the present invention provides a method for adjusting the projection height of a HUD, comprising: Calculate the initial projection height of the head-up display (HUD) based on the driver's initial eye height; During the HUD display process, the driver's emotions are recognized in real time based on the driver's facial image; If the driver shows negative emotions, calculating the latest projection height of the HUD according to the current eye height of the driver; The projection height of the HUD is adjusted according to the initial projection height and the latest projection height.

[0007] In a second aspect, the present invention provides an electronic device, comprising: at least one processor, and a memory communicatively coupled to at least one of the processors; The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the above-mentioned HUD projection height adjustment method.

[0008] In a third aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable the computer to execute the above-mentioned HUD projection height adjustment method.

[0009] Compared with the prior art, the present invention has the following beneficial effects: 1. During the HUD display process, the present invention identifies the driver's negative emotions based on the driver's facial image, and identifies the negative emotions caused by inappropriate height in combination with the projection height obtained by the human eye, thereby capturing the driver's subjective feelings and adjustment needs for the HUD height. In this way, the HUD height can be adjusted based on the different needs of different drivers for different needs, rather than just relying on the height of the human eye.

[0010] 2. The present invention adjusts the HUD height according to the initial projection height and the latest projection height, that is, the HUD height is adjusted according to the changes in the human eye's line of sight. This dynamic adjustment method can make the HUD projection content within the driver's optimal line of sight in real time during the HUD display process.

[0011] 3. The present invention uses a double-layer quantum tensor enhanced convolution model to identify the driver's emotions, and uses the characteristics of long-range and short-range entanglement of the quantum tensor network to read more image data information, as well as the characteristics of fewer model parameters to reduce model complexity. At the same time, when quantum computers develop to a certain level in the future, the super computing power of quantum computers can be used to achieve millisecond-level processing speeds. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0013] Figure 1 It is a flow chart of a method for adjusting the projection height of a HUD provided by the present invention; Figure 2 is a schematic diagram of an initial projection height provided by an embodiment of the present invention; Figure 3 It is a structural diagram of a double-layer quantum tensor enhanced convolution model DbConTenNet provided in an embodiment of the present invention; Figure 4 It is a schematic diagram of the internal structure of a feature extraction module and a feature fusion module provided in an embodiment of the present invention; Figure 5It is a schematic diagram of the internal structure of the data compression flattening and feature mapping module, the MERA deep global feature extraction module, the MPS deep global feature extraction module and the classification module provided in an embodiment of the present invention; Figure 6 is a schematic diagram of data compression and flattening operations provided by an embodiment of the present invention; Figure 7 is a schematic diagram of the execution process of the classification module provided by an embodiment of the present invention; Figure 8 It is a schematic diagram of an MPS approximate representation of a weight tensor provided by an embodiment of the present invention; Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0014] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0015] As mentioned in the background technology, the HUD in the prior art cannot be adjusted adaptively and can only be adjusted manually, which is particularly inconvenient and unsafe during driving. Of course, there are also some solutions for automatically adjusting the height of the HUD, most of which are based on the fixed values ​​of the driver's eye height and height, and do not take into account the driver's subjective feelings, and the adjustment results are not satisfactory. The present invention is further described in detail below in conjunction with the embodiments.

[0016] Example 1 Figure 1 This is a flow chart of a method for adjusting the projection height of a HUD provided by the present invention. This embodiment is applicable to the case where the projection height of the HUD system on a vehicle is adjusted. The method can be executed by a HUD projection height adjustment device, which can be composed of software and / or hardware and is generally integrated in an electronic device. The electronic device can be a vehicle computer or a device independent of the vehicle computer, and the electronic device can control the projection direction of the HUD projection system to change the projection height.

[0017] like Figure 1 As shown, this embodiment provides a method for adjusting the projection height of a HUD, comprising the following steps: S110: Calculate an initial projection height of a head-up display (HUD) according to the initial eye height of the driver.

[0018] Optionally, after the seat pressure sensor detects that the driver sits on the seat, or detects that the driver adjusts the seat height and angle, the driver's eye height is captured by the in-car camera or eye tracker. For the convenience of description and distinction, the eye height captured at this time is called the initial eye height, that is, the eye height of the driver when he looks forward before the HUD is projected.

[0019] In practical applications, the projection height of the HUD should not block the driver's forward line of sight, nor overlap with the image of the front hood. The initial projection height should be between the initial eye height and the height of the front hood.

[0020] Optionally, based on the driver's initial eye height, the projection position of the eyes in the direction of the vertical horizontal plane is calculated; and the midpoint height between the projection position and the front hood position is used as the initial projection height Q of the HUD. Figure 2 : is a schematic diagram of the initial projection height provided by an embodiment of the present invention. The projection position of the eye in the direction perpendicular to the horizontal plane is point H, and the intersection of the driver's eyes and the edge of the front hood is point h, that is, the front hood position. Q is calculated by the following formula.

[0021] ; (1) This embodiment uses the midpoint height between the projection position and the front hood position as the initial projection height, which neither blocks the driver's forward vision nor overlaps with the image of the front hood, providing a reference for subsequent changes in the latest projection height.

[0022] S120: During the HUD display process, identifying the driver's emotions based on the driver's facial image.

[0023] After the HUD starts projecting, it will display navigation information, weather information, vehicle condition information, etc. in front of the driver. The driver can assist in driving decisions by watching the projection content of the HUD. If the projection height of the HUD is not appropriate, the driver will look up, stretch his neck, or look down to see the projection content of the HUD, and show negative emotions such as tension and anxiety; if the projection height of the HUD is appropriate, the driver will show positive emotions such as calmness and joy.

[0024] In a specific implementation, the driver's facial image is collected by an in-car camera, and the driver's emotions are recognized by using an emotion recognition model based on the facial image. The in-car camera needs to capture the driver's face and can be located above the front windshield or on the dashboard.

[0025] The emotion recognition model can be a deep neural network model, which extracts features and classifies facial images to obtain emotion recognition results, which can be classified into positive emotions and negative emotions, or can be classified into specific emotions, such as anxiety, tension, calmness, appreciation and joy, etc. These specific emotions belong to positive emotions or negative emotions.

[0026] S130: Determine whether the driver's emotion is positive or negative. If it is positive, execute S131; if it is negative, execute S132.

[0027] S131. End the operation.

[0028] If the driver has positive emotions, such as calmness, appreciation, and joy, it means that the driver can accurately capture the display content of the HUD at the current HUD projection height, and there is no need to adjust the HUD projection height. Then return to S120 to continue to recognize the driver's emotions in real time. This is because the driver's sitting posture, seat height, etc. will change during driving, and the desired HUD projection height will also change, so real-time adjustment is required.

[0029] S132. Calculate the latest projection height of the HUD according to the current eye height of the driver.

[0030] If the height of the HUD is not appropriate, the driver will look up, stretch his neck, or look down to see the projection content of the HUD so that his line of sight can see the projection content of the HUD clearly. Based on this, the driver's current eye height is captured, specifically through an in-car camera or an eye tracker, and the latest projection height P of the HUD is recalculated using formula (1).

[0031] S140: Adjust the projection height of the HUD according to the initial projection height and the latest projection height.

[0032] As described above, the initial projection height is the projection height that matches the driver's initial eye height when the HUD is not projected. This height is used as the reference height to determine the change in the driver's eye height after the HUD is displayed. If the latest projection height is greater than the initial projection height, it means that the driver has raised his head / stretched his neck compared to the normal state, and the projection direction of the HUD is lowered; conversely, if the latest projection height is less than the initial projection height, it means that the driver has lowered his head compared to the normal state, and the projection direction of the HUD is raised.

[0033] In a specific embodiment, a scheme for adjusting the quantified projection height is provided. First, according to the initial projection height and the latest projection height, the deviation between the initial projection height and the latest projection height is calculated. The deviation here can be the difference between the initial projection height and the latest projection height, or the relative difference F, see formula (2): ; (2) Using the proportional difference as the deviation can more accurately know the change range of the projection height.

[0034] Then, according to the size relationship between the initial projection height and the latest projection height, the adjustment direction of the HUD projection is determined; according to the size of the deviation, the adjustment amplitude of the HUD projection is determined. Specifically, if the latest projection height is greater than the initial projection height, the projection direction of the HUD is lowered; if the latest projection height is less than the initial projection height, the projection direction of the HUD is raised; according to the size of the deviation, the threshold interval where the deviation is located is determined; according to the threshold interval, the adjustment amplitude of the HUD projection is determined; wherein, the larger the threshold interval, the larger the adjustment amplitude. Multiple threshold intervals can be set to adjust the projection height of the HUD in multiple levels and improve the applicability of the HUD to different viewing heights.

[0035] In specific implementation, it is necessary to determine the rising or falling amplitude according to both the size relationship between the latest projection height and the initial projection height and the deviation value. Set a first-class threshold of 5% and a second-class threshold of 2%. These 2 thresholds can determine three threshold intervals. Specifically, when P > Q, if F > 5%, the height is lowered by 5% * |H - h|; if 5% > F > 2%, the height is lowered by 2% * |H - h|; if 2% > F > 0%, no adjustment is made. When P < Q, if F > 5%, the height is raised by 5% * |H - h|; if 5% > F > 2%, the height is raised by 2% * |H - h|; if 2% > F > 0%, no adjustment is made.

[0036] The foregoing threshold interval can be obtained through experimental calibration. During the experiment, the user may have negative emotions due to other discomfort situations, such as making a phone call, complex road conditions, etc. These may cause a deviation within 2%. Therefore, in this embodiment, no adjustment is made when 2% > F > 0% to improve fault tolerance.

[0037] The embodiments of the present invention have the following technical effects: In the HUD display process, the embodiment of the present invention identifies the driver's negative emotions based on the driver's facial image, and identifies the negative emotions caused by inappropriate height in combination with the projection height obtained by the human eye, thereby capturing the driver's subjective feelings and adjustment needs for the HUD height. In this way, the HUD height can be adjusted based on the different needs of different drivers for the HUD height, rather than just relying on the human eye height. The embodiment of the present invention adjusts the HUD height according to the initial projection height and the latest projection height, that is, adjusts the HUD height according to the changes in the human eye's line of sight. This dynamic adjustment method can make the HUD projection content in the driver's best line of sight in real time during the HUD display process.

[0038] The embodiment of the present invention can determine the adjustment direction of the HUD projection according to the size relationship between the initial projection height and the latest projection height; and determine the adjustment amplitude of the HUD projection according to the size of the deviation, so as to quickly obtain the most suitable projection height for the driver, thereby improving the height adjustment efficiency and user experience.

[0039] Example 2 Based on the above embodiment, this embodiment further refines the recognition of the driver's emotions based on the driver's facial image. Specifically, during the HUD display process, the driver's facial image is collected in real time through the in-car camera; the facial image is input into the double-layer quantum tensor enhanced convolution model DbConTenNet to obtain the recognition result of the driver's emotions.

[0040] This embodiment uses a double-layer quantum tensor enhanced convolution model to identify the driver's emotions, using the long-range and short-range entanglement characteristics of the quantum tensor network to read more image data information, and the model has fewer parameters to reduce model complexity. At the same time, when quantum computers develop to a certain level in the future, the super computing power of quantum computers can be used to achieve millisecond-level processing speeds.

[0041] Figure 3It is a structural diagram of the double-layer quantum tensor enhanced convolution model DbConTenNet provided by an embodiment of the present invention. The double-layer quantum tensor enhanced convolution model includes a pre-processing module, a feature extraction module, a feature fusion module, a data compression flattening and feature mapping module, a two-dimensional multi-scale entanglement renormalization simulation MERA deep global feature extraction module, a matrix product state MPS deep global feature extraction module and a classification module connected in sequence. The driver's facial image is input into the pre-processing module, and after being processed in sequence by the feature extraction module, the feature fusion module, the data compression flattening and feature mapping module, the two-dimensional multi-scale entanglement renormalization simulation (Multi-scale Entanglement Renormalization Ansatz, MERA) deep global feature extraction module, the matrix product state (Matrix Product States, MPS) deep global feature extraction module and the classification module, the classification module outputs the recognition result of the emotion.

[0042] The preprocessing module is used to convert color facial images into grayscale images, reduce data dimensions, and simplify the processing process. The facial images are adjusted to the same size and resolution for easy model processing. In order to prevent overfitting, the data set data is normalized to The image size is changed, which also reduces the complexity of model training.

[0043] Figure 4 Schematic diagram of the internal structure of the feature extraction module and the feature fusion module provided by the embodiment of the present invention. Figure 4 The feature extraction module includes a base network BaseNet and a Histogram of Oriented Gradients (HOG) feature extraction network; BaseNet includes at least two dense blocks DenseBlock, Figure 4 Two DenseBlocks are shown. After feature extraction and processing, the preprocessed image is input into the BaseNet and HOG feature extraction networks respectively to obtain two sets of image features.

[0044] Specifically, a densely connected network DenseNet model that has been pre-trained to perform classification tasks on ImageNet, a large visual database for visual object recognition software research, is selected for transfer learning, and two shallow DenseBlocks are selected as BaseNet, which is then used for image feature extraction. The specific process is: first extract and process the preprocessed image (including extracting feature images through the convolution layer, and then normalizing, activating the ReLU layer, and processing the pooling layer), and then input the features into the DenseBlock. In order to make it easy to connect adjacent DenseBlocks, convolution and average pooling are used as transition layers between adjacent DenseBlocks, thereby reducing the number and size of feature maps. Optionally, BaseNet has a total of 38 convolution layers.

[0045] At the same time, HOG feature extraction is used, which is a commonly used image feature description method. It constructs feature descriptors by counting the directional histogram of the gradient in each small area in the image. This method has good adaptability to lighting changes and shadows, making feature extraction more robust to face images under different lighting conditions. At the same time, face images may be occluded, such as wearing glasses, masks, etc., but HOG can have a certain tolerance for these occlusions because it focuses on the edge and texture information in the image, rather than each specific pixel of the image.

[0046] The feature fusion module is used to concatenate two sets of image features (i.e., the features output by BaseNet and the features output by HOG) to obtain fused features. For example, the texture features of an image can be combined with the color features to provide more comprehensive information.

[0047] Figure 5 The internal structure diagram of the data compression flattening and feature mapping module, the MERA deep global feature extraction module, the MPS deep global feature extraction module and the classification module provided by the embodiment of the present invention is shown in FIG. The data compression flattening and feature mapping module is used to flatten the fused features into multiple one-dimensional vectors according to the left-right symmetrical positions of the face.

[0048] The left eye and right eye on the human face are symmetrical, the left eyebrow and right eyebrow are symmetrical, and the nose and mouth are also symmetrical. When the HUD projection height is inappropriate, the driver may have negative emotions that cause the driver's facial expression to be asymmetrical, such as negative emotions corresponding to actions such as raising eyebrows and pouting lips. Therefore, by compressing the vector according to the left-right symmetrical position of the human face, the asymmetrical expression features can be captured, thereby identifying the driver's negative emotions caused by the inappropriate height. Figure 6 is a schematic diagram of the data compression flattening operation provided by an embodiment of the present invention, which evenly divides the fused features into four regions: Figure 6The four areas on the left are of different colors. Then, the features of one channel are extracted at the symmetrical position in the left-right symmetrical area, and the extracted features are used to form a new vector. Figure 6 Pixels at different positions are numbered, 1 and 4 are symmetrical positions, 5 and 8 are symmetrical positions, and new vectors 1, 4, 5, and 8 are formed in the upper left corner area. Correspondingly, new vectors are formed in each of the four areas. Then each new vector is compressed and Flattened into a one-dimensional vector, forming Figure 6 The rightmost row vectors. Therefore, see Figure 6 , the Squeeze operation converts the image from The image blocks are reshaped into The stack is then flattened to obtain the feature dimension The information of the four regions is connected and then compressed and flattened.

[0049] The data compression flattening and feature mapping module uses formula (3) to map the features in each vector to obtain the mapped features; the mapped features of each vector are calculated using formula (4) to obtain the tensor product .

[0050] ; (3) In formula (3), Indicates Features, Indicates The dimension of the features is 1 to , that is, each are mapped into one dimensional vector.

[0051] Each vector will obtain a tensor product of the local state vector after passing through formula (4) .

[0052] ; (4) In formula (4), represents all the features of the input, that is, the input vector, represents the direct product operation, Represents the tensor product of the Nth feature. The calculation formula is shown in the above formula (3). At the same time, formula (4) can also be understood as the direct product of multiple monomer wave functions to form a multi-body wave function in physics. Joint feature mapping Basically mapping each image to A vector in the dimensional feature space, and for the number of channels For an image, the local feature map is applied to each channel separately, and the resulting spatial dimension is .

[0053] Continue to see Figure 5 , the MERA deep global feature extraction module includes multiple MPS layers, and a mapping layer is connected between adjacent MPS layers; wherein, in each MPS layer, multiple tensor products are shrunk and merged through the corresponding disentangler and MPS block; in each mapping layer, the output vectors of all MPS blocks are remapped back to the two-dimensional image space and normalized (for example, normalized by BatchNorm1d), and the features in each vector after normalization are feature mapped according to formula (3) to obtain the mapped features, and the mapped features of each vector are tensor calculated according to formula (4) to obtain the tensor product. In this way, the tensor product is shrunk and merged through the MPS layer, and then mapped back to the two-dimensional image space through the mapping layer and the tensor product is calculated, and then passed through the MPS layer and the mapping layer, and so on, and repeated for a set number of times (for example, 3 times). The global features output by the last MPS layer are input into the MPS deep global feature extraction module for further feature extraction to obtain the relationship of long-distance data.

[0054] The disentangler is mainly used to make all correlations of the same length scale be treated similarly. The function of the MPS block is to shrink and merge vectors using a linear model in a high-dimensional feature space.

[0055] The MPS deep global feature extraction module is used to input global features into an MPS block to obtain features to be classified. Since MERA is more about extracting long-range and short-range entanglement relationships, it is ultimately necessary to extract data features through the entire MPS block. Therefore, the global features obtained from the MERA layer are input into the MPS deep global feature extraction module to obtain features to be classified.

[0056] The classification module, specifically the Quantum Tensor Network (QTN) classification module, is used to normalize the features to be classified (for example, by normalization processing through BatchNorm1d), and input them into the MPS block to obtain the classification results, namely positive emotions and negative emotions.

[0057] The decision rule for the classification task is pre-formulated by the MPS block, see formula (5): ; (5) In formula (5), , M1 represents the number of categories of the classification task. Is to input data The function value mapped to the specific category m is defined as shown in formula (6): ; (6) For a graphical representation of formula (6), see Figure 7 , Represents the weight tensor in the two-layer quantum tensor enhanced convolution model, and the output dimension is dimension. Represents the vector after feature mapping.

[0058] From formula (5), we can see that the classification module will eventually select the one with the largest result value as the classification result. However, in actual practice, it is found that when the number of images increases, the size increases, and the dimension of the feature map is very high, the weight tensor The growth will be exponential. To solve this problem, we can introduce the idea of ​​QTN and convert the weight tensor As a Order tensor, using MPS to represent the weight tensor , as shown in formula (7): (7) For a graphical representation of formula (7), see Figure 8 , where T and M both represent the contracted tensor, and It is the connection line mark of each tensor, and N is the number of dimensions. and Used as a subscript to distinguish different tensors T and M. Indicates the Nth connection line l , Indicates the Nth connection line r . Representation and connection lines and connecting wires The concatenated tensor T, Representation and connection lines , connecting wire and connecting wires The tensor M is connected. Representation and connection lines , connecting wire and connecting wires The tensor M is connected. Representation and connection lines and connecting wires The concatenated tensor T.

[0059] Depend on Figure 8 It can be seen that using MPS to represent the original high-order tensor (N+1 dimension) as a contraction of multiple 3rd-order tensors M and two 2nd-order tensors T greatly reduces the number of parameters of the weight coefficients, thereby achieving the effect of reducing the complexity of the parameter coefficients.

[0060] Example 3 like Fig. 9As shown, this embodiment provides an electronic device, including: at least one processor; and a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can perform the above-mentioned HUD projection height adjustment method. At least one processor in the electronic device can perform the above-mentioned method, and thus has at least the same advantages as the above-mentioned method.

[0061] Optionally, the electronic device also includes interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display graphical information of a GUI (Graphical User Interface) on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors can be used together with multiple memories, and / or multiple buses can be used together with multiple memories. Similarly, multiple electronic devices can be connected (for example, as a server array, a group of blade servers, or a multi-processor system), and each device provides some necessary operations. Fig. 9 A processor 301 is taken as an example.

[0062] The memory 302 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the HUD projection height adjustment method in the embodiment of the present invention. The processor 301 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 302, that is, realizing the above-mentioned HUD projection height adjustment method.

[0063] The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 302 may further include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0064] The electronic device may further include: an input device 303 and an output device 304. The processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0065] The input device 303 can receive input digital or character information, and the output device 304 can include a display device, an auxiliary lighting device (e.g., LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.

[0066] Example 4 This embodiment provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable the computer to execute the above method. The computer instructions on the computer-readable storage medium are used to enable the computer to execute the above method, and thus have at least the same advantages as the above method.

[0067] The medium in the present invention may adopt any combination of one or more computer-readable media. The medium may be a computer-readable signal medium or a computer-readable storage medium. The medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of the medium (a non-exhaustive list) include: 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 or 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 thereof. In this document, the medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.

[0068] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media 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.

[0069] The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.

[0070] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0071] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0072] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for adjusting the projection height of a HUD, characterized in that: include: Calculate the initial projection height of the head-up display (HUD) based on the driver's initial eye height; During the HUD display process, the driver's emotions are recognized in real time based on the driver's facial image; If the driver shows negative emotions, calculating the latest projection height of the HUD according to the current eye height of the driver; The projection height of the HUD is adjusted according to the initial projection height and the latest projection height.

2. The method according to claim 1, characterized in that Calculating the initial projection height of the head-up display HUD according to the initial eye height of the driver includes: Calculating the projection position of the eyes in a direction perpendicular to the horizontal plane according to the initial eye height of the driver; The midpoint height between the projection position and the front hood position is used as the initial projection height of the HUD.

3. The method according to claim 1, characterized in that The adjusting the projection height of the HUD according to the initial projection height and the latest projection height includes: Calculate the deviation between the initial projection height and the latest projection height according to the initial projection height and the latest projection height; Determining the adjustment direction of the HUD projection according to the size relationship between the initial projection height and the latest projection height; According to the size of the deviation, the adjustment amplitude of the HUD projection is determined.

4. The method according to claim 3, characterized in that Determining the adjustment direction of the HUD projection according to the magnitude relationship between the initial projection height and the latest projection height includes: If the latest projection height is greater than the initial projection height, the projection direction of the HUD is lowered; If the latest projection height is less than the initial projection height, the projection direction of the HUD is raised; Determining the adjustment amplitude of the HUD projection according to the size of the deviation includes: Determine the threshold interval of the deviation according to the size of the deviation; Determining an adjustment amplitude of the HUD projection according to the threshold interval; The larger the threshold interval is, the larger the adjustment range is.

5. The method according to claim 1, characterized in that During the HUD display process, the driver's emotions are recognized in real time based on the driver's facial image, including: During the HUD display process, the driver's facial image is collected in real time through the in-car camera; The facial image is input into a double-layer quantum tensor enhanced convolution model to obtain the recognition result of the driver's emotion.

6. The method according to claim 5, characterized in that The double-layer quantum tensor enhanced convolution model includes a preprocessing module, a feature extraction module, a feature fusion module, a data compression flattening and feature mapping module, a two-dimensional multi-scale entanglement renormalization MERA deep global feature extraction module, a matrix product state MPS deep global feature extraction module and a classification module, which are connected in sequence.

7. The method according to claim 6, characterized in that The feature extraction module includes a base network BaseNet and a HOG feature extraction network; the BaseNet includes at least two dense blocks DenseBlock; The feature extraction module is used to extract and process the preprocessed image and input it into the BaseNet and HOG feature extraction networks to obtain two sets of image features; The feature fusion module is used to splice the two sets of image features to obtain fusion features; The data compression flattening and feature mapping module is used to compress the fused features into multiple one-dimensional vectors according to the left-right symmetrical positions of the face; perform feature mapping on the features in each vector to obtain mapped features; perform tensor calculation on the mapped features of each vector to obtain a tensor product; The two-dimensional multi-scale entangled renormalization proposed MERA deep global feature extraction module includes multiple MPS layers, and a mapping layer is connected between adjacent MPS layers; wherein, in each MPS layer, multiple tensor products are contracted and merged with the MPS block through the corresponding disentangler; in each mapping layer, the output vectors of all MPS blocks are remapped back to the two-dimensional image space and normalized, and the features in each vector after normalization are feature mapped to obtain mapped features, and the mapped features of each vector are tensor calculated to obtain tensor products; the global features output by the last MPS layer are input into the MPS deep global feature extraction module; The MPS deep global feature extraction module is used to input the global features into an MPS block to obtain features to be classified; The classification module is used to normalize the features to be classified and input them into the MPS block to obtain the classification results.

8. The method according to claim 7, characterized in that The step of compressing the fusion features into a plurality of one-dimensional vectors according to the left-right symmetrical positions of the face includes: The fusion feature is evenly divided into four regions: up, down, left, and right; Extract features at symmetrical positions in a bilaterally symmetrical region, and construct a new vector using the extracted features; Each of the new vectors is compressed into a one-dimensional vector.

9. An electronic device, characterized in that: include: at least one processor, and a memory communicatively coupled to at least one of the processors; The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors so that the at least one processor can execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Augmented reality head-up display method and system considering emotion of driver

    CN111222444A

  • Driver emotion recognition method, device and equipment and storage medium

    CN116994230A

  • Vehicle head-up display system adjusting method and device, vehicle and storage medium

    CN118544810A

  • Method for adjusting head-up display device for vehicle

    JP2009262666A

  • Head-up display device for vehicle and operation method thereof

    KR1020140079903A

Cited By

  • Automatic intelligent adjusting system for vehicle-mounted HUD virtual image height

    CN120716459A