A display parameter adjustment method, electronic device, storage medium and computer program product

By detecting the user's vision status and environmental information, electronic devices adjust display parameters, solving the problem that existing eye protection modes cannot adapt to different vision statuses, and achieving more precise vision protection and improved user experience.

CN119763510BActive Publication Date: 2025-12-05HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510268938.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-12-05
Estimated Expiration
2045-03-07

AI Technical Summary

Technical Problem

The existing eye protection mode cannot adjust the display parameters according to the user's vision status, resulting in different visual effects on users with different vision statuses for the same display effect, making it difficult to meet individual vision protection needs.

Method used

Electronic devices adjust display parameters to suit individual visual needs by detecting when a user views the screen for an extended period of time, taking into account factors such as ambient light, nearsightedness, wearing glasses, distance from the screen, posture, and age. These parameters include display contrast, color mode, font size, brightness, and screen refresh rate.

Benefits of technology

It improves the accuracy of display parameter adjustment, meets the vision protection needs of different users, reduces eye fatigue, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119763510B_ABST
    Figure CN119763510B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a display parameter adjustment method, an electronic device, a storage medium and a computer program product, and relate to the technical field of display control. The method is applied to an electronic device, and the electronic device includes a display screen. The method can adjust the display parameters of the electronic device according to actual state information such as whether the user is nearsighted, whether the user wears glasses, the distance between the user and the electronic device, the posture of the user when using the electronic device, the ambient light brightness and the age of the user, etc. when it is detected that the user watches the electronic device for a long time and the ambient light brightness is high, so that the adjusted display parameters are more individualized, the display effect corresponding to the adjusted display parameters is adapted to the vision protection needs of the user, and the accuracy of display parameter adjustment is improved. The method comprises: acquiring ambient brightness information and first information when the screen usage time is greater than a first time; and adjusting the display parameters of the display screen according to the ambient brightness information and the first information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display control technology, and in particular to a display parameter adjustment method, electronic device, storage medium, and computer program product. Background Technology

[0002] With the widespread use of electronic devices and changes in users' lifestyles and work habits, most users find it difficult to avoid spending extended periods of time looking at the screens of electronic devices such as mobile phones or computers. Prolonged screen time leads to eye strain, which in turn causes eye fatigue and can easily trigger or worsen myopia. Currently, to reduce the impact of eye fatigue on users' vision, electronic devices are equipped with screen display solutions such as eye-protection modes to alleviate eye strain.

[0003] However, the display parameters of screen display solutions such as eye protection modes are fixed, while users with different visual acuity perceive the display effect differently. Therefore, the same display effect will have different effects on the vision of users with different visual acuity, leading to varying degrees of eye strain. Consequently, current screen display solutions struggle to meet the vision protection needs of diverse users. Summary of the Invention

[0004] This application provides a display parameter adjustment method, an electronic device, a storage medium, and a computer program product. The electronic device can comprehensively adjust the display parameters of the electronic device by combining various actual status information such as whether the user is nearsighted, whether the user is wearing glasses, the distance between the user and the electronic device, the user's posture when using the electronic device, the ambient light, and the user's age when detecting that the user has been watching the electronic device for a long time and the ambient light is high. This can be more personalized and make the display effect brought by the adjusted display parameters adapt to the user's vision protection needs, thereby improving the accuracy of display parameter adjustment.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0006] In a first aspect, embodiments of this application provide a method for adjusting display parameters, which can be applied to an electronic device, including a display screen. Specifically, when the screen usage time exceeds a first duration, the electronic device can acquire ambient brightness information and first information. The first information includes at least one of eye usage status information, distance information, posture information, and age information. The ambient brightness information indicates the ambient brightness of the mobile phone during the second duration; the eye usage status information indicates whether the user is wearing glasses and whether the user is nearsighted; the distance information indicates the distance between the user and the display screen; the posture information indicates the user's head posture when viewing the display screen; and the age information indicates the user's age. The display parameters of the display screen are adjusted based on the ambient brightness information and the first information.

[0007] In this way, electronic devices can not only take into account the ambient brightness, but also adjust display parameters based on the user's actual condition information, such as whether the user is nearsighted, whether they wear glasses, the distance from the screen, their posture when viewing the screen, and their age. This makes them more personalized and allows the display effect to adapt to the user's vision protection needs, thus improving the user experience.

[0008] In conjunction with the first aspect, in one possible implementation, the above method further includes: when the screen usage duration is longer than a first duration and it is determined that the user is gazing at the display screen, acquiring ambient brightness information and the first information.

[0009] In this way, electronic devices can only acquire ambient brightness and other information when they detect that a user has been viewing the display for an extended period, and then adjust the display parameters accordingly. This avoids misjudgments caused by the user not viewing the display and improves the accuracy of display parameter adjustments.

[0010] In conjunction with the first aspect, in one possible implementation, the above method further includes: acquiring a first image when the screen usage duration exceeds a first duration; and determining whether the user is looking at the display screen based on the first image.

[0011] In this way, it is possible to accurately identify whether the user is looking at the display screen based on the first image, thereby improving the accuracy of display parameter adjustments.

[0012] In conjunction with the first aspect, in one possible implementation, the above method further includes: when the screen usage time is longer than a first duration, acquiring the ambient light brightness of the current environment and a first image; when the ambient light brightness is greater than the first brightness, determining whether the user is looking at the display screen based on the first image.

[0013] In this way, electronic devices can identify whether a user is looking at the display screen based on the first image taken in a slightly brighter environment. Compared with the first image taken in an environment with unknown brightness, this can improve the success rate of identifying whether a user is looking at the display screen, and thus improve the success rate of adjusting display parameters.

[0014] In conjunction with the first aspect, in one possible implementation, the above method further includes: displaying vision protection reminder information based on ambient brightness information and the first information, wherein the vision protection reminder information includes at least a first prompt or a second prompt, wherein the first prompt is used to remind the user that the usage time is too long, and the second prompt is used to remind the user to correct the usage posture.

[0015] In this way, based on adjusting display parameters and thus display effects, it is possible to combine various actual status information such as whether the user is nearsighted, whether they wear glasses, the distance between the user and the electronic device, the user's posture when using the electronic device, ambient light, and the user's age to remind the user to protect their eyesight in a visual way, which can meet the vision protection needs of various users.

[0016] In conjunction with the first aspect, in one possible implementation, the above method further includes: displaying a first prompt message when the user's viewing time on the display screen exceeds a reminder duration threshold, the first prompt message being used to remind the user that the viewing time is too long, and the reminder duration threshold being associated with ambient brightness information and the first message.

[0017] In this way, when it is detected that a user has been looking at the screen for too long, the system can promptly remind the user that the usage time has exceeded the limit, thus preventing eye fatigue and vision damage caused by prolonged screen viewing.

[0018] In conjunction with the first aspect, in one possible implementation, the above method further includes: displaying a second prompt message when the user's viewing time on the display screen exceeds a reminder duration threshold and the user's head posture while viewing the display screen is abnormal. The second prompt message is used to remind the user to correct their posture, and the reminder duration threshold is associated with ambient brightness information and the first information.

[0019] In this way, when it is detected that a user has been looking at the screen for a long time and that the user's head posture is abnormal while looking at the screen, the system can promptly remind the user to correct their posture and prevent the user from damaging their eyesight by looking at the screen in an abnormal posture for a long time.

[0020] In conjunction with the first aspect, in one possible implementation, the aforementioned first information includes posture information, and the aforementioned method further includes: adjusting the reminder duration threshold based on ambient brightness information and posture information.

[0021] In this way, the time threshold for vision protection reminders on electronic devices can be adjusted based on the ambient brightness and the user's posture when viewing the screen. This makes the frequency of vision protection reminders related to the ambient brightness and the user's posture, rather than mechanically reminding the user in a pre-set manner, thereby improving the flexibility and fun of vision protection reminders.

[0022] In conjunction with the first aspect, in one possible implementation, the aforementioned adjustment of the reminder duration threshold for the vision protection reminder based on ambient brightness information and posture information may include: adjusting the reminder duration threshold to a first parameter when the posture information indicates an abnormal head posture while viewing the display screen and the ambient brightness information indicates that the overall environmental attribute of the mobile phone during the second duration is a low-light environment; adjusting the reminder duration threshold to a second parameter, where the second parameter is greater than the first parameter, when the posture information indicates no abnormal head posture while viewing the display screen and the ambient brightness information indicates that the overall environmental attribute of the mobile phone during the second duration is a low-light environment; or, adjusting the reminder duration threshold to a third parameter, where the third parameter is greater than the second parameter, when the posture information indicates no abnormal head posture while viewing the display screen and the ambient brightness information indicates that the overall environmental attribute of the mobile phone during the second duration is a low-light environment; or, when the posture information indicates no abnormal head posture while viewing the display screen and the ambient brightness information indicates that the overall environmental attribute of the mobile phone during the second duration is a bright environment.

[0023] In this way, the time threshold for vision protection reminders from electronic devices can be flexibly adjusted based on the ambient brightness when the user is viewing the screen and the user's posture, thus enriching the ways in which electronic devices provide vision protection reminders.

[0024] In conjunction with the first aspect, in one possible implementation, the above method further includes: displaying the first prompt information when the screen usage time exceeds the first duration.

[0025] In this way, if it is detected that a user is using electronic devices for too long, the system can visually remind the user to protect their eyesight, thus preventing the user from using electronic devices for extended periods.

[0026] In conjunction with the first aspect, in one possible implementation, the above method further includes: displaying a second prompt message when the screen usage time exceeds the first duration and the user's head posture is abnormal while viewing the display screen.

[0027] In this way, if the system detects that a user is using an electronic device for too long and is in an abnormal posture, it can remind the user to correct their posture and prevent them from damaging their eyesight by looking at the screen in a bad posture for a long time.

[0028] In conjunction with the first aspect, in one possible implementation, the aforementioned first information includes eye use status information, and the display parameters include display contrast ratio. Adjusting the display parameters of the screen based on the ambient brightness information and the first information may include: when the eye use status information indicates that the user is wearing glasses and is nearsighted, adjusting the display contrast ratio from a first display contrast ratio to a second display contrast ratio, where the second display contrast ratio is lower than the first display contrast ratio; obtaining the user's first viewing duration at the second display contrast ratio; and when the first viewing duration is greater than a third viewing duration, adjusting the display contrast ratio from the second display contrast ratio to a third display contrast ratio, where the third display contrast ratio is lower than the second display contrast ratio.

[0029] In this way, display parameters can be adjusted based on the ambient brightness and the user's eye condition when viewing the screen, and the display contrast can be gradually reduced as the user views the screen for a longer period of time.

[0030] In conjunction with the first aspect, in one possible implementation, the aforementioned first information includes eye use status information, and the display parameters include display contrast ratio. Adjusting the display parameters of the screen based on the ambient brightness information and the first information may include: when the eye use status information indicates that the user is not wearing glasses and is nearsighted, adjusting the display contrast ratio from a first display contrast ratio to a third display contrast ratio, where the third display contrast ratio is lower than the first display contrast ratio; obtaining the user's second viewing duration at the third display contrast ratio; and when the second viewing duration is greater than a fourth viewing duration, adjusting the display contrast ratio from the third display contrast ratio to a fourth display contrast ratio, where the fourth display contrast ratio is lower than the third display contrast ratio.

[0031] In this way, during the process of adjusting display parameters based on the ambient brightness and the user's eye condition while viewing the screen, the display contrast can be gradually reduced as the user's viewing time increases. Furthermore, the initial adjustment level can be determined based on the user's visual acuity. This allows for targeted adjustments to display parameters based on the user's visual strength.

[0032] In conjunction with the first aspect, in one possible implementation, the aforementioned first information includes eye use status information. In this implementation, obtaining the first information may include: inputting a first image into a glasses detection model to obtain a first determination result, the first determination result being used to indicate whether the user is wearing glasses; if the first determination result indicates that the user is wearing glasses, determining whether the user has myopia record information to obtain a second determination result; wherein, if myopia record information exists, the second determination result indicates that the user is myopic, and if no myopia record information exists, the second determination result indicates that the user is not myopic; and obtaining the aforementioned eye use status information based on the first determination result and the second determination result.

[0033] In this way, it is possible to obtain the user's eye use status information based on the first image and the user's myopia profile information, taking into account the various eye use states of myopic users when viewing the display screen, thereby improving the accuracy and reliability of obtaining eye use status information.

[0034] In conjunction with the first aspect, in one possible implementation, the aforementioned first information includes distance information. In this implementation, obtaining the first information may include: obtaining the position coordinates of facial key points, including eye key points, from the first image; determining the interpupillary distance based on the position coordinates of the eye key points; and determining the distance between the user and the display screen based on the interpupillary distance.

[0035] In this way, the distance between the user and the display screen can be estimated by interpupillary distance, improving the convenience of electronic devices in obtaining distance information.

[0036] In conjunction with the first aspect, in one possible implementation, the aforementioned first information includes posture information. In this implementation, obtaining the first information may include: obtaining the absolute posture information of the electronic device, which is used to indicate the position of the electronic device relative to the geodetic coordinate system; obtaining the relative posture information of the user's head based on the first image, which is used to indicate the position of the user's head relative to the electronic device; and determining the user's head posture when viewing the display screen based on the absolute posture information and the relative posture information.

[0037] In this way, the absolute posture information of the electronic device and the position information of the user's head relative to the electronic device can be combined to obtain the user's head posture when viewing the display screen, thereby improving the accuracy of the posture information obtained by the electronic device.

[0038] In conjunction with the first aspect, in one possible implementation, obtaining the relative pose information of the user's head based on the first image may include: obtaining a first coordinate based on the first image, wherein the first coordinate is the position coordinate of the user's facial key points in the first image; obtaining a second coordinate based on the first image, wherein the second coordinate is the position coordinate of the user's facial key points in the three-dimensional face model corresponding to the first image; determining an affine transformation matrix from the second coordinate to the first coordinate; and determining the relative pose information of the user's head based on the affine transformation matrix.

[0039] In this way, the user's head pose information can be obtained based on only the first image, which can improve the efficiency of obtaining pose information.

[0040] In conjunction with the first aspect, in one possible implementation, the aforementioned display parameters include at least one of color mode, display contrast, font size, brightness, color temperature, or screen refresh rate.

[0041] This allows for flexible adjustment of display parameters, ensuring that the display effect of electronic devices matches the user's vision protection needs.

[0042] In a second aspect, embodiments of this application provide an electronic device, which includes a memory and one or more processors; wherein the memory is coupled to one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and when one or more processors execute the computer instructions, the electronic device performs the method described in the first aspect above.

[0043] Thirdly, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect.

[0044] Fourthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute the method described in the first aspect above. Attached Figure Description

[0045] Figure 1 This application provides a scenario diagram illustrating how an electronic device automatically adjusts its screen brightness based on ambient light intensity.

[0046] Figure 2 A schematic diagram illustrating the process of a user enabling the eye protection function in the display settings interface of a mobile phone, as provided in this embodiment of the application;

[0047] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0048] Figure 4 A flowchart illustrating a method for adjusting display parameters provided in this application embodiment;

[0049] Figure 5 An example diagram illustrating a mobile phone usage time reminder provided in this application embodiment;

[0050] Figure 6 An example diagram illustrating a mobile phone providing posture correction reminders, provided as an embodiment of this application;

[0051] Figure 7 This application provides an example flowchart of a mobile phone acquiring eye use status information.

[0052] Figure 8 This application provides an example flowchart of a mobile phone acquiring distance information.

[0053] Figure 9A schematic diagram illustrating the principle of calculating interpupillary distance based on the position coordinates of key points of both eyes, provided in an embodiment of this application;

[0054] Figure 10 This application provides a schematic diagram illustrating the principle of determining distance information based on interpupillary distance in an embodiment of the present application.

[0055] Figure 11 This application provides an example flowchart of a mobile phone acquiring posture information.

[0056] Figure 12 An example flowchart for adjusting display parameters provided in this application embodiment;

[0057] Figure 13 An example flowchart for adjusting a reminder duration threshold provided in this application embodiment;

[0058] Figure 14 An example flowchart of a display parameter adjustment method provided in an embodiment of this application;

[0059] Figure 15 An example flowchart of another display parameter adjustment method provided in an embodiment of this application. Detailed Implementation

[0060] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, "at least one" refers to one or more, and "more than" refers to two or more. Furthermore, to facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first," "second," etc., are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences. It should also be understood that the term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0061] In the embodiments described herein, references to "one embodiment" or "some embodiments" mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of the embodiments of this application, do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes both direct and indirect connections, unless otherwise stated.

[0062] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0063] In conventional technology, electronic devices are usually equipped with eye protection functions. If the eye protection function of an electronic device is turned on, the device can automatically adjust the screen brightness according to the ambient light, so that the screen brightness increases with the increase of ambient light, thereby avoiding eye fatigue caused by excessively bright or dim screen brightness and protecting the user's eyesight.

[0064] Please see Figure 1 , Figure 1 This illustration shows a scenario where an electronic device, according to an embodiment of this application, automatically adjusts its screen brightness based on ambient light. Figure 1 As shown, when the eye protection function of the phone 101 is turned on, when the user moves the phone 101 from a bright environment to a dark environment, the phone 101 can respond to the dimming of the ambient light by lowering the screen display brightness, for example, adjusting the screen display brightness from 30 lumens (lm) to 10 lumens, so that the screen display brightness of the electronic device is adapted to the ambient light brightness, avoiding eye fatigue and thus protecting the user's eyesight.

[0065] The eye protection function on the iPhone 101 requires user intervention to activate. The following explanation uses the iPhone 101 as an example, along with the attached... Figure 2 This section describes the process of enabling eye protection features on electronic devices.

[0066] Users can enable the eye protection function of the phone in the display settings interface of the phone 101.

[0067] For example, Figure 2 This illustration shows a process where a user enables the eye protection function in the display settings interface of a mobile phone, according to an embodiment of this application. Figure 2 As shown, the display function settings interface 102 of mobile phone 101 includes a health display list 103, which includes options such as "Eye Protection and Sleep" 1031 and "E-book Mode". Mobile phone 101 can receive the user's click on "Eye Protection and Sleep" 1031, and in response to this operation, mobile phone 101 can display as follows: Figure 2 The eye protection and sleep function settings interface shown is 104.

[0068] like Figure 2 As shown, the eye protection and sleep function settings interface 104 includes an eye protection mode function setting option 105, which includes a "Scheduled On" option and an "All Day On" option. The phone 101 can receive a user's click on the "Scheduled On" option, and in response, the phone 101 can schedule the eye protection mode function to be activated. Alternatively, the phone 101 can receive a user's click on the "All Day On" option, and in response, the phone 101 can activate the eye protection mode function all day long. This allows the user to activate the eye protection function of the phone 101.

[0069] With the eye protection function of the Phone 101 enabled, the Phone 101 can automatically adjust the screen brightness according to the ambient light. In addition, the Phone 101 can also automatically adjust the screen's color saturation according to the ambient light, so that the display effect of the Phone 101 adapts to the ambient light, reducing eye fatigue when using electronic devices.

[0070] However, current screen display solutions can only adjust the screen brightness to a pre-configured brightness based on changes in ambient light, or adjust the screen's color saturation to a pre-set color saturation based on changes in ambient light, while ignoring the differences in how users perceive display effects under different visual conditions, making it difficult to meet the vision protection needs of users with different visual conditions.

[0071] To at least solve the above problems, embodiments of this application provide a display parameter adjustment method that can be applied to electronic devices.

[0072] Specifically, the electronic device can be a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), desktop computer, laptop computer, handheld computer, netbook, personal digital assistant (PDA), or other terminal device that supports mobile communication functions. This application does not impose any restrictions on the type or specific form of the electronic device.

[0073] The display parameter adjustment method provided in this application embodiment can comprehensively adjust the display parameters of the electronic device based on actual status information such as whether the user is nearsighted, whether they wear glasses, the distance between the user and the electronic device, the user's posture when using the electronic device, the ambient light, and the user's age when the user is watching the electronic device for a long time. This method can be more personalized and make the display effect brought about by the adjusted display parameters adapt to the user's vision protection needs, thereby improving the accuracy of display parameter adjustment.

[0074] The electronic devices involved in the embodiments of this application will be described in detail below.

[0075] In some embodiments, please refer to Figure 3 This diagram illustrates the structure of an electronic device according to an embodiment of this application. It should be noted that this electronic device may refer to the aforementioned mobile phone 101. It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include... Figure 3 It may contain more or fewer components, or combine some components, or separate some components, or arrange the components differently. The components shown in the diagram may be implemented in hardware, software, or a combination of software and hardware.

[0076] like Figure 3 As shown, the electronic device 200 provided in this application embodiment may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, and a display screen (touchscreen) 294, etc.

[0077] The aforementioned sensor module 280 may include sensors such as pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, and bone conduction sensors.

[0078] Processor 210 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0079] A controller can be the nerve center and command center of an electronic device. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.

[0080] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves system efficiency. The memory may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory can store an operating system, such as uCOS, VxWorks, RTLinux, or other embedded operating systems.

[0081] In some embodiments, the processor 210 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0082] It is understood that the interface connection relationships between the modules illustrated in this embodiment are merely illustrative and do not constitute a structural limitation on the electronic device. In other embodiments, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0083] The wireless communication function of an electronic device can be implemented through an antenna 250, a wireless communication module 260, a modem processor, and a baseband processor. In some embodiments, the antenna 250 and the wireless communication module 260 are coupled, enabling the electronic device to communicate with networks and other devices via wireless communication technology.

[0084] Antenna 250 is used to transmit and receive electromagnetic wave signals. Each antenna 250 in an electronic device can be used to cover one or more communication frequency bands. Different antennas 250 can also be reused to improve the utilization of antenna 250. For example, antenna 250 can be reused as a diversity antenna 250 for a wireless local area network. In some other embodiments, antenna 250 can be used in conjunction with a tuning switch.

[0085] The wireless communication module 260 can provide solutions for wireless communication applications in electronic devices, including WLAN (such as wireless fidelity, Wi-Fi) networks, Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, and other wireless communication technologies.

[0086] The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 250, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 250.

[0087] The external storage interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0088] Internal memory 221 can be used to store computer executable program code, which includes instructions. Processor 210 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 221. For example, in this embodiment, processor 210 can execute instructions stored in internal memory 221, which may include a program storage area and a data storage area.

[0089] The program storage area can store the operating system, at least one application program required for a function (such as audio playback, data transfer, etc.). The data storage area can store data created during the use of the electronic device (such as audio file data, voice call data, etc.). Furthermore, the internal memory 221 can include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0090] The following will describe the flow of the display parameter adjustment method provided in the embodiments of this application with reference to the accompanying drawings.

[0091] like Figure 4 The diagram shown is a flowchart of a display parameter adjustment method provided in an embodiment of this application. Wherein, Figure 4 Taking a mobile phone as an example, the display parameter adjustment method provided in this application embodiment is illustrated by way of example. The display parameter adjustment method includes:

[0092] S101, Mobile phone obtains screen usage time.

[0093] Among them, screen usage time can be defined as the duration of the phone's last screen-on state.

[0094] In one implementation, "the phone is in a screen-on state" can mean that the phone's display screen is on.

[0095] In another implementation, "screen on" can refer to the phone's display being on and a specified application running in the foreground. The type and number of specified applications are not limited, but they must include at least applications used by the user to view the display; for example, specified applications could be audio and video playback applications. The source of the specified applications is also not limited; for example, they could be system software installed on the phone or third-party applications. Optionally, the type of specified applications is also not limited; for example, specified applications could be video / short video playback applications, social media applications, instant messaging applications, or games.

[0096] By obtaining screen usage time, mobile phones can easily monitor how long users spend using their phones, preventing eye strain and vision damage caused by prolonged phone use.

[0097] S102. The phone determines whether the screen usage time is greater than the first duration.

[0098] If the screen usage time is greater than the first duration, then S103 is executed; if the screen usage time is less than or equal to the first duration, then S101 is executed.

[0099] As one implementation method, the mobile phone can compare the screen usage time with a first duration to determine whether the user has been using the phone for an extended period of time, and determine whether an eye protection reminder is needed based on the determination result. The specific value of the first duration is not limited; for example, the first duration can be 30 minutes or 1 hour.

[0100] If the screen usage time exceeds the first duration, it indicates that the user has been using the phone for an extended period of time. In this case, the user may experience eye fatigue, so an eye protection reminder may be required, and S103 is executed.

[0101] If the screen usage time is less than or equal to the first duration, it means the user has not used the phone for an extended period and may not yet be experiencing eye strain, so an eye protection reminder is not necessary at this time. The phone can continue to collect screen usage time, corresponding to S101.

[0102] S103, The mobile phone obtains the ambient light level and first image of the current environment.

[0103] Understandably, even if screen usage time exceeds the initial time limit, it's not certain whether the user actually watched the display for an extended period. For example, if a user plays a short video on their phone for a long time but isn't looking at the screen while listening to the video content, the screen usage time exceeds the initial time limit, but the user hasn't actually been watching the display for an extended period.

[0104] Thus, in order to facilitate more accurate vision protection reminders, as one implementation method, the mobile phone can continue to acquire the ambient light level and first image of the current environment to determine whether the user is looking at the display screen, and then issue a vision protection reminder if the user is looking at the display screen.

[0105] Here, ambient light intensity refers to the light intensity of the environment surrounding the mobile phone. As one implementation method, the mobile phone can obtain the ambient light intensity of its current environment through a light sensor; the specific acquisition principle and process will not be elaborated here.

[0106] In this embodiment, the first image is an image captured under the aforementioned ambient light conditions. In some embodiments, the first image may include an image of the user's face.

[0107] It should be noted that the number of the first image is not limited. For example, the first image can be one image or multiple images.

[0108] As one implementation method, when the screen usage time exceeds a first duration, the mobile phone can acquire a first image of the current ambient light level using an image acquisition device. This image acquisition device can be the phone's front-facing camera. In this embodiment, the phone's front-facing camera can be a camera equipped with Always-on (AO) technology. Acquiring the first image using a camera with AO technology reduces the phone's power consumption.

[0109] In this embodiment, the clarity of the first image acquired by the mobile phone varies depending on the ambient light intensity of the current environment. Optionally, the higher the ambient light intensity of the current environment, the higher the clarity of the corresponding first image. Thus, in order for the mobile phone to clearly identify objects in the first image, the mobile phone can determine the level of ambient light intensity of the current environment, corresponding to S104.

[0110] In this embodiment, the order in which the mobile phone acquires the ambient light intensity and the first image is not limited. For example, the mobile phone can acquire the ambient light intensity first and then acquire the first image; the mobile phone can also acquire the first image first and then acquire the ambient light intensity; or the mobile phone can acquire the ambient light intensity and the first image simultaneously.

[0111] S104. The mobile phone determines whether the ambient light brightness is greater than the first brightness level.

[0112] If the ambient light brightness is greater than the first brightness, then S105 is executed; if the ambient light brightness is less than or equal to the first brightness, then the current judgment process ends.

[0113] In this embodiment, the first brightness can be a brightness threshold value that allows the mobile phone to accurately recognize a face in the first image. The specific value of the first brightness is not limited; for example, the first brightness can be 10 lumens or 20 lumens.

[0114] The intensity of ambient light can affect the accuracy of a mobile phone in recognizing the human eye posture in a first image. For example, if the ambient light is weak, the mobile phone may not be able to accurately recognize the human eye posture in the first image. Therefore, as one implementation method, the mobile phone can compare the ambient light intensity with a first brightness level to determine whether it can clearly identify the human eye posture in the first image.

[0115] Specifically, when the ambient light intensity is greater than the first brightness level, the first image captured under this ambient light intensity is clearer, allowing the phone to clearly identify the posture of the human eye in the first image captured under this ambient light intensity. Based on this, the phone can determine whether the user is viewing the display screen based on the first image, corresponding to S105.

[0116] When the ambient light intensity is less than or equal to a first brightness level, the first image captured under this ambient light intensity is blurry. Therefore, the phone cannot clearly identify the posture of the human eye in the first image captured under this ambient light intensity, and thus cannot determine whether the user is looking at the display screen. In this case, the phone can ignore the current ambient light intensity and end the current judgment process.

[0117] S105. The mobile phone determines whether the user is looking at the display screen based on the first image.

[0118] If the user is looking at the display screen, step S106 is executed; if the user is not looking at the display screen, the current judgment process can be terminated.

[0119] In this embodiment, when the ambient light intensity is greater than a first brightness level, the mobile phone can recognize the first image and obtain the human eye posture. The human eye posture is used to indicate whether the user is looking at the display screen.

[0120] In some examples, a mobile phone can identify the eye pose in a first image using a gaze detection model. The phone inputs the first image into the gaze detection model, which outputs a first probability and a second probability. The first probability represents the probability that the user's eyes are looking at the display screen, and the second probability represents the probability that the user's eyes are not looking at the display screen. The phone then compares the first and second probabilities to determine the eye pose, i.e., whether the user is looking at the display screen. If the first probability is greater than or equal to the second probability, the phone determines that the user is looking at the display screen; if the first probability is less than the second probability, the phone determines that the user is not looking at the display screen.

[0121] In this embodiment, when the user is looking at the display screen, in order to avoid eye fatigue caused by prolonged viewing of the display screen, the mobile phone can obtain ambient brightness information, eye use status information, distance information, posture information and age information, corresponding to S106; and then adjust the display parameters according to the ambient brightness information, eye use status information, distance information, posture information and age information to adjust the display effect of the display screen and alleviate the user's visual fatigue, corresponding to S107.

[0122] Furthermore, to prevent users from damaging their eyesight by prolonged screen viewing, such as leading to increased myopia, as one implementation method, the mobile phone can provide vision protection reminders based on ambient brightness information, eye usage status information, distance information, posture information, and age information, corresponding to S108.

[0123] In this embodiment, if the user is not looking at the display screen, there is no possibility of eye strain or damage to the user's vision due to prolonged viewing of the display screen, so the judgment process can be terminated.

[0124] It should be noted that in the S103, ambient light brightness can be omitted, meaning the phone can directly determine whether the user is looking at the display screen based on the first image.

[0125] S106. The mobile phone obtains ambient brightness information, eye use status information, distance information, posture information, and age information. The ambient brightness information is used to indicate the ambient brightness of the mobile phone in the second time period. The eye use status information is used to indicate whether the user is wearing glasses and whether the user is nearsighted. The distance information is used to indicate the distance between the user and the display screen. The posture information is used to indicate the posture of the user's head when viewing the display screen. The age information is used to indicate the user's age.

[0126] In some implementations, at least one of the following information—eye use status, distance, posture, and age—may be referred to as the first information.

[0127] In this embodiment, the ambient brightness information may include overall environmental attributes and ambient brightness values, wherein the overall environmental attributes may be a bright light environment or a dark light environment.

[0128] The second duration represents the time period closest to the current time. The specific value of the second duration is not limited. For example, the second duration can be the most recent 10 seconds, the most recent 30 seconds, the most recent 1 minute, or the most recent 5 minutes.

[0129] Considering that a phone may briefly enter a low-light environment while the user is viewing the display—for example, during the day when the user is viewing the display, they might put the phone in their pocket, or take it into a subway or tunnel—the phone will be in a low-light environment for a brief moment. However, this does not mean the user is viewing the display in a consistently low-light environment. In other words, the instantaneous ambient light brightness does not accurately reflect the ambient light level when the user is viewing the display.

[0130] Therefore, when obtaining the ambient brightness when a user views the display screen, the overall ambient brightness of the user's viewing environment over a period of time can be obtained, i.e., the aforementioned ambient brightness information.

[0131] As one implementation method, the mobile phone can determine ambient brightness information based on the ambient light intensity within a second time period. Specifically, the mobile phone can acquire the ambient light intensity within the second time period to obtain multiple ambient light intensities; then determine the environmental attributes corresponding to each of the multiple ambient light intensities to obtain multiple environmental attributes, wherein the environmental attribute corresponding to each ambient light intensity is used to indicate whether the environment in which the mobile phone is located is a bright light environment or a dark light environment; then determine whether the overall environmental attribute of the mobile phone within the second time period is a bright light environment or a dark light environment based on the multiple environmental attributes, so as to obtain ambient brightness information.

[0132] The mobile phone can compare each ambient light brightness with the second brightness to obtain the environmental attributes corresponding to each ambient light brightness. In this embodiment, the second brightness is greater than the first brightness. For example, the first brightness can be 10 lumens, while the second brightness can be 50 lumens.

[0133] For each ambient light level, if the ambient light level is greater than the second brightness level, the environmental attribute corresponding to that ambient light level can be determined as a bright light environment; if the ambient light level is less than or equal to the second brightness level, the environmental attribute corresponding to that ambient light level can be determined as a dark light environment. In this way, multiple environmental attributes of the mobile phone during the second time period can be initially obtained.

[0134] Furthermore, the overall environmental attributes of the mobile phone during the second duration can be determined based on multiple environmental attributes, whether it is a bright light environment or a dark light environment.

[0135] In one implementation, the mobile phone can obtain a weighted average of the ambient light intensity values ​​of multiple ambient light intensity values ​​that indicate a bright environment, for example, a first weighted average; and obtain a weighted average of the ambient light intensity values ​​of multiple ambient light intensity values ​​that indicate a dark environment, for example, a second weighted average. Further, the mobile phone can compare the first weighted average and the second weighted average. If the first weighted average is greater than the second weighted average, it can be determined that the overall environmental attribute of the mobile phone during the second time period is a bright environment; if the first weighted average is less than or equal to the second weighted average, it can be determined that the overall environmental attribute of the mobile phone during the second time period is a dark environment.

[0136] It should be noted that in some examples, for multiple ambient light intensities within the second time period, the ambient light intensities closer to the current time can have a larger weight, while the ambient light intensities farther from the current time can have a smaller weight.

[0137] Based on this, for the aforementioned first weighted average, the ratio of the product of the ambient light intensity and its corresponding weight for a bright environment to the ratio of the product of multiple ambient light intensities and their respective weights can be determined as the first weighted average. Similarly, for the aforementioned second weighted average, the mobile phone can determine the second weighted average by the ratio of the product of the ambient light intensity and its corresponding weight for a dark environment to the ratio of the product of multiple ambient light intensities and their respective weights.

[0138] For example, suppose that the ambient light intensities within the second time period include ambient light intensities 1, 2, 3, 4, and 5, ordered from morning to night. The ambient light intensities corresponding to ambient light intensities 1 are "a", 2 are "b", 3 are "c", 4 are "d", and 5 are "e". The weights corresponding to ambient light intensities 1, 2, 3, 4, and 5 are A, B, C, D, and E respectively. Therefore, A < B < C < D < E. If ambient light luminance 1 is greater than the second luminance, ambient light luminance 2 is less than or equal to the second luminance, ambient light luminance 3 is greater than the second luminance, ambient light luminance 4 is less than or equal to the second luminance, and ambient light luminance 5 is greater than the second luminance, then it can be determined that: the environmental attribute of the mobile phone under ambient light luminance 1 is a bright light environment, the environmental attribute of the mobile phone under ambient light luminance 2 is a dark light environment, the environmental attribute of the mobile phone under ambient light luminance 3 is a bright light environment, the environmental attribute of the mobile phone under ambient light luminance 4 is a dark light environment, and the environmental attribute of the mobile phone under ambient light luminance 5 is a bright light environment, thus obtaining 5 environmental attributes.

[0139] Furthermore, the mobile phone can obtain the first weighted average, denoted as Z1:

[0140] Z1=((a*A)+(c*C)+(e*E)) / ((a*A)+(b*B)+(c*C)+(d*D)+(e*E)).

[0141] And obtain the second weighted average, denoted as Z2:

[0142] Z2=((b*B)+(d*D)) / ((a*A)+(b*B)+(c*C)+(d*D)+(e*E)).

[0143] Furthermore, the phone can compare Z1 and Z2. If Z1 is greater than Z2, it can be determined that the overall environmental attribute of the phone during the second time period is a bright environment; if Z1 is less than or equal to Z2, it can be determined that the overall environmental attribute of the phone during the second time period is a dark environment.

[0144] In another implementation, the phone can compare the number of times a bright environment occurs with the number of times a dark environment occurs among multiple environmental attributes. If the number of times a bright environment occurs is greater than the number of times a dark environment occurs, it can be determined that the overall environmental attribute of the phone during the second time period is a bright environment; if the number of times a bright environment occurs is less than or equal to the number of times a dark environment occurs, it can be determined that the overall environmental attribute of the phone during the second time period is a dark environment.

[0145] The ambient brightness value of the mobile phone during the second time period can be the average of the ambient brightness values ​​corresponding to multiple ambient light brightness values ​​with the same environmental attributes as the overall environment. It should be noted that the multiple ambient light brightness values ​​here refer to multiple ambient light brightness values ​​of bright environment attributes or multiple ambient light brightness values ​​of dark environment attributes.

[0146] In this way, taking the above example as an example, when the overall environmental attribute is a bright environment, the ambient brightness value of the mobile phone in the second time period can be the average of the ambient brightness value "a" of ambient brightness 1, the ambient brightness value "c" of ambient brightness 3 and the ambient brightness value "e" of ambient brightness 5, that is, (a+c+e) / 3.

[0147] Alternatively, in the case of a dark environment, the ambient brightness value of the mobile phone in the second time period can be the average of the ambient brightness value "b" of ambient brightness 2 and the ambient brightness value "d" of ambient brightness 4, that is, (b+d) / 2.

[0148] It should be noted that the phone can also obtain ambient brightness information after S103.

[0149] In this embodiment, the mobile phone can determine the user's eye usage status and corresponding visual acuity based on eye usage status information. Specifically, based on the eye usage status information, it can be determined whether the user wears glasses and is nearsighted, or does not wear glasses and is nearsighted, or does not wear glasses and is not nearsighted.

[0150] Among them, the visual acuity of users who do not wear glasses and are not nearsighted is better than that of users who wear glasses and are nearsighted, and the visual acuity of users who wear glasses and are nearsighted is better than that of users who do not wear glasses and are nearsighted.

[0151] Optionally, if the eye use status information indicates that the user is nearsighted, the eye use status information may also include the degree of nearsightedness.

[0152] In one implementation, the mobile phone can determine whether the user is wearing glasses based on the aforementioned first image, and determine whether the user is nearsighted based on whether the mobile phone stores the user's myopia profile information (such as myopia degree information), thereby obtaining eye use status information.

[0153] Specifically, the phone can use a glasses detection model to identify faces in the first image to determine whether the user is wearing glasses. Furthermore, if the phone has stored the user's myopia profile information, it can determine that the user is myopic; if the phone does not have this information, it can determine that the user is not myopic.

[0154] By obtaining information about eye usage, mobile phones can better determine the strength of a user's vision when looking at a screen, and thus determine how to provide vision protection reminders.

[0155] In this embodiment, distance information can be specifically understood as the distance between the user's eyes and the display screen.

[0156] In some implementations, the aforementioned distance can be a rough estimate or a calculated distance. In this case, the distance between the user's eye and the display screen can be categorized as far, medium, or near.

[0157] In other implementations, the aforementioned distance can be a precisely calculated distance. In this case, the distance between the user's eye and the display screen is a precise value.

[0158] As one implementation method, mobile phones can use technologies such as iris tracking or facial recognition to determine the distance between the user's eyes and the display screen; the specific determination process will not be elaborated here.

[0159] By obtaining the distance between the user's eyes and the display screen, the phone can determine whether the user is viewing the screen at a distance that affects their eyesight, and thus determine whether an eye protection reminder is needed.

[0160] In this embodiment, the mobile phone can determine whether the user's posture is abnormal when viewing the display screen based on posture information. Optionally, if the user's posture is abnormal when viewing the display screen, a vision protection reminder needs to be issued; if the user's posture is normal when viewing the display screen, a vision protection reminder does not need to be issued.

[0161] In one implementation, the posture information can be a tilted-back posture, a tilted-back posture, a lying-on posture, or a level-looking posture. Among these, the tilted-back posture, the tilted-back posture, and the lying-on posture are abnormal postures of the user when viewing the display screen.

[0162] As one implementation method, the mobile phone can obtain the user's head pitch angle or head roll angle, and determine the user's posture when viewing the display screen and whether the posture is abnormal. The head pitch angle represents the user's head's pitch angle in a three-dimensional coordinate system, and the head roll angle represents the user's head's rotation angle in a three-dimensional coordinate system. The specific process of obtaining the head pitch angle and head roll angle will not be elaborated here.

[0163] Optionally, if the absolute value of the head pitch angle is greater than a first angle (the specific value is not limited, for example, the first angle can be 30°), it can be determined that the user's head is in a tilted-up or tilted-down posture, and that the user's posture while viewing the display screen is abnormal. If the absolute value of the head tumble angle is a second angle (the specific value is not limited, for example, the second angle can be 90 (±20)°), it can be determined that the user's head is in a side-lying posture, and that the user's posture while viewing the display screen is abnormal.

[0164] By acquiring the user's posture information when viewing the screen, the mobile phone can easily monitor whether the user's posture is abnormal and provide vision protection reminders when abnormal posture is detected.

[0165] In this embodiment, the mobile phone can determine the user's age information based on the first image, and the age information is used to indicate the user's age.

[0166] Optionally, users' ages can be categorized into age groups such as teenagers, young adults, middle-aged adults, or seniors. The seniors are older than the middle-aged, the middle-aged are older than the young adults, and the young adults are older than the teenagers.

[0167] As one implementation method, the mobile phone can estimate the user's age range based on the skin texture or the distance between facial key points in the first image, and thus determine the user's age.

[0168] In some examples, the phone can use models such as Deep Regression Forests (DRFs) to identify the first image and obtain the user's age information.

[0169] It should be noted that the phone can also obtain age information based on the first image after S103.

[0170] Furthermore, in this embodiment, the mobile phone can adjust the display parameters of the screen based on ambient brightness information and the first information. The first information may include at least one of the aforementioned eye-use status information, distance information, posture information, and age information. The process of adjusting the display parameters of the mobile phone will be exemplarily described below, corresponding to S107, using the example of the first information including eye-use status information, distance information, posture information, and age information.

[0171] S107: The phone adjusts display parameters based on ambient brightness, eye usage, distance, posture, and age.

[0172] In this embodiment, the display parameters may include at least one of the following: color mode, display contrast, font size, brightness, color temperature, or display refresh rate.

[0173] Color temperature refers to the color of the light emitted by the screen. Cool-toned screens have a bluish tint and a higher color temperature, making them suitable for use in daylight or brightly lit environments. Warm-toned screens have a yellowish tint and a lower color temperature, making them suitable for use at night or in dimly lit environments.

[0174] Color modes can be divided into dark mode and light mode. Light mode is a display mode where a light color (such as white) is used as the background, and dark text or icons are displayed in front. In bright environments, light mode reduces screen glare, improves screen visibility, and more accurately reproduces the colors of images and videos. Dark mode is also a display mode. Dark mode reduces blue light damage and alleviates eye strain by adjusting the screen background color and text contrast. In dark mode, the screen background becomes dark (such as black or dark gray), while text, icons, and other elements are displayed in light colors.

[0175] Display contrast ratio is a parameter used to measure the display quality of a screen. It reflects the screen's ability to distinguish between bright (white) and dark (black) areas in the same image. The higher the display contrast ratio, the more distinct the light and dark levels of the image displayed, and the richer and more vibrant the colors.

[0176] The refresh rate of a display screen refers to the number of times the screen updates its image per second, measured in Hertz (Hz).

[0177] As one implementation method, with eye usage status information, distance information, posture information, and age information remaining unchanged, the brighter the ambient brightness indicated by the ambient brightness information, the higher the brightness of the display screen can be. The color temperature can be adjusted from "warm" to "cool," and the color mode of the display screen can be adjusted from "dark mode" to "light mode." This improves the visibility of the display screen in bright environments, ensuring that users can clearly see the content on the display screen.

[0178] Optionally, in the above scenario, the darker the ambient light indicated by the ambient brightness information, the lower the display brightness can be, the color temperature can be adjusted from "cool" to "warm," and the display color mode can be adjusted from "light mode" to "dark mode." This can prevent eye strain caused by prolonged use and protect the user's vision.

[0179] As one implementation method, with ambient brightness, distance, posture, and age information remaining constant, the stronger the user's visual acuity indicated by the eye use status information, the higher the display contrast, the smaller the font size, the higher the display refresh rate, and the lower the brightness of the screen. This makes it easier for users to identify the content displayed on the screen.

[0180] Understandably, when a user's retina receives high-contrast signals, it may trigger excessive elongation of the eye axis, leading to rapid myopia progression. Therefore, in such cases, the weaker the user's vision indicated by eye usage information, the lower the display contrast, the larger the font size, the lower the display refresh rate, and the higher the brightness. In this way, controlling the contrast may help reduce the signals emitted by the retina that cause eye axis elongation, thereby slowing the progression of myopia; simultaneously, it allows users to clearly see the content displayed on the screen.

[0181] It should be noted that while brightness can normally be adjusted according to changes in ambient light, for users with weakened vision, such as those who are nearsighted and not wearing glasses, the screen brightness can be appropriately increased, potentially exceeding a preset value. For example, if a user's vision is detected to be weak, the screen brightness can be increased from 20 lumens to 40 lumens (the preset value). Furthermore, to allow the user to view the content more clearly, the electronic device can increase the screen brightness from 40 lumens to 50 lumens.

[0182] As one implementation method, with ambient brightness, eye use status, posture, and age information remaining constant, the further the distance from the information indicator, the larger the font size and the higher the brightness of the display screen can be. This allows users to clearly identify the content displayed on the screen even in bright environments.

[0183] Optionally, in this case, the closer the user is to the information indicator, the smaller the font size and the lower the brightness of the display screen can be. This avoids eye strain and potential vision damage caused by excessive brightness when the user views the screen at close range. It should be noted that when the distance to the information indicator is too small, the electronic device can increase the font size to ensure the user can clearly see the content on the screen. Optionally, the degree to which the electronic device increases the font size can be related to the user's current font size. For example, if the user's current font size is large, the increase can be smaller; if the user's current font size is small, the increase can be larger.

[0184] As one implementation method, if the posture information indicates an abnormal posture, while keeping ambient brightness, eye usage status, distance, and age information constant, the display refresh rate and brightness can be lowered. This avoids eye strain caused by excessively rapid updates to the display content, which could damage eyesight.

[0185] Optionally, in this case, if the posture information indicates no abnormality, the display brightness can be higher and the display refresh rate can be faster. This allows users to efficiently view the content displayed on the screen.

[0186] As one implementation method, with ambient brightness, eye usage status, distance, and posture information remaining constant, the older the user indicated by the age information, the larger the font size, the higher the brightness, and the higher the display contrast on the screen. This makes it easier for the user to see the content displayed on the screen.

[0187] Optionally, in this case, the younger the user's age indicated by the age information, the smaller the font size, the lower the brightness, and the lower the display contrast can be. This helps avoid stimulating the user's eyes in bright light environments.

[0188] As can be seen from the above, a mobile phone can adjust the same display parameter based on different information. For example, a mobile phone can adjust the screen brightness based on ambient light information, or it can adjust the screen brightness based on distance or posture information. This may result in the same display parameter being repeatedly adjusted based on different information, making it difficult to ensure that the display effect after repeated adjustments will meet the user's eye protection needs.

[0189] As a way to improve this problem, the mobile phone in this application will comprehensively adjust the display parameters based on the above-mentioned ambient brightness information, eye use status information, distance information, posture information and age information, rather than adjusting the display parameters individually based on any one piece of information.

[0190] For example, if the phone determines that the first display parameter needs adjustment based on eye usage information, and also determines that the first display parameter needs adjustment based on distance information, then the phone can adjust the first display parameter simultaneously based on both eye usage information and distance information, instead of adjusting it separately. The specific type of the first display parameter is not limited; for example, the first display parameter could be font size. This avoids adjusting the same display parameter multiple times.

[0191] In this embodiment, the mobile phone will display based on the adjusted display parameters, thereby achieving the adjusted display effect.

[0192] In summary, the display parameter adjustment method provided in this application embodiment not only takes into account the ambient brightness of the mobile phone, but also takes into account the user's actual status information such as whether the user is nearsighted, whether the user is wearing glasses, the distance relative to the display screen, the posture when viewing the display screen, and the age, so as to adjust the display parameters. This makes it more personalized and allows the display effect of the display screen to adapt to the user's vision protection needs, thereby improving the user experience.

[0193] S108: The mobile phone provides vision protection reminders based on ambient brightness information, eye usage information, distance information, posture information, and age information.

[0194] The vision protection reminders include usage time reminders and posture correction reminders. The usage time reminders alert users when they have used the device for too long, while the posture correction reminders remind users to correct their posture.

[0195] In this embodiment, with eye usage status information, distance information, posture information, and age information remaining unchanged, the frequency of the phone reminding users of usage time can be increased when the ambient brightness information indicates that the ambient brightness is too bright or too dark. This can prevent users from irritating their eyes by using their eyes for extended periods in bright or dim environments, thereby protecting their vision.

[0196] With ambient brightness, distance, posture, and age information remaining constant, the stronger the user's vision indicated by the eye usage status information, the less frequently the phone can remind them of usage time and posture correction. Conversely, the weaker the user's vision indicated by the eye usage status information, the more frequently the phone can remind them of usage time and posture correction. This allows for targeted reminders based on the user's vision strength to indicate excessive phone use and to correct their posture while using the phone, thus reducing vision damage caused by prolonged screen viewing and / or abnormal postures.

[0197] Assuming ambient brightness, eye usage status, posture, and age remain constant, the greater the distance from the information indicator, the less frequently the phone can remind users of usage time and posture correction; conversely, the closer the distance, the more frequently the phone can remind users of usage time and posture correction. This reduces eye strain caused by prolonged viewing of the screen in abnormal postures and at excessively close distances, thus protecting users' eyesight.

[0198] Assuming ambient brightness, eye usage status, distance, and age remain constant, if the posture information indicates an abnormal posture, the phone can issue usage time reminders and posture correction reminders more frequently. Conversely, if the posture information indicates no abnormal posture, the phone can issue usage time reminders and posture correction reminders less frequently. This allows for adaptive vision protection reminders based on the user's posture while viewing the screen.

[0199] With ambient brightness, eye usage status, distance, and posture information remaining constant, the older the age indicated by the age information, the more frequently the phone can remind users of usage time and posture correction. Conversely, the younger the age indicated by the age information, the less frequently the phone can remind users of usage time and posture correction. This allows for targeted vision protection reminders based on the user's age, preventing eye strain and vision damage.

[0200] As can be seen from the above, mobile phones can issue the same vision protection reminder based on different information. For example, a phone could remind users of usage time based on their age or distance. This repeated vision protection reminders could interfere with normal phone use.

[0201] To improve this problem, the mobile phone in this application embodiment can provide vision protection reminders based on a combination of the above-mentioned ambient brightness information, eye use status information, distance information, posture information and age information, rather than providing vision protection reminders based on a single piece of information.

[0202] For example, if a phone needs to provide usage time reminders based on both distance and age, it can provide reminders based on both simultaneously, instead of sending separate reminders. This avoids repeatedly prompting users for eye protection, thus improving the user experience.

[0203] It should be noted that the methods for providing usage time reminders and posture correction reminders in this application are not limited. In some embodiments, the mobile phone may provide usage time reminders and posture correction reminders in at least one of the following methods: voice reminder, pop-up reminder, or alarm reminder.

[0204] For example, please refer to Figure 5 and Figure 6 , Figure 5 This is an example diagram illustrating a mobile phone usage time reminder provided in an embodiment of this application. Figure 6 This is an example diagram illustrating a mobile phone providing posture correction reminders, as provided in an embodiment of this application.

[0205] like Figure 5 As shown, if the phone 101 detects that the user has been viewing the screen for more than 30 minutes, it will display a pop-up window 106 on the screen, including a first prompt message. The first prompt message reads, "We have detected that you have been viewing the screen for an extended period of time. For your eye health, we suggest you take a short break before continuing to view the screen!" Figure 5 As shown, pop-up window 106 also includes an "OK" option and a "Close" option. The phone can respond to the user's click on the "OK" option or the "Close" option and close pop-up window 106.

[0206] like Figure 6 As shown, if the phone 101 detects that the user has been viewing the screen for more than 30 minutes and in an abnormal posture, it can display a pop-up window 107 on the screen, including a second prompt message. The second prompt message reads, "We have detected an abnormal posture while you are viewing the screen. For your eye health, we suggest you adjust your posture!" Figure 6 As shown, pop-up window 107 also includes an "OK" option and a "Close" option. The phone can respond to the user's click on the "OK" option or the "Close" option and close pop-up window 107.

[0207] S101 to S108 above describe how, when a user is detected to be viewing the display screen for an extended period of time and the ambient light is high, the mobile phone adjusts its display parameters based on factors such as whether the user is nearsighted, whether they are wearing glasses, the distance between the user and the screen, the user's posture while viewing the display screen, the ambient light, and the user's age. Compared to related technologies that only adjust the phone's display parameters based on parameters such as ambient light, the display parameter adjustment method provided in this application also takes into account the user's actual conditions, such as whether they are nearsighted, whether they are wearing glasses, their distance from the screen, their posture while viewing the display screen, and their age, to adjust the display parameters. This makes it more personalized and allows the display effect to adapt to the user's vision protection needs, thereby improving the user experience.

[0208] Meanwhile, the display parameter adjustment method provided in this application embodiment can adjust the display parameters in a unified manner by combining multiple state information, which can improve the display effect.

[0209] The process of the mobile phone acquiring eye status information, distance information, and posture information in S106 is described in detail below with reference to the accompanying drawings.

[0210] Please see Figure 7 This is an example flowchart of a mobile phone obtaining eye use status information according to an embodiment of this application. The process includes:

[0211] S201. The mobile phone inputs the first image into the glasses detection model.

[0212] The glasses detection model is a deep learning model that can accurately identify facial features in an image, including whether the user is wearing glasses.

[0213] In some examples, the glasses detection model can be a pre-trained object detection model capable of detecting whether a user is wearing glasses based on a facial image. The specific type of glasses detection model is not limited; this is merely an example.

[0214] In one implementation, the mobile phone can input the first image into the glasses detection model to identify whether the user is wearing glasses. The first image can be one or more images.

[0215] S202. Obtain the output results of the glasses detection model using a mobile phone.

[0216] In this embodiment, the output of the glasses detection model may or may not include features of the user wearing glasses.

[0217] If the first image consists of only one image, and the face in the first image is wearing glasses, the output of the glasses detection model includes the feature of the user wearing glasses; if the face in the first image is not wearing glasses, the output of the glasses detection model does not include the feature of the user wearing glasses.

[0218] When there are multiple images in the first image, the output of the glasses detection model is determined based on these multiple face images. The mobile phone can then determine whether the output of the glasses detection model includes features of the user wearing glasses based on the ratio of faces wearing glasses to those not wearing glasses in the first image. Optionally, if the ratio is greater than 1, the output of the glasses detection model can be considered to include features of the user wearing glasses; if the ratio is less than or equal to 1, the output of the glasses detection model can be considered to not include features of the user wearing glasses.

[0219] For example, if there are 5 images in the first image, and the faces in 3 images are wearing glasses while the faces in the other 2 images are not wearing glasses, then the ratio of faces wearing glasses to those not wearing glasses in the first image is 3 / 2 = 1.5. Since 1.5 is greater than 1, it can be determined that the output of the glasses detection model includes the feature of the user wearing glasses.

[0220] In this embodiment, to avoid misjudgment, the mobile phone can also determine whether the user is wearing glasses multiple times based on the first image, and cache each judgment result. Then, it can determine whether the user is wearing glasses based on the multiple judgment results. For example, if the results of determining whether the user is wearing glasses based on the first image are 10 times, and the user is determined to be wearing glasses 7 times, then it can be determined that the user is wearing glasses.

[0221] S203: The mobile phone determines whether the user is wearing glasses based on the output results.

[0222] If the phone determines that the user is wearing glasses, then S204 is executed; if the phone determines that the user is not wearing glasses, then S205 is executed.

[0223] In this embodiment, if the output of the eyeglass detection model includes features of the user wearing eyeglasses, it can be determined that the user is wearing eyeglasses; if the output of the eyeglass detection model does not include features of the user wearing eyeglasses, it can be determined that the user is not wearing eyeglasses.

[0224] If it is determined that the user is wearing glasses, then the glasses can be considered to be nearsighted glasses, and thus the user can be identified as nearsighted. This is because users typically do not wear non-nearsighted glasses (such as plano glasses or decorative glasses) for extended periods while viewing a screen.

[0225] If it is determined that the user is not wearing glasses, it is necessary to further determine whether the user is nearsighted, which corresponds to S205.

[0226] S204. The phone determines that the user is wearing glasses and is nearsighted.

[0227] S205. The mobile phone determines whether it stores the user's myopia profile information.

[0228] If the mobile phone determines that it has stored the user's myopia record information, then S206 is executed; if the mobile phone determines that it has not stored the user's myopia record information, then S207 is executed.

[0229] In this embodiment, the mobile phone can obtain the user's eye usage profile or vision profile to store the user's myopia information. The user can input their myopia information to generate the user's eye usage profile or vision profile.

[0230] Optionally, if the phone determines that it has stored the user's myopia profile information, it can determine that the user is a myopic user, corresponding to S206. If the phone determines that it has not stored the user's myopia profile information, it can determine that the user is not a myopic user, corresponding to S207.

[0231] S206. The phone determines that the user is not wearing glasses and is nearsighted.

[0232] S207. The mobile phone determines that the user is not wearing glasses and is not nearsighted.

[0233] S208, The mobile phone obtains the user's eye usage status information.

[0234] By obtaining information about eye usage, mobile phones can better determine the strength of a user's vision when looking at a screen, and thus determine how to provide vision protection reminders.

[0235] Please see Figure 8 This is an example flowchart of a mobile phone acquiring distance information according to an embodiment of this application. The process includes:

[0236] S301. The mobile phone inputs the first image into the key point recognition model and obtains the facial key points output by the key point recognition model, including the eye key points.

[0237] Among them, the key point recognition model can be used to identify facial key points in an image. The specific type of key point recognition model is not limited; for example, the key point recognition model can be an active shape model (ASM) or an active appearance model (AAM).

[0238] In one implementation, the mobile phone can input the first image into a key point recognition model to locate the key areas of the face in the first image, such as eyebrows, eyes, nose, mouth, and facial contours, and obtain facial key points.

[0239] In this embodiment, facial key points may include at least the eyes (including the left and right eyes), the nose, and the corners of the mouth (including the left and right corners of the mouth). Among them, the eyes are the eye key points.

[0240] S302. The mobile phone obtains the position coordinates of key points of the human eye.

[0241] In some implementations, the key point recognition model can learn the mapping relationship between the first image and the key point coordinates, and then output the coordinates of the facial key points, which are the coordinates of the position of the facial key points relative to the first image.

[0242] In this way, the position coordinates of key points in the human eye can be obtained.

[0243] In this embodiment, the position coordinates of the key points of the human eye can be understood as the position coordinates of the centers of the pupils of both eyes.

[0244] S303: The mobile phone determines the interpupillary distance based on the coordinates of key points in the human eye.

[0245] As one implementation method, a mobile phone can calculate the interpupillary distance (IPD) based on the coordinates of key points in both eyes. The IPD is the distance between the centers of the user's pupils.

[0246] For example, please refer to Figure 9 This is a schematic diagram illustrating the principle of calculating interpupillary distance based on the position coordinates of key points in both eyes, as provided in an embodiment of this application. Figure 9 As shown, the pupillary distance d can be calculated based on the coordinates of the user's left eye and right eye.

[0247] S304: The mobile phone determines distance information based on interpupillary distance.

[0248] Understandably, during the process of capturing the first image with a mobile phone, the closer the user is to the phone, the greater the interpupillary distance (IPD) of the user's eyes in the first image; the farther the user is from the phone, the smaller the IPD of the user's eyes in the first image.

[0249] Based on this, as one implementation method, the mobile phone can estimate the distance between the user and the display screen based on the interpupillary distance to obtain distance information.

[0250] For example, please refer to Figure 10 This is a schematic diagram illustrating the principle of determining distance information based on interpupillary distance, provided in an embodiment of this application. Figure 10As shown, the mobile phone performs keypoint recognition on three images, ultimately obtaining three different interpupillary distances (IPDs): d1, d2, and d3, where d1 is greater than d2 and d2 is greater than d3. Optionally, the mobile phone can estimate the distance between the user and the phone screen as D1 based on IPD d1, D2 based on IPD d2, and D3 based on IPD d3. Here, D1 is less than D2 and D2 is less than D3.

[0251] In this embodiment, the mobile phone can also obtain distance information through other means. For example, the mobile phone can measure the distance between the user and the display screen using a depth sensor, i.e., distance information. The depth sensor can be a sensor based on the Time of Flight (ToF) principle. The specific measurement principle and process in this method will not be elaborated here.

[0252] By obtaining the distance between the user's eyes and the display screen, the phone can determine whether the user is viewing the screen at a distance that affects their eyesight, and thus determine whether an eye protection reminder is needed.

[0253] Please see Figure 11 This is an example flowchart of a mobile phone acquiring posture information according to an embodiment of this application. The process includes:

[0254] S401. The mobile phone obtains the first coordinates based on the first image. The first coordinates are the position coordinates of the user's facial key points in the first image.

[0255] As one implementation method, the mobile phone can obtain facial key points based on the first image, and then obtain the position coordinates of the facial key points in the first image to obtain the first coordinates.

[0256] The process of the mobile phone obtaining facial key points based on the first image can be referred to the descriptions of S301 and S302 above, and will not be repeated here.

[0257] In this embodiment, the facial key points include the user's eyes (left and right eyes), nose, and corners of the mouth (left and right corners of the mouth). The first coordinates include the user's first left eye coordinate, first right eye coordinate, first nose coordinate, first left corner of mouth coordinate, and first right corner of mouth coordinate. The user's first left eye coordinate, first right eye coordinate, first nose coordinate, first left corner of mouth coordinate, and first right corner of mouth coordinate are all two-dimensional coordinates.

[0258] S402. The mobile phone obtains the second coordinates based on the first image. The second coordinates are the position coordinates of the user's facial key points in the three-dimensional face model corresponding to the first image.

[0259] In one implementation method, the mobile phone can perform 3D reconstruction on the first image to obtain a 3D face model. Furthermore, the mobile phone can obtain the position coordinates of facial key points on the 3D face model to obtain second coordinates. The process of the mobile phone performing 3D reconstruction on the first image and obtaining the position coordinates of facial key points on the 3D face model will not be elaborated here.

[0260] In this embodiment, the second coordinates include the user's second left eye coordinates, second right eye coordinates, second nose coordinates, second left corner of mouth coordinates, and second right corner of mouth coordinates. The user's second left eye coordinates, second right eye coordinates, second nose coordinates, second left corner of mouth coordinates, and second right corner of mouth coordinates are all three-dimensional coordinates.

[0261] S403, The mobile phone determines the affine transformation matrix from the second coordinate to the first coordinate.

[0262] As one implementation method, the mobile phone can determine the affine transformation matrix from the second coordinate to the first coordinate based on the second coordinate and the first coordinate.

[0263] For example, a mobile phone can use the least squares method to calculate the affine transformation matrix from the second coordinate system to the first coordinate system. The specific calculation process will not be described in detail here.

[0264] S404. The mobile phone determines the relative posture information of the user's head based on the affine transformation matrix.

[0265] In this embodiment, the affine transformation matrix includes rotation and translation information representing the transformation from the coordinates of the second facial keypoint to the coordinates of the first facial keypoint. Based on this, the mobile phone can parse the affine transformation matrix to obtain the rotation matrix.

[0266] As one implementation method, the mobile phone can convert the rotation matrix into attitude angles (Euler angles) to obtain the user's head attitude relative to the mobile phone, that is, the relative attitude information of the user's head.

[0267] S405, The mobile phone acquires data from the inertial measurement unit.

[0268] In this embodiment, the mobile phone can acquire its acceleration and angular velocity through an inertial measurement unit (IMU). For ease of description, the mobile phone's acceleration and angular velocity can be referred to as inertial measurement unit data.

[0269] S406. The mobile phone obtains its attitude information based on data from the inertial measurement unit.

[0270] In one implementation method, the mobile phone can obtain its attitude information relative to the geodetic coordinate system based on inertial measurement unit data, thus obtaining the phone's attitude information. This phone attitude information is the phone's absolute attitude information.

[0271] S407: The mobile phone determines the user's head posture when viewing the display screen based on relative posture information and mobile phone posture information.

[0272] In this embodiment, the mobile phone can convert the user's relative head posture information into a first quaternion and the mobile phone posture information into a second quaternion. Furthermore, the mobile phone can multiply the second quaternion with the first quaternion to obtain the absolute posture of the user's head, i.e., the posture of the user's head when viewing the display screen.

[0273] Optionally, the phone can convert the user's head posture when viewing the display into Euler angles, and then determine the type of head posture when viewing the display based on the type and angle of the Euler angles. The Euler angles can include the user's head pitch angle or head roll angle.

[0274] The implementation of the mobile phone determining the type of the user's head posture when viewing the display screen based on the head pitch angle or head roll angle, and determining whether the user's head posture is abnormal, can be referred to the relevant description in S106 above, and will not be repeated here.

[0275] By acquiring the user's posture information when viewing the screen, the mobile phone can easily monitor whether the user's posture is abnormal and provide vision protection reminders when abnormal posture is detected.

[0276] In this embodiment, for any of the aforementioned actual state information such as eye use status information, distance information, posture information, and age information, the content of each type of actual state information is different, and the corresponding way of adjusting the display parameters will be different.

[0277] In one implementation, taking eye usage status information as an example, the adjustment methods for display parameters corresponding to eye usage status information under different conditions are explained. Please refer to... Figure 12 This is an example flowchart of adjusting display parameters provided in an embodiment of this application. The process includes:

[0278] S501: The phone detected that the user is nearsighted.

[0279] S502: The mobile phone determines whether the user is wearing glasses based on the first image.

[0280] If the phone determines that the user is wearing glasses based on the first image, it executes S503; if the phone determines that the user is not wearing glasses based on the first image, it executes S507.

[0281] The process by which the mobile phone determines whether the user is wearing glasses based on the first image can be referred to the description of S201 to S208 in the aforementioned embodiments, and will not be repeated here.

[0282] S503, the phone adjusts the display contrast from the first display contrast to the second display contrast.

[0283] In this embodiment, display contrast can be understood as the vibrancy of colors.

[0284] In one implementation, when the mobile phone detects that the user is wearing glasses, the mobile phone can adjust the display contrast from a first display contrast to a second display contrast.

[0285] The first display contrast ratio is the initial display contrast ratio, and the color vibrancy corresponding to the second display contrast ratio is lower than that corresponding to the first display contrast ratio.

[0286] S504, the phone starts timing.

[0287] Optionally, when the display contrast is adjusted from the first display contrast to the second display contrast, in order to avoid eye fatigue caused by prolonged viewing of the screen, the phone can start a timer to monitor the duration of the user's screen viewing.

[0288] S505: The mobile phone determines whether the timing duration is greater than the third duration.

[0289] If the phone determines that the timeout duration is greater than the third duration, then execute S506; if the phone determines that the timeout duration is less than or equal to the third duration, then continue executing S505.

[0290] Among them, the mobile phone can compare the time duration with the third duration.

[0291] If the timer duration exceeds the third time, it can be determined that the user has been viewing the screen for too long, which can easily cause eye strain. To prevent eye strain from damaging the user's eyesight, the phone can further reduce the display contrast, as shown in the S506.

[0292] If the timeout duration is less than or equal to the third duration, the timeout can continue and a judgment can be made later.

[0293] S506, the phone adjusts the display contrast from the second display contrast to the third display contrast.

[0294] As one implementation method, the mobile phone can adjust the display contrast from a second display contrast to a third display contrast. The color vibrancy corresponding to the third display contrast is lower than the color vibrancy corresponding to the second display contrast.

[0295] By reducing the display contrast, bright colors can be avoided to prevent eye strain and thus protect the user's vision.

[0296] In other words, as users spend more time on their phones, their visual fatigue may increase, and their eyesight may weaken. To prevent further eye strain from prolonged screen viewing under weakened visual conditions, one solution is for the phone to adjust its display contrast based on usage time. Specifically, the longer the user uses the phone, the lower the contrast can be.

[0297] It should be noted that this example only uses display contrast to illustrate how a mobile phone adjusts display parameters based on the duration of user usage. In actual implementation, the mobile phone can also adjust at least one other display parameter based on the duration of user usage.

[0298] For example, a mobile phone can adjust the color temperature of the display screen based on the length of time the user views the screen. For instance, as the user views the display screen for an extended period of time, the mobile phone can gradually adjust the color temperature of the display screen from "cool" to "warm".

[0299] S507, the phone adjusts the display contrast from the first display contrast to the third display contrast.

[0300] In another implementation, if the phone determines that the user is not wearing glasses, it can directly adjust the display contrast from a first display contrast to a third display contrast. The color vibrancy corresponding to the third display contrast is lower than that corresponding to the first display contrast.

[0301] Based on the above description, it can be seen that the adjustment to the third display contrast was performed twice in S506, while the adjustment to the third display contrast was performed only once in S507.

[0302] In other words, if a phone detects that a user is nearsighted and is not wearing glasses, it can be assumed that the user's vision is weak. In this case, bright colors may irritate the user's eyes and cause eye strain. To avoid overly bright colors irritating the user's eyes, the phone can directly lower the display contrast from the first contrast level to the third contrast level.

[0303] If the phone detects that the user is nearsighted and is wearing glasses, the user's vision is corrected by wearing glasses, and in this case, the user's vision can be considered relatively strong. Therefore, the phone can gradually reduce the display contrast as the user views the screen for longer periods of time; that is, as the user views the screen for longer periods of time, the display contrast is first reduced from a first level to a second level, and then from a second level to a third level.

[0304] In this way, the display contrast can be adjusted in a targeted manner based on the duration of the user's screen viewing and the strength of the user's eyesight, so that the display effect after the adjustment of display parameters is more matched with the strength of the user's eyesight.

[0305] S508, the phone starts timing.

[0306] In cases where a user is nearsighted and not wearing glasses, their vision is in a weakened state. If they watch the screen for a long time, it will greatly stimulate their eyes, causing eye strain or worsening their nearsightedness.

[0307] To improve this problem, the mobile phone in this embodiment can start timing when the display contrast is directly adjusted from the first display contrast to the third display contrast, so as to monitor the user's screen time.

[0308] S509: The mobile phone determines whether the timing duration is greater than the fourth duration.

[0309] If the timeout duration is greater than the fourth duration, then execute S510; if the timeout duration is less than or equal to the fourth duration, then continue executing S509.

[0310] The phone can compare the initial time with the fourth duration. Optionally, the fourth duration can be equal to the third duration.

[0311] If the timer duration exceeds the fourth hour, the phone determines that the user has been viewing the screen for too long, which can easily cause eye strain. If the timer duration is less than or equal to the fourth hour, the phone can continue timing and then determine whether the timer duration exceeds the fourth hour.

[0312] In this embodiment, to avoid eye strain and damage to the user's vision, the mobile phone can further reduce the display contrast, corresponding to S510.

[0313] The S510 phone adjusts the display contrast from the third to the fourth display contrast.

[0314] As one implementation method, the mobile phone can adjust the display contrast from a third display contrast to a fourth display contrast. The fourth display contrast corresponds to a lower level of color vibrancy than the third display contrast.

[0315] By further reducing the display contrast, bright colors can be avoided to prevent eye strain and thus protect the user's vision.

[0316] It should be noted that in some other examples, the degree of adjustment to the display contrast can be determined based on the user's age. In this case, the older the user, the smaller the adjustment can be, and the younger the user, the larger the adjustment can be.

[0317] Furthermore, for older users, the final adjustment level can be the product of the desired contrast ratio and an age coefficient. This age coefficient is related to the user's age; older users can have a smaller coefficient, and younger users can have a larger coefficient. This balances the adaptability of different age groups to different display contrast ratios.

[0318] S511, the mobile phone determines whether the timeout duration is greater than the fifth duration.

[0319] If the timeout duration is greater than the fifth duration, then execute S512; if the timeout duration is less than or equal to the fifth duration, then continue executing S511.

[0320] The fifth duration is longer than the fourth duration, and the fifth duration is longer than the third duration. In some examples, the fifth duration can be twice the fourth duration.

[0321] Furthermore, the phone can compare the timed display duration with the fifth display duration. If the timed display duration exceeds the fifth display duration, it can be determined that the user has been viewing the phone screen for too long, and an eye protection reminder should be issued. For example, the phone can display a pop-up message to remind the user that the usage time has been too long.

[0322] If the timeout duration is less than or equal to the fifth hour, the timeout can continue and then the timeout duration can be checked to see if it is greater than the fifth hour.

[0323] S512: The phone displays a first prompt message, which is used to remind the user that the usage time has been too long.

[0324] The specific implementation of the mobile phone displaying the first prompt information can be referred to the relevant description of S108 in the aforementioned embodiment, and will not be repeated here.

[0325] S513: The phone displays a third prompt message, which is used to remind the user to adjust their posture.

[0326] Considering that prolonged viewing of a screen in one position may negatively impact health, such as causing numbness in the limbs, the phone can, as a solution, display a third prompt message when it detects that the user has been viewing the screen for an extended period. This third prompt message reminds the user to adjust their posture. Figure 12 In the method flow shown, "long-term viewing of the display screen" can be understood as the user viewing the display screen for a duration greater than the fifth time period.

[0327] In this way, by combining the user's mobile phone usage time and the user's visual acuity to adjust the display parameters in a targeted manner, more individualized adjustment of display parameters can be achieved. This makes the display effect after the adjustment of display parameters more compatible with the user's visual acuity, thereby improving the user experience.

[0328] Furthermore, for Figure 5 The reminder duration thresholds, namely the third, fourth, and fifth durations, are also provided in this application embodiment for adjustment methods. Please refer to... Figure 13 This is an example flowchart of adjusting a reminder duration threshold provided in an embodiment of this application. The specific process is as follows:

[0329] S601: The mobile phone determines whether the user's posture is abnormal.

[0330] The user's posture refers to the posture of the user's head when viewing the display screen.

[0331] If the user's posture is abnormal, execute S602; if the user's posture is normal, execute S603.

[0332] The specific judgment process of S601 can be referred to the relevant descriptions of S107 and S407 in the aforementioned embodiments, and will not be repeated here.

[0333] It should be noted that the phone can determine that the user's posture is abnormal when the user's head is tilted back, tilted down, or lying on their side.

[0334] S602: The mobile phone determines whether the current environment is a bright environment based on the ambient brightness information.

[0335] If the current environment is a bright environment, then execute S605; if the current environment is not a bright environment, then execute S604.

[0336] In cases where the user's posture is abnormal, the phone can determine whether the current environment is bright to prevent the user from viewing the display in poor lighting conditions.

[0337] As one implementation method, the mobile phone can determine whether the current environment is a bright environment based on the ambient brightness information. The specific determination process can be referred to the relevant description in S106 above, and will not be repeated here.

[0338] S603: The mobile phone determines whether the current environment is a bright environment based on the ambient brightness information.

[0339] If the current environment is a bright environment, then execute S606; if the current environment is not a bright environment, then execute S605.

[0340] If the user's posture is normal, in order to avoid damage to the user's eyesight due to excessively strong or overexposed ambient light, the mobile phone can also determine whether the current environment is a bright environment. The specific judgment process can be referred to in the relevant description in S106 above, and will not be repeated here.

[0341] S604, the phone adjusts the reminder duration threshold to the first parameter.

[0342] As one implementation method, when the current environment is not brightly lit, the user's posture when viewing the screen is harmful to eyesight and the ambient light is dim, which is not conducive to the user viewing the screen for a long time. Therefore, the reminder duration threshold can be adjusted from the (initial or preset) reminder duration threshold to a first parameter. The first parameter is less than the (initial or preset) reminder duration threshold.

[0343] This allows for a reduction in the reminder duration threshold for vision protection on mobile phones, providing users with stricter time limits to protect their eyesight.

[0344] S605, the phone adjusts the reminder duration threshold to the second parameter.

[0345] In one implementation scenario, when the current environment is bright enough for the user to view the display screen, but the user's posture while viewing the screen is harmful to their eyesight, the phone can adjust the reminder duration threshold from an initial or preset threshold to a second parameter to remind the user to protect their eyesight. The second parameter is less than the initial or preset threshold and greater than the first parameter.

[0346] Alternatively, if the user's posture is normal and the current environment is not brightly lit, the user's posture while viewing the screen is normal, but the ambient light is too dim, making it unsuitable for prolonged screen viewing. In this case, to remind the user to protect their eyesight, the phone can adjust the reminder duration threshold from the initial or preset threshold to a second parameter.

[0347] S606, the phone will adjust the reminder duration threshold to the third parameter.

[0348] As one implementation method, assuming the user's posture is normal and the current environment is bright, the user's posture while viewing the display screen is normal and the brightness of the current environment is moderate. In this case, the phone can adjust the reminder duration threshold from the (initial or preset) reminder duration threshold to a third parameter, where the third parameter is less than the (initial or preset) reminder duration threshold and greater than the second parameter.

[0349] In summary, the method for adjusting the reminder duration threshold for eye protection reminders on mobile phones can be determined based on the user's posture when viewing the screen and the brightness of the current environment, thereby enabling flexible adjustment of display parameters.

[0350] It should be noted that the above only illustrates the implementation process of adjusting the reminder duration threshold of the vision protection reminder based on ambient brightness and user posture information. In actual implementation, the reminder duration threshold of the vision protection reminder can also be adjusted based on ambient brightness and other actual user status information, or directly based on other actual user status information.

[0351] For example, electronic devices can directly adjust the reminder duration threshold for vision protection reminders based on the aforementioned distance information. Specifically, when the user's viewing distance is too close, it can be considered that the user has a high degree of myopia, and the user's viewing time will be more strictly controlled. Therefore, the closer the user is to the display screen, the greater the adjustment to the reminder duration threshold can be (e.g., adjusting the reminder duration threshold from 30 minutes to 10 minutes); the farther the user is from the display screen, the smaller the adjustment to the reminder duration threshold can be (e.g., adjusting the reminder duration threshold from 30 minutes to 20 minutes).

[0352] The following description, using mobile phone 1 as an example, illustrates the display parameter adjustment method provided in this application embodiment with reference to the accompanying drawings. Please refer to... Figure 14 This is an example flowchart of a display parameter adjustment method provided in an embodiment of this application. Figure 14 As shown, the method includes:

[0353] S701, Mobile Phone 1 obtains screen usage time.

[0354] The implementation of S701 can be referred to the description of S101 in the aforementioned embodiments, and will not be repeated here.

[0355] S702, Mobile Phone 1 determines whether the screen usage time is greater than 30 minutes.

[0356] The implementation of S702 can be referred to the description of S102 in the aforementioned embodiments, and will not be repeated here.

[0357] S703, Mobile Phone 1 obtains the ambient light level of the current environment and the first image.

[0358] The implementation of S703 can be referred to the description of S103 in the aforementioned embodiments, and will not be repeated here.

[0359] S704, Mobile Phone 1 determines whether the ambient light brightness is greater than the first brightness.

[0360] The implementation of S704 can be referred to the description of S104 in the previous embodiment, and will not be repeated here.

[0361] S705, Mobile Phone 1 determines whether the user is looking at the display screen based on the first image.

[0362] The implementation of S705 can be referred to the description of S105 in the aforementioned embodiments, and will not be repeated here.

[0363] S706, Mobile Phone 1 determines ambient light information based on the ambient light intensity within the second time period.

[0364] The implementation of S706 can be referred to the description of S106 in the aforementioned embodiments, and will not be repeated here.

[0365] S707 and mobile phone 1 determine whether the user is wearing glasses and whether the user is nearsighted, and obtain eye use status information.

[0366] The implementation of S707 can be referred to the description of S106 and S201 to S208 in the aforementioned embodiments, and will not be repeated here.

[0367] S708, mobile phone 1 obtains the distance between the user and the display screen to obtain distance information.

[0368] The implementation of S708 can be referred to the descriptions of S106 and S301 to S304 in the aforementioned embodiments, and will not be repeated here.

[0369] S709, Mobile Phone 1 obtains the posture of the user's head when viewing the display screen and gets posture information.

[0370] The implementation of S709 can be referred to the descriptions of S106 and S401 to S407 in the aforementioned embodiments, and will not be repeated here.

[0371] S710 and mobile phone 1 determine the user's age information based on the first image.

[0372] The implementation of S710 can be referred to the description of S106 in the aforementioned embodiments, and will not be repeated here.

[0373] S711, Mobile Phone 1 adjusts display parameters based on ambient brightness information, eye usage information, distance information, posture information, and age information.

[0374] The implementation of S711 can be referred to the descriptions of S107 and S501 to S513 in the aforementioned embodiments, and will not be repeated here.

[0375] S712, mobile phone 1 displays a first prompt message and a second prompt message based on ambient brightness information, eye usage status information, distance information, posture information and age information. The first prompt message is used to remind the user that the usage time is too long, and the second prompt message is used to remind the user to correct the usage posture.

[0376] The implementation of S712 can be referred to the descriptions of S108, S512 and S513 in the aforementioned embodiments, and will not be repeated here.

[0377] In some examples, phone 1 can adjust display parameters or provide eye protection reminders based on only some of the user's actual status information.

[0378] For example, please refer to Figure 15 This is an example flowchart of another display parameter adjustment method provided in an embodiment of this application. Figure 15 As shown, the method includes:

[0379] S801, Mobile Phone 1 determines whether the user is nearsighted and whether the user is not wearing glasses.

[0380] The specific implementation of S801 can be found in the descriptions of S106 and S201 to S208 mentioned above, and will not be repeated here.

[0381] S802, Mobile Phone 1 determines whether the ambient brightness is too dark.

[0382] The specific implementation of S802 can be referred to the description in S106 above, and will not be repeated here.

[0383] S803, Adjust font size on phone 1.

[0384] As one implementation method, if the user is nearsighted, is not wearing glasses, and the ambient light is too dim, it can be determined that the user is currently in a state of amblyopia. In this case, to facilitate normal use of mobile phone 1, mobile phone 1 can adjust the font size. Optionally, mobile phone 1 can enlarge the font size at this time.

[0385] S804, Mobile Phone 1 adjusts the screen brightness.

[0386] Furthermore, to ensure that the user can clearly view the display screen, the phone 1 can adjust the screen brightness. Optionally, the phone 1 can increase the screen brightness at this time.

[0387] S805, Mobile Phone 1 adjusts display contrast.

[0388] As one implementation method, when the user is nearsighted and not wearing glasses, the phone 1 can adjust the display contrast to facilitate clearer viewing of the content displayed on the phone 1 screen. Optionally, the phone 1 can increase the display contrast at this time.

[0389] S806, Mobile Phone 1 determines whether the user's posture is abnormal.

[0390] The specific implementation of S806 can be found in the descriptions of S106 and S401 to S407 mentioned above, and will not be repeated here.

[0391] In the event of an abnormal user posture, S807, S802, or S805 can be executed.

[0392] S807, Mobile Phone 1 determines whether the user has been in an abnormal posture for too long.

[0393] In this embodiment, in order to promptly remind the user to correct their posture when the user's posture is abnormal, the mobile phone 1 can determine whether the user has been in an abnormal posture for too long.

[0394] For example, mobile phone 1 can compare whether the duration of the user's abnormal posture is greater than a preset duration. The specific value of the preset duration is not limited, such as 1 hour or 2 hours.

[0395] Optionally, if the user remains in an abnormal posture for a longer period than a preset duration, the user needs to be reminded to correct their posture. In this case, mobile phone 1 can display a first prompt message and a second prompt message, respectively, to remind the user that the usage time has exceeded the preset duration and to remind the user to correct their posture, corresponding to S808 and S809.

[0396] S808, Mobile Phone 1 displays the first prompt message, which is used to remind the user that the usage time has been too long.

[0397] S809, Mobile Phone 1 displays a second prompt message, which is used to remind the user to correct their posture.

[0398] Based on the above description, the mobile phone can adjust at least one display parameter of the screen by combining at least two state information when the user is viewing the display screen. Compared with adjusting the display parameter separately based on individual state information, this method can make the adjusted display effect more compatible with the user's state, and improve the flexibility and effectiveness of display parameter adjustment.

[0399] This application provides a method for adjusting display parameters, applied to an electronic device, which includes a display screen. The method includes: when the screen usage time exceeds a first duration, acquiring ambient brightness information and first information, the first information including at least one of eye-use status information, distance information, posture information, and age information; wherein, the ambient brightness information indicates the ambient brightness of the mobile phone during the second duration, the eye-use status information indicates whether the user is wearing glasses and whether the user is nearsighted, the distance information indicates the distance between the user and the display screen, the posture information indicates the user's head posture when viewing the display screen, and the age information indicates the user's age; and adjusting the display parameters of the display screen based on the ambient brightness information and the first information.

[0400] In this manner, the electronic device can be as described above. Figures 4-13 The mobile phone or Figures 14-15 Mobile phone 1.

[0401] In summary, electronic devices can not only take into account the ambient brightness, but also adjust display parameters based on factors such as whether the user is nearsighted, whether they wear glasses, their distance from the screen, their posture while viewing the screen, and their age. This makes them more personalized, ensuring that the display effect is adapted to the user's vision protection needs and improving the user experience.

[0402] This application also provides an electronic device, which may include a processor, a memory, a display screen, a microphone, and a camera. The memory, display screen, camera, and microphone are coupled to the processor. The memory stores computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform the various functions or steps performed by the electronic device in the above method embodiments. The structure of this electronic device can be referred to... Figure 3 The structure of the electronic device shown.

[0403] This application also provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform various functions or steps performed by the electronic device in the above method embodiments.

[0404] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the electronic device in the above method embodiments.

[0405] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0406] In the several embodiments provided in this example, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.

[0407] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0408] Furthermore, in each embodiment of this invention, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0409] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.

[0410] The above description is merely a specific implementation of this embodiment, but the protection scope of this embodiment is not limited thereto. Any changes or substitutions within the technical scope disclosed in this embodiment should be covered within the protection scope of this embodiment. Therefore, the protection scope of this embodiment should be determined by the protection scope of the claims.

Claims

1. A display parameter adjustment method, characterized by, The method is applied to an electronic device including a display screen, and comprises: In a case where a screen use duration is greater than a first duration, environment brightness information and first information are acquired, the first information including eye use state information, and the first information further including at least one of distance information, posture information, and age information; wherein the environment brightness information is used to indicate an environment brightness condition of the electronic device within a second duration, the eye use state information is used to indicate whether the user wears glasses and whether the user is myopic, the distance information is used to indicate a distance between the user and the display screen, the posture information is used to indicate a head posture of the user when watching the display screen, and the age information is used to indicate an age of the user; display parameters of the display screen are adjusted according to the environment brightness information and the first information; wherein the display parameters include display contrast; in a case where it is detected that the user is myopic and wears glasses, the display contrast is adjusted from a first display contrast to a second display contrast, and then from the second display contrast to a third display contrast; and in a case where it is detected that the user is myopic and does not wear glasses, the display contrast is adjusted from the first display contrast to the third display contrast.

2. The method of claim 1, wherein, The method further comprises: In a case where the screen use duration is greater than the first duration and it is determined that the user gazes at the display screen, the environment brightness information and the first information are acquired.

3. The method according to claim 1 or 2, characterized in that, The method further comprises: In a case where the screen use duration is greater than the first duration, a first image is acquired; whether the user gazes at the display screen is determined according to the first image.

4. The method according to claim 1 or 2, characterized in that, The method further comprises: In a case where the screen use duration is greater than the first duration, an ambient light brightness of a current environment and a first image are acquired; in a case where the ambient light brightness is greater than a first brightness, whether the user gazes at the display screen is determined according to the first image.

5. The method of claim 4, wherein, The method further comprises: In a case where a duration in which the user watches the display screen is greater than a reminding duration threshold, first prompt information is displayed, the first prompt information being used to remind the user that the use duration is too long, and the reminding duration threshold being associated with the environment brightness information and the first information.

6. The method of claim 4, wherein, The method further comprises: In a case where the duration in which the user watches the display screen is greater than the reminding duration threshold and a head posture of the user when watching the display screen is abnormal, second prompt information is displayed, the second prompt information being used to remind the user to correct a use posture, and the reminding duration threshold being associated with the environment brightness information and the first information.

7. The method according to claim 5 or 6, characterized in that, The first information includes posture information, and the method further comprises: The reminding duration threshold is adjusted according to the environment brightness information and the posture information.

8. The method of claim 7, wherein, The adjusting of the reminding duration threshold according to the environment brightness information and the posture information comprises: in a case where the posture information indicates that the head posture of the user when watching the display screen is abnormal and the environment brightness information indicates that an overall environment attribute of the mobile phone within the second duration is a dark light environment, the reminding duration threshold is adjusted to a first parameter; In a case where the posture information indicates that the head posture of the user when watching the display screen is abnormal, and the environment brightness information indicates that the overall environment attribute of the mobile phone in the second time length is a bright light environment, the reminding time length threshold is adjusted to a second parameter, and the second parameter is greater than the first parameter. In a case where the posture information indicates that the head posture of the user when watching the display screen is normal, and the environment brightness information indicates that the overall environment attribute of the mobile phone in the second time length is a dark light environment, the reminding time length threshold is adjusted to the second parameter. Or, in a case where the posture information indicates that the head posture of the user when watching the display screen is normal, and the environment brightness information indicates that the overall environment attribute of the mobile phone in the second time length is a bright light environment, the reminding time length threshold is adjusted to a third parameter, and the third parameter is greater than the second parameter.

9. The method of claim 8, wherein, The first information includes eye use state information, and the display parameter includes display contrast. The adjusting the display parameter of the display screen according to the environment brightness information and the first information includes: In a case where the eye use state information indicates that the user wears glasses and is nearsighted, the display contrast is adjusted from a first display contrast to a second display contrast, and the second display contrast is lower than the first display contrast. A first watching time length of the user under the second display contrast is acquired. In a case where the first watching time length is greater than a third time length, the display contrast is adjusted from the second display contrast to a third display contrast, and the third display contrast is lower than the second display contrast.

10. The method of claim 8, wherein, The first information includes eye use state information, and the display parameter includes display contrast. The adjusting the display parameter of the display screen according to the environment brightness information and the first information includes: In a case where the eye use state information indicates that the user does not wear glasses and is not nearsighted, the display contrast is adjusted from a first display contrast to a third display contrast, and the third display contrast is lower than the first display contrast. A second watching time length of the user under the third display contrast is acquired. In a case where the second watching time length is greater than a fourth time length, the display contrast is adjusted from the third display contrast to a fourth display contrast, and the fourth display contrast is lower than the third display contrast.

11. The method of claim 8, wherein, The first information includes eye use state information. The acquiring the first information includes: The first image is input into a glasses detection model to obtain a first determination result, and the first determination result is used to indicate whether the user wears glasses. In a case where the first determination result indicates that the user wears glasses, it is determined whether there is nearsightedness profile information of the user to obtain a second determination result. If there is nearsightedness profile information, the second determination result indicates that the user is nearsighted, and if there is no nearsightedness profile information of the user, the second determination result indicates that the user is not nearsighted. The eye use state information is obtained according to the first determination result and the second determination result.

12. The method of claim 8, wherein, The first information includes distance information. The acquiring the first information includes: The position coordinates of a face key point are acquired according to the first image, and the face key point includes an eye key point. The interpupillary distance is determined based on the coordinates of the key points of the human eye. The distance between the user and the display screen is determined based on the interpupillary distance.

13. The method of claim 8, wherein, The first information includes attitude information, and obtaining the first information includes: The absolute attitude information of the electronic device is obtained, and the absolute attitude information of the electronic device is used to indicate the position of the electronic device relative to the geodetic coordinate system; The relative posture information of the user's head is obtained from the first image, and the relative posture information is used to indicate the position of the user's head relative to the electronic device; The user's head posture when viewing the display screen is determined based on the absolute posture information and the relative posture information.

14. The method of claim 13, wherein, The step of obtaining the relative pose information of the user's head based on the first image includes: The first coordinates are obtained from the first image, and the first coordinates are the position coordinates of the user's facial key points in the first image; The second coordinates are obtained based on the first image. The second coordinates are the position coordinates of the user's facial key points in the three-dimensional face model corresponding to the first image. Determine the affine transformation matrix from the second coordinate system to the first coordinate system; The relative pose information of the user's head is determined based on the affine transformation matrix.

15. The method according to any one of claims 9-14, characterized in that, The display parameters include at least one of the following: color mode, display contrast, font size, brightness, color temperature, or display refresh rate.

16. An electronic device, comprising: The electronic device includes: a memory and one or more processors; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and when the one or more processors execute the computer instructions, the electronic device performs the method of any one of claims 1-15.

17. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-15.

18. A computer program product, characterised in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-15.

Citation Information

Patent Citations

  • Method and device for judging visual fatigue of user

    CN106897725A

  • Display control method, electronic equipment, storage medium and chip system

    CN117472316A