Interface display parameter adjustment method and device, equipment, storage medium and program product
By analyzing the eye images of the riding object, determining the pupil diameter change rate and eye focal length, and automatically adjusting the display parameters of the vehicle display screen, solving the problem of interface blur caused by visual differences and light changes, and improving the efficiency and safety of information acquisition during riding.
Patent Information
- Application Number
- CN202510622375.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-08-15
AI Technical Summary
During the vehicle driving, due to individual vision differences and ambient lighting changes, the text and details of the navigation interface are blurred. The existing manual or voice command adjustment methods are not only distracted but also have poor results.
By analyzing the eye images of the riding object, the pupil diameter change rate and eye focal length are determined, and the display parameters of the display screen, such as font size, contrast and brightness, are adjusted based on these parameters to meet the visual needs of the riding object.
It realizes that display parameters can be adjusted with high accuracy without manual operation or voice commands, providing a personalized visual experience, and improving information acquisition efficiency and ride safety.
Smart Images

Figure CN120491825A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, specifically to the field of artificial intelligence technologies such as neural networks, visualization, and autonomous driving, and in particular to a method, device, electronic device, computer-readable storage medium, and computer program product for adjusting interface display parameters. Background Art
[0002] While the vehicle is driving, passengers, including the driver and other passengers, will check the vehicle display screen to browse information according to their needs. For example, the driver usually needs to frequently check the real-time navigation map displayed on the vehicle display screen, while other passengers may need to browse weather, messages, and other content.
[0003] However, due to individual vision differences (such as myopia, hyperopia, and presbyopia) and changes in ambient lighting, the text and details of the navigation interface may appear blurred or unclear. Manual operation or voice command adjustments not only require passengers to be distracted, but also often have poor results. Summary of the Invention
[0004] The embodiments of the present disclosure provide a method, device, electronic device, computer-readable storage medium, and computer program product for adjusting interface display parameters.
[0005] In the first aspect, an embodiment of the present disclosure proposes a method for adjusting interface display parameters, including: determining the pupil diameter change rate based on an eye image obtained by photographing a passenger; determining the eye focal length of the passenger based on the focal length of a camera that photographs the eye image and the pupil diameter change rate; determining the target visual range of the passenger on the display screen based on the eye focal length; and adjusting the display parameters of the interface content presented on the display screen based on the target visual range.
[0006] In the second aspect, an embodiment of the present disclosure proposes an interface display parameter adjustment device, including: a pupil diameter change rate determination unit, configured to determine the pupil diameter change rate based on an eye image obtained by photographing the passenger; an eyeball focal length determination unit, configured to determine the eyeball focal length of the passenger based on the focal length of the camera that photographs the eye image and the pupil diameter change rate; a target visual range determination unit, configured to determine the target visual range of the passenger on the display screen based on the eyeball focal length; and a display parameter adjustment unit, configured to adjust the display parameters of the interface content presented on the display screen based on the target visual range.
[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the interface display parameter adjustment method described in the first aspect when executing the instructions.
[0008] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, which are used to enable a computer to implement the interface display parameter adjustment method described in the first aspect when executed.
[0009] In a fifth aspect, an embodiment of the present disclosure provides a computer program product including a computer program, which, when executed by a processor, can implement the various steps of the interface display parameter adjustment method described in the first aspect.
[0010] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Other features, objects and advantages of the present disclosure will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following drawings: Figure 1 is an exemplary system architecture in which the present disclosure may be applied; Figure 2 A flowchart of a method for adjusting interface display parameters provided by an embodiment of the present disclosure; Figure 3 A flowchart of a method for determining a target visual orientation provided by an embodiment of the present disclosure; Figure 4 A method for adjusting font size according to a target visual range is provided in an embodiment of the present disclosure; Figure 5 Two parallel methods for determining the second correction coefficient provided in the embodiments of the present disclosure; Figure 6 A structural block diagram of an interface display parameter adjustment device provided in an embodiment of the present disclosure; Figure 7 A schematic structural diagram of an electronic device suitable for executing an interface display parameter adjustment method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0012] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those skilled 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 disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other unless there is a conflict.
[0013] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0014] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the interface display parameter adjustment method, apparatus, electronic device, and computer-readable storage medium of the present disclosure may be applied.
[0015] like Figure 1 As shown, system architecture 100 may include a vehicle passenger 101 (the driver is used as an example; other passengers are not shown), an in-vehicle camera 102, an in-vehicle terminal 103, and a remote server 104. The network is used as a medium to provide a communication link between the in-vehicle camera 102, the in-vehicle terminal 103, and the remote server 104. The network may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0016] The in-vehicle camera 102 can capture images of the vehicle occupants 101 and transmit them to the in-vehicle terminal 103 via a network for information exchange. Various applications for enabling information communication between the in-vehicle camera 102, the in-vehicle terminal 103, and the remote server 104 can be installed, such as image acquisition applications, display parameter adjustment applications, and information exchange applications.
[0017] The in-vehicle camera 102, the in-vehicle terminal 103, and the remote server 104 are typically hardware devices in various forms. The in-vehicle camera 102 is typically a camera device with various imaging components and data transmission capabilities, while the in-vehicle terminal 103 is a data processing device with a display screen. The remote server 104 can be implemented as a distributed server cluster consisting of multiple servers or as a single server. Within specific simulation environments, each of these devices can also manifest as a virtual product presented in a virtual space by simulation software, without specific limitations here.
[0018] The vehicle-mounted terminal 103 can provide various services through various built-in applications. Taking the display parameter adjustment application that can provide adaptive adjustment service of interface display parameters as an example, the vehicle-mounted terminal 103 can achieve the following effects when running the display parameter adjustment application: first, the eye image of the passenger 101 taken by the in-vehicle camera 102 is received, and the pupil diameter change rate of the passenger 101 is determined based on the eye image; then, the eye focal length of the passenger 101 is determined based on the focal length of the in-vehicle camera 102 and the pupil diameter change rate; then, the target visual range of the passenger 101 on the display screen is determined based on the eye focal length; finally, the display parameters of the interface content presented on the display screen are adjusted based on the target visual range.
[0019] It should be noted that, in addition to being acquired in real time from the in-vehicle camera 102, eye images can also be pre-stored in various ways on the in-vehicle terminal 103 or the remote server 104. Therefore, when the in-vehicle terminal 103 detects that such data are already stored locally (for example, when starting to process a previously reserved task), it can choose to directly acquire such data locally.
[0020] Since determining the relevant information for guiding the adjustment of display parameters based on eye images requires more computing resources and stronger computing power, the interface display parameter adjustment method provided in the subsequent embodiments of the present disclosure is generally executed by the vehicle-mounted terminal 103 with stronger computing power and more computing resources, or further handed over to the remote server 104. Correspondingly, the interface display parameter adjustment device is generally also set in the vehicle-mounted terminal 103 or the remote server 104.
[0021] It should be understood that Figure 1 The number of in-car personnel, in-car cameras, in-car terminals and remote servers is merely illustrative. Depending on the implementation requirements, any number of in-car personnel, in-car cameras, in-car terminals and remote servers may be provided.
[0022] Please refer to Figure 2 , Figure 2 This is a flow chart of a method for adjusting interface display parameters provided by an embodiment of the present disclosure, wherein process 200 includes the following steps: Step 201: determining a pupil diameter change rate based on an eye image captured of a passenger; This step is intended to display the execution body of the parameter adjustment method on the interface (e.g. Figure 1 The vehicle-mounted terminal 103 shown analyzes the eye images taken of the passengers to capture the changes in their pupil diameters, thereby providing basic data for subsequent calculation of eye focal length and adjustment of display parameters.
[0023] Among them, the camera used to shoot the passengers (such as Figure 1 The in-vehicle camera 102 shown is typically installed inside the vehicle (such as near the steering wheel, in front of the seat, or around the display screen) to capture eye images of passengers in real time; passengers may include the driver sitting in the driving seat and passengers sitting in non-driving seats. Depending on their sitting positions, their eye images can also be obtained separately through cameras set at different positions.
[0024] Pupil diameter detection primarily utilizes computer vision technology to process eye images to locate the pupil region. The pupil typically appears as a dark, circular area and can be precisely located using algorithms such as edge detection and contour recognition. Once the pupil region is located, the pupil diameter can be specifically calculated. Diameter measurements are typically measured in pixels and converted to actual physical dimensions based on the camera's resolution. The pupil diameter change rate refers to the magnitude of change in pupil diameter per unit time. This typically requires capturing multiple frames of eye images continuously, then obtaining a sequence of pupil diameter change data over time. The pupil diameter change rate is then calculated by dividing the difference between adjacent data points in the sequence by the corresponding time interval. A specific implementation method may include first determining eye tracking data based on a sequence of eye images captured continuously of the passenger, and then determining the pupil diameter change rate based on the changes in pupil diameter in the eye tracking data.
[0025] Specifically, a static eye feature extraction model incorporating an attention mechanism is first used to extract corresponding static eye features from each eye image in the eye image sequence. This means that corresponding static eye features are extracted from each eye image. A long short-term memory (LSTM) network is then used to extract time-varying eye tracking data from the static eye feature sequence constructed from the time-sequentially arranged static eye features.
[0026] The purpose of introducing the attention mechanism is to allow the eye static feature extraction model to focus more attention on the key eye region and less attention on non-key eye regions in the eye image. Specifically, the key eye region is assigned a larger attention weight, while non-key eye regions are assigned a smaller attention weight. By assigning a greater attention weight to the key eye region, the accuracy of the eye static features extracted from these regions can be improved. Specifically, the pupil region, iris region, and eyelid region in the eye image, which are related to pupil and eyeball features, can be identified as the key eye region, while other regions such as the background region, canthus region, and eyebrow region can be identified as non-key eye regions. The pupil diameter feature can be most directly extracted from the pupil region, while the iris boundary feature that can be extracted from the iris region and the eyelid state feature that can be extracted from the eyelid region can also be used together to assist in determining more accurate direct pupil features. For the iris region, the weight of edge features obtained through edge detection can be further increased, while the weight of color features obtained through color channel retrieval can be reduced.
[0027] Furthermore, the eye static feature extraction model that introduces the attention mechanism can be trained by using transfer learning on the original eye feature extraction model to shorten the additional training time required for the additional introduction of the attention mechanism.
[0028] After the static eye features are extracted using the attention-based static eye feature extraction model, the long short-term memory network arranges the extracted static eye features in a time series to examine the dynamic changes in the eye features over time. This allows the user to determine pupil contraction / dilation (determined by changes in pupil diameter features extracted from the pupil area), blink frequency (determined by changes in eyelid state features extracted from the eyelid area), and changes in muscle tension (determined by changes in iris boundary features extracted from the iris area), all of which are relevant to the subsequent determination of eye focus. It should be understood that the rate of change in pupil diameter is affected by a variety of factors, including ambient light intensity, visual fatigue, and attention concentration. For example, in a dimly lit environment, the pupil will dilate, while in a brighter environment, the pupil will constrict. Therefore, the calculated pupil diameter change rate can, on the one hand, reflect the visual state of the passenger. For example, when the passenger feels tired or inattentive, the pupil diameter change rate may decrease. On the other hand, it can also fully characterize the passenger's personalized data, because the pupil diameter change rate is an important input parameter for the subsequent calculation of the eye focal length.
[0029] Furthermore, in addition to determining the pupil diameter change rate through eye tracking data, one can also try to combine other identifiable eye features (for example, in the above-mentioned scheme that uses a combination of an eye static feature extraction model that introduces an attention mechanism and a long short-term memory network model, the blinking frequency can be obtained by analyzing the eyelid state features extracted from the eyelid area by the long short-term memory network, and then the degree of fatigue can be determined by analyzing the blinking frequency. The eye movement trajectory obtained by analyzing the iris boundary features extracted from the iris area by the long short-term memory network can also be used to evaluate the stability of the gaze point) so as to conduct a comprehensive analysis in the subsequent process, thereby further improving the accuracy of visual state judgment. At the same time, considering that the pupil diameter change rate may vary greatly under different lighting conditions, an ambient light sensor can be introduced in combination with light intensity data to calibrate the pupil diameter change rate.
[0030] It should be noted that the collection and subsequent processing of passengers' eye images should be carried out only after the relevant passengers have been informed in advance through various means and their authorization has been clearly obtained. The processing of eye images must also be anonymous, depersonalized, and desensitized.
[0031] Step 202: determining the eye focal length of the passenger based on the focal length of the camera capturing the eye image and the pupil diameter change rate; Based on step 201, this step aims to enable the above-mentioned execution subject to calculate the eye focal length of the passenger by combining the physical parameters of the camera (i.e., focal length) and the physiological characteristics of the pupil (i.e., pupil diameter change rate), thereby providing key data for subsequent determination of the target visual range and adjustment of display parameters.
[0032] The focal length of a camera refers to the distance from the optical center of the camera to the imaging sensor, which determines the camera's field of view and magnification. When capturing eye images, the camera's focal length provides a reference scale for calculating the focal length of the eyeball. Therefore, this focal length information can be used to convert the pixel distance in the image into the actual physical distance. At the same time, considering that changes in pupil diameter affect the optical system of the eye and thus affect the focal length of the eyeball, for example, when the pupil diameter is smaller, the depth of field of the eye is larger and the focus range is wider. Conversely, when the pupil diameter is larger, the depth of field of the eye is smaller and the focus range is narrower.
[0033] Therefore, based on the principles of geometric optics, the eye can be simplified into an optical system. Using the pupil diameter change rate and the camera focal length as input parameters, the eye focal length can be calculated. Specifically, the quotient of the camera focal length and the pupil diameter change rate can be used to determine the eye focal length.
[0034] To further improve the accuracy of the calculated eye focal length, other factors (such as the age of the passengers, vision conditions, and ambient light intensity) can be combined to optimize the eye focal length calculation process and improve the accuracy of the results.
[0035] Step 203: determining the target visual range of the passenger on the display screen based on the eyeball focal length; Based on step 202, this step aims to enable the above-mentioned execution subject to calculate the area on the display screen that the passenger can clearly and comfortably see (i.e., the target visual range) through the focal length of the eyeball, thereby providing a basis for subsequent adjustment of display parameters.
[0036] According to the above description, the focal length of the eye refers to the focal length of the eye's optical system, which reflects the eye's ability to focus on the content on the display screen. Therefore, the target visual range that is expected to be determined should refer to the area that the passengers can see clearly and comfortably on the display screen. This range is related to factors such as the focal length of the eye, the size of the display screen, and the distance between the passengers and the display screen.
[0037] Specifically, it can be calculated based on the principles of geometric optics, that is, the focal length of the eyeball and the distance between the eye and the display screen can be used to determine which areas on the display screen are within the clear field of view of the passenger.
[0038] Step 204: Adjust display parameters of the interface content presented on the display screen based on the target visual range.
[0039] Among them, the adjustment of the display parameters of the content presented on the display screen can cover various display elements including font size, contrast, brightness, interface layout, etc., so that the passenger can obtain the best visual experience in the best clear area.
[0040] The interface display parameter adjustment method provided by the disclosed embodiment determines the rate of change of the pupil diameter of the passenger by taking an eye image of the passenger, and then determines the passenger's accurate eye focal length in combination with the focal length of the camera. Based on the accurate eye focal length, the optimal clear field of view (i.e., target visual range) on the display screen that the passenger's eyes can see can be more accurately determined. Ultimately, the display parameters of the interface content presented on the display screen can be dynamically and automatically adjusted according to the target visual range. By applying this solution, high-precision adjustment of display parameters and a personalized visual experience can be achieved without manual operation or voice commands, thereby improving the efficiency and convenience of obtaining information from the display screen during the ride and enhancing passenger safety.
[0041] Please refer to Figure 3 , Figure 3A flowchart of a method for determining a target visual range provided by an embodiment of the present disclosure, wherein process 300 includes the following steps: Step 301: Obtain the center of gravity of the passenger's body through the sensor of the seat corresponding to the passenger in the vehicle; The body center of gravity is the center of weight distribution of the passenger on the seat, reflecting their sitting posture and body condition. Therefore, the body center of gravity can be used to indirectly infer the passenger's head position and eye direction, providing a reference for calculating the actual distance from the eyes to the display screen.
[0042] Seat sensors typically include pressure sensors (installed under the seat to detect the weight distribution of the occupant) and posture sensors (used to monitor the occupant's sitting posture and body tilt angle). Therefore, the body's center of gravity can be accurately calculated by combining the data collected by these two types of sensors.
[0043] Furthermore, sensors can monitor the body's center of gravity in real time to guide dynamic seat adjustments, improving passenger comfort, reducing fatigue, and enhancing driving safety. Furthermore, if an abnormal center of gravity is detected (such as prolonged leaning to one side), the system can remind passengers to adjust their sitting posture to avoid health problems.
[0044] Step 302: Determine the actual distance between the passenger's eyes and the display screen based on the body's center of gravity and body structure parameters; This step aims to infer the head position and eye height based on the occupant's body structural parameters (such as height and seat height) and center of gravity. Specifically, the actual distance from the eyes to the display is calculated using the geometric relationship between the head position and the display screen's position.
[0045] Furthermore, in addition to the body center of gravity and body structure parameters, other factors (such as seat tilt angle and display screen tilt angle) can be combined to optimize the calculation process of the actual distance to improve accuracy.
[0046] Step 303: Determine the target visual range of the passenger on the display screen based on the sum of the actual distance and the eye focal length.
[0047] Since the actual distance is the physical distance from the eye to the display screen, and the eye focal length is the focal length of the eye's optical system, the optimal field of view of the passenger on the display screen (i.e., the target visual range) can be determined by adding the actual distance to the eye focal length.
[0048] The principle for determining the optimal field of view can be combined with the concept of field of view angle. That is, the field of view angle of the passenger is first calculated based on the sum of the actual distance and the focal length of the eye. The field of view angle actually determines the range of the display screen that the passenger can see. Based on the field of view angle and the size of the display screen, the clear area of the passenger on the display screen can be further determined. This area is usually the center of the display screen, but will be adjusted due to changes in the actual distance and the focal length of the eye.
[0049] Furthermore, in addition to the actual distance and eye focal length, other factors (such as ambient light intensity and display resolution) can be combined to optimize the calculation process of the target visual range and improve the accuracy of the results.
[0050] Steps 301 to 303 provided in this embodiment provide a key link for ultimately achieving a personalized visual experience and improving passenger safety. The above steps determine the target visual range of the passenger on the display screen by combining the body's center of gravity, body structure parameters, the actual distance between the eyes and the display screen, and the focal length of the eyeball, thereby providing a basis for subsequent adjustment of display parameters.
[0051] See Figure 4 , Figure 4 A method for adjusting font size according to a target visual range is provided in an embodiment of the present disclosure. The process 400 includes the following steps: Step 401: Calculate a first correction coefficient based on the target visual range and a preset standard visual focal length; As can be seen from the above description, the target visual range is the area on the display screen that passengers can see clearly and comfortably. In other words, the target visual range reflects the actual visual needs of passengers and is an important basis for adjusting font size. The standard visual focal length is a preset reference value, usually set based on the average visual ability of ordinary people. In the in-vehicle scenario, the distance from the driver's eyes to the central control screen when sitting is approximately 50-80 cm. Therefore, in the in-vehicle scenario, the standard visual focal length can be preferably set to 60 cm.
[0052] This step compares the standard visual focal length with the target visual range to determine the difference between the passenger's visual needs and the standard value. Specifically, the first correction factor can be the ratio of the target visual range to the standard visual focal length. This ratio reflects the degree of individualization of the passenger's visual needs. For example, if the target visual range is smaller (indicating that the passenger requires a closer focusing distance), the first correction factor may be a value greater than 1 to make the font size more suitable for their visual needs.
[0053] Step 402: Calculate a new font size based on the product of the default font size and the first correction coefficient and the second correction coefficient; Among them, the default font size is the initial font size of the display screen interface content, which is usually set based on the average visual ability of ordinary people. This step aims to use the default font size as a benchmark value and adjust it through the joint action of the first correction and second correction coefficients to adapt to the personalized needs of passengers.
[0054] The second correction factor is an adjustment factor used to further optimize the font size. It is determined based on the actual driving scenario and / or the passenger's information browsing preferences. Driving scenarios can include highways, mountainous areas, and urban areas. For example, to reduce distraction when driving at high speeds, the font size can be increased appropriately, meaning the second correction factor should be greater than unity. When parking or driving at low speeds, the font size can be decreased appropriately, meaning the second correction factor should be less than unity.
[0055] Among them, the information browsing preference expresses the information browsing preference of the passenger on the display screen in the historical record, for example, the passenger previously preferred to browse information quickly and thus often enlarged the font to enhance readability, or previously preferred to read information in detail and slowly and thus often reduced the font to display more content.
[0056] Therefore, the new font size is the product of the default font size and the first and second correction factors, reflecting the actual visual needs and scenario requirements of the occupants. A specific calculation method might be: if the first correction factor is 1.2 (indicating that the occupants require a larger font) and the second correction factor is 1.1 (indicating that the current driving scene requires a larger font), then the new font size is 1.32 times the default font size.
[0057] Step 403: Adjust the font size of the interface content presented on the display screen to the new font size.
[0058] During the adjustment process, there are usually the following adjustment methods: 1) Global adjustment: adjust the font size of all text content in the interface to the new font size; 2) Local adjustments: Based on the interface layout and importance, prioritize adjusting the font size of key information (such as navigation tips and warning messages); 3) Dynamic adaptation: that is, as the new font size changes, the interface layout is adjusted in real time to ensure that the content is displayed complete and beautifully.
[0059] The specific choice can be flexibly selected according to actual needs and is not specifically limited here.
[0060] This embodiment uses the font size as an example to provide a specific adjustment scheme through steps 401-403. By combining the target visual range, the preset standard visual focal length, the actual driving scene and / or the information browsing preferences of the passengers, the font size of the display interface content is dynamically adjusted to ensure that the passengers can obtain information efficiently and comfortably.
[0061] In order to deepen the understanding of how to obtain the second correction coefficient, this embodiment also uses Figure 5 Two parallel approaches to determining the second correction factor are shown: Solution 1: Obtain the actual driving scene of the vehicle currently in which the passenger is riding; determine the matching second correction coefficient based on the driving speed and information density in the actual driving scene.
[0062] High-speed driving scenarios are characterized by high speeds, relatively simple road conditions, and low information density. This impacts visual needs: Due to the high speed, passengers need to quickly access key information, necessitating larger fonts and a simpler interface layout.
[0063] Urban driving scenarios are characterized by slow speeds, complex road conditions, and high information density. This impacts visual needs: Due to the complex road conditions, passengers need to pay attention to more information (such as navigation instructions and traffic signals), thus requiring moderate or slightly smaller font sizes and clear interface layouts.
[0064] Mountain driving scenarios are characterized by slow speeds, complex and unpredictable road conditions, and moderate information density. This impacts visual needs: Due to the unpredictable road conditions, passengers need to pay attention to navigation and road information, necessitating a moderate font size and easily recognizable interface design.
[0065] Therefore, based on the principle that faster driving speeds shorten the time it takes passengers to access information, and therefore require larger fonts and more eye-catching interface designs, the relationship between driving speed and the second correction coefficient should be directly proportional. That is, in high-speed driving scenarios, the second correction coefficient should be relatively large (relative to unit 1, such as 1.1, 1.2, or other values greater than unit 1) to accommodate the need for rapid information acquisition; in urban or mountainous driving scenarios, the second correction coefficient should be relatively small (relative to unit 1, such as 0.8, 0.9, or other values less than unit 1) to accommodate information acquisition needs at lower speeds.
[0066] Similarly, based on the principle that higher information density means more content needs to be displayed in the interface, and therefore smaller fonts are required to accommodate more information, the relationship between information density and the second correction factor should be inversely proportional. That is, in urban driving scenarios, due to the high information density, the second correction factor should be relatively small (relative to unit 1, such as 0.8, 0.9, or other values less than unit 1) to ensure that the interface can display more information; in highway driving scenarios, due to the low information density, the second correction factor should be relatively large (relative to unit 1, such as 1.1, 1.2, or other values greater than unit 1) to ensure that key information is clearly visible.
[0067] Therefore, an example of comprehensive determination of the second correction coefficient can be: in a high-speed driving scenario, the driving speed is faster and the information density is lower, so the second correction coefficient is relatively large (relative to unit 1, for example, 1.1, 1.2, etc., which are greater than unit 1); in an urban driving scenario, the driving speed is slower and the information density is higher, so the second correction coefficient is relatively small (relative to unit 1, for example, 0.8, 0.9, etc., which are less than unit 1).
[0068] Furthermore, for safety reasons, key information (such as navigation instructions and speed limits) can be prioritized when the vehicle is moving at high speeds, reducing the distraction of unnecessary information. Display content can also be prioritized based on importance, ensuring that key information is always clearly visible. Even in scenarios with high information density, split-screen or layered displays can be used to further improve information acquisition efficiency.
[0069] Solution 2: Obtain the passenger's information browsing preferences; determine a matching second correction coefficient based on the font size adjustment operation in the information browsing preferences. The preference adjustment operation includes: preference for increasing the font size and preference for decreasing the font size; Information browsing preferences refer to the individual needs of passengers regarding font size, interface layout, information density, etc. when browsing display screen content. Since these preferences reflect the passengers' visual habits and comfort needs, this step uses this information to optimize display parameters. Specifically, information browsing preferences can be obtained through the following methods: 1) User settings: Allow passengers to manually set their font size preferences (e.g., select "larger font" or "smaller font") via the vehicle system or mobile app. 2) Behavioral analysis: By analyzing the rider's historical browsing behavior (e.g., frequently enlarging or reducing font size), we can automatically infer their font size preferences. 3) Voice interaction: Obtain the passenger's font size preference through voice commands, such as "Please increase the font size" or "Please decrease the font size".
[0070] The relationship between the font size preference and the second correction coefficient can be expressed as follows: 1) A preference for larger font sizes is suitable for passengers with poor eyesight, who are used to quickly browsing, or who need to reduce visual fatigue. Therefore, for passengers with this preference, the second correction factor can be set to a relatively large value to make the font appear larger and clearer on the display screen.
[0071] 2) A preference for smaller font sizes is suitable for passengers with good eyesight, who are accustomed to reading in detail, or who require more information to be displayed. Therefore, for passengers with this preference, the second correction factor can be set relatively small, resulting in smaller font sizes on the display screen, thereby accommodating more content. Furthermore, the second correction factor can be further optimized based on information density (such as in urban areas) to ensure that information clarity is maintained while reducing font size.
[0072] Furthermore, in addition to reflecting the information browsing preference of the font size preference, the calculation process of the second correction coefficient can also be optimized in combination with other personalized parameters (such as age and vision status).
[0073] Based on the above solutions 1 and 2, we can also combine them to get the following solution 3: That is, the actual driving scene of the vehicle currently in which the passenger is riding is obtained, and then a matching third correction coefficient is determined based on the driving speed and information density in the actual driving scene; at the same time, the information browsing preference of the passenger is obtained, and then a matching fourth correction coefficient is determined based on the preference adjustment operation on the font size in the information browsing preference; finally, based on the product of the third correction coefficient and the fourth correction coefficient, a second correction coefficient that matches both the actual driving scene and the information browsing preference is calculated.
[0074] In simple terms, the third solution includes the above two solutions at the same time in order to determine a more accurate second correction coefficient by considering more influencing factors.
[0075] Based on any of the above embodiments, it should be noted that, in order to avoid excessive deformation of the interface on the display screen, the upper and lower limits of the resizing of the new font size relative to the default font size may be controlled to not exceed a preset multiple, which may be 1.25 times. Furthermore, when the passenger is a driver, the aforementioned font size adjustment operation may be controlled to begin after the driver's cumulative driving time exceeds a preset time period, which may preferably be 4 hours. That is, the font size will not be adjusted during the driver's non-fatigue driving period before the preset time period.
[0076] Furthermore, during the subsequent font size adjustment process for the driver, the adjustment interval of the adjustment operation (for example, selected between 15-45 minutes, the higher the fatigue level, the shorter the adjustment interval) and the single font size adjustment amplitude (for example, it can be selected between 5% and 8%, the higher the fatigue level, the larger the adjustment amplitude) can also be determined according to the driver's fatigue level. Among them, the fatigue level can be characterized by a fatigue index. The specific fatigue index can be calculated by the formula: Fv = Tb / Tn, Tb is the blink time interval, and Tn is the normal blink time interval. Specifically, regardless of the fatigue level and driving scenario, the maximum cumulative font size adjustment amplitude cannot exceed 25%. For example, when driving in a mountainous area and the fatigue index Fv>1.4, the font size is adjusted by 9% every 15 minutes. When the cumulative adjustment amplitude reaches 15%, the font size will no longer be adjusted even if the driving has not ended.
[0077] In addition to the font size adjustment scheme provided in the above embodiment, when the passenger is the driver, the contrast of the interface content presented on the display screen can also be adjusted based on the driver's fatigue level. The level of fatigue is directly proportional to the contrast. That is, the higher the driver's fatigue index, the higher the interface contrast, and vice versa. Specifically, if Fv>1.2, it can be determined as visual fatigue, and the interface contrast can be increased by 10% to 15%; if Fv<0.8, the interface contrast can be reduced by 5% to 10%.
[0078] Similarly, when the passenger is the driver, the color temperature of the display screen can also be adjusted according to the actual driving speed of the driver and the ambient light intensity. The driving speed is directly proportional to the color temperature, that is, the higher the driving speed, the higher the color temperature. Cool colors can enhance the driver's attention. The intensity of the ambient light is directly proportional to the color temperature, that is, the weaker the ambient light, the lower the color temperature. On the one hand, the blue light filtering effect can be enhanced to reduce glare. On the other hand, it can be adjusted to a warmer color tone (about 4500K-5000K) to provide a more comfortable visual experience.
[0079] To deepen understanding, this disclosure provides a specific implementation solution for drivers in driving scenarios, mainly adjusting font size: Step 1: Use infrared camera for eye tracking and focus detection 1) Data collection: Use an infrared camera or a visible light camera to capture the driver's eye image; 2) Pupil diameter change rate calculation: A convolutional neural network with an attention mechanism (i.e., the eye static feature extraction model mentioned in the above embodiment) and an LSTM deep learning algorithm are used to analyze continuous eye images to obtain eye tracking data and calculate the driver's pupil diameter change rate. The eye static feature extraction model is primarily responsible for extracting static eye features, such as pupil diameter, iris boundary, and eyelid status, from images captured by the camera. The introduced attention mechanism is used to identify key eye regions (such as pupil, iris, and eyelid) and non-key eye regions (such as background, corner of eye, and eyebrow) when extracting eye static features. This means that when extracting features, key eye regions are given a greater attention weight than non-key eye regions, allowing for focused feature extraction and improving the accuracy of extracting key eye features related to focal length. The LTSM analyzes the dynamic changes of eye features over time, formed by the time series of eye static features extracted by the eye static feature extraction model, to determine dynamic patterns related to focal length, such as pupil contraction / dilation, blinking frequency, and changes in muscle tension.
[0080] 3) Focal length calculation: The user's current focus distance can be estimated by the rate of change of pupil diameter. The formula can be used: = / ,in is the focal length of the camera (known parameter), is the pupil diameter change rate; 4) Combined with seat sensors to detect the distance from the driver's eyes to the screen , and finally calculate the optimal clear visual range: Dopt = + .
[0081] Step 2: Adaptively adjust the map interface based on the optimal clear visual range Dopt
[0082] 1) Adjust the font size of the map interface as follows: = ×Dopt / baseline ×K; in, For the adjusted font size, For the default font size, Baseline is the standard visual focal length, and K is the adjustment factor.
[0083] The rules for dynamically adjusting font size based on the above formula are: different adjustment coefficients are set according to different driving scenarios (such as highways, urban areas, mountainous areas, etc.). For example, in highway driving scenarios, the adjustment coefficient is appropriately increased to allow drivers to quickly obtain information; in urban driving scenarios, considering the high information density, the adjustment coefficient is relatively small, as shown in Table 1 below: Table 1 Comparison between different driving scenarios and corresponding adjustment coefficients:
[0084] At the same time, the adjustment coefficient can also be modified based on the driver's historical usage habits. Assume that the driver's historical font size usage can be divided into three categories: 1. Habitually small fonts (historical average font scaling ratio is less than 105%): The coefficient correction value is 0.9-0.95. For example, in a highway scenario, if the adjustment coefficient is 1.2, considering the driver's habits, the final adjustment coefficient may be 1.2 × 0.9 = 1.08.
[0085] 2. For normal fonts (the historical average font scaling ratio is between 105% and 115%): The coefficient correction value is 1.0. This means that no additional adjustment is made to the coefficient, and the original adjustment range is maintained.
[0086] 3. Habitually large fonts (historical average font scaling ratio greater than 115%): The coefficient correction value is 1.05-1.1. For example, in urban scenarios, the adjustment coefficient is 1.05. Considering this driver's habit, the final adjustment coefficient may be 1.05 × 1.1 = 1.155. See also Table 2 below: Table 2 Correspondence between the final correction coefficients based on driving scenarios and historical habits
[0087] For example, in high-speed driving scenarios, drivers are accustomed to large fonts, and the default font size is =16 pixels, Dopt=70 cm, Baseline = 60 cm, final adjustment coefficient K = 1.3, then: =16×70 / 60×1.3≈24.27 pixels.
[0088] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an interface display parameter adjustment device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0089] like Figure 6As shown, the interface display parameter adjustment device 600 of this embodiment may include: a pupil diameter change rate determination unit 601, an eyeball focal length determination unit 602, a target visual range determination unit 603, and a display parameter adjustment unit 604. The pupil diameter change rate determination unit 601 is configured to determine the pupil diameter change rate based on an eye image captured of the passenger; the eyeball focal length determination unit 602 is configured to determine the eyeball focal length of the passenger based on the focal length of the camera capturing the eye image and the pupil diameter change rate; the target visual range determination unit 603 is configured to determine the target visual range of the passenger on the display screen based on the eyeball focal length; and the display parameter adjustment unit 604 is configured to adjust the display parameters of the interface content presented on the display screen based on the target visual range.
[0090] In this embodiment, the specific processing of the pupil diameter change rate determining unit 601, the eyeball focal length determining unit 602, the target visual range determining unit 603, and the display parameter adjusting unit 604 and the technical effects thereof can be referred to in detail. Figure 2 The relevant descriptions of steps 201-204 in the corresponding embodiment are not repeated here.
[0091] In some optional implementations of this embodiment, In some other optional implementations of this embodiment, the pupil diameter change rate determining unit 601 includes: an eye tracking data determination subunit configured to determine eye tracking data based on a sequence of eye images obtained by continuously photographing the passenger; The pupil diameter change rate determination subunit is configured to determine the pupil diameter change rate according to changes in pupil diameter in the eye tracking data.
[0092] In some other optional implementations of this embodiment, the eye tracking data determination subunit is further configured to: Extracting corresponding eye static features from each eye image in the eye image sequence using an eye static feature extraction model that incorporates an attention mechanism; wherein the eye static feature extraction model assigns greater attention weights to pupil, iris, and eyelid regions in the eye images than to other regions, including background, eye corner, and eyebrow regions; A long short-term memory network is used to extract time-varying eye tracking data from a sequence of eye static features, wherein the sequence of eye static features is constructed from each eye static feature arranged in time sequence.
[0093] In some other optional implementations of this embodiment, the eye static feature extraction model may be controlled to give a greater attention weight to the edge features of the iris region than to the color features.
[0094] In some other optional implementations of this embodiment, the target visual range determining unit 603 is further configured to: Obtaining the center of gravity of the passenger's body through a sensor of the seat in the vehicle corresponding to the passenger; Determine the actual distance between the eyes of the passenger and the display screen based on the body's center of gravity and body structure parameters; Based on the sum of the actual distance and the eye focal length, the target visual range of the passenger on the display screen is determined.
[0095] In some other optional implementations of this embodiment, the display parameter adjustment unit 604 includes: The font size adjustment subunit is configured to adjust the font size of the interface content presented on the display screen based on the target visual range.
[0096] In some other optional implementations of this embodiment, the font size adjustment subunit is further configured to: Calculating a first correction coefficient based on the target visual range and a preset standard visual focal length; Calculating a new font size based on the product of the default font size, a first correction coefficient, and a second correction coefficient; wherein the second correction coefficient is determined based on the actual driving scene and / or the information browsing preferences of the passengers; Adjust the font size of the interface content displayed on the display to the new font size.
[0097] In some other optional implementations of this embodiment, the font size adjustment subunit further includes a second correction coefficient determination subunit for determining a second correction coefficient. The second correction coefficient determination subunit is further configured to: Obtain the actual driving scene of the passenger; wherein the driving scene includes: high-speed driving scene, urban driving scene, and mountainous driving scene; A matching second correction coefficient is determined based on the driving speed and information density in the driving scenario; wherein the driving speed is directly proportional to the size of the second correction coefficient, and the information density is inversely proportional to the size of the second correction coefficient.
[0098] In some other optional implementations of this embodiment, the font size adjustment subunit further includes a second correction coefficient determination subunit for determining a second correction coefficient. The second correction coefficient determination subunit is further configured to: Obtain the information browsing preferences of passengers; A matching second correction coefficient is determined according to a preference adjustment operation on the font size in the information browsing preference; wherein the preference adjustment operation includes: preference adjustment for larger font size and preference adjustment for smaller font size.
[0099] In some other optional implementations of this embodiment, the font size adjustment subunit further includes a second correction coefficient determination subunit for determining a second correction coefficient. The second correction coefficient determination subunit is further configured to: Obtain the actual driving scene of the passenger; Determine a matching third correction coefficient based on the driving speed and information density in the driving scene; Obtain the information browsing preferences of passengers; Determining a matching fourth correction coefficient according to a preference adjustment operation on a font size in the information browsing preference; According to the product of the third correction coefficient and the fourth correction coefficient, a second correction coefficient that matches both the actual driving scene and the information browsing preference is calculated.
[0100] In some other optional implementations of this embodiment, the interface display parameter adjustment device 600 may further include: The upper and lower limit adjustment control unit is configured to control the upper and lower limits of the new font size to not exceed preset multiples compared to the default font size.
[0101] In some other optional implementations of this embodiment, the interface display parameter adjustment device 600 may further include: The first adjustment control unit is configured to control the font size adjustment operation to start after the driver's cumulative driving time exceeds a preset time in response to the passenger being a driver.
[0102] In some other optional implementations of this embodiment, the interface display parameter adjustment device 600 may further include: The adjustment interval and single adjustment range determining unit is configured to determine the adjustment interval of the adjustment operation and the single adjustment range of the font size according to the driver's fatigue level.
[0103] In some other optional implementations of this embodiment, the display parameter adjustment unit 604 may include: The contrast adjustment subunit is configured to adjust the contrast of the interface content presented on the display screen according to the driver's fatigue level in response to the passenger being the driver; wherein the level of fatigue is directly proportional to the strength of the contrast.
[0104] In some other optional implementations of this embodiment, the display parameter adjustment unit 604 may include: The color temperature adjustment subunit is configured to adjust the color temperature of the display screen in response to the passenger being a driver, according to the actual driving speed of the vehicle currently being driven by the driver and the ambient light intensity; wherein the driving speed is directly proportional to the color temperature, and the ambient light intensity is directly proportional to the color temperature.
[0105] This embodiment exists as a device embodiment corresponding to the above-mentioned method embodiment. The interface display parameter adjustment device provided in this embodiment determines the pupil diameter change rate of the passenger by taking an eye image of the passenger, and then determines the accurate eye focal length of the passenger in combination with the focal length of the camera. Based on the accurate eye focal length, the optimal clear field of view (i.e., target visual range) on the display screen that the passenger's glasses can see can be more accurately determined. Finally, the display parameters of the interface content presented on the display screen can be dynamically and automatically adjusted according to the target visual range. By applying this solution, high-precision adjustment of display parameters and a personalized visual experience can be achieved without manual operation or voice commands throughout the entire process, thereby improving the efficiency and convenience of obtaining information from the display screen during the ride and improving ride safety.
[0106] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the interface display parameter adjustment method described in any of the above embodiments can be implemented when the at least one processor executes them.
[0107] According to an embodiment of the present disclosure, the present disclosure further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the interface display parameter adjustment method described in any of the above embodiments when executed.
[0108] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, which, when executed by a processor, can implement the steps of the interface display parameter adjustment method described in any of the above embodiments.
[0109] Figure 7A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0110] like Figure 7 As shown, device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. RAM 703 may also store various programs and data required for the operation of device 700. Computing unit 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.
[0111] Various components in device 700 are connected to I / O interface 705, including an input unit 706, such as a keyboard, mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, optical disk, etc.; and a communication unit 709, such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows device 700 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0112] The computing unit 701 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as the interface display parameter adjustment method. For example, in some embodiments, the interface display parameter adjustment method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the interface display parameter adjustment method described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to perform the interface display parameter adjustment method by any other suitable means (e.g., via firmware).
[0113] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0114] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0115] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on 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), optical fibers, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0116] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0117] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0118] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers and establishing a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host. This is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and virtual private server (VPS) services.
[0119] According to the technical solution of the disclosed embodiment, the rate of change of the pupil diameter is determined by taking an eye image of the passenger, and then the exact focal length of the passenger's eyeball is determined in combination with the focal length of the camera. This allows the passenger's eyeball to more accurately determine the optimal clear field of view (i.e., the target visual range) on the display screen that the passenger's glasses can see based on the accurate eye focal length. Ultimately, the display parameters of the interface content presented on the display screen can be dynamically and automatically adjusted based on the target visual range. By applying this solution, high-precision adjustment of display parameters and a personalized visual experience can be achieved without manual operation or voice commands, improving the efficiency and convenience of obtaining information from the display screen during the ride and enhancing passenger safety.
[0120] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not a limitation herein.
[0121] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A method for adjusting interface display parameters, comprising: determining a pupil diameter change rate based on an eye image captured of the passenger; determining the eye focal length of the passenger according to the focal length of the camera that captures the eye image and the pupil diameter change rate; determining a target visual range of the passenger on the display screen based on the eye focal length; Adjust display parameters of the interface content presented by the display screen based on the target visual range.
2. The method according to claim 1, wherein Determining the pupil diameter change rate based on the eye image captured of the passenger includes: determining eye tracking data based on a sequence of eye images continuously captured from the passenger; The pupil diameter change rate is determined according to the change of the pupil diameter in the eye tracking data.
3. The method according to claim 1, wherein The step of determining eye tracking data based on a sequence of eye images continuously captured from the passenger comprises: Extracting corresponding eye static features from each eye image in the eye image sequence using an eye static feature extraction model that incorporates an attention mechanism; wherein the eye static feature extraction model assigns greater attention weights to pupil, iris, and eyelid regions in the eye images than to other regions, including background, eye corner, and eyebrow regions; A long short-term memory network is used to extract time-varying eye tracking data from a sequence of eye static features, wherein the sequence of eye static features is constructed from each eye static feature arranged in time sequence.
4. The method according to claim 3, further comprising: The eye static feature extraction model is controlled to give a greater attention weight to the edge feature of the iris region than to the color feature.
5. The method according to claim 1, wherein The determining of the target visual range of the passenger on the display screen based on the eyeball focal length includes: obtaining the body center of gravity of the passenger through a sensor of a seat in the vehicle corresponding to the passenger; determining an actual distance from the eyes of the passenger to the display screen based on the body center of gravity and body structure parameters; The target visual range of the passenger on the display screen is determined based on the sum of the actual distance and the eye focal length.
6. The method according to claim 1, wherein The adjusting the display parameters of the interface content presented by the display screen based on the target visual range includes: The font size of the interface content presented on the display screen is adjusted based on the target visual range.
7. The method according to claim 6, wherein: The adjusting the font size of the interface content presented on the display screen based on the target visual range includes: Calculating a first correction coefficient based on the target visual range and a preset standard visual focal length; Calculating a new font size based on the product of the default font size and the first correction coefficient and the second correction coefficient; wherein the second correction coefficient is determined based on the actual driving scene and / or the information browsing preference of the passenger; The font size of the interface content presented on the display screen is adjusted to the new font size.
8. The method according to claim 7, wherein: The second correction coefficient is determined by the following steps: Obtaining the actual driving scene of the passenger; wherein the driving scene includes: a high-speed driving scene, an urban driving scene, and a mountainous driving scene; A matching second correction coefficient is determined based on the driving speed and information density in the driving scenario; wherein the driving speed is directly proportional to the size of the second correction coefficient, and the information density is inversely proportional to the size of the second correction coefficient.
9. The method according to claim 7, wherein: The second correction coefficient is determined by the following steps: Obtaining the information browsing preference of the passenger; A matching second correction coefficient is determined according to a preference adjustment operation on the font size in the information browsing preference; wherein the preference adjustment operation includes: preference for increasing the font size and preference for decreasing the font size.
10. The method according to claim 7, wherein: The second correction coefficient is determined by the following steps: Obtaining the actual driving scene of the passenger; determining a matching third correction coefficient according to the driving speed and information density in the driving scenario; Obtaining the information browsing preference of the passenger; determining a matching fourth correction coefficient according to the preference adjustment operation on the font size in the information browsing preference; A second correction coefficient that matches both the actual driving scene and the information browsing preference is calculated based on the product of the third correction coefficient and the fourth correction coefficient.
11. The method according to any one of claims 6 to 10, further comprising: The upper limit and the lower limit of the size adjustment of the new font size compared to the default font size are controlled to not exceed a preset multiple.
12. The method according to claim 11, further comprising: In response to the passenger being a driver, the operation of adjusting the font size is controlled to begin after the driver's cumulative driving time exceeds a preset time.
13. The method according to claim 12, further comprising: An adjustment interval of the adjustment operation and a single adjustment amplitude of the font size are determined according to the fatigue level of the driver.
14. The method according to claim 1, wherein The adjusting the display parameters of the interface content presented by the display screen based on the target visual range includes: In response to the passenger being a driver, the contrast of the interface content presented on the display screen is adjusted according to the driver's fatigue level; wherein the level of fatigue is directly proportional to the strength of the contrast.
15. The method according to claim 1, wherein The adjusting the display parameters of the interface content presented by the display screen based on the target visual range includes: In response to the passenger being a driver, the color temperature of the display screen is adjusted according to the actual driving speed of the vehicle currently being driven by the driver and the ambient light intensity; wherein the driving speed is directly proportional to the color temperature, and the ambient light intensity is directly proportional to the color temperature.
16. An interface display parameter adjustment device, comprising: a pupil diameter change rate determining unit configured to determine the pupil diameter change rate based on an eye image captured of the passenger; an eyeball focal length determining unit configured to determine the eyeball focal length of the passenger based on the focal length of a camera that captures the eye image and the pupil diameter change rate; a target visual range determining unit, configured to determine a target visual range of the passenger on the display screen based on the eye focal length; The display parameter adjustment unit is configured to adjust the display parameters of the interface content presented by the display screen based on the target visual range.
17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the interface display parameter adjustment method according to any one of claims 1 to 15.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the interface display parameter adjustment method according to any one of claims 1 to 15.
19. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the method for adjusting interface display parameters according to any one of claims 1 to 15.