Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The terms "at least one," "at least one," and the like in the description and in the claims, mean that they encompass any one, any two, or a combination of two or more of the objects. For example, at least one of a, b, c (item) may represent "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", wherein a, b, c may be single or plural. Similarly, the term "at least two" means two or more, and the meaning of the expression is similar to the term "at least one".
In order to facilitate understanding of the aspects of the present application, the following explains the related art to which the present application relates.
1. Screen resolution, which refers to the number of pixels on a screen, is typically described in terms of horizontal pixel count x vertical pixel count. In general, the higher the resolution of an image, the more pixels that are included, the more sharp the image.
2. The pixel density (Pixels Per Inch, PPI) is used to represent the number of pixels per inch of screen, the higher the pixel density, the more abundant the image details, the finer the display effect, the lower the pixel density, the more blurred the image display, and therefore, the pixel density is a key factor in determining the sharpness.
Illustratively, the electronic device may calculate the pixel density by the following equation one;
Where X represents the horizontal resolution of the screen, Y represents the vertical resolution of the screen, and Z represents the diagonal length of the screen, typically in inches.
3. When the viewing angle of the viewing screen is fixed, the closer the distance between the eyes and the screen is, the larger the viewing angle of the viewing screen is, and the farther the distance between the eyes and the screen is, the smaller the viewing angle of the viewing screen is due to the principle of the near-far-distance.
Illustratively, when the screen size is fixed, the relationship between the distance of the human eye from the screen and the angle of view is shown in the following formula two:
Wherein X is the diagonal dimension of the screen, d is the distance from the human eye to the screen, and θ is the angle of view of the viewing screen.
For example, as shown in fig. 1, the distance between the human eye and the screen of the electronic device is d, the diagonal dimension of the screen is X, and the viewing angle of the user viewing the screen is θ, and when the distance d between the human eye and the screen of the electronic device becomes far, the viewing angle of the user viewing the screen becomes large, and similarly, when the distance d between the human eye and the screen of the electronic device becomes close, the viewing angle of the user viewing the screen becomes small.
4. The angular resolution (Pixels PER DEGREE, PPD), which refers to the average number of pixels filled per 1 included angle in the field of view, can also be understood as how many pixels the human eye can resolve per degree. Typically a person with 1.0 vision, ppd=60, i.e. a minimum of 1/60 degree object can be resolved. Since the smaller the viewing distance d, the larger the viewing angle θ of the viewing screen, and the user's eyesight is unchanged and the number of physical pixels of the screen is unchanged in a specific time, as the viewing angle θ becomes larger, the PPD provided to the user by the screen is decreased and the lattice feeling is strong according to the following formula three.
Therefore, the pixel density requirement on the screen is higher when the viewing distance d is closer, so that in order to ensure the viewing effect of a user, the pixel density of the screen can be improved when the viewing distance d is closer, and similarly, the pixel density requirement on the screen is lower when the viewing distance d is farther, so that the PPD provided for the user can be reduced, namely the pixel density of the screen can be reduced.
PPD = pixels/deviee equation three
5. The vision grade is used for representing the vision obtained by adopting the international standard visual acuity chart, the range of the vision grade is 0.1-1.5, and the normal standard vision is obtained when the vision grade is 1.0. The lower the eye level is, the lower the user identifiable pixel density is, and similarly the higher the eye level is, the higher the user identifiable pixel density is, when the distance of the eyes from the screen is unchanged.
The screen resolution adjustment method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The screen resolution adjustment method in the embodiment of the application can be applied to scenes for adjusting the resolution of the screen.
The screen resolution adjustment method provided by the embodiment of the application is exemplified by a few specific scenes.
Scene 1 (the vision information of the user is fixed, the distance between eyes and the screen of the electronic device is shortened), namely, the user inputs vision information (such as '1.0') of eyes of the user in the electronic device in advance, when the user watches a video by using the electronic device and the vision information of eyes of the user is acquired as '1.0', the distance between eyes of the user and the screen of the electronic device is 0.5m (namely, the second information), the electronic device can determine the pixel density A which can be identified by the user based on the pixel density A and then adjust the resolution of the screen to the resolution A corresponding to the pixel density A based on the pixel density A. Then, when the electronic device detects that the distance between the eyes of the user and the screen of the electronic device is changed to 0.4m when the user approaches the electronic device, the electronic device can determine the pixel density B (namely the first pixel density) which can be recognized by the user based on the vision information '1.0' of the eyes of the user, the distance between the eyes of the user and the screen of the electronic device is 0.4m (namely the first information), and the pixel density corresponding to the highest resolution of the screen, and then adjust the resolution of the screen to be the resolution B based on the pixel density B, wherein the pixel density B is larger than the pixel density A, and the resolution A is lower than the resolution B.
Scene 2 (the vision information of the eyes of the user becomes low, the distance between the eyes of the user and the screen of the electronic device is fixed), namely, the user inputs the vision grade (for example, 1.0) of the user in the electronic device in advance; when the user views the video by using the electronic device and the electronic device obtains that the vision information of the eyes of the user is 1.0", the distance between the eyes of the user and the screen of the electronic device is 0.5m (namely the second information), the electronic device can determine the pixel density A which can be identified by the user based on the pixel density corresponding to the highest resolution of the screen and the obtained second information, and then adjust the resolution of the screen to the resolution A corresponding to the pixel density A based on the pixel density A; when the user finds that the eyesight is reduced, the user can update the eyesight information (for example, 0.8) of the eyes of the user in the electronic device, then when the user watches the video by using the electronic device again and the electronic device obtains that the eyesight information of the eyes of the user is 0.8, the distance between the eyes of the user and the screen of the electronic device is 0.5m (namely, the first information), the electronic device can determine the pixel density C (namely, the first pixel density) which can be identified by the user based on the pixel density C and the obtained first information, then adjust the resolution of the screen to be the resolution C based on the pixel density C, wherein the pixel density C is smaller than the pixel density A, the resolution A is higher than the resolution C, and as the eyesight of the user is poorer, the pixel density which can be identified by the user is reduced, therefore, the pixel density C which is lower than the relative pixel density A can be determined, to reduce the resolution of the screen.
In connection with scene 2, scene 3 is such that after the resolution of the screen is adjusted to a resolution a corresponding to a pixel density a (the distance between the eyes of the user and the screen of the electronic device becomes far), the electronic device acquires that the vision information of the user is adjusted from "1.0" to 0.8 "and the distance between the eyes of the user and the screen of the electronic device is changed from 0.5m to 0.6m (i.e., the first information described above), the electronic device can determine a pixel density D (i.e., the first pixel density described above) recognizable by the user based on the highest resolution of the screen and the acquired first information, and then adjust the resolution of the screen to a resolution D based on the pixel density D, wherein the pixel density D is smaller than the pixel density a and is smaller than the pixel density C in the scene 2, and the resolution C is lower than the resolution a and is lower than the resolution C in the scene 2, and it is understood that the distance between the eyes of the user and the screen of the electronic device is lower than the pixel density D, and the pixel density D is also recognizable by the pixel density D is lower than the pixel density D and is lower than the pixel density D recognizable by the user.
In the method, the device, the electronic equipment and the storage medium for adjusting the screen resolution provided by the embodiment of the application, the electronic equipment can determine the first pixel density which can be identified by the user based on the vision information of eyes of the user, the distance between eyes of the user and the screen and the pixel density corresponding to the highest resolution of the screen, and then further, the resolution of the screen is dynamically adjusted based on the first pixel density, so that the adjustment of the screen resolution does not influence the watching effect of the user, namely the definition of the screen display content seen by the user is unchanged, the requirement of human eyes on the screen definition is met, the electronic equipment can be prevented from displaying images with the highest resolution for a long time, and the power consumption of the electronic equipment is reduced while the watching effect of the user is not influenced.
The execution body of the screen resolution adjustment method provided by the embodiment of the application can be a screen resolution adjustment device, and the screen resolution adjustment device can be an electronic device or a functional module or entity in the electronic device. The technical solution provided by the embodiment of the present application is described below by taking an electronic device as an example.
The embodiment of the application provides a screen resolution adjustment method, and fig. 2 shows a flowchart of the screen resolution adjustment method provided by the embodiment of the application, and the method can be applied to electronic equipment. As shown in fig. 2, the method for adjusting screen resolution according to the embodiment of the present application may include the following steps 201 to 203.
Step 201, under the condition that the eyes of a user are detected to watch the screen of the electronic equipment, the electronic equipment acquires first information.
In an embodiment of the present application, the first information includes visual information of eyes of the user and a distance between the eyes of the user and the screen.
In some embodiments of the application, the vision information of the user's eyes may be stored in the electronic device. It can be appreciated that, when the user's eyes are detected to be gazing at the screen of the electronic device, the electronic device can acquire the stored vision information of the user's eyes, so as to conveniently and quickly adjust the resolution of the screen by combining the distance between the user's eyes and the screen.
In some embodiments of the present application, before step 201, in a case where the electronic device displays the vision information input interface, the electronic device may receive a first input of the vision information input interface by the user, and acquire and store the vision information of the eyes of the user based on the input information of the first input.
In some embodiments of the application, the input information is used to indicate visual information of the eyes of the user.
In some embodiments of the present application, the electronic device may update the vision information of the user's eyes when a second input of the user at the vision grade entry interface is received and the vision information indicated by the input information of the second input is different from the stored vision information of the user's eyes.
In some embodiments of the present application, the distance between the eyes of the user and the screen may also be understood as the distance between the user and the screen of the electronic device.
In some embodiments of the present application, the electronic device may determine the distance between the user's eyes to the screen via a distance sensor of the electronic device.
In some examples, the distance sensor may be a LiDAR sensor, or any sensor capable of measuring the distance of a user's eyes to a screen. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
The electronic device may transmit the first laser beam through a LiDAR sensor of the electronic device and receive a reflected beam of the first laser beam, and then determine a distance of the user's eyes to the screen based on a difference between the first time and the second time. The first time is the time of transmitting the first laser beam, and the second time is the time of receiving the reflected beam by the electronic equipment.
In some embodiments of the present application, the electronic device may capture an image via the camera and then determine whether the user's eyes are looking at the screen of the electronic device via the captured image.
It should be noted that, for the detailed step of determining whether the eyes of the user are looking at the screen of the electronic device, reference may be made to the description in the related art, and the detailed description is omitted herein.
In some embodiments of the present application, the electronic device may acquire the first information when it is detected that the eyes of the user gazes at the screen of the electronic device and the electronic device is in a use state.
In some embodiments of the present application, the electronic device may determine that the electronic device is in a use state when it is detected that the screen is in a lit state and the electronic device runs any application program in the foreground.
Step 202, the electronic device determines a first pixel density based on the first information and a pixel density corresponding to a highest resolution of the screen.
In some embodiments of the present application, the first pixel density may be understood as a pixel density matching the first information.
In some embodiments of the present application, the first pixel density is a maximum number of pixels per inch of screen that can be identified (or discerned) by a user.
It will be appreciated that the user will not be able to identify more pixels when the pixel density of the screen is higher than the user identifiable pixel density, i.e. the user will not be able to resolve smaller details, or that the effect of the screen viewed by the user when the pixel density of the screen is higher than the user identifiable pixel density will be the same as the effect of the screen viewed by the user when the pixel density of the screen is the user identifiable pixel density. Therefore, when the pixel density of the screen is the pixel density recognizable by the user, the viewing effect of the user (that is, the definition of the screen is not changed in the view of the eyes of the user) is not affected, and the power consumption of the electronic equipment can be saved.
In some embodiments of the present application, the pixel density corresponding to the highest resolution of the screen is understood to be the highest pixel density of the screen, i.e., the maximum number of pixels that can be displayed by the electronic device per inch of screen.
In some embodiments of the present application, as shown in fig. 3 in conjunction with fig. 2, the above step 202 may be implemented specifically by the following step 202 a.
In step 202a, when the first information is different from the second information, the electronic device determines the first pixel density based on the first information and the pixel density corresponding to the highest resolution of the screen.
In an embodiment of the present application, the second information is information acquired at a time before the first information is acquired.
In some embodiments of the application, the second information includes visual information of the user's eyes and a distance between the user's eyes and a screen, the visual information being acquired at a time prior to the first information.
In some embodiments of the present application, the first information and the second information may be any of the following:
The visual acuity information of the eyes of the user included in the first information is different from the visual acuity information of the eyes of the user included in the second information (it can be understood that after the electronic device acquires the second information, before the first information is acquired, the user updates the visual acuity information of the eyes of the user stored in the electronic device);
the distance between the eyes of the user and the screen included in the first information is different from the distance between the eyes of the user and the screen included in the second information;
The vision information of the user's eyes included in the first information is different from the vision information of the user's eyes included in the second information, and the distance from the user's eyes to the screen included in the first information is different from the distance from the user's eyes to the screen included in the second information.
It will be appreciated that in the case where the first information and the second information are the same, it is explained that the visual information of the eyes of the user and the distance from the eyes of the user to the screen are not changed, and therefore the pixel density recognizable by the user is not changed, so that it is not necessary to repeatedly determine the pixel density recognizable by the user.
Therefore, the electronic equipment determines the identifiable pixel density of the user when at least one of the vision information of the eyes of the user and the distance between the eyes of the user and the screen changes, and further dynamically adjusts the resolution of the screen, so that the power consumption of the electronic equipment is saved.
In some embodiments of the present application, as shown in fig. 4 in conjunction with fig. 2, the above step 202 may be specifically implemented by the following steps 202b and 202 c.
Step 202b, the electronic device determines a first adjustment weight based on the first information.
In the embodiment of the present application, the value of the first adjustment weight is less than or equal to 1.
In some examples, the first adjustment weight may have a value in the range of [0.4,1]. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
In some embodiments of the present application, the higher the first adjustment weight, the higher the first pixel density, and similarly, the lower the first adjustment weight, the lower the first pixel density, i.e., the first adjustment weight is proportional to the first pixel density.
In some embodiments of the present application, the step 202b may be specifically implemented by the following step 301.
Step 301, the electronic device determines, as a first adjustment weight, an adjustment weight corresponding to a first vision range and corresponding to a first distance range, from among at least two adjustment weights.
In an embodiment of the present application, the vision information is located in a first vision range, and a distance between eyes of the user and the screen is located in the first distance range.
In some embodiments of the present application, the electronic device may determine the first adjustment weight corresponding to the first vision range and corresponding to the first distance range by looking up table 1 below.
TABLE 1
In some embodiments of the present application, the correspondence between the vision range and the distance range and the adjustment weight (i.e., table 1 above) may be obtained through a human factor experiment.
In some embodiments of the present application, as can be seen from table 1 above, the user's eye vision information is proportional to the adjustment weight when the user's eye-to-screen distance is fixed, and the user's eye-to-screen distance is inversely proportional to the adjustment weight when the user's eye vision information is fixed. Thus, in the case where the distance between the user's eyes and the screen is fixed, the vision information of the user's eyes is proportional to the pixel density, and in the case where the vision information of the user's eyes is fixed, the distance between the user's eyes and the screen is inversely proportional to the pixel density.
It can be understood that when the visual information of the eyes of the user is higher, the closer the distance between the eyes of the user and the screen is, the higher the pixel density recognizable by the user is, and the higher the resolution requirement is, so for the case that the visual information of the eyes of the user is higher, the distance between the eyes of the user and the screen is closer, the first adjustment weight can be 1, that is, the resolution of the electronic device is not adjusted, and the electronic device displays the image with the highest resolution.
For example, when the first information includes that the vision information of the user's eyes is "1.2", the distance between the user's eyes and the screen is "0.6" m, the electronic device may determine that the vision range corresponding to the vision information of the user's eyes "1.2" is "(1, 1.5]" (i.e., the first vision range described above), the distance between the user's eyes and the screen is "(0.5, 0.75]" (i.e., the first distance range described above), and then determine that the adjustment weight corresponding to the vision range "(1, 1.5]", and corresponding to the distance range "(0.5, 0.75 ]") is "0.8" (i.e., the first adjustment weight described above) by looking up table 1 described above.
In some embodiments of the present application, the step 202b may be specifically implemented by the following steps 401 and 402.
Step 401, the electronic device determines a first PPD corresponding to a second vision range from a preset correspondence between the vision range and the PPD.
In an embodiment of the present application, the vision information is located in a second vision range.
In some embodiments of the present application, the first PPD is a maximum number of pixels that can be resolved per degree of the user when the user's vision information is within the second vision range.
In some embodiments of the present application, the electronic device may determine the first PPD corresponding to the second vision range by looking up table 2 below.
TABLE 2
| Vision range |
PPD |
| (0,0.8] |
48 |
| (0.8,1] |
60 |
| (1,1.5] |
75 |
| (1.5,2.0] |
100 |
In some embodiments of the application, the user's visual information is proportional to the PPD with the distance between the user's eyes to the screen fixed.
It will be appreciated that the higher the user's eye-to-screen distance, the greater the number of pixels the eye can identify, i.e., the greater the PPD, and similarly, the lower the user's eye-to-screen distance, the fewer the number of pixels the eye can identify, i.e., the lesser the PPD.
Step 402, the electronic device determines, as a first adjustment weight, an adjustment weight corresponding to the first PPD and corresponding to the second distance range, from among at least two adjustment weights.
In the embodiment of the application, the distance between the eyes of the user and the screen is within the second distance range.
In some embodiments of the present application, the electronic device may determine the first adjustment weight corresponding to the first PPD and corresponding to the second range of distances by looking up table 3 below.
TABLE 3 Table 3
In some embodiments of the present application, the correspondence between PPD and distance range and adjustment weight (i.e., table 3 above) may be obtained through artificial experiments.
In some embodiments of the present application, it is known from table 3 above that PPD is proportional to the adjustment weight in the case where the distance between the eyes of the user and the screen is fixed, and that the distance between the eyes of the user and the screen is inversely proportional to the adjustment weight in the case where the PPD is fixed. Thus, in the case where the distance between the user's eyes and the screen is fixed, the vision information of the user's eyes is proportional to the pixel density, and in the case where the vision information of the user's eyes is fixed, the distance between the user's eyes and the screen is inversely proportional to the pixel density.
It can be understood that when the distance between eyes of a user and a screen is fixed, the higher the eyesight of the eyes of the user is, the larger the number of pixels which can be identified by the eyes is, namely, the larger the PPD is, the higher the pixel density requirement on the screen is when the PPD is larger, so that the weight is adjusted to be larger, the higher the pixel density is, and the higher the resolution is, the clearer the display picture is. Similarly, when the distance between eyes of a user and a screen is fixed, the lower the eyesight of the eyes of the user is, the smaller the number of pixels which can be identified by the eyes is, namely, the smaller the PPD is, the lower the pixel density requirement on the screen is when the PPD is smaller, so that the lower the pixel density is caused, the lower the resolution is, and the more power consumption of the electronic equipment is saved.
It can be understood that when the vision information of the eyes of the user is fixed, the closer the distance between the eyes of the user and the screen is, the larger the number of pixels which can be identified by the eyes, namely, the larger the PPD, the higher the pixel density requirement on the screen is when the PPD is larger, so that the weight is adjusted to be larger, the higher the pixel density is, and the clearer the display picture is. Similarly, when the vision information of the eyes of the user is fixed, the distance between the eyes of the user and the screen is further, the number of pixels which can be identified by the eyes of the user is smaller, namely, the PPD is smaller, when the PPD is smaller, the pixel density requirement on the screen is lower, so that the adjustment weight is smaller, the pixel density is lower, the resolution is lower, and the power consumption of the electronic equipment is more saved.
It can be understood that when the vision of the eyes of the user is lower and the distance between the eyes of the user and the screen is also longer, the number of pixels which can be identified by the eyes of the user is smaller, namely, the PPD is smaller, and when the PPD is smaller, the pixel density requirement on the screen is lower, so that the weight is also smaller, the pixel density is lower, and the lower the resolution is, the more power consumption of the electronic equipment is saved.
For example, when the first information includes that the vision information of the user's eyes is "0.6", the distance between the user's eyes and the screen is "0.8" m, the electronic device may determine that the vision range corresponding to the vision information of the user's eyes "0.6" is "(0, 0.8]" (i.e., the second vision range described above), the distance range corresponding to the distance between the user's eyes and the screen "0.8" m is "(0.75,1 ]" (i.e., the second distance range described above), then the electronic device may determine that the vision range "(0, 0.8)" corresponds to PPD "48" (i.e., the first PPD) by looking up table 2 above, and then the electronic device may determine that the adjustment weight corresponding to PPD "48" and corresponding to the distance range "(0.75,1") is "0.5" (i.e., the first adjustment weight described above) by looking up table 3 above.
Step 202c, the electronic device multiplies the first adjustment weight by the pixel density corresponding to the highest resolution to obtain a first pixel density.
For example, when the first adjustment weight is 0.8 and the pixel density corresponding to the highest resolution is 300, the electronic device may obtain the first pixel density as 0.8x300=240.
In this manner, since the electronic device can determine a matching first adjustment weight based on the vision information of the user's eyes and the distance between the user's eyes to the screen, to determine a pixel density recognizable to the user's eyes based on the adjustment weight, and the resolution of the electronic equipment is dynamically adjusted based on the pixel density, so that compared with the situation that the electronic equipment continuously displays images with high resolution, the scheme does not influence the watching effect of a user, and saves the power consumption of the electronic equipment.
Step 203, the electronic device adjusts the resolution of the screen based on the first pixel density.
It is understood that the electronic device may adjust the resolution of the screen to a resolution corresponding to the first pixel density based on the first pixel density.
In some embodiments of the application, the first pixel density is proportional to a resolution of the screen.
In some embodiments of the present application, as shown in fig. 5 in conjunction with fig. 2, the above-mentioned step 203 may be specifically implemented by the following steps 501 and 502.
Step 501, the electronic device calculates a first resolution based on a first pixel density and a screen size of the screen.
In some embodiments of the application, the screen size of the screen of the electronic device includes a screen height and a screen width.
Illustratively, the units of screen height and screen width are inches.
In some embodiments of the present application, the electronic device may read the stored hardware parameters of the electronic device to obtain the screen size of the screen.
In some embodiments of the present application, the electronic device may multiply the screen height by the first pixel density to obtain the number of pixels in the vertical direction of the screen, multiply the screen width by the first pixel density to obtain the number of pixels in the horizontal direction of the screen, and then obtain the first resolution based on the number of pixels in the vertical direction and the number of pixels in the horizontal direction.
Step 502, the electronic device adjusts the resolution of the screen to a first resolution.
In some embodiments of the present application, the electronic device may divide the number px of pixels corresponding to the first resolution by the density value to obtain a dp value, and then complete adjustment of the screen resolution based on the dp value.
In some embodiments of the present application, the electronic device may divide the first pixel density PPI by the first value to obtain the density value.
Illustratively, the first value is 160, a dot Per Inch (Dots Per Inch) standard (DPI) value.
It will be appreciated that the electronic device may achieve screen adaptation by modifying the system density. System density is a member variable in DISPLAYMETRICS, while DISPLAYMETRICS instance is available through Resources # GETDISPLAYMETRICS, and Resouces is available through Activity or Application's Context. That is, all the conversions of dp and px are calculated by the correlation values in DISPLAYMETRICS, so that dp adaptation can be accomplished by modifying the density values in DISPLAYMETRICS.
It should be noted that, for the detailed step of adjusting the screen resolution of the electronic device, reference may be made to the description in the related art, and the detailed description is omitted herein.
In the screen resolution adjustment method provided by the embodiment of the application, the electronic equipment can determine the first pixel density which can be identified by the user based on the vision information of the eyes of the user, the distance between the eyes of the user and the screen and the pixel density corresponding to the highest resolution of the screen, and then further, the resolution of the screen is dynamically adjusted based on the first pixel density, so that the adjustment of the screen resolution does not influence the watching effect of the user, namely the definition of the screen display content seen by the user is unchanged, the purpose that the requirement of human eyes on the screen definition is met is realized, the electronic equipment can be prevented from displaying images with the highest resolution for a long time, and the power consumption of the electronic equipment is reduced while the watching effect of the user is not influenced. .
It should be noted that, the foregoing method embodiments, or various possible implementation manners in the method embodiments may be executed separately, or may be executed in combination with each other on the premise that no contradiction exists, and may be specifically determined according to actual use requirements, which is not limited by the embodiment of the present application.
It should be noted that, in the method for adjusting a screen resolution according to the embodiment of the present application, the execution subject may be a device for adjusting a screen resolution. In the embodiment of the present application, a method for executing a screen resolution adjustment by a screen resolution adjustment device is taken as an example, and the screen resolution adjustment device provided by the embodiment of the present application is described.
Fig. 6 shows a schematic diagram of one possible configuration of a screen resolution adjustment apparatus according to an embodiment of the present application. As shown in fig. 6, the screen resolution adjustment device 70 may include an acquisition module 71, a determination module 72, and an adjustment module 73.
The acquiring module 71 is configured to acquire first information when detecting that a user's eyes look at a screen of the electronic device, where the first information includes vision information of the user's eyes and a distance between the user's eyes and the screen;
A determining module 72, configured to determine a first pixel density based on the first information acquired by the acquiring module 71 and a pixel density corresponding to a highest resolution of the screen;
An adjustment module 73 for adjusting the resolution of the screen based on the first pixel density determined by the determination module 72.
The embodiment of the application provides a screen resolution adjustment device, which can determine the first pixel density which can be identified by a user based on the vision information of eyes of the user, the distance between the eyes of the user and the screen and the pixel density corresponding to the highest resolution of the screen, and then further dynamically adjust the resolution of the screen based on the first pixel density, so that the adjustment of the resolution of the screen does not influence the watching effect of the user, namely the definition of the screen display content seen by the user is unchanged, the purpose that the requirement of eyes on the definition of the screen is met is realized, the electronic device can be prevented from displaying images with the highest resolution for a long time, and the power consumption of the electronic device is reduced while the watching effect of the user is not influenced.
In a possible implementation manner, the determining module 72 is specifically configured to determine the first pixel density based on the first information and the pixel density corresponding to the highest resolution of the screen when the first information is different from the second information, where the second information includes vision information of the eyes of the user and a distance between the eyes of the user and the screen, which are acquired at a time before the first information is acquired.
In one possible implementation manner, the determining module 72 is specifically configured to determine a first adjustment weight based on the first information, and multiply the first adjustment weight with a pixel density corresponding to the highest resolution to obtain a first pixel density, where a value of the first adjustment weight is less than or equal to 1.
In one possible implementation, the determining module 72 is specifically configured to determine, as the first adjustment weight, an adjustment weight corresponding to the first vision range and corresponding to the first distance range, where the vision information is located in the first vision range, and where the distance between the eyes of the user and the screen is located in the first distance range, from among the at least two adjustment weights.
In one possible implementation, the determining module 72 is specifically configured to determine, from a preset correspondence between the vision range and the angular resolution PPD, a first PPD corresponding to a second vision range, where the vision information is located in the second vision range, and determine, as the first adjustment weight, an adjustment weight corresponding to the first PPD and corresponding to the second distance range, where the distance between the eyes of the user and the screen is located in the second distance range, of at least two adjustment weights.
In one possible implementation, the screen resolution adjustment device 70 provided in the embodiment of the present application further includes a calculation module. And a calculation module for calculating a first resolution based on the first pixel density and a screen size of the screen. The adjusting module 73 is specifically configured to adjust the resolution of the screen to the first resolution calculated by the calculating module.
The screen resolution adjustment device in the embodiment of the application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. The electronic device may be a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile internet appliance (Mobile INTERNET DEVICE, MID), an augmented Reality (Augmented Reality, AR)/Virtual Reality (VR) device, a robot, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), or may be a server, a network attached storage (Network Attached Storage, NAS), a Personal computer (Personal Computer, PC), a Television (TV), a teller machine, a self-service machine, or the like, which is not particularly limited in the embodiments of the present application.
The screen resolution adjustment device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The screen resolution adjustment device provided by the embodiment of the application can realize each process realized by the method embodiment, and in order to avoid repetition, the description is omitted.
Optionally, as shown in fig. 7, the embodiment of the present application further provides an electronic device 900, including a processor 901 and a memory 902, where a program or an instruction capable of being executed on the processor 901 is stored in the memory 902, and the program or the instruction when executed by the processor 901 implements each step of the embodiment of the method, and the steps can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to, a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 110 is configured to obtain first information when it is detected that the user's eyes look at the screen of the electronic device, where the first information includes vision information of the user's eyes and a distance between the user's eyes and the screen, determine a first pixel density based on the first information and a pixel density corresponding to a highest resolution of the screen, and adjust the resolution of the screen based on the first pixel density.
The embodiment of the application provides electronic equipment, which can determine the first pixel density which can be identified by a user based on the vision information of eyes of the user, the distance between the eyes of the user and a screen and the pixel density corresponding to the highest resolution of the screen, and then further dynamically adjust the resolution of the screen based on the first pixel density, so that the adjustment of the resolution of the screen does not influence the watching effect of the user, namely the definition of the screen display content seen by the user is unchanged, the purpose that the requirement of eyes on the definition of the screen is met is realized, the image can be prevented from being displayed by the electronic equipment for a long time with the highest resolution, and the power consumption of the electronic equipment is reduced while the watching effect of the user is not influenced.
In some embodiments of the present application, the processor 110 is specifically configured to determine the first pixel density based on the first information and a pixel density corresponding to a highest resolution of the screen when the first information is different from the second information, where the second information includes vision information of eyes of the user and a distance between the eyes of the user and the screen, which are acquired at a time before the first information is acquired.
In some embodiments of the present application, the processor 110 is specifically configured to determine a first adjustment weight based on the first information, and multiply the first adjustment weight by a pixel density corresponding to the highest resolution to obtain a first pixel density, where a value of the first adjustment weight is less than or equal to 1.
In some embodiments of the present application, the processor 110 is specifically configured to determine, as the first adjustment weight, an adjustment weight corresponding to the first vision range, where the vision information is located in the first vision range, and the distance between the eyes of the user and the screen is located in the first distance range, from among the at least two adjustment weights.
In some embodiments of the present application, the processor 110 is specifically configured to determine, from a preset correspondence between a vision range and an angular resolution PPD, a first PPD corresponding to a second vision range, where vision information is located in the second vision range, and determine, as a first adjustment weight, an adjustment weight corresponding to the first PPD and corresponding to a second distance range, where a distance between eyes of a user and a screen is located in the second distance range, of at least two adjustment weights.
In some embodiments of the present application, the processor 110 is specifically configured to calculate a first resolution based on the first pixel density and a screen size of the screen, and adjust the resolution of the screen to the first resolution.
The electronic device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDRSDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH LINK DRAM, SLDRAM), and Direct random access memory (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units, and optionally, processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program/program product stored in a storage medium, where the program/program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.