Display parameter adjustment method, electronic equipment, storage medium and computer program product
By detecting multiple actual status information of users and dynamically adjusting the display parameters of electronic devices, the problem that fixed display parameters in the prior art are difficult to meet the user needs in different visual states, and more accurate vision protection is achieved.
Patent Information
- Application Number
- CN202510268938.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2045-03-07
AI Technical Summary
The display parameters of the existing screen display scheme are fixed, making it difficult to meet the user's vision protection needs under different vision states.
By detecting the user's long-term viewing of electronic devices and combining information such as ambient light brightness, whether the user is myopia, wearing glasses, distance from the device, posture and age, etc., the display parameters are dynamically adjusted.
Personalized display parameter adjustment is realized, so that the display effect is in line with the user's vision protection needs, and the accuracy of display parameter adjustment is improved.
Smart Images

Figure CN119763510A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of display control technology, and in particular to a display parameter adjustment method, an electronic device, a storage medium, and a computer program product. Background Art
[0002] With the popularity of electronic devices and changes in users' lifestyles and work styles, most users cannot avoid looking at screens of electronic devices such as mobile phones or computers for a long time. Looking at the screens of electronic devices for a long time will lead to excessive eye strain, which in turn causes visual fatigue, which can easily lead to myopia or worsen myopia. At present, in order to reduce the impact of visual fatigue on users' vision, electronic devices are equipped with screen display solutions such as eye protection mode to relieve visual fatigue.
[0003] However, the display parameters of screen display solutions such as eye protection mode are fixed, and users with different vision conditions perceive the display effects differently, so the same display effect will have different effects on the vision of users with different vision conditions, and cause different visual fatigue. Therefore, the current screen display solutions are difficult to meet the vision protection needs of different users. Summary of the invention
[0004] The embodiments of the present application provide a display parameter adjustment method, an electronic device, a storage medium, and a computer program product. When the electronic device detects that a user has been watching the electronic device for a long time and the ambient light brightness is high, the display parameters of the electronic device can be comprehensively adjusted based on various actual status information such as whether the user is nearsighted, whether the user wears glasses, the distance between the user and the electronic device, the user's posture when using the electronic device, the ambient light brightness, and the user's age. The method can be more individually targeted, so that the display effect brought about by the adjusted display parameters is adapted to the user's vision protection needs, thereby improving the accuracy of the display parameter adjustment.
[0005] In order to achieve the above objectives, the embodiments of the present application adopt the following technical solutions: In the first aspect, the embodiment of the present application provides a display parameter adjustment method, which can be applied to an electronic device, wherein the electronic device includes a display screen. Specifically, the electronic device can obtain ambient brightness information and first information when the screen usage time is greater than the first time, and the first information includes at least one of eye status information, distance information, posture information and age information; wherein the ambient brightness information is used to indicate the ambient brightness of the mobile phone within the second time, the eye status information is used to indicate whether the user wears 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 head posture of the user when viewing the display screen, and the age information is used to indicate the age of the user; the display parameters of the display screen are adjusted according to the ambient brightness information and the first information.
[0006] In this way, in addition to taking into account the brightness of the environment in which the electronic device is located, it can also adjust the display parameters based on actual status information such as whether the user is nearsighted, whether he wears glasses, the distance relative to the display screen, the posture when viewing the display screen, and the age. It is more individually targeted, so that the display effect of the display screen is adapted to the user's vision protection needs, thereby improving the user experience.
[0007] In combination with the first aspect, in a possible implementation manner, the method further includes: when the screen usage time is greater than the first time and it is determined that the user is looking at the display screen, obtaining ambient brightness information and the first information.
[0008] In this way, the electronic device can obtain the ambient brightness information and the first information and adjust the display parameters only when it detects that the user has been watching the display screen for a long time. In this way, it can avoid misjudgment caused by the user not watching the display screen and improve the accuracy of display parameter adjustment.
[0009] In combination with the first aspect, in a possible implementation manner, the method further includes: acquiring a first image when the screen usage time is greater than a first time; and determining whether the user is looking at the display screen based on the first image.
[0010] 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 adjustment.
[0011] In combination with the first aspect, in a possible implementation, the above method also includes: when the screen usage time is greater than the first time, obtaining the ambient light brightness and the first image of the current environment; 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.
[0012] In this way, the electronic device can identify whether the user is looking at the display screen based on the first image taken in an environment with slightly higher brightness. Compared with the first image taken in an environment with unknown brightness, the success rate of identifying whether the user is looking at the display screen can be improved, thereby improving the success rate of display parameter adjustment.
[0013] In combination with the first aspect, in a possible implementation, the above method also includes: displaying vision protection reminder information based on ambient brightness information and the first information, the vision protection reminder information includes at least first prompt information or second prompt information, the first prompt information is used to remind the user that the usage time is too long, and the second prompt information is used to remind the user to correct the usage posture.
[0014] In this way, it is possible to adjust the display parameters and thus the display effect, and combine various actual status information such as whether the user is nearsighted, whether he wears glasses, the distance between the user and the electronic device, the user's posture when using the electronic device, the ambient light brightness, and the user's age, to remind the user to protect his eyesight in a visual way, thereby meeting the vision protection needs of all types of users.
[0015] In combination with the first aspect, in a possible implementation, the method further includes: when the time a user views the display screen is greater than a reminder time threshold, displaying a first prompt message, the first prompt message being used to remind the user that the usage time is too long, and the reminder time threshold is associated with the ambient brightness information and the first information.
[0016] In this way, when it is detected that the user has been watching the display screen for a long time, the user can be reminded in time that the usage time is too long, so as to avoid the user from watching the display screen for a long time causing eye fatigue and then damaging eyesight.
[0017] In combination with the first aspect, in a possible implementation, the method further includes: when the time a user views the display screen is greater than a reminder time threshold and the user's head posture is abnormal when viewing the display screen, displaying a second prompt message, the second prompt message being used to remind the user to correct the posture, and the reminder time threshold being associated with the ambient brightness information and the first information.
[0018] In this way, when it is detected that the user has been watching the display screen for a long time and the user's head posture is abnormal when watching the display screen, the user can be reminded in time to correct the posture, so as to avoid the user damaging his eyesight by watching the display screen for a long time with abnormal posture.
[0019] In combination with the first aspect, in a possible implementation manner, the first information includes posture information, and the method further includes: adjusting the reminder duration threshold according to the ambient brightness information and the posture information.
[0020] In this way, it is possible to adjust the time threshold for the electronic device to provide eyesight protection reminders in combination with the ambient brightness conditions when the user is watching the display screen and the user's own posture, so that the frequency of the electronic device's eyesight protection reminders is related to the ambient brightness conditions and the user's posture, rather than mechanically providing eyesight protection reminders in a pre-set manner, thereby improving the flexibility and fun of eyesight protection reminders.
[0021] In combination with the first aspect, in a possible implementation method, the above-mentioned adjustment of the reminder duration threshold of the vision protection reminder information according to the ambient brightness information and the posture information may include: when the posture information indicates that the user's head posture when viewing the display screen is abnormal, and the ambient brightness information indicates that the overall environmental attribute of the mobile phone in the second time period is a dark light environment, adjusting the reminder duration threshold to a first parameter; when the posture information indicates that the user's head posture when viewing the display screen is abnormal, and the ambient brightness information indicates that the overall environmental attribute of the mobile phone in the second time period is a bright light environment, adjusting the reminder duration threshold to a second parameter, and the second parameter is greater than the first parameter; when the posture information indicates that the user's head posture when viewing the display screen is not abnormal, and the ambient brightness information indicates that the overall environmental attribute of the mobile phone in the second time period is a dark light environment, adjusting the reminder duration threshold to the second parameter; or, when the posture information indicates that the user's head posture when viewing the display screen is not abnormal, and the ambient brightness information indicates that the overall environmental attribute of the mobile phone in the second time period is a bright light environment, adjusting the reminder duration threshold to a third parameter, and the third parameter is greater than the second parameter.
[0022] In this way, the time threshold for the electronic device to provide vision protection reminders can be flexibly adjusted according to the ambient brightness when the user is viewing the display screen and the user's own posture, thereby enriching the ways in which the electronic device provides vision protection reminders.
[0023] In combination with the first aspect, in a possible implementation manner, the method further includes: displaying the first prompt information when the screen usage time is greater than the first time.
[0024] In this way, when it is detected that the user has used the electronic device for too long, the user can be reminded in a visual manner to protect his eyesight, thereby preventing the user from using the electronic device for a long time.
[0025] In combination with the first aspect, in a possible implementation manner, the above method also includes: displaying a second prompt message when the screen usage time is greater than the first time and the user's head posture when viewing the display screen is abnormal.
[0026] In this way, when it is detected that the user has used the electronic device for too long and is in an abnormal posture, the user can be reminded to correct the posture, thereby preventing the user from damaging his eyesight by watching the display screen in an unhealthy posture for a long time.
[0027] In combination with the first aspect, in a possible implementation method, the above-mentioned first information includes eye status information, and the display parameters include display contrast. The above-mentioned adjustment of the display parameters of the display screen according to the ambient brightness information and the first information may include: when the eye status information indicates that the user wears glasses and is nearsighted, adjusting the display contrast from the first display contrast to the second display contrast, and the second display contrast is lower than the first display contrast; obtaining the user's first viewing time at the second display contrast; when the first viewing time is greater than the third time, adjusting the display contrast from the second display contrast to the third display contrast, and the third display contrast is lower than the second display contrast.
[0028] In this way, the display parameters can be adjusted according to the ambient brightness when the user views the display screen and the user's own eye status information, and the display contrast can be gradually lowered as the user views the display screen for a longer period of time.
[0029] In combination with the first aspect, in a possible implementation method, the above-mentioned first information includes eye status information, and the display parameters include display contrast. The above-mentioned adjustment of the display parameters of the display screen according to the ambient brightness information and the first information may include: when the eye status information indicates that the user is not wearing glasses and is nearsighted, adjusting the display contrast from the first display contrast to a third display contrast, and the third display contrast is lower than the first display contrast; obtaining the second viewing time of the user at the third display contrast; when the second viewing time is greater than the fourth time, adjusting the display contrast from the third display contrast to a fourth display contrast, and the fourth display contrast is lower than the third display contrast.
[0030] In this way, in the process of adjusting the display parameters according to the ambient brightness conditions when the user is viewing the display screen and the user's own eye status information, in addition to gradually lowering the display contrast as the user views the display screen for longer, the intensity of the first adjustment of the display parameters can also be determined based on the user's eyesight.
[0031] The stronger the user's eyesight is, the greater the force of the first adjustment of the display parameters can be; the weaker the user's eyesight is, the weaker the force of the first adjustment of the display parameters can be. In this way, the display parameters can be adjusted in a targeted manner according to the user's eyesight.
[0032] In combination with the first aspect, in a possible implementation method, the above-mentioned first information includes eye status information. In this method, obtaining the first information may include: inputting the first image into a glasses detection model to obtain a first determination result, and the first determination result is used to indicate whether the user is wearing glasses; when the first determination result indicates that the user is wearing glasses, determining whether there is myopia file information of the user, and obtaining a second determination result; wherein, if there is myopia file information, the second determination result indicates that the user is myopic, and if there is no myopia file information of the user, the second determination result indicates that the user is not myopic; the above-mentioned eye status information is obtained based on the first determination result and the second determination result.
[0033] In this way, it is possible to obtain the user's eye status information based on the first image and the user's myopia profile information, taking into account the various eye states of myopic users viewing the display screen, thereby improving the accuracy and reliability of obtaining the eye status information.
[0034] In combination with the first aspect, in a possible implementation method, the above-mentioned first information includes distance information. In this method, obtaining the first information may include: obtaining the position coordinates of facial key points based on the first image, the facial key points including eye key points; determining the pupil distance based on the position coordinates of the facial key points; and determining the distance between the user and the display screen based on the pupil distance.
[0035] In this way, the distance between the user and the display screen can be estimated by the pupil distance, thereby improving the convenience of the electronic device in obtaining distance information.
[0036] In combination with the first aspect, in a possible implementation method, the above-mentioned first information includes posture information. In this method, obtaining the first information may include: obtaining absolute posture information of the electronic device, the absolute posture information of the electronic device is used to indicate the position of the electronic device relative to the earth coordinate system; obtaining relative posture information of the user's head based on the first image, the relative posture information is used to indicate the position of the user's head relative to the electronic device; and determining the head posture of the user when viewing the display screen based on the absolute posture information and the relative posture information.
[0037] In this way, it is possible to combine the absolute posture information of the electronic device and the position information of the user's head relative to the electronic device to obtain the head posture of the user when viewing the display screen, thereby improving the accuracy of the electronic device in obtaining posture information.
[0038] In combination with the first aspect, in a possible implementation method, the above-mentioned obtaining the relative posture information of the user's head based on the first image may include: obtaining a first coordinate based on the first image, the first coordinate being the position coordinate of the user's facial key points in the first image; obtaining a second coordinate based on the first image, the second coordinate being 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 posture information of the user's head based on the affine transformation matrix.
[0039] In this way, it is possible to obtain the posture information of the user's head based only on the first image, thereby improving the efficiency of obtaining the posture information.
[0040] In combination with the first aspect, in a possible implementation manner, the above-mentioned display parameters include at least one of color mode, display contrast, font size, brightness, color temperature or screen refresh rate.
[0041] In this way, the display parameters can be flexibly adjusted so that the display effect of the electronic device matches the user's vision protection needs.
[0042] In a second aspect, an embodiment of the present application provides an electronic device, which 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 includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in the first aspect above.
[0043] In a third aspect, an embodiment of the present application provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect above.
[0044] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A scene diagram of an electronic device automatically adjusting screen display brightness according to ambient light brightness provided in an embodiment of the present application; Figure 2 A schematic diagram of a process for a user to enable the eye protection function in the display function setting interface of a mobile phone provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application; Figure 4 A flow chart of a display parameter adjustment method provided in an embodiment of the present application; Figure 5 An example diagram of a mobile phone usage time reminder provided in an embodiment of the present application; Figure 6 An example diagram of a mobile phone providing a posture correction reminder according to an embodiment of the present application; Figure 7 An example flow chart of a mobile phone obtaining eye status information provided in an embodiment of the present application; Figure 8 An example flow chart of a mobile phone obtaining distance information provided in an embodiment of the present application; Fig. 9 A schematic diagram of the principle of calculating the pupil distance according to the position coordinates of the key points of both eyes provided in an embodiment of the present application; Fig.10 A schematic diagram of a principle for determining distance information based on pupil distance provided in an embodiment of the present application; Fig.11 An example flow chart of a mobile phone obtaining posture information provided in an embodiment of the present application; Fig.12 An example flow chart of adjusting display parameters provided in an embodiment of the present application; Fig.13 An example flow chart of adjusting the reminder duration threshold provided in an embodiment of the present application; Fig.14 An exemplary flow chart of a display parameter adjustment method provided in an embodiment of the present application; Fig.15 An exemplary flowchart of another display parameter adjustment method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, unless otherwise specified, "at least one" means one or more, and "multiple" means two or more than two. In addition, in order to facilitate the clear description of the technical solutions in the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. It can be understood by those skilled in the art that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different. It should also be understood that the term "and / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the front and back associated objects are in an "or" relationship.
[0047] Reference to "one embodiment" or "some embodiments" etc. described in the embodiments of the present application means that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in the differences in the embodiments of the present application do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise stated.
[0048] In the embodiments of the present 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0049] In conventional technology, electronic devices are usually equipped with an eye protection function. If the eye protection function of an electronic device is turned on, the electronic device can automatically adjust the screen display brightness according to the ambient light brightness, so that the screen display brightness of the electronic device increases with the increase of the ambient light brightness and adapts to the ambient light brightness, thereby avoiding visual fatigue caused by the screen display brightness of the electronic device being too bright or too dark, and protecting the user's eyesight.
[0050] See also Figure 1 , Figure 1 A scene diagram showing an electronic device provided by an embodiment of the present application automatically adjusting the screen display brightness according to the ambient light brightness is shown. Figure 1 As shown, when the eye protection function of the mobile phone 101 is turned on, when the user holds the mobile phone 101 and moves from a bright light environment to a dark light environment, the mobile phone 101 can lower the screen display brightness in response to the dimming of the ambient light, for example, adjusting the screen display brightness from 30 lumens (lumen, lm) to 10 lumens, so that the screen display brightness of the electronic device is adapted to the ambient light brightness, avoiding visual fatigue, thereby protecting the user's eyesight.
[0051] The process of activating the eye protection function of the mobile phone 101 requires user operation. Figure 2 This section describes the process of users turning on the eye protection function of electronic devices.
[0052] Among them, the user can turn on the eye protection function of the mobile phone 101 in the display function setting interface of the mobile phone 101.
[0053] For example, Figure 2 The following is a schematic diagram showing a process of a user turning on the eye protection function in the display function setting interface of a mobile phone provided by an embodiment of the present application. Figure 2 As shown, the display function setting interface 102 of the mobile phone 101 includes a health display list 103, and the health display list 103 includes options such as "eye protection and sleep" 1031 and "e-book mode". The mobile phone 101 can receive the user's operation of clicking on "eye protection and sleep" 1031, and in response to the operation, the mobile phone 101 can display the following Figure 2 The eye protection and sleep function setting interface 104 is shown.
[0054] like Figure 2 As shown, the eye protection and sleep function setting interface 104 includes an eye protection mode function setting option 105, and the eye protection mode function setting option 105 includes a "timed start" option and a "all-day start" option. Among them, the mobile phone 101 can receive an operation of the user clicking the "timed start" option, and in response to the operation, the mobile phone 101 can turn on the eye protection mode function at a scheduled time. Alternatively, the mobile phone 101 can receive an operation of the user clicking the "all-day start" option, and in response to the operation, the mobile phone 101 can turn on the eye protection mode function all day. In this way, the eye protection function of the mobile phone 101 is turned on by user operation.
[0055] When the eye protection function of the mobile phone 101 is turned on, the mobile phone 101 can automatically adjust the screen display brightness according to the ambient light brightness. In addition, the mobile phone 101 can also automatically adjust the color saturation of the screen according to the ambient light brightness, so that the display effect of the mobile phone 101 is adapted to the ambient light brightness, so as to relieve the eye fatigue of the user when using the electronic device.
[0056] However, current screen display solutions can only adjust the screen display brightness to a pre-configured brightness according to changes in ambient light brightness, or adjust the screen color saturation to a pre-set color saturation according to changes in ambient light brightness, while ignoring the differences in perception of display effects by users with different vision conditions, making it difficult to meet the vision protection needs of users with different vision conditions.
[0057] In order to at least solve the above problems, an embodiment of the present application provides a display parameter adjustment method, which can be applied to an electronic device.
[0058] The electronic device may specifically be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a desktop computer, a laptop computer, a handheld computer, a netbook, a personal digital assistant (PDA), or other terminal devices that support mobile communication functions. The embodiments of the present application do not impose any restrictions on the type and specific form of the electronic device.
[0059] The display parameter adjustment method provided in the embodiment of the present application can comprehensively adjust the display parameters of the electronic device according to actual status information such as whether the user is nearsighted, whether the user wears glasses, the distance between the user and the electronic device, the user's posture when using the electronic device, the ambient light brightness, and the user's age, when it is detected that the user has been watching the electronic device for a long time and the ambient light brightness is high. It can be more individually targeted, so that the display effect brought about by the adjusted display parameters is adapted to the user's vision protection needs, thereby improving the accuracy of the display parameter adjustment.
[0060] The electronic device involved in the embodiments of the present application is described in detail below.
[0061] In some embodiments, see Figure 3 , shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. It should be noted that the electronic device may refer to the aforementioned mobile phone 101. It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include Figure 3 More or fewer components, or combining some components, or splitting some components, or different component arrangements. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0062] like Figure 3 As shown, the electronic device 200 provided in the embodiment of the present application 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, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293 and a display screen (touch screen) 294, etc.
[0063] Among them, the above-mentioned sensor module 280 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
[0064] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0065] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0066] A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or circulated. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system. The memory may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory may store an operating system, such as uCOS, VxWorks, RTLinux and other embedded operating systems.
[0067] In some embodiments, the processor 210 may include one or more interfaces. The interface 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.
[0068] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0069] The wireless communication function of the electronic device can be implemented through the antenna 250, the wireless communication module 260, the modem processor and the baseband processor. In some embodiments, the antenna 250 and the wireless communication module 260 are coupled so that the electronic device can communicate with the network and other devices through wireless communication technology.
[0070] Antenna 250 is used to transmit and receive electromagnetic wave signals. Each antenna 250 in the electronic device can be used to cover a single or multiple 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 of a wireless local area network. In some other embodiments, antenna 250 can be used in combination with a tuning switch.
[0071] The wireless communication module 260 can provide wireless communication solutions for electronic devices including WLAN (such as (wirelessfidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), nearfield communication technology (nearfield communication, NFC), infrared technology (infrared, IR), etc.
[0072] The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 250, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 260 may also receive a signal to be sent from the processor 210, modulate the signal, amplify the signal, and convert the signal into an electromagnetic wave and radiate it via the antenna 250.
[0073] The external memory 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 memory interface 220 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0074] The internal memory 221 may be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 221. For example, in an embodiment of the present application, the processor 210 may execute the instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.
[0075] The program storage area may store an operating system, an application required for at least one function (such as an audio playback function, a data transmission function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio file data, voice call data, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0076] The following will describe the process of the display parameter adjustment method provided in the embodiment of the present application in conjunction with the accompanying drawings.
[0077] like Figure 4 FIG. 1 is a flow chart of a method for adjusting display parameters provided by an embodiment of the present application. Figure 4 Taking a mobile phone as an example, the display parameter adjustment method provided by the embodiment of the present application is exemplarily described. The display parameter adjustment method includes: S101. The mobile phone obtains screen usage time.
[0078] The screen usage time may be the duration that the phone was in the screen-on state the last time.
[0079] In one implementation, the mobile phone being in a screen-on state may mean that a display screen of the mobile phone is in a screen-on state.
[0080] In another implementation, the mobile phone being in a bright screen state may mean that its display screen is in a bright screen state and the designated software is in a foreground running state. Among them, the type and quantity of the designated software may not be limited, and the designated software at least includes software that the user needs to use to watch the display screen, for example, the designated software may be audio playback software and video playback software. The source of the designated software may not be limited, for example, the designated software may be system software configured in the mobile phone, or it may be third-party application software. Optionally, the type of the designated software may not be limited, for example, the designated software may be video / short video playback software, social software, instant messaging software or game software.
[0081] By obtaining the screen usage time, the mobile phone can monitor the time the user uses the phone, thereby preventing the user from using the phone for a long time, causing eye fatigue and thus damaging vision.
[0082] S102: The mobile phone determines whether the screen usage time is greater than the first time.
[0083] If the screen usage time is greater than the first time, S103 is executed; if the screen usage time is less than or equal to the first time, S101 is continued to be executed.
[0084] As an implementation method, the mobile phone can compare the screen usage time with the first time to determine whether the user has used the mobile phone for a long time, and determine whether a vision protection reminder is needed based on the determination result. The specific value of the first time may not be limited, for example, the first time may be 30 minutes or 1 hour.
[0085] Among them, if the screen usage time is greater than the first time, it means that the user has been using the mobile phone for a long time. At this time, the user may have eye fatigue, so a vision protection reminder may be needed, so S103 is further executed.
[0086] If the screen usage time is less than or equal to the first time, it means that the user has not used the mobile phone for a long time, and the user may not have eye fatigue at this time, so there is no need to provide a vision protection reminder. At this time, the mobile phone can continue to obtain the screen usage time, corresponding to S101.
[0087] S103: The mobile phone obtains the ambient light brightness of the current environment and the first image.
[0088] Understandably, when the screen usage time is longer than the first time, it is not certain whether the user has been watching the display screen for a long time. For example, if a user plays a short video on a mobile phone for a long time, but the user does not watch the display screen but listens to the content of the short video, in this case, the screen usage time is longer than the first time, but the user has not actually watched the display screen for a long time.
[0089] Thus, in order to facilitate more accurate vision protection reminders, as an implementation method, the mobile phone can continue to obtain the ambient light brightness and the first image of the current environment to determine whether the user is watching the display screen, and then issue a vision protection reminder when the user is watching the display screen.
[0090] The ambient light brightness is the light intensity of the surrounding environment of the mobile phone. As an implementation method, the mobile phone can obtain the ambient light brightness of the current environment through a light sensor, and the specific acquisition principle and process are not repeated here.
[0091] In this embodiment, the first image is an image captured under the above-mentioned ambient light brightness conditions. In some embodiments, the first image may include a face image of the user.
[0092] It should be noted that the number of the first images may not be limited. For example, the first image may be one image or multiple images.
[0093] As an implementation mode, the mobile phone can obtain a first image under the ambient light brightness of the current environment through an image acquisition device when the screen usage time is greater than the first time. The image acquisition device can be a front camera of the mobile phone. In this implementation mode, the front camera of the mobile phone can be a camera equipped with Always-on (AO) technology. By acquiring the first image with a camera equipped with Always-on technology, the power consumption of the mobile phone can be reduced.
[0094] In this embodiment, the brightness of the ambient light in the current environment is different, and the clarity of the first image obtained by the mobile phone is different. Optionally, the higher the brightness of the ambient light in the current environment, the higher the clarity of the corresponding first image. In this way, in order to facilitate the mobile phone to clearly identify the object in the first image, the mobile phone can determine the brightness of the ambient light in the current environment, corresponding to S104.
[0095] In this embodiment, the order in which the mobile phone obtains the ambient light brightness and the first image is not limited. For example, the mobile phone may first obtain the ambient light brightness and then obtain the first image; the mobile phone may first obtain the first image and then obtain the ambient light brightness; or the mobile phone may obtain the ambient light brightness and the first image at the same time.
[0096] S104: The mobile phone determines whether the ambient light brightness is greater than the first brightness.
[0097] If the ambient light brightness is greater than the first brightness, S105 is executed; if the ambient light brightness is less than or equal to the first brightness, the current determination process is terminated.
[0098] In this embodiment, the first brightness may be a brightness threshold at which the mobile phone can accurately recognize the face in the first image. The specific value of the first brightness may not be limited, for example, the first brightness may be 10 lumens or 20 lumens.
[0099] The brightness of the ambient light may affect the accuracy of the mobile phone in identifying the eye posture of the human eye in the first image. For example, if the ambient light brightness is weak, the mobile phone may not be able to accurately identify the eye posture of the human eye in the first image. Therefore, as an implementation method, the mobile phone can compare the ambient light brightness with the first brightness to determine whether the eye posture of the human eye in the first image can be clearly identified.
[0100] In the case where the ambient light brightness is greater than the first brightness, since the first image captured under the ambient light brightness is clearer, the mobile phone can clearly identify the human eye posture in the first image captured under the ambient light brightness. On this basis, the mobile phone can determine whether the user is watching the display screen according to the first image, corresponding to S105.
[0101] When the ambient light brightness is less than or equal to the first brightness, since the first image captured under the ambient light brightness is blurry, the mobile phone cannot clearly identify the human eye posture in the first image captured under the ambient light brightness, and thus cannot determine whether the user is watching the display screen. At this time, the mobile phone can ignore the current ambient light brightness and end the current judgment process.
[0102] S105: The mobile phone determines whether the user is looking at the display screen according to the first image.
[0103] If the user is looking at the display screen, S106 is executed; if the user is not looking at the display screen, the current judgment process can be terminated.
[0104] In this embodiment, when the ambient light brightness is greater than the first brightness, the mobile phone can recognize the first image and obtain the human eye posture, wherein the human eye posture is used to indicate whether the user is looking at the display screen.
[0105] In some examples, the mobile phone can identify the human eye posture in the first image through the gaze detection model. The mobile phone can input the first image into the gaze detection model, and the gaze detection model can output a first probability and a second probability, the first probability being the probability that the user's eyes are looking at the display screen, and the second probability being the probability that the user's eyes are not looking at the display screen. Further, the mobile phone can compare the first probability with the second probability and determine the human eye posture, that is, determine whether the user is looking at the display screen. If the first probability is greater than or equal to the second probability, the mobile phone can determine that the user is looking at the display screen; if the first probability is less than the second probability, the mobile phone can determine that the user is not looking at the display screen.
[0106] In this embodiment, when the user is looking at the display screen, in order to avoid visual fatigue caused by the user looking at the display screen for a long time, the mobile phone can obtain ambient brightness information, eye 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 status information, distance information, posture information and age information to adjust the display effect of the display screen and relieve the user's visual fatigue, corresponding to S107.
[0107] Furthermore, in order to prevent the user from damaging the user's eyesight by watching the display screen for a long time, such as causing myopia to worsen, as an implementation, the mobile phone can provide a vision protection reminder based on the ambient brightness information, eye status information, distance information, posture information and age information, corresponding to S108.
[0108] In this embodiment, when the user is not looking at the display screen, the user may not suffer visual fatigue due to watching the display screen for a long time, nor will the user's eyesight be damaged due to watching the display screen for a long time, so the judgment process can be terminated.
[0109] It should be noted that the ambient light brightness may not be acquired in S103 , that is, the mobile phone may directly determine whether the user is looking at the display screen based on the first image.
[0110] S106. The mobile phone obtains ambient brightness information, eye status information, distance information, posture information and age information. The ambient brightness information is used to indicate the ambient brightness of the mobile phone within the second time period. The eye status information is used to indicate whether the user wears 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.
[0111] In some implementations, at least one of the eye status information, distance information, posture information, and age information may also be referred to as first information.
[0112] In this implementation, the environment brightness information may include an overall environment attribute and an environment brightness value, wherein the overall environment attribute may be a bright light environment or a dark light environment.
[0113] The second duration represents the time period closest to the current moment, and the specific value of the second duration may not be limited. For example, the second duration may be the last 10 seconds, the last 30 seconds, the last 1 minute, or the last 5 minutes.
[0114] Consider that the phone may enter a dark environment for a short time while the user is watching the display. For example, when the user is watching the display during the day, the user may put the phone in a pocket or take the phone into a subway or tunnel. When the user puts the phone in a pocket or takes the phone into a subway or tunnel, the phone will be in a dark environment for a short time, but this does not mean that the user has been watching the display in a dark environment. In other words, the instantaneous ambient light brightness cannot accurately reflect the ambient brightness when the user is watching the display.
[0115] Therefore, when obtaining the ambient brightness when the user watches the display screen, the overall ambient brightness when the user watches the display screen within a period of time, that is, the above-mentioned ambient brightness information, can be obtained.
[0116] As an implementation mode, the mobile phone can determine the ambient brightness information according to the ambient light brightness in the second time period. Specifically, the mobile phone can obtain the ambient light brightness in the second time period to obtain multiple ambient light brightnesses; then determine the environmental attributes corresponding to the multiple ambient light brightnesses to obtain multiple environmental attributes, wherein the environmental attribute corresponding to each ambient light brightness 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 in the second time period is a bright light environment or a dark light environment according to the multiple environmental attributes to obtain the ambient brightness information.
[0117] The mobile phone can compare each ambient light brightness with the second brightness to obtain the environmental attribute 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, and the second brightness can be 50 lumens.
[0118] For each ambient light brightness, if the ambient light brightness is greater than the second brightness, it can be determined that the environmental attribute corresponding to the ambient light brightness is a bright light environment; if the ambient light brightness is less than or equal to the second brightness, it can be determined that the environmental attribute corresponding to the ambient light brightness is a dark light environment. In this way, multiple environmental attributes of the mobile phone within the second time length can be preliminarily obtained.
[0119] Furthermore, it can be determined based on multiple environmental attributes whether the overall environmental attribute of the mobile phone in the second time period is a bright light environment or a dark light environment.
[0120] In one implementation, the mobile phone may obtain a weighted average of the ambient light brightnesses of the multiple ambient light brightnesses whose ambient attribute is a bright light environment, for example, a first weighted average; and obtain a weighted average of the ambient light brightnesses of the multiple ambient light brightnesses whose ambient attribute is a dark light environment, for example, a second weighted average. Further, the mobile phone may compare the first weighted average with the second weighted average. If the first weighted average is greater than the second weighted average, it can be determined that the overall ambient attribute of the mobile phone in the second time period is a bright light environment; if the first weighted average is less than or equal to the second weighted average, it can be determined that the overall ambient attribute of the mobile phone in the second time period is a dark light environment.
[0121] It should be noted that, in some examples, for multiple ambient light brightnesses within the second time period, the weight corresponding to the ambient light brightness closer to the current moment may be greater, and the weight corresponding to the ambient light brightness farther from the current moment may be smaller.
[0122] Based on this, for the first weighted average, the ratio of the product of the ambient light brightness of a bright light environment and its corresponding weight to the product of multiple ambient light brightnesses and their respective corresponding weights can be determined as the first weighted average. Similarly, for the second weighted average, the mobile phone can determine the ratio of the product of the ambient light brightness of a dark light environment and its corresponding weight to the product of multiple ambient light brightnesses and their respective corresponding weights as the second weighted average.
[0123] For example, assuming that multiple ambient light brightnesses within the second time period include ambient light brightness 1, ambient light brightness 2, ambient light brightness 3, ambient light brightness 4 and ambient light brightness 5, which are sorted from early to late in time, the ambient light brightness value corresponding to ambient light brightness 1 is "a", the ambient light brightness value corresponding to ambient light brightness 2 is "b", the ambient light brightness value corresponding to ambient light brightness 3 is "c", the ambient light brightness value corresponding to ambient light brightness 4 is "d" and the ambient light brightness value corresponding to ambient light brightness 5 is "e", and the weight corresponding to ambient light brightness 1 is A, the weight corresponding to ambient light brightness 2 is B, the weight corresponding to ambient light brightness 3 is C, the weight corresponding to ambient light brightness 4 is D and the weight corresponding to ambient light brightness 5 is E, so A<B<C<D<E. Among them, if ambient light brightness 1 is greater than the second brightness, ambient light brightness 2 is less than or equal to the second brightness, ambient light brightness 3 is greater than the second brightness, ambient light brightness 4 is less than or equal to the second brightness, and ambient light brightness 5 is greater than the second brightness, then it can be determined that: the environmental attribute of the mobile phone under ambient light brightness 1 is a bright light environment, the environmental attribute of the mobile phone under ambient light brightness 2 is a dark light environment, the environmental attribute of the mobile phone under ambient light brightness 3 is a bright light environment, the environmental attribute of the mobile phone under ambient light brightness 4 is a dark light environment, and the environmental attribute of the mobile phone under ambient light brightness 5 is a bright light environment, that is, 5 environmental attributes are obtained.
[0124] Furthermore, the mobile phone can obtain the first weighted average, denoted as Z1: Z1=((a*A)+(c*C)+(e*E)) / ((a*A)+(b*B)+(c*C)+(d*D)+(e*E)).
[0125] And obtain the second weighted average, denoted as Z2: Z2=((b*B)+(d*D)) / ((a*A)+(b*B)+(c*C)+(d*D)+(e*E)).
[0126] Furthermore, the mobile phone can compare Z1 and Z2. If Z1 is greater than Z2, it can be determined that the overall environmental attribute of the mobile phone in the second time period is a bright light environment; if Z1 is less than or equal to Z2, it can be determined that the overall environmental attribute of the mobile phone in the second time period is a dark light environment.
[0127] In another implementation, the mobile phone may compare the number of bright light environments and the number of dark light environments among the multiple environmental attributes. If the number of bright light environments is greater than the number of dark light environments, it can be determined that the overall environmental attribute of the mobile phone in the second time period is a bright light environment; if the number of bright light environments is less than or equal to the number of dark light environments, it can be determined that the overall environmental attribute of the mobile phone in the second time period is a dark light environment.
[0128] The ambient brightness value of the mobile phone during the second time period may be the average of the ambient brightness values corresponding to multiple ambient brightnesses having the same ambient attribute as the overall ambient attribute. It should be noted that the multiple ambient brightnesses here refer to multiple ambient brightnesses for bright light environments or multiple ambient brightnesses for dark light environments.
[0129] In this way, taking the above example, when the overall environmental attribute is a bright light environment, the ambient brightness value of the mobile phone within the second time period can be the average of the ambient light brightness value "a" of the above-mentioned ambient light brightness 1, the ambient light brightness value "c" of the ambient light brightness 3 and the ambient light brightness value "e" of the ambient light brightness 5, that is, (a+c+e) / 3.
[0130] Alternatively, when the overall environmental attribute is a dark light environment, the ambient brightness value of the mobile phone during the second time period can be the average of the ambient light brightness value "b" of the above-mentioned ambient light brightness 2 and the ambient light brightness value "d" of ambient light brightness 4, that is, (b+d) / 2.
[0131] It should be noted that the mobile phone can also obtain the ambient brightness information after S103.
[0132] In this embodiment, the mobile phone can determine the user's eye condition and the corresponding user's vision strength according to the eye condition information. Specifically, according to the eye condition information, it can be determined whether the user wears glasses and is myopic, or the user does not wear glasses and is myopic, or the user does not wear glasses and is not myopic.
[0133] Among them, the user's vision when the user does not wear glasses and is not nearsighted is better than the user's vision when the user wears glasses and is nearsighted, and the user's vision when the user wears glasses and is nearsighted is better than the user's vision when the user does not wear glasses and is nearsighted.
[0134] Optionally, when the eye status information indicates that the user is myopic, the eye status information may also include the degree of myopia.
[0135] As an implementation method, the mobile phone can determine whether the user is wearing glasses based on the aforementioned first image, and determine whether the user is myopic based on whether the mobile phone stores the user's myopia profile information (such as myopia degree, etc.), to obtain eye status information.
[0136] The mobile phone can identify the face in the first image through the glasses detection model to determine whether the user is wearing glasses. If the mobile phone stores the user's myopia file information, it can be determined that the user is myopic; if the mobile phone does not store the user's myopia file information, it can be determined that the user is not myopic.
[0137] By obtaining the eye status information, the mobile phone can determine the user's eyesight when viewing the display screen, and then determine how to provide vision protection reminders.
[0138] In this implementation, the distance information may be specifically understood as the distance between the user's eyes and the display screen.
[0139] In some implementations, the distance may be a roughly estimated or estimated distance. In this case, the distance between the user's eyes and the display screen may be classified into long distance, medium distance, or short distance.
[0140] In other implementations, the distance may be a distance obtained by precise calculation. In this case, the distance between the user's eyes and the display screen is a precise value.
[0141] As an implementation method, the mobile phone can determine the distance between the user's eyes and the display screen through technologies such as iris tracking or facial recognition. The specific determination process will not be repeated here.
[0142] By obtaining the distance between the user's eyes and the display screen, the mobile phone can determine whether the user is viewing the display screen within a distance range that affects vision, and then determine whether a vision protection reminder is needed.
[0143] In this embodiment, the mobile phone can determine whether the user's posture when viewing the display screen is abnormal based on the posture information. Optionally, if the user's posture when viewing the display screen is abnormal, a vision protection reminder is required; if the user's posture when viewing the display screen is normal, no vision protection reminder is required.
[0144] In one embodiment, the posture information may be a head-up posture, a head-down posture, a side-lying posture or a head-level posture, wherein the head-up posture, the head-down posture and the side-lying posture are abnormal postures when the user is viewing the display screen.
[0145] As an implementation method, the mobile phone can obtain the user's head pitch angle or head posture roll angle, and determine the user's posture when viewing the display screen according to the head pitch angle or head posture roll angle, and determine whether the user's posture when viewing the display screen is an abnormal posture. Among them, the head pitch angle represents the human face pitch angle (pitch) of the user's head in the three-dimensional coordinate system, and the head posture roll angle represents the rotation angle (roll) of the user's head in the plane of the three-dimensional coordinate system. The specific acquisition process of the head pitch angle and the head posture roll angle will not be repeated here.
[0146] Optionally, if the absolute value of the head pitch angle is greater than a first angle (the specific value may not be limited, for example, the first angle may be 30°), it may be determined that the user's head is in an upward head posture or a downward head posture, and that the user's posture when viewing the display screen is abnormal. If the absolute value of the head posture roll angle is a second angle (the specific value may not be limited, for example, the second angle may be 90 (±20)°), it may be determined that the user's head is in a side-lying posture, and that the user's posture when viewing the display screen is abnormal.
[0147] By obtaining the user's posture information when viewing the display screen, the mobile phone can monitor whether the user's posture when viewing the display screen is abnormal, and provide vision protection reminders when abnormal posture of the user when viewing the display screen is detected.
[0148] In this implementation manner, 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.
[0149] Optionally, the age of the user can be divided into age groups such as teenagers, young people, middle-aged or elderly, wherein the age of the elderly age group is higher than the age of the middle-aged age group, the age of the middle-aged age group is higher than the age of the young age group, and the age of the young age group is higher than the age of the teenagers age group.
[0150] As an implementation manner, the mobile phone may estimate the user's age group based on the skin texture of the face or the distance between key points of the face in the first image, and further determine the user's age.
[0151] In some examples, the mobile phone may identify the first image by, for example, a Deep Regression Forests (DRFs) model to obtain the user's age information.
[0152] It should be noted that the mobile phone may also obtain age information according to the first image after S103.
[0153] Further, in this embodiment, the mobile phone can adjust the display parameters of the display screen according to the ambient brightness information and the first information. The first information may include at least one of the aforementioned eye state information, distance information, posture information, and age information. The following takes the first information including the eye state information, distance information, posture information, and age information as an example to exemplarily illustrate the process of adjusting the display parameters of the mobile phone, corresponding to S107.
[0154] S107. The mobile phone adjusts display parameters according to the ambient brightness information, eye status information, distance information, posture information and age information.
[0155] In this implementation, the display parameter may include at least one of a color mode, a display contrast, a font size, a brightness, a color temperature, or a display screen refresh rate.
[0156] Color temperature refers to the color of the light emitted by the screen. A cool screen has a bluish hue and a higher color temperature, making it suitable for use during the day or in brightly lit environments. A warm screen has a yellowish hue and a lower color temperature, making it suitable for use at night or in dimly lit environments.
[0157] Color modes can be divided into dark mode and light mode. Light mode is a display mode of the display screen. Light mode uses a light color (such as white) as the background, and dark text or icons are displayed in front. In a bright environment, light mode can reduce display reflections, improve display visibility, and restore the colors of pictures and videos more realistically. Dark mode is also a display mode of the display screen. Dark mode can reduce blue light damage and relieve eye fatigue by adjusting the background color and text contrast of the display screen. In dark mode, the background color of the display screen will become dark (such as black or dark gray), while other elements such as text and icons are displayed in light colors.
[0158] Display contrast is a parameter that measures the display quality of a display. It reflects the display's ability to distinguish between bright parts (white) and dark parts (black) in the same picture. The higher the display contrast, the clearer the light and dark levels of the image displayed by the display, and the fuller and richer the color performance.
[0159] The display refresh rate refers to the number of times the display updates its image per second, measured in Hertz (Hz).
[0160] As an implementation method, when the eye status information, distance information, posture information and age information remain 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 color" to "cold color", and the color mode of the display screen can be adjusted from "dark mode" to "light mode". In this way, the visibility of the display screen in a bright light environment can be improved, ensuring that the user can clearly see the content on the display screen.
[0161] Optionally, in the above case, the darker the ambient brightness indicated by the ambient brightness information, the lower the brightness of the display screen can be, the color temperature can be adjusted from "cold color" to "warm color", and the color mode of the display screen can be adjusted from "light color mode" to "dark color mode". In this way, the user can avoid eye fatigue caused by long-term use of the eyes and protect the user's eyesight.
[0162] As an implementation method, when the ambient brightness information, distance information, posture information and age information remain unchanged, the stronger the user's vision indicated by the eye status information is, the higher the display contrast of the display screen can be, the smaller the font size can be, the higher the refresh rate of the display screen can be, and the weaker the brightness can be. In this way, the user can better identify the display content on the display screen.
[0163] It is understandable that when the user's retina receives a high-contrast signal, it may cause excessive elongation of the eye axis, leading to a rapid increase in myopia. Based on this, in this case, the weaker the user's vision indicated by the eye status information, the lower the display contrast of the display screen can be, the larger the font size can be, the lower the display refresh rate can be, and the higher the brightness can be. In this way, by controlling the contrast, it may help reduce the signals sent by the retina that cause the eye axis to elongate, thereby delaying the progression of myopia; at the same time, it can facilitate users to clearly view the display content on the display screen.
[0164] It should be noted that the brightness can be adjusted as the ambient brightness changes. However, for users with poor vision, such as users who are nearsighted and do not wear glasses, the brightness of the display screen can be appropriately increased and can be increased to above the preset brightness value. For example, when it is detected that the user's vision is poor, the brightness of the display screen can be increased from the original 20 lumens to 40 lumens (i.e., the preset brightness value). Furthermore, in order for the user to view the content of the display screen more clearly, the electronic device can increase the brightness of the display screen from the above 40 lumens to 50 lumens.
[0165] As an implementation method, when the ambient brightness information, eye status information, posture information and age information remain unchanged, the farther the distance indicated by the distance information is, the larger the font size and the higher the brightness of the display screen can be. In this way, it is convenient for users to clearly identify the content displayed on the display screen in a bright environment.
[0166] Optionally, in this case, the closer the distance indicated by the distance information, the smaller the font of the display screen can be and the lower the brightness can be. In this way, it can be avoided that when the user watches the display screen at a close distance, the excessive brightness stimulates the user's eyes, causing visual fatigue and further damaging eyesight. It should be noted that when the distance indicated by the distance information is too small, the electronic device can increase the font to ensure that the user can see the content on the display screen clearly. Optionally, the magnitude of the font increase by the electronic device at this time may be related to the font size used by the user. For example, if the font originally used by the user is larger, the magnitude of the font increase can be smaller at this time; if the font originally used by the user is smaller, the magnitude of the font increase can be larger at this time.
[0167] As an implementation method, when the ambient brightness information, eye status information, distance information and age information remain unchanged, if the posture information indicates an abnormal posture, the refresh rate of the display screen can be lowered and the brightness can be lowered. In this way, it is possible to avoid visual fatigue caused by updating the display screen content too quickly, thereby damaging vision.
[0168] Optionally, in this case, if the posture indicated by the posture information is normal, the brightness of the display screen can be higher and the refresh rate of the display screen can be faster, so that the user can efficiently view the display content of the display screen.
[0169] As an implementation method, when the ambient brightness information, eye status information, distance information, and posture information remain unchanged, the older the user indicated by the age information is, the larger the font size, the higher the brightness, and the higher the display contrast of the display screen can be. In this way, the user can see the displayed content on the display screen clearly.
[0170] Optionally, in this case, the younger the user age indicated by the age information is, the smaller the font size, the lower the brightness, and the lower the display contrast of the display screen can be, so as to avoid irritation of the user's eyes by a strong light environment.
[0171] Based on the above content, it can be seen that the mobile phone can adjust the same display parameter according to different information. For example, the mobile phone can adjust the brightness of the display screen according to the ambient brightness information, or according to the distance information or posture information. In this way, the same display parameter may be repeatedly adjusted according to different information, and it is difficult to ensure that the display effect after repeatedly adjusting the display parameter can meet the user's vision protection needs.
[0172] As a way to improve this problem, the mobile phone in the implementation mode of the present application will comprehensively adjust the display parameters according to the above-mentioned ambient brightness information, eye status information, distance information, posture information and age information, instead of adjusting the display parameters separately according to a certain information.
[0173] For example, if the mobile phone determines that the first display parameter needs to be adjusted based on the eye status information, and the mobile phone also determines that the first display parameter needs to be adjusted based on the distance information, the mobile phone can adjust the first display parameter based on the eye status information and the distance information at the same time, without having to adjust the first display parameter separately. The specific type of the first display parameter may not be limited, for example, the first display parameter may be the font size. In this way, multiple adjustments to the same display parameter can be avoided.
[0174] In this implementation, the mobile phone will perform display based on the adjusted display parameters, thereby achieving an adjusted display effect.
[0175] In summary, the display parameter adjustment method provided in the embodiment of the present application not only takes into account the ambient brightness of the mobile phone, but also can adjust the display parameters based on actual status information such as whether the user is nearsighted, whether he wears glasses, the distance relative to the display screen, the posture when viewing the display screen, and the age. It is more individually targeted, so that the display effect of the display screen is adapted to the user's vision protection needs, thereby improving the user experience.
[0176] S108. The mobile phone issues a vision protection reminder based on the ambient brightness information, eye status information, distance information, posture information, and age information.
[0177] Among them, vision protection reminders include usage time reminders and posture correction reminders. The usage time reminder is used to remind users that the usage time is too long, and the posture correction reminder is used to remind users to correct their usage posture.
[0178] In this embodiment, when the eye status information, distance information, posture information and age information remain unchanged, the frequency of the mobile phone's usage time reminder can be higher when the ambient brightness indicated by the ambient brightness information is too bright or too dark. In this way, the user can avoid eye irritation caused by prolonged use of the eyes in a strong light environment or a dark light environment, thereby protecting the eyesight.
[0179] When the ambient brightness information, distance information, posture information and age information remain unchanged, the stronger the user's eyesight indicated by the eye status information, the lower the frequency of the mobile phone's usage time reminders and posture correction reminders; the weaker the user's eyesight indicated by the eye status information, the higher the frequency of the mobile phone's usage time reminders and posture correction reminders. In this way, it is possible to specifically remind users that they have used their mobile phones for too long and to correct their postures when using their mobile phones based on the strength of their eyesight, thereby reducing vision damage caused by users watching the display screen for a long time and / or watching the display screen with abnormal postures.
[0180] When the ambient brightness information, eye status information, posture information and age information remain unchanged, the farther the distance indicated by the distance information, the lower the frequency of the phone's usage time reminders and posture correction reminders; the closer the distance indicated by the distance information, the higher the frequency of the phone's usage time reminders and posture correction reminders. In this way, the visual fatigue caused by users watching the display screen for a long time with abnormal postures and too close distances can be reduced, thereby protecting the user's eyesight.
[0181] When the ambient brightness information, eye status information, distance information, and age information remain unchanged, if the posture indicated by the posture information is abnormal, the frequency of the mobile phone's usage time reminders can be higher, and the frequency of posture correction reminders can be higher. If the posture indicated by the posture information is normal, the frequency of the mobile phone's usage time reminders can be lower, and the frequency of posture correction reminders can be lower. In this way, adaptive vision protection reminders can be implemented based on the user's posture when viewing the display screen.
[0182] When the ambient brightness information, eye status information, distance information, and posture information remain unchanged, the older the age indicated by the age information, the higher the frequency of the phone's usage time reminders and posture correction reminders. The younger the age indicated by the age information, the lower the frequency of the phone's usage time reminders and posture correction reminders. In this way, targeted vision protection reminders can be implemented based on the user's age to prevent the user from damaging their eyesight due to eye fatigue.
[0183] Based on the above content, it can be seen that the mobile phone can make the same vision protection reminder based on different information. For example, the mobile phone can make a usage time reminder based on the user's age information, or it can make a usage time reminder based on distance information. In this way, the mobile phone will repeatedly make the same vision protection reminder, which may interfere with the user's normal use of the mobile phone.
[0184] In order to improve this problem, the mobile phone in the implementation mode of the present application can comprehensively provide vision protection reminders based on the above-mentioned ambient brightness information, eye status information, distance information, posture information and age information, rather than providing vision protection reminders based on a single piece of information.
[0185] For example, if the phone needs to remind the user of the usage time based on the distance information and the age information, the phone can remind the user of the usage time based on the distance information and the age information at the same time, without having to remind the user of the usage time separately. In this way, repeated reminders for vision protection can be avoided to interfere with the user's normal use of the phone, thereby improving the user experience.
[0186] It should be noted that the methods of using time reminder and posture correction reminder in the embodiments of the present application are not limited. In some embodiments, the methods of using time reminder and posture correction reminder by the mobile phone can be at least one of voice reminder, pop-up reminder or alarm reminder.
[0187] For example, see Figure 5 and Figure 6 , Figure 5 This is an example diagram of a mobile phone usage time reminder provided in an embodiment of the present application. Figure 6 An example diagram of a mobile phone providing posture correction reminders according to an embodiment of the present application.
[0188] like Figure 5 As shown, the mobile phone 101 can display a pop-up window 106 including a first prompt message on the display screen when it is detected that the user has been watching the display screen for more than 30 minutes. The content of the first prompt message is "It is detected that you have been watching the display screen for a long time. For the sake of your eye health, it is recommended that you take a short break before watching again!". Figure 5 As shown, the pop-up window 106 also includes an “OK” option and a “Close” option. The mobile phone can close the pop-up window 106 in response to the user clicking the “OK” option or the “Close” option.
[0189] like Figure 6 As shown, the mobile phone 101 can display a pop-up window 107 including a second prompt message on the display screen when it is detected that the user has been viewing the display screen for more than 30 minutes and the posture is abnormal. The content of the second prompt message is "It is detected that your posture is abnormal when viewing the display screen. For the sake of your eye health, it is recommended that you adjust your posture!". Figure 6 As shown, the pop-up window 107 also includes an “OK” option and a “Close” option. The mobile phone can close the pop-up window 107 in response to the user clicking the “OK” option or the “Close” option.
[0190] The above S101 to S108 describe that when it is detected that the user has been watching the display screen for a long time and the ambient light brightness is high, the mobile phone will comprehensively adjust the display parameters of the mobile phone according to whether the user is myopic, whether the user wears glasses, the distance between the user and the screen, the user's posture when watching the display screen, the ambient light brightness, and the user's age. Compared with the related art that only adjusts the display parameters of the mobile phone in combination with parameters such as ambient light brightness, the display parameter adjustment method provided in the embodiment of the present application can also consider whether the user is myopic, whether the user wears glasses, the distance relative to the screen, the posture when watching the display screen, and the age to adjust the display parameters, which is more individualized, so that the display effect of the display screen is adapted to the user's vision protection needs, and improves the user experience.
[0191] At the same time, the display parameter adjustment method provided in the embodiment of the present application can adjust the display parameters uniformly in combination with a variety of status information, thereby improving the display effect.
[0192] The process of the mobile phone acquiring the eye status information, distance information and posture information in S106 is described in detail below with reference to the accompanying drawings.
[0193] See also Figure 7 , is an example flow chart of a mobile phone obtaining eye status information provided in an embodiment of the present application. The process includes: S201. The mobile phone inputs a first image into a glasses detection model.
[0194] Among them, the glasses detection model is a deep learning model, which can accurately identify facial features in an image, including whether the user is wearing glasses.
[0195] In some examples, the glasses detection model may be a trained object detection model that has the ability to detect whether a user is wearing glasses based on a face image. The specific type of the glasses detection model may not be limited and is only described here as an example.
[0196] As an implementation method, the mobile phone can input the first image into the glasses detection model to identify the characteristics of whether the user wears glasses through the glasses detection model. The number of the first image can be one or more.
[0197] S202: The mobile phone obtains the output result of the glasses detection model.
[0198] In this implementation, the output result of the glasses detection model includes the feature that the user wears glasses or does not include the feature that the user wears glasses.
[0199] When the number of first images is one, if the face in the first image is wearing glasses, the output result 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 result of the glasses detection model does not include the feature of the user wearing glasses.
[0200] In the case where there are multiple first images, the output result of the glasses detection model is the output result determined based on the multiple face images. At this time, the mobile phone can determine whether the output result of the glasses detection model includes the feature of the user wearing glasses based on the ratio of the face wearing glasses and the face not wearing glasses in the first image. Optionally, if the ratio is greater than 1, it can be considered that the output result of the glasses detection model includes the feature of the user wearing glasses; if the ratio is less than or equal to 1, it can be considered that the output result of the glasses detection model does not include the feature of the user wearing glasses.
[0201] Exemplarily, if there are 5 first images, the faces in 3 of them are wearing glasses, and the faces in the other 2 are not wearing glasses, then the ratio of the faces in the first images wearing glasses to those not wearing glasses is 3 / 2=1.5, and 1.5 is greater than 1. It can be determined that the output result of the glasses detection model includes the feature that the user is wearing glasses.
[0202] In this implementation, in order to avoid misjudgment, the mobile phone can also judge whether the user wears glasses based on the first image for multiple times, cache each judgment result, and then determine whether the user wears glasses based on the multiple judgment results. For example, if the result of judging whether the user wears glasses based on the first image is 10 times, and 7 times the user is judged to wear glasses, it can be determined that the user wears glasses.
[0203] S203: The mobile phone determines whether the user is wearing glasses based on the output result.
[0204] If the mobile phone determines that the user is wearing glasses, S204 is executed; if the mobile phone determines that the user is not wearing glasses, S205 is executed.
[0205] In this embodiment, when the output result of the glasses detection model includes the feature that the user wears glasses, it can be determined that the user is wearing glasses; when the output result of the glasses detection model does not include the feature that the user wears glasses, it can be determined that the user is not wearing glasses.
[0206] If it is determined that the user is wearing glasses, it can be considered that the glasses worn by the user are myopic glasses, and the user can be determined to be a myopic user, because the user usually does not wear non-myopic glasses (such as plain glasses, decorative glasses, etc.) for a long time when watching the display screen.
[0207] If it is determined that the user is not wearing glasses, it is necessary to further determine whether the user is a myopic user, corresponding to S205.
[0208] S204: The mobile phone determines that the user is wearing glasses and is nearsighted.
[0209] S205. The mobile phone determines whether the user's myopia profile information is stored.
[0210] If the mobile phone determines that the user's myopia file information is stored, S206 is executed; if the mobile phone determines that the user's myopia file information is not stored, S207 is executed.
[0211] In this embodiment, the mobile phone can obtain the user's eye use file or vision file to store the user's myopia information. The user can input the myopia information to generate the user's eye use file or vision file.
[0212] Optionally, if the mobile phone determines that the user's myopia file information is stored, it can be determined that the user is a myopic user, corresponding to S206. If the mobile phone determines that the user's myopia file information is not stored, it can be determined that the user is not a myopic user, corresponding to S207.
[0213] S206: The mobile phone determines that the user is not wearing glasses and is nearsighted.
[0214] S207: The mobile phone determines that the user is not wearing glasses and is not nearsighted.
[0215] S208. The mobile phone obtains the user's eye status information.
[0216] By obtaining the eye status information, the mobile phone can determine the user's eyesight when viewing the display screen, and then determine how to provide vision protection reminders.
[0217] See also Figure 8 , is an example flow chart of a mobile phone obtaining distance information provided in an embodiment of the present application. The process includes: S301. The mobile phone inputs the first image into a key point recognition model, and obtains the face key points output by the key point recognition model, where the face key points include eye key points.
[0218] The key point recognition model may be used to recognize key points of a face in an image. The specific type of the key point recognition model may not be limited, for example, the key point recognition model may be an active shape model (ASM) or an active appearance model (AAM).
[0219] As an implementation method, the mobile phone can input the first image into a key point recognition model to locate the key area positions of the face in the first image, such as eyebrows, eyes, nose, mouth and facial contour, through the key point recognition model to obtain the facial key points.
[0220] In this embodiment, the key points of the human face may include at least eyes (including left and right eyes), nose and mouth corners (including left and right mouth corners). Among them, eyes are key points of the human eyes.
[0221] S302, the mobile phone obtains the position coordinates of key points of the human eye.
[0222] In some embodiments, 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 positions of the facial key points relative to the first image.
[0223] In this way, the position coordinates of the key points of the human eye can be obtained.
[0224] In this implementation manner, 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.
[0225] S303. The mobile phone determines the pupil distance according to the position coordinates of key points of the human eye.
[0226] As an implementation method, the mobile phone can calculate the pupil distance based on the position coordinates of the key points of the eyes, where the pupil distance is the distance between the centers of the pupils of the user's eyes.
[0227] For example, see Fig. 9 , is a schematic diagram of the principle of calculating the pupil distance according to the position coordinates of the key points of both eyes provided in an embodiment of the present application. Fig. 9 As shown, the pupil distance d can be calculated based on the coordinates of the user's left eye position and the coordinates of the user's right eye position.
[0228] S304: The mobile phone determines distance information according to the pupil distance.
[0229] It can be understood that in the process of capturing the first image with a mobile phone, the closer the user is to the mobile phone, the greater the pupil distance between the user's eyes in the first image; the farther the user is from the mobile phone, the smaller the pupil distance between the user's eyes in the first image.
[0230] Based on this, as an implementation method, the mobile phone can estimate the distance between the user and the display screen according to the pupil distance to obtain distance information.
[0231] For example, see Fig.10 , is a schematic diagram of a principle for determining distance information based on pupil distance provided by an embodiment of the present application. Fig.10As shown, the mobile phone recognizes key points of three images and finally obtains three different pupil distances, namely 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 mobile phone display as D1 based on the pupil distance d1, estimate the distance between the user and the mobile phone display as D2 based on the pupil distance d2, and estimate the distance between the user and the mobile phone display as D3 based on the pupil distance d3. Wherein, D1 is less than D2 and D2 is less than D3.
[0232] In this embodiment, the mobile phone can also obtain distance information in other ways. For example, the mobile phone can measure the distance between the user and the display screen, that is, the distance information, through a depth sensor. Among them, the depth sensor can be a sensor based on the principle of time of flight (ToF). The specific measurement principle and measurement process under this method will not be repeated here.
[0233] By obtaining the distance between the user's eyes and the display screen, the mobile phone can determine whether the user is viewing the display screen within a distance range that affects vision, and then determine whether a vision protection reminder is needed.
[0234] See also Fig.11 , is an example flow chart of a mobile phone obtaining posture information provided by an embodiment of the present application. The process includes: S401. A mobile phone obtains first coordinates according to a first image, where the first coordinates are position coordinates of key points of a user's face in the first image.
[0235] As an implementation mode, the mobile phone may obtain key points of the face according to the first image, and then obtain the position coordinates of the key points of the face in the first image to obtain the first coordinates.
[0236] The implementation process of the mobile phone acquiring the key points of the face according to the first image may refer to the description of S301 and S302 above, which will not be repeated here.
[0237] In this embodiment, the key points of the face include the user's eyes (left and right eyes), nose, and both corners of the mouth (left and right corners of the mouth), and the first coordinates include the user's first left eye coordinates, first right eye coordinates, first nose coordinates, first left corner of the mouth coordinates, and first right corner of the mouth coordinates. The user's first left eye coordinates, first right eye coordinates, first nose coordinates, first left corner of the mouth coordinates, and first right corner of the mouth coordinates are all two-dimensional coordinates.
[0238] S402. The mobile phone obtains second coordinates according to the first image, where the second coordinates are position coordinates of key points of the user's face in a three-dimensional face model corresponding to the first image.
[0239] As an implementation method, the mobile phone can perform three-dimensional reconstruction on the first image to obtain a three-dimensional face model. Further, the mobile phone can obtain the position coordinates of the key points of the face on the three-dimensional face model to obtain the second coordinates. The process of the mobile phone performing three-dimensional reconstruction on the first image and the process of the mobile phone obtaining the position coordinates of the key points of the face on the three-dimensional face model are not described in detail here.
[0240] In this embodiment, the second coordinates include the coordinates of the second left eye, the second right eye, the second nose, the second left corner of the mouth, and the second right corner of the mouth of the user. The coordinates of the second left eye, the second right eye, the second nose, the second left corner of the mouth, and the second right corner of the mouth of the user are all three-dimensional coordinates.
[0241] S403: The mobile phone determines an affine transformation matrix for transforming from the second coordinates to the first coordinates.
[0242] As an implementation mode, the mobile phone may determine an affine transformation matrix for transforming the second coordinates to the first coordinates according to the second coordinates and the first coordinates.
[0243] For example, the mobile phone can use the least square method to calculate the affine transformation matrix from the second coordinate to the first coordinate. The specific calculation process is not repeated here.
[0244] S404: The mobile phone determines relative posture information of the user's head according to the affine transformation matrix.
[0245] In this embodiment, the affine transformation matrix includes rotation information and translation information of the coordinate transformation from the second facial key point to the coordinate transformation of the first facial key point. Based on this, the mobile phone can analyze the affine transformation matrix to obtain a rotation matrix.
[0246] As an implementation method, the mobile phone can convert the rotation matrix into attitude angles (Euler angles) to obtain the attitude of the user's head relative to the mobile phone, that is, the relative attitude information of the user's head.
[0247] S405. The mobile phone obtains inertial measurement unit data.
[0248] In this implementation, the mobile phone can obtain the acceleration and angular velocity of the mobile phone through an inertial measurement unit (IMU). For ease of description, the acceleration and angular velocity of the mobile phone can be referred to as inertial measurement unit data.
[0249] S406: The mobile phone obtains mobile phone posture information according to the inertial measurement unit data.
[0250] As an implementation method, the mobile phone can obtain its attitude information relative to the earth coordinate system based on the inertial measurement unit data to obtain the mobile phone attitude information, wherein the mobile phone attitude information is the absolute attitude information of the mobile phone.
[0251] S407: The mobile phone determines the head posture of the user when viewing the display screen according to the relative posture information and the mobile phone posture information.
[0252] In this embodiment, the mobile phone can convert the relative head posture information of the user into a first quaternion, and convert the mobile phone posture information into a second quaternion. Further, the mobile phone can multiply the second quaternion with the first quaternion to obtain the absolute posture of the user's head, that is, the posture of the user's head when viewing the display screen.
[0253] Optionally, the mobile phone can convert the head posture of the user when viewing the display screen into Euler angles, and then determine the head posture type of the user when viewing the display screen according to the type and angle of the Euler angles. The Euler angles may include the user's head pitch angle or head posture roll angle.
[0254] Among them, the implementation of the mobile phone judging the head posture type of the user when viewing the display screen according to the head pitch angle or the head posture roll angle and judging whether the user's head posture is abnormal can refer to the relevant description in the aforementioned S106, which will not be repeated here.
[0255] By obtaining the user's posture information when viewing the display screen, the mobile phone can monitor whether the user's posture when viewing the display screen is abnormal, and provide vision protection reminders when abnormal posture of the user when viewing the display screen is detected.
[0256] In this embodiment, for any of the aforementioned actual status information such as eye status information, distance information, posture information and age information, the content thereof is different, and the corresponding manner of adjusting the display parameters will be different.
[0257] In one implementation, the eye status information is taken as an example to explain the display parameter adjustment method corresponding to the eye status information in different situations. Fig.12 , is an example flow chart of adjusting display parameters provided in an embodiment of the present application. The flow includes: S501. The mobile phone detects that the user is a myopic user.
[0258] S502: The mobile phone determines whether the user wears glasses based on the first image.
[0259] If the mobile phone determines that the user is wearing glasses based on the first image, S503 is executed; if the mobile phone determines that the user is not wearing glasses based on the first image, S507 is executed.
[0260] The implementation process of the mobile phone determining whether the user wears glasses based on the first image may refer to the description of S201 to S208 in the aforementioned embodiment, which will not be repeated here.
[0261] S503: The mobile phone adjusts the display contrast from the first display contrast to the second display contrast.
[0262] In this embodiment, the display contrast can be understood as the degree of color vividness.
[0263] In one implementation, when the mobile phone detects that the user is wearing glasses, the mobile phone may adjust the display contrast from the first display contrast to the second display contrast.
[0264] The first display contrast is an initial display contrast, and the color vividness corresponding to the second display contrast is lower than the color vividness corresponding to the first display contrast.
[0265] S504, the mobile phone starts timing.
[0266] Optionally, when the mobile phone adjusts the display contrast from the first display contrast to the second display contrast, in order to avoid eye fatigue caused by the user watching the display screen for a long time, the mobile phone can start timing to monitor the length of time the user watches the display screen.
[0267] S505: The mobile phone determines whether the timing duration is greater than the third duration.
[0268] If the mobile phone determines that the timing duration is greater than the third duration, S506 is executed; if the mobile phone determines that the timing duration is less than or equal to the third duration, S505 is continued to be executed.
[0269] Among them, the mobile phone can compare the measured time with a third time.
[0270] If the timed duration is greater than the third duration, it can be determined that the user has been watching the display screen for too long, which may easily cause visual fatigue. To prevent visual fatigue from damaging the user's eyesight, the mobile phone can further reduce the display contrast, corresponding to S506.
[0271] If the timing duration is less than or equal to the third duration, the timing can be continued and the judgment can be made.
[0272] S506. The mobile phone adjusts the display contrast from the second display contrast to the third display contrast.
[0273] As an implementation manner, the mobile phone can adjust the display contrast from the second display contrast to a third display contrast, wherein the color vividness corresponding to the third display contrast is lower than the color vividness corresponding to the second display contrast.
[0274] By reducing the display contrast, bright colors can be prevented from stimulating the eyes of users who are in a state of visual fatigue, thereby protecting the user's eyesight.
[0275] That is to say, as the user uses the mobile phone for a longer time, the user's visual fatigue may increase, and the user's vision may also become weaker. At this time, in order to prevent the user from further causing visual fatigue by watching the display screen for a long time when the vision is weaker, as an implementation method, the mobile phone can adjust the display contrast of the display screen according to the length of time the user uses the mobile phone. Among them, the longer the user uses the mobile phone, the lower the corresponding display contrast can be.
[0276] It should be noted that the display contrast is used here as an example to illustrate how a mobile phone adjusts display parameters according to the length of time a user uses the mobile phone. In actual implementation, the mobile phone can also adjust at least one other display parameter according to the length of time a user uses the mobile phone.
[0277] For example, the mobile phone can adjust the color temperature of the display screen according to the length of time the user watches the display screen. Exemplarily, as the length of time the user watches the display screen increases, the mobile phone can gradually adjust the color temperature of the display screen from "cold" to "warm".
[0278] S507. The mobile phone adjusts the display contrast from the first display contrast to the third display contrast.
[0279] In another embodiment, when the mobile phone determines that the user is not wearing glasses, the mobile phone can directly adjust the display contrast from the first display contrast to a third display contrast. The color vividness corresponding to the third display contrast is lower than the color vividness corresponding to the first display contrast.
[0280] Based on the above description, it can be known that the adjustment to the third display contrast in S506 is performed twice, while the adjustment to the third display contrast in S507 is performed only once.
[0281] That is, when the mobile phone detects that the user is myopic and the user is not wearing glasses, it can be considered that the user's eyesight is weak. At this time, bright colors may irritate the user's eyes and cause visual fatigue. In order to avoid irritating the user's eyes with overly bright colors, the mobile phone can directly lower the display contrast of the display screen from the first display contrast to the third display contrast.
[0282] When the mobile phone detects that the user is myopic and the user is wearing glasses, the user's vision is corrected by wearing glasses, and it can be considered that the user's vision is relatively strong. Therefore, the mobile phone can gradually lower the display contrast of the display screen as the user watches the display screen for a longer time, that is, as the user watches the display screen for a longer time, the display contrast is first reduced from the first display contrast to the second display contrast, and then from the second display contrast to the third display contrast.
[0283] In this way, the display contrast of the display screen can be adjusted in a targeted manner based on the length of time the user views the display screen and the user's eyesight, so that the display effect after the display parameters are adjusted is more matched with the user's eyesight.
[0284] S508. The mobile phone starts timing.
[0285] Among them, when the user is a myopic user and does not wear glasses, his vision is in a poor state. At this time, if the user watches the display screen for a long time, it will greatly stimulate the user's eyes, thereby causing visual fatigue or deepening the degree of myopia.
[0286] In order 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 eye use time.
[0287] S509: The mobile phone determines whether the timing duration is greater than the fourth duration.
[0288] If the timing duration is greater than the fourth duration, execute S510; if the timing duration is less than or equal to the fourth duration, continue to execute S509.
[0289] The mobile phone may compare the measured duration with the fourth duration. Optionally, the fourth duration may be equal to the third duration.
[0290] If the timed duration is greater than the fourth duration, the mobile phone determines that the user has been watching the display screen for too long, which may cause visual fatigue. If the timed duration is less than or equal to the fourth duration, the mobile phone may continue to time and then determine whether the timed duration is greater than the fourth duration.
[0291] In this implementation, in order to prevent visual fatigue from damaging the user's eyesight, the mobile phone can further reduce the display contrast, corresponding to S510.
[0292] S510. The mobile phone adjusts the display contrast from the third display contrast to the fourth display contrast.
[0293] As an implementation manner, the mobile phone can adjust the display contrast from the third display contrast to the fourth display contrast, wherein the color vividness corresponding to the fourth display contrast is lower than the color vividness corresponding to the third display contrast.
[0294] By further reducing the display contrast, bright colors can be avoided from stimulating the eyes of users who are in a state of visual fatigue, thereby protecting the user's eyesight.
[0295] It should be noted that in some other examples, the degree of adjustment of the display contrast may also be determined according to the age of the user. In this case, the older the user, the smaller the corresponding adjustment degree may be, and the younger the user, the larger the corresponding adjustment degree may be.
[0296] Furthermore, when the user is older, the product of the degree of adjustment of the display contrast and the age coefficient can be used as the final adjustment degree. The age coefficient is related to the age of the user. The older the age, the smaller the corresponding age coefficient can be, and the younger the age, the larger the corresponding age coefficient can be. In this way, the adaptability of users of different ages to the display contrast can be balanced.
[0297] S511. The mobile phone determines whether the timing duration is greater than the fifth duration.
[0298] If the timing duration is greater than the fifth duration, execute S512; if the timing duration is less than or equal to the fifth duration, continue to execute S511.
[0299] The fifth duration is greater than the fourth duration, and the fifth duration is greater than the third duration. In some examples, the fifth duration may be twice the fourth duration.
[0300] Furthermore, the mobile phone can compare the measured time with the fifth time. If the measured time is greater than the fifth time, it can be determined that the user has been watching the mobile phone display screen for too long, and a vision protection reminder is required. For example, the mobile phone can display the first prompt information in the form of a pop-up window, and the first prompt information is used to remind the user that the usage time is too long.
[0301] If the timing duration is less than or equal to the fifth duration, the timing may be continued and then it may be determined whether the timing duration is greater than the fifth duration.
[0302] S512. The mobile phone displays a first prompt message, where the first prompt message is used to remind the user that the usage time is too long.
[0303] The specific implementation of the mobile phone displaying the first prompt information may refer to the relevant description of S108 in the aforementioned embodiment, which will not be repeated here.
[0304] S513: The mobile phone displays a third prompt message, where the third prompt message is used to remind the user to adjust the use posture.
[0305] Among them, considering that users watching the display screen in one posture for a long time may affect their health, for example, it may cause limb numbness, etc. Therefore, as a way, the mobile phone can display a third prompt message when it detects that the user has been watching the display screen for a long time. The third prompt message is used to remind the user to adjust the posture. Fig.12 In the method flow shown, the user watching the display screen for a long time can be understood as the time length of the user watching the display screen being greater than the fifth time length.
[0306] In this way, by adjusting the display parameters of the display screen in a targeted manner based on the length of time the user uses the mobile phone and the user's eyesight, more individual and targeted adjustment of the display parameters can be achieved, so that the display effect after the display parameters are adjusted can be more closely matched with the user's eyesight, thereby improving the user experience.
[0307] Furthermore, for Figure 5 The reminder duration thresholds in the embodiment of the present application, namely the third duration, the fourth duration and the fifth duration, also provide an adjustment method. Fig.13 , is an example flow chart of adjusting the reminder duration threshold provided in an embodiment of the present application. The specific process is as follows: S601. The mobile phone determines whether the user's posture is abnormal.
[0308] The user's posture refers to the posture of the user's head when viewing the display screen.
[0309] If the user's posture is abnormal, execute S602; if the user's posture is normal, execute S603.
[0310] The specific judgment process of S601 may refer to the related descriptions of S107 and S407 in the aforementioned embodiments, which will not be repeated here.
[0311] It should be noted that when the user's head posture is in an upward posture, a downward posture, or a side-lying posture, the mobile phone can determine that the user's posture is abnormal.
[0312] S602. The mobile phone determines whether the current environment is a bright light environment according to the ambient brightness information.
[0313] If the current environment is a bright light environment, then S605 is executed; if the current environment is not a bright light environment, then S604 is executed.
[0314] In case the user's posture is abnormal, in order to prevent the user from viewing the display screen in bad light, the mobile phone can determine whether the current environment is a bright light environment.
[0315] As an implementation mode, the mobile phone may determine whether the current environment is a bright light environment according to the ambient brightness information. The specific determination process may refer to the related description in the aforementioned S106 and will not be described in detail here.
[0316] S603. The mobile phone determines whether the current environment is a bright light environment according to the ambient brightness information.
[0317] If the current environment is a bright light environment, then S606 is executed; if the current environment is not a bright light environment, then S605 is executed.
[0318] When the user's posture is normal, in order to avoid damaging the user's eyesight due to excessive ambient light brightness or overexposure, the mobile phone can also determine whether the current environment is a bright light environment. The specific judgment process can refer to the relevant description in the aforementioned S106 and will not be repeated here.
[0319] S604: The mobile phone adjusts the reminder duration threshold to the first parameter.
[0320] As an implementation mode, when the current environment is not a bright light environment, the user's posture for viewing the display screen is detrimental to eyesight and the ambient light is dim, which is not conducive to the user viewing the display screen for a long time. Therefore, the reminder duration threshold can be adjusted from the (initial or preset) reminder duration threshold to the first parameter. The first parameter is less than the (initial or preset) reminder duration threshold.
[0321] In this way, the reminder time threshold for eyesight protection reminders on the mobile phone can be reduced, and users can be reminded to protect their eyesight with a more stringent time threshold.
[0322] S605. The mobile phone adjusts the reminder duration threshold to the second parameter.
[0323] As an implementation method, when the current environment is a bright light environment, the ambient light brightness of the current environment is suitable for the user to watch the display screen, but the user's posture for watching the display screen is detrimental to eyesight. At this time, in order to remind the user to protect his eyesight, the mobile phone can adjust the reminder duration threshold from the (initial or preset) reminder duration threshold to a second parameter. The second parameter is less than the (initial or preset) reminder duration threshold and the second parameter is greater than the first parameter.
[0324] Alternatively, when the user's posture is normal and the current environment is not a bright light environment, the user's posture for viewing the display screen is normal, but the brightness of the current environment in which the user views the display screen is too dim, which is not conducive to the user viewing the display screen for a long time. At this time, in order to remind the user to protect his eyesight, the mobile phone can adjust the reminder duration threshold from the (initial or preset) reminder duration threshold to the second parameter.
[0325] S606. The mobile phone adjusts the reminder duration threshold to the third parameter.
[0326] As an implementation mode, when the user's posture is normal and the current environment is a bright light environment, the user's posture for viewing the display screen is normal and the brightness of the current environment in which the user views the display screen is moderate. At this time, the mobile phone can adjust the reminder duration threshold from the (initial or preset) reminder duration threshold to a third parameter, the third parameter being less than the (initial or preset) reminder duration threshold and the third parameter being greater than the second parameter.
[0327] In summary, the adjustment method of the reminder duration threshold of the eyesight protection reminder for the mobile phone can be determined according to the user's posture when the user is viewing the display screen and the brightness of the current environment in which the user is viewing the display screen, thereby realizing flexible adjustment of the display parameters.
[0328] It should be noted that the above only exemplifies the implementation process of adjusting the reminder duration threshold of the eyesight protection reminder information according to the ambient brightness conditions and the user's posture information. In actual implementation, the reminder duration threshold of the eyesight protection reminder information can also be adjusted according to the ambient brightness conditions and other actual status information of the user, or the reminder duration threshold of the eyesight protection reminder information can be directly adjusted according to other actual status information of the user.
[0329] For example, the electronic device can directly adjust the reminder duration threshold of the vision protection reminder information according to the above distance information. Among them, when the user's eye distance is too close, it can be regarded as the user's myopia is serious, and the user's eye time will be more strictly controlled at this time. Based on this, the closer the distance between the user and the display screen, the greater the degree of adjustment of the reminder duration threshold of the vision protection reminder information can be (for example, the reminder duration threshold can be adjusted from 30 minutes to 10 minutes); the farther the distance between the user and the display screen, the smaller the degree of adjustment of the reminder duration threshold of the vision protection reminder information can be (for example, the reminder duration threshold can be adjusted from 30 minutes to 20 minutes).
[0330] The following uses the mobile phone 1 as an example to exemplarily illustrate the display parameter adjustment method provided in the embodiment of the present application in conjunction with the accompanying drawings. Fig.14 , is an example flow chart of a display parameter adjustment method provided in an embodiment of the present application. Fig.14 As shown, the method includes: S701. Mobile phone 1 obtains screen usage time.
[0331] The implementation of S701 may refer to the description of S101 in the aforementioned embodiment, which will not be repeated here.
[0332] S702: Mobile phone 1 determines whether the screen usage time is greater than 30 minutes.
[0333] The implementation of S702 may refer to the description of S102 in the aforementioned embodiment, which will not be repeated here.
[0334] S703: Mobile phone 1 obtains the ambient light brightness of the current environment and the first image.
[0335] The implementation of S703 may refer to the description of S103 in the aforementioned embodiment, which will not be repeated here.
[0336] S704: Mobile phone 1 determines whether the ambient light brightness is greater than the first brightness.
[0337] The implementation of S704 may refer to the description of S104 in the aforementioned embodiment, which will not be repeated here.
[0338] S705 . The mobile phone 1 determines whether the user is looking at the display screen according to the first image.
[0339] The implementation of S705 may refer to the description of S105 in the aforementioned embodiment, which will not be repeated here.
[0340] S706. Mobile phone 1 determines ambient brightness information according to the ambient light brightness within the second time period.
[0341] The implementation of S706 may refer to the description of S106 in the aforementioned embodiment, which will not be repeated here.
[0342] S707 . The mobile phone 1 determines whether the user wears glasses and whether the user is nearsighted, and obtains eye status information.
[0343] The implementation of S707 may refer to the description of S106 and S201 to S208 in the aforementioned embodiment, which will not be repeated here.
[0344] S708. Mobile phone 1 obtains the distance between the user and the display screen to obtain distance information.
[0345] The implementation of S708 may refer to the description of S106 and S301 to S304 in the aforementioned embodiment, and will not be repeated here.
[0346] S709. Mobile phone 1 obtains the head posture of the user when viewing the display screen, and obtains posture information.
[0347] The implementation of S709 may refer to the description of S106 and S401 to S407 in the aforementioned embodiment, and will not be repeated here.
[0348] S710. Mobile phone 1 determines the user's age information according to the first image.
[0349] The implementation of S710 may refer to the description of S106 in the aforementioned embodiment, which will not be repeated here.
[0350] S711. Mobile phone 1 adjusts display parameters according to ambient brightness information, eye status information, distance information, posture information and age information.
[0351] The implementation of S711 may refer to the description of S107 and S501 to S513 in the aforementioned embodiment, and will not be repeated here.
[0352] S712. Mobile phone 1 displays first prompt information and second prompt information according to the ambient brightness information, eye status information, distance information, posture information and age information. The first prompt information is used to remind the user that the usage time is too long, and the second prompt information is used to remind the user to correct the usage posture.
[0353] Among them, the implementation of S712 can refer to the description of S108, S512 and S513 in the above-mentioned embodiments, and will not be repeated here.
[0354] In some examples, the mobile phone 1 may adjust display parameters or provide vision protection reminders based on only part of the user's actual status information.
[0355] For example, see Fig.15 , is an example flow chart of another display parameter adjustment method provided by an embodiment of the present application. Fig.15 As shown, the method includes: S801. Mobile phone 1 determines whether the user is myopic and whether the user is not wearing glasses.
[0356] The specific implementation of S801 may refer to the descriptions in S106 and S201 to S208, which will not be repeated here.
[0357] S802. Mobile phone 1 determines whether the ambient brightness is too dark.
[0358] The specific implementation of S802 may refer to the description in S106 above, which will not be repeated here.
[0359] S803. Mobile phone 1 adjusts the font size.
[0360] As an implementation method, if the user is myopic, the user does not wear glasses and the ambient brightness is too dark, it can be determined that the user is currently in amblyopia. At this time, in order to facilitate the user to use the mobile phone 1 normally, the mobile phone 1 can adjust the font size. Optionally, the mobile phone 1 can enlarge the font at this time.
[0361] S804. Mobile phone 1 adjusts the display brightness.
[0362] Furthermore, in order to ensure that the user can clearly view the display screen, the mobile phone 1 can adjust the display screen brightness. Optionally, the mobile phone 1 can increase the display screen brightness at this time.
[0363] S805. Mobile phone 1 adjusts the display contrast.
[0364] As an implementation mode, when the user is myopic and does not wear glasses, the mobile phone 1 can adjust the display contrast so that the user can clearly identify the content displayed on the display screen of the mobile phone 1. Optionally, the mobile phone 1 can increase the display contrast at this time.
[0365] S806. Mobile phone 1 determines whether the user's posture is abnormal.
[0366] The specific implementation of S806 may refer to the descriptions in S106 and S401 to S407, which will not be repeated here.
[0367] In the case where the user's posture is abnormal, S807 may be executed, S802 may be executed, or S805 may be executed.
[0368] S807. Mobile phone 1 determines whether the time duration of the user being in an abnormal posture is too long.
[0369] In this embodiment, when the user's posture is abnormal, in order to promptly remind the user to correct the posture, the mobile phone 1 can determine whether the user is in the abnormal posture for too long.
[0370] For example, the mobile phone 1 may compare whether the time duration that the user is in an abnormal posture is greater than a preset time duration, and the specific value of the preset time duration may not be limited, for example, the preset time duration may be a value such as 1 hour or 2 hours.
[0371] Optionally, if the user is in an abnormal posture for longer than a preset time, the user needs to be reminded to correct the posture. At this time, the mobile phone 1 can display a first prompt message and a second prompt message, respectively used to remind the user that the usage time is too long and to remind the user to correct the posture, corresponding to S808 and S809.
[0372] S808. Mobile phone 1 displays a first prompt message, where the first prompt message is used to remind the user that the usage time is too long.
[0373] S809. Mobile phone 1 displays a second prompt message, and the second prompt message is used to remind the user to correct the usage posture.
[0374] Based on the above description, the mobile phone can adjust at least one display parameter of the screen based on at least two status information when the user is viewing the display screen. Compared with adjusting the display parameters separately according to separate status information, this method can make the adjusted display effect more adapted to the user's status, thereby improving the flexibility and effectiveness of display parameter adjustment.
[0375] The embodiment of the present application provides a display parameter adjustment method, which is applied to an electronic device, and the electronic device includes a display screen. The display parameter adjustment method includes: when the screen usage time of the electronic device is greater than the first time length, the electronic device obtains the environment brightness information and the first information, and the first information includes at least one of the eye state information, the distance information, the posture information and the age information; wherein the environment brightness information is used to indicate the environment brightness of the mobile phone within the second time length, the eye state information is used to indicate whether the user wears 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 head posture of the user when viewing the display screen, and the age information is used to indicate the age of the user; the display parameters of the display screen are adjusted according to the environment brightness information and the first information.
[0376] In this way, the electronic device can be the aforementioned Figure 4-Figure 13 Mobile phone or Figure 14-15 Mobile phone 1 in.
[0377] To sum up, electronic devices can not only take into account the brightness of the environment in which they are located, but also adjust display parameters based on actual status information such as whether the user is nearsighted, whether he wears glasses, the distance relative to the display screen, the posture when viewing the display screen, and the age. It is more individually targeted, so that the display effect of the display screen is adapted to the user's vision protection needs, thereby improving the user experience.
[0378] The present application also provides an electronic device, which may include a processor, a memory, a display, a microphone, and a camera. The memory, the display, the camera, and the microphone are coupled to the processor. The memory is used to store computer program code, and the computer program code 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 embodiment. The structure of the electronic device can refer to Figure 3 The structure of the electronic device shown.
[0379] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes each function or step executed by the electronic device in the above method embodiment.
[0380] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the electronic device in the above method embodiment.
[0381] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is 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 refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0382] In the several embodiments provided in this embodiment, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0383] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0384] In addition, each functional unit in each embodiment of the present embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0385] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk, etc. Various media that can store program codes.
[0386] The above is only a specific implementation of this embodiment, but the protection scope of this embodiment is not limited thereto, and any changes or replacements within the technical scope disclosed in this embodiment should be included in the protection scope of this embodiment. Therefore, the protection scope of this embodiment should be based on the protection scope of the claims.
Claims
1. A display parameter adjustment method, characterized in that: Applied to an electronic device, the electronic device includes a display screen, and the method includes: When the screen usage time is longer than the first time, obtaining environment brightness information and first information, wherein the first information includes at least one of eye status information, distance information, posture information and age information; wherein the environment brightness information is used to indicate the environment brightness of the mobile phone within the second time, the eye status information is used to indicate whether the user wears 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 head posture of the user when viewing the display screen, and the age information is used to indicate the age of the user; The display parameters of the display screen are adjusted according to the ambient brightness information and the first information.
2. The method according to claim 1, characterized in that The method further comprises: When the screen usage time is greater than the first time and it is determined that the user is looking at the display screen, the environment brightness information and the first information are obtained.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: When the screen usage time is greater than the first time, acquiring a first image; It is determined whether the user is looking at the display screen according to the first image.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: When the screen usage time is greater than the first time, obtaining the ambient light brightness of the current environment and the first image; When the ambient light brightness is greater than the first brightness, it is determined whether the user is looking at the display screen according to the first image.
5. The method according to claim 4, characterized in that The method further comprises: When the user views the display screen for a time period greater than a reminder time threshold, a first prompt message is displayed, wherein the first prompt message is used to remind the user that the viewing time is too long, and the reminder time threshold is associated with the ambient brightness information and the first information.
6. The method according to claim 4, characterized in that The method further comprises: When the time a user spends viewing the display screen is greater than the reminder time threshold and the user's head posture is abnormal when viewing the display screen, a second prompt message is displayed. The second prompt message is used to remind the user to correct the posture. The reminder time threshold is associated with the ambient 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 includes: The reminder duration threshold is adjusted according to the ambient brightness information and the posture information.
8. The method according to claim 7, characterized in that The adjusting the reminder duration threshold according to the ambient brightness information and the posture information includes: When the posture information indicates that the user's head posture is abnormal when viewing the display screen, and the ambient brightness information indicates that the overall ambient attribute of the mobile phone within the second time period is a dark light environment, adjusting the reminder time threshold to the first parameter; When the posture information indicates that the user's head posture is abnormal when viewing the display screen, and the ambient brightness information indicates that the overall ambient attribute of the mobile phone within the second time period is a bright light environment, adjusting the reminder time threshold to a second parameter, the second parameter being greater than the first parameter; When the posture information indicates that the user's head posture when viewing the display screen is normal, and the ambient brightness information indicates that the overall ambient attribute of the mobile phone within the second time period is a dark light environment, adjusting the reminder time threshold to the second parameter; Alternatively, when the posture information indicates that there is no abnormality in the user's head posture when viewing the display screen, and the ambient brightness information indicates that the overall environmental attribute of the mobile phone within the second time period is a bright light environment, the reminder time threshold is adjusted to a third parameter, and the third parameter is greater than the second parameter.
9. The method according to claim 8, characterized in that The first information includes eye status information, the display parameter includes display contrast, and adjusting the display parameter of the display screen according to the ambient brightness information and the first information includes: When the eye status information indicates that the user wears glasses and is myopic, adjusting the display contrast from a first display contrast to a second display contrast, wherein the second display contrast is lower than the first display contrast; Obtaining a first viewing time of the user at the second display contrast; When the first viewing time is greater than a third viewing time, 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 according to claim 8, characterized in that The first information includes eye status information, the display parameter includes display contrast, and adjusting the display parameter of the display screen according to the ambient brightness information and the first information includes: When the eye status information indicates that the user is not wearing glasses and is myopic, adjusting the display contrast from the first display contrast to a third display contrast, wherein the third display contrast is lower than the first display contrast; Obtaining a second viewing time of the user at the third display contrast; When the second viewing time is greater than a fourth viewing time, 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 according to claim 8, characterized in that The first information includes eye status information, and obtaining the first information includes: Inputting the first image into a glasses detection model to obtain a first determination result, where the first determination result is used to indicate whether the user wears glasses; In the case where the first determination result indicates that the user wears glasses, determining whether there is myopia file information of the user, and obtaining a second determination result; wherein if there is myopia file information, the second determination result indicates that the user is myopic, and if there is no myopia file information of the user, the second determination result indicates that the user is not myopic; The eye status information is obtained according to the first determination result and the second determination result.
12. The method according to claim 8, characterized in that The first information includes distance information, and the acquiring the first information includes: Acquire the position coordinates of key points of the face according to the first image, wherein the key points of the face include key points of the eyes; Determine the pupil distance according to the position coordinates of the key points of the face; The distance between the user and the display screen is determined according to the pupil distance.
13. The method according to claim 8, characterized in that The first information includes posture information, and the acquiring the first information includes: Acquiring absolute posture information of the electronic device, where the absolute posture information of the electronic device is used to indicate a position of the electronic device relative to a geodetic coordinate system; Acquire relative posture information of the user's head according to the first image, where the relative posture information is used to indicate a position of the user's head relative to the electronic device; The head posture of the user when viewing the display screen is determined according to the absolute posture information and the relative posture information.
14. The method according to claim 13, characterized in that The acquiring the relative posture information of the user's head according to the first image includes: Acquire first coordinates according to the first image, where the first coordinates are position coordinates of key points of the user's face in the first image; Acquire second coordinates according to the first image, where the second coordinates are position coordinates of key points of the user's face in the three-dimensional face model corresponding to the first image; determining an affine transformation matrix for transforming from the second coordinates to the first coordinates; The relative posture information of the user's head is determined according to the affine transformation matrix.
15. The method according to any one of claims 9 to 14, characterized in that: The display parameters include at least one of color mode, display contrast, font size, brightness, color temperature, or display screen refresh rate.
16. An electronic device, characterized in that: The electronic device comprises: 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 comprises computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in any one of claims 1-15.
17. A computer storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 15.
18. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Method and device for judging visual fatigue of user
CN106897725A
Terminal and eye protection control method thereof, and computer readable storage medium
CN109672778A
Display control method, electronic equipment, storage medium and chip system
CN117472316A