+

CN119418633A - Screen resolution adjustment method, device, electronic device and storage medium - Google Patents

Screen resolution adjustment method, device, electronic device and storage medium Download PDF

Info

Publication number
CN119418633A
CN119418633A CN202411853133.3A CN202411853133A CN119418633A CN 119418633 A CN119418633 A CN 119418633A CN 202411853133 A CN202411853133 A CN 202411853133A CN 119418633 A CN119418633 A CN 119418633A
Authority
CN
China
Prior art keywords
screen
information
user
resolution
pixel density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411853133.3A
Other languages
Chinese (zh)
Inventor
余系东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202411853133.3A priority Critical patent/CN119418633A/en
Publication of CN119418633A publication Critical patent/CN119418633A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/391Resolution modifying circuits, e.g. variable screen formats
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

本申请公开了一种屏幕分辨率调整方法、装置、电子设备及存储介质,属于计算机技术领域。该方法包括:在检测到用户眼睛注视电子设备屏幕的情况下,获取第一信息,该第一信息包括:用户眼睛的视力信息和用户眼睛到屏幕间的距离;基于第一信息和屏幕的最高分辨率对应的像素密度,确定第一像素密度;基于第一像素密度,调整屏幕的分辨率。

The present application discloses a method, device, electronic device and storage medium for adjusting screen resolution, which belongs to the field of computer technology. The method comprises: obtaining first information when detecting that the user's eyes are looking at the screen of the electronic device, the first information comprising: the visual acuity information of the user's eyes and the distance between the user's eyes and the screen; determining a first pixel density based on the first information and the pixel density corresponding to the highest resolution of the screen; and adjusting the resolution of the screen based on the first pixel density.

Description

Screen resolution adjustment method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a screen resolution adjustment method and device, electronic equipment and a storage medium.
Background
With the continuous development of electronic devices, the types of resolutions of the screens of electronic devices are increasing. For example, standard resolution, full high definition resolution, 4K resolution, 8K resolution, etc., while the resolution of the screen determines the definition of the screen display, the higher the resolution, the clearer the display and the better the viewing effect presented to the user.
In order to optimize the effect of viewing a screen by a user, in the related art, an electronic device generally displays an image at a fixed high resolution (e.g., 1920×1080) for a long period of time. However, since the electronic device displays images at high resolution for a long time, power consumption of the electronic device may increase.
Disclosure of Invention
The embodiment of the application aims to provide a screen resolution adjustment method, a device, electronic equipment and a storage medium, which can reduce the power consumption of the electronic equipment without influencing the watching effect of a user.
In a first aspect, an embodiment of the present application provides a method for adjusting resolution of a screen, where the method includes acquiring first information including vision information of eyes of a user and a distance between the eyes of the user and the screen when the eyes of the user are detected to be gazing at the screen of the electronic device, determining a first pixel density based on the first information and a pixel density corresponding to a highest resolution of the screen, and adjusting resolution of the screen based on the first pixel density.
In a second aspect, an embodiment of the present application provides a screen resolution adjustment apparatus, where the apparatus includes an acquisition module, a determination module, and an adjustment module. The acquisition module is used for acquiring first information under the condition that the eyes of the user are detected to watch the screen of the electronic equipment, wherein the first information comprises vision information of the eyes of the user and the distance between the eyes of the user and the screen. And the determining module is used for determining the first pixel density based on the first information acquired by the acquiring module and the pixel density corresponding to the highest resolution of the screen. And the adjusting module is used for adjusting the resolution of the screen based on the first pixel density determined by the determining module.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program/program product stored in a storage medium, the program/program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the eyes of a user watch the screen of the electronic equipment is detected, first information is acquired, wherein the first information comprises vision information of the eyes of the user and distance between the eyes of the user and the screen, the first pixel density is determined based on the first information and pixel density corresponding to the highest resolution of the screen, and the resolution of the screen is adjusted based on the first pixel density. In the scheme, 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 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 watching effect of the user is not influenced by the adjustment of the resolution of the screen, namely, the definition of the screen display content seen by the user is not changed, the purpose that the requirement of eyes on the definition of the screen is met is achieved, 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.
Drawings
FIG. 1 is a schematic illustration of an example of a user field of view provided by an embodiment of the present application;
FIG. 2 is a flowchart of a method for adjusting resolution of a screen according to an embodiment of the present application;
FIG. 3 is a second flowchart of a method for adjusting resolution of a screen according to an embodiment of the present application;
FIG. 4 is a third flowchart of a method for adjusting resolution of a screen according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for adjusting resolution of a screen according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a screen resolution adjustment device according to an embodiment of the present application;
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 8 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
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.

Claims (15)

1.一种屏幕分辨率调整方法,其特征在于,所述方法包括:1. A method for adjusting screen resolution, characterized in that the method comprises: 在检测到用户眼睛注视电子设备屏幕的情况下,获取第一信息,所述第一信息包括:所述用户眼睛的视力信息和所述用户眼睛到所述屏幕间的距离;In the case of detecting that the user's eyes are looking at the screen of the electronic device, obtaining first information, the first information including: vision information of the user's eyes and the distance between the user's eyes and the screen; 基于所述第一信息和所述屏幕的最高分辨率对应的像素密度,确定第一像素密度;determining a first pixel density based on the first information and a pixel density corresponding to a highest resolution of the screen; 基于所述第一像素密度,调整所述屏幕的分辨率。Based on the first pixel density, a resolution of the screen is adjusted. 2.根据权利要求1所述的方法,其特征在于,所述基于所述第一信息和所述屏幕的最高分辨率对应的像素密度,确定第一像素密度,包括:2. The method according to claim 1, wherein determining the first pixel density based on the first information and the pixel density corresponding to the highest resolution of the screen comprises: 在所述第一信息与第二信息不同的情况下,基于所述第一信息和所述屏幕的最高分辨率对应的像素密度,确定所述第一像素密度;When the first information is different from the second information, determining the first pixel density based on the first information and a pixel density corresponding to a highest resolution of the screen; 其中,所述第二信息包括:获取所述第一信息之前的一个时刻获取的所述用户眼睛的视力信息和所述用户眼睛到所述屏幕间的距离。The second information includes: the vision information of the user's eyes acquired at a time before the first information is acquired and the distance between the user's eyes and the screen. 3.根据权利要求1所述的方法,其特征在于,所述基于所述第一信息和所述屏幕的最高分辨率对应的像素密度,确定第一像素密度,包括:3. The method according to claim 1, wherein determining the first pixel density based on the first information and the pixel density corresponding to the highest resolution of the screen comprises: 基于所述第一信息,确定第一调整权重;Based on the first information, determining a first adjustment weight; 将所述第一调整权重与所述最高分辨率对应的像素密度相乘,得到所述第一像素密度;multiplying the first adjustment weight by the pixel density corresponding to the highest resolution to obtain the first pixel density; 其中,所述第一调整权重的取值小于等于1。Among them, the value of the first adjustment weight is less than or equal to 1. 4.根据权利要求3所述的方法,其特征在于,所述基于所述第一信息,确定第一调整权重,包括:4. The method according to claim 3, wherein determining the first adjustment weight based on the first information comprises: 将至少两个调整权重中,与第一视力范围对应的、且与第一距离范围对应的调整权重确定为所述第一调整权重;Determine the adjustment weight corresponding to the first visual range and the first distance range among the at least two adjustment weights as the first adjustment weight; 其中,所述视力信息位于所述第一视力范围内,所述用户眼睛到所述屏幕间的距离位于所述第一距离范围内。The vision information is within the first vision range, and the distance between the user's eyes and the screen is within the first distance range. 5.根据权利要求3所述的方法,其特征在于,所述基于所述第一信息,确定第一调整权重,包括:5. The method according to claim 3, wherein determining the first adjustment weight based on the first information comprises: 从视力范围与角分辨率PPD的预设对应关系中,确定第二视力范围对应的第一PPD,所述视力信息位于所述第二视力范围内;Determine a first PPD corresponding to a second visual range from a preset correspondence between a visual range and an angular resolution PPD, wherein the visual information is within the second visual range; 将至少两个调整权重中,与所述第一PPD对应的、且与第二距离范围对应的调整权重确定为所述第一调整权重,所述用户眼睛到所述屏幕间的距离位于所述第二距离范围内。The adjustment weight corresponding to the first PPD and the second distance range among at least two adjustment weights is determined as the first adjustment weight, and the distance from the user's eyes to the screen is within the second distance range. 6.根据权利要求1所述的方法,其特征在于,所述基于所述第一像素密度,调整所述屏幕的分辨率,包括:6. The method according to claim 1, wherein adjusting the resolution of the screen based on the first pixel density comprises: 基于所述第一像素密度和所述屏幕的屏幕尺寸,计算第一分辨率;Calculating a first resolution based on the first pixel density and the screen size of the screen; 将所述屏幕的分辨率调整为所述第一分辨率。The resolution of the screen is adjusted to the first resolution. 7.一种屏幕分辨率调整装置,其特征在于,所述装置包括:获取模块、确定模块和调整模块;7. A screen resolution adjustment device, characterized in that the device comprises: an acquisition module, a determination module and an adjustment module; 所述获取模块,用于在检测到用户眼睛注视电子设备屏幕的情况下,获取第一信息,所述第一信息包括:所述用户眼睛的视力信息和所述用户眼睛到所述屏幕间的距离;The acquisition module is used to acquire first information when it is detected that the user's eyes are looking at the screen of the electronic device, wherein the first information includes: vision information of the user's eyes and the distance between the user's eyes and the screen; 所述确定模块,用于基于所述获取模块获取的所述第一信息和所述屏幕的最高分辨率对应的像素密度,确定第一像素密度;The determining module is configured to determine a first pixel density based on the first information acquired by the acquiring module and a pixel density corresponding to a maximum resolution of the screen; 所述调整模块,用于基于所述确定模块确定的所述第一像素密度,调整所述屏幕的分辨率。The adjustment module is used to adjust the resolution of the screen based on the first pixel density determined by the determination module. 8.根据权利要求7所述的装置,其特征在于,所述确定模块,具体用于在所述第一信息与第二信息不同的情况下,基于所述第一信息和所述屏幕的最高分辨率对应的像素密度,确定所述第一像素密度;8. The device according to claim 7, wherein the determining module 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; 其中,所述第二信息包括:获取所述第一信息之前的一个时刻获取的所述用户眼睛的视力信息和所述用户眼睛到所述屏幕间的距离。The second information includes: the vision information of the user's eyes acquired at a time before the first information is acquired and the distance between the user's eyes and the screen. 9.根据权利要求7所述的装置,其特征在于,所述确定模块,具体用于基于所述第一信息,确定第一调整权重;并将所述第一调整权重与所述最高分辨率对应的像素密度相乘,得到所述第一像素密度;9. The device according to claim 7, wherein the determining module is specifically configured to determine a first adjustment weight based on the first information; and multiply the first adjustment weight by the pixel density corresponding to the highest resolution to obtain the first pixel density; 其中,所述第一调整权重的取值小于等于1。Among them, the value of the first adjustment weight is less than or equal to 1. 10.根据权利要求9所述的装置,其特征在于,所述确定模块,具体用于将至少两个调整权重中,与第一视力范围对应的、且与第一距离范围对应的调整权重确定为所述第一调整权重;10. The device according to claim 9, characterized in that the determination module is specifically used to determine the adjustment weight corresponding to the first visual range and the first distance range among the at least two adjustment weights as the first adjustment weight; 其中,所述视力信息位于所述第一视力范围内,所述用户眼睛到所述屏幕间的距离位于所述第一距离范围内。The vision information is within the first vision range, and the distance between the user's eyes and the screen is within the first distance range. 11.根据权利要求9所述的装置,其特征在于,所述确定模块,具体用于从视力范围与角分辨率PPD的预设对应关系中,确定第二视力范围对应的第一PPD,所述视力信息位于所述第二视力范围内;并将至少两个调整权重中,与所述第一PPD对应的、且与第二距离范围对应的调整权重确定为所述第一调整权重,所述用户眼睛到所述屏幕间的距离位于所述第二距离范围内。11. The device according to claim 9 is characterized in that the determination module is specifically used to determine the first PPD corresponding to the second vision range from a preset correspondence between the vision range and the angular resolution PPD, and the vision information is within the second vision range; and among at least two adjustment weights, the adjustment weight corresponding to the first PPD and the second distance range is determined as the first adjustment weight, and the distance between the user's eyes and the screen is within the second distance range. 12.根据权利要求7所述的装置,其特征在于,所述装置还包括:计算模块;12. The device according to claim 7, characterized in that the device further comprises: a calculation module; 所述计算模块,用于基于所述第一像素密度和所述屏幕的屏幕尺寸,计算第一分辨率;The calculation module is used to calculate a first resolution based on the first pixel density and the screen size of the screen; 所述调整模块,具体用于将所述屏幕的分辨率调整为所述计算模块计算得到的所述第一分辨率。The adjustment module is specifically used to adjust the resolution of the screen to the first resolution calculated by the calculation module. 13.一种电子设备,其特征在于,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的屏幕分辨率调整方法的步骤。13. An electronic device, characterized in that it comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the screen resolution adjustment method according to any one of claims 1 to 6 are implemented. 14.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的屏幕分辨率调整方法的步骤。14. A readable storage medium, characterized in that a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the screen resolution adjustment method according to any one of claims 1 to 6 are implemented. 15.一种计算机程序产品,其特征在于,所述计算机程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-6任一项所述的屏幕分辨率调整方法的步骤。15. A computer program product, characterized in that the computer program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the screen resolution adjustment method according to any one of claims 1 to 6.
CN202411853133.3A 2024-12-16 2024-12-16 Screen resolution adjustment method, device, electronic device and storage medium Pending CN119418633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411853133.3A CN119418633A (en) 2024-12-16 2024-12-16 Screen resolution adjustment method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411853133.3A CN119418633A (en) 2024-12-16 2024-12-16 Screen resolution adjustment method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN119418633A true CN119418633A (en) 2025-02-11

Family

ID=94473254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411853133.3A Pending CN119418633A (en) 2024-12-16 2024-12-16 Screen resolution adjustment method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN119418633A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002234A (en) * 2011-09-14 2013-03-27 广东易家通数字家庭技术发展有限公司 Television set capable of regulating resolution ratio automatically according to watching distance
CN105139791A (en) * 2015-08-06 2015-12-09 京东方科技集团股份有限公司 Display adjustment system and display adjustment method
CN105827872A (en) * 2016-06-07 2016-08-03 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN107800868A (en) * 2017-09-21 2018-03-13 维沃移动通信有限公司 A kind of method for displaying image and mobile terminal
CN110536176A (en) * 2019-07-31 2019-12-03 深圳银澎云计算有限公司 A kind of video resolution method of adjustment, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002234A (en) * 2011-09-14 2013-03-27 广东易家通数字家庭技术发展有限公司 Television set capable of regulating resolution ratio automatically according to watching distance
CN105139791A (en) * 2015-08-06 2015-12-09 京东方科技集团股份有限公司 Display adjustment system and display adjustment method
CN105827872A (en) * 2016-06-07 2016-08-03 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN107800868A (en) * 2017-09-21 2018-03-13 维沃移动通信有限公司 A kind of method for displaying image and mobile terminal
CN110536176A (en) * 2019-07-31 2019-12-03 深圳银澎云计算有限公司 A kind of video resolution method of adjustment, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11574613B2 (en) Image display method, image processing method and relevant devices
EP2075761B1 (en) Method and device for adjusting output frame
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN107592466B (en) Photographing method and mobile terminal
CN111223047B (en) Image display method and electronic equipment
CN110868550B (en) Photographing method and terminal device electronic device
JP2012203414A (en) System for adjusting font size and adjustment method for the same
US20200241731A1 (en) Virtual reality vr interface generation method and apparatus
KR20180005528A (en) Display apparatus and method for image processing
CN111857461B (en) Image display method, device, electronic device, and readable storage medium
CN111031234B (en) Image processing method and electronic equipment
WO2012130742A1 (en) Method and device for displaying images
CN112947824A (en) Display parameter adjusting method and device, electronic equipment and medium
WO2014030405A1 (en) Display device, display method, television receiver, and display control device
CN111385481A (en) Image processing method and device, electronic device and storage medium
CN111008929B (en) Image correction method and electronic equipment
CN111031265B (en) A kind of FSR determination method and electronic device
CN116149471A (en) Display control method, device, augmented reality equipment and medium
CN109104573B (en) Method for determining focusing point and terminal equipment
CN109639981B (en) Image shooting method and mobile terminal
US20240428531A1 (en) Display device, display method, and computer program
CN107798662B (en) Image processing method and mobile terminal
US11270475B2 (en) Variable rendering system and method
US20190213713A1 (en) Mobile device, and image processing method for mobile device
CN119418633A (en) Screen resolution adjustment method, device, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载