CN113342229A - Method and device for adjusting font size, terminal equipment and computer readable storage medium - Google Patents
Method and device for adjusting font size, terminal equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN113342229A CN113342229A CN202110725591.9A CN202110725591A CN113342229A CN 113342229 A CN113342229 A CN 113342229A CN 202110725591 A CN202110725591 A CN 202110725591A CN 113342229 A CN113342229 A CN 113342229A
- Authority
- CN
- China
- Prior art keywords
- font size
- terminal screen
- distance
- font
- max
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 210000001747 pupil Anatomy 0.000 claims description 96
- 238000001514 detection method Methods 0.000 claims description 81
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 13
- 230000008569 process Effects 0.000 description 10
- 230000008859 change Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000003384 imaging method Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/0486—Drag-and-drop
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to a method, a device, a terminal device and a computer readable storage medium for adjusting font size, wherein the method comprises the following steps: the method comprises the steps of determining the font size range displayed by a terminal screen according to the age bracket of a user who uses or operates the terminal currently, obtaining the preset relation between the distance from human eyes to the terminal screen and the font size according to the font size range, detecting the current distance between human eyes and the terminal screen, determining the target font size according to the current distance and the preset relation, displaying fonts on the terminal screen according to the target font size, setting different font size ranges aiming at different age brackets, and adaptively adjusting the font size according to the distance from human eyes to the terminal screen, so that the use requirements of the user under different scenes are met.
Description
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for adjusting font size, a terminal device, and a computer-readable storage medium.
Background
With the continuous progress of science and technology, mobile communication devices such as mobile phones and the like have become necessities in the life of people. However, when the mobile phone is popularized, the problem of the comfortable size of characters is gradually highlighted, if the face is far away from the mobile phone screen, the characters displayed on the screen are too small, the watching is affected, and if the face is near to the mobile phone screen, the characters displayed on the screen are too large, the watching is too obtrusive.
In present cell-phone, to showing the regulation of typeface size, most all directly set up the option or the software in the cell-phone sets up the option in and adjusts, and optional typeface size is fixed gear mostly to be applicable to different demands, but to the people of different age brackets, the gear is the same, consequently to old person, the typeface size that uses is great with young person's difference, and typeface size adjustment process is too complicated in the cell-phone, inconvenient operation.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a method, an apparatus, a terminal device and a computer readable storage medium for adjusting font size, and the specific scheme is as follows:
in a first aspect, a method for adjusting font size is provided, the method comprising:
determining the font size range displayed by a terminal screen according to the age bracket of a user currently using or operating the terminal;
acquiring a preset relation between the distance from human eyes to a terminal screen and the font size according to the font size range;
detecting the current distance between the human eyes and the terminal screen;
determining the size of a target font according to the current distance and the preset relation;
and displaying the font on the terminal screen according to the target font size.
In a preferred embodiment, the predetermined relationship is determined by:
the font size S in the terminal screen is adjusted in a self-adaptive mode while the distance L between the human eyes and the terminal screen is changed;
obtaining the font size S and adjusting the font size S to the maximum font S in the font size rangemaxThe maximum distance L between human eyes and the terminal screenmax;
Obtaining the font size S and adjusting the font size S into a normal font S in a font size rangenorThe normal distance L from human eyes to the terminal screennor;
Obtaining the font size S and adjusting the font size S to be the minimum font S in the font size rangeminThe minimum distance L between human eyes and the terminal screenmin;
According to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminAnd performing linear fitting to obtain a preset relation between the distance L between the human eyes and the terminal screen and the font size S.
In a preferred embodiment, the method further comprises:
respectively acquiring the distance L between the human eyes and the terminal screenmax,Lnor,LminThe minimum radius R of the pupil of the human eyeminNormal radius RnorMaximum radius Rmax;
Said according to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminPerforming linear fitting to obtain a preset relation between the distance from the human eyes to the terminal screen and the font size as follows:
according to SmaxAnd Rmin,SnorAnd RnorAnd SminAnd RmaxPerforming linear fitting to obtain a preset relation between the pupil radius R of the human eye and the font size S;
the preset relation is as follows:
when R is ∈ [ R ]min,Rnor]When S is k1 (R)nor-R)+Snor;
When R is ∈ [ R ]nor,Rmax]When S is k2 (R)nor-R)+Snor;
Wherein k1 ═ Smax-Snor)/(Rnor-Rmin),k2=(Snor-Smin)/(Rmax-Rnor)。
In a preferred embodiment, the current distance L between the human eye and the terminal screen is detected0Then, the current pupil radius R of the human eye is obtained0;
The determining the size of the target font according to the current distance and the preset relationship comprises:
according to the current pupil radius R of the human eye0The range in which determines the target font size,
if R is0∈[Rmin,Rnor]Using the formula S ═ k1 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0∈[Rnor,Rmax]Using the formula S ═ k2 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0>RmaxThen the target font size S0As a minimum font Smin;
If R is0<RminThen the target font size S0As the maximum font Smax。
In a preferred embodiment, the obtaining of the current pupil radius R of the human eye0The method comprises the following steps:
respectively acquiring the pupil radius R of the left eye of the user on the x axis of the screen coordinate systeml1Pupil radius R on the y-axisl2And pupil radius R for the right eye on the x-axis of the screen coordinate systemr1Pupil radius R on the y-axisr2;
If R isl1=Rl2,Rr1=Rr2And R isl1=Rr1Then R isl1,Rl2,Rr1,Rr2Any one of them is R0;
If R isl1=Rl2Or Rl1<Rl2And, Rr1<Rr2,Rl2=Rr2Then R isr2Or Rl2As R0;
If R isr1=Rr2Or Rr1<Rr2And, Rl1<Rl2,Rl2=Rr2Then R isr2Or Rl2As R0;
If R isr1>Rr2,Rl1>Rl2And R isr2=Rl2,Rr1=Rl1Then R isr1Or Rl1As R0。
In a preferred embodiment, before detecting the current distance between the human eye and the terminal screen, the method further comprises detecting whether both the left eye and the right eye are imaged in the screen;
if the left eye and the right eye are imaged in the screen, judging whether the current detection that whether the left eye and the right eye are imaged in the screen is the first detection;
if the detection is the first detection, detecting the current distance between the human eyes and the terminal screen, and determining the size of a target font according to the current distance and the preset relation;
if the detection is not the first detection, judging whether the distance variation between the human eyes and the terminal screen between the current detection and the last detection is larger than a preset variation or not;
and if so, detecting the current distance between the human eyes and the terminal screen, and determining the size of the target font according to the current distance and the preset relation.
In a preferred embodiment, the current distance L between the human eye and the terminal screen is detected0Then, the current pupil radius R of the human eye during the detection is obtained0Comparing the pupil radius of the human eye with that of the human eye in the last detection, wherein the pupil radius of the human eye changes by an amount delta R;
judging whether the distance variation between the human eyes and the terminal screen is larger than a preset variation or not is as follows:
judging whether the human eye pupil radius variation delta R is larger than the preset radius variation delta R';
and if the variation delta R of the pupil radius of the human eye is larger than delta R', judging that the variation of the distance between the human eye and the terminal screen is larger than the preset variation.
In a second aspect, an apparatus for adjusting font size is provided, the apparatus comprising:
the font size range determining module is used for determining the font size range displayed on the terminal screen according to the age bracket of a user currently using or operating the terminal;
the preset relation acquisition module is used for acquiring the preset relation between the distance from the human eyes to the terminal screen and the font size according to the font size range;
the detection module is used for detecting the current distance between the human eyes and the terminal screen;
the target font size determining module is used for determining the size of the target font according to the current distance and the preset relation;
and the display module is used for displaying the font on the terminal screen according to the target font size.
In a third aspect, a terminal device is provided, including:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform the method as previously described.
In a fourth aspect, a computer-readable medium is provided, on which a computer program is stored, wherein the program, when executed by a processor, implements the method as described above.
According to the method, on one hand, the font size range displayed by the terminal screen is determined according to the age groups of the user, the preset relation between the distance from the human eyes to the terminal screen and the font size is obtained according to the font size range, then the target font size is determined according to the current distance between the detected human eyes and the terminal screen and the preset relation, different font size ranges are set for different age groups, so that the use requirements of the user are met, the font sizes can be adaptively adjusted according to the distance from the human eyes to the terminal screen for all the age groups, the use requirements of the user under different scenes are met, on the other hand, the distance from the human eyes to the terminal screen is represented through the pupil radius of the human eyes, and the distance measuring process is simplified.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow diagram of a method for adjusting font size in one embodiment of the invention;
FIGS. 2(a) - (c) are schematic diagrams of different font sizes displayed on the terminal screen according to the present invention;
FIG. 3 is a relationship curve between the pupil radius of human eyes and the size of fonts;
FIG. 4 is a schematic view of a face looking at a screen from different angles;
FIG. 5 is a diagram illustrating a method for adjusting font size according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of an apparatus for adjusting font size according to the present invention;
FIG. 7 is a diagram of a computer system according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Aiming at the problem that the font size of a terminal screen is inconvenient to adjust in the prior art, the invention provides a method, a device, terminal equipment and a computer readable storage medium for adjusting the font size, the font size ranges corresponding to users of different age groups are different, the distance between human eyes and the terminal screen is different from the preset relation of the font size, the target font size is determined according to the detected current distance between people and the terminal screen and the preset relation, different font size ranges are set for different age groups, so that the use requirements of users are better met, and for all age groups, the font size can be adaptively adjusted according to the distance between human eyes and the terminal screen, and the use requirements of the users under different scenes are met.
The present invention will be further described with reference to specific examples.
Example one
As shown in fig. 1, a method for adjusting font size includes:
s101, determining the font size range displayed on the terminal screen according to the age group of a user currently using or operating the terminal.
Before the invention adjusts the font size, firstly, the function of adjusting the font size in a terminal is determined to be started by a user, after the function of adjusting the font size in the terminal is determined to be started by the user, a front-facing camera in the terminal is started, the front-facing camera shoots a face image of the user, the face image is input into an age detection model, the age detection model extracts the face (region of interest, ROI) of the person by acquiring the face image of each age group, and the AI face recognition system deeply learns based on the acquired face image big data to form the age detection model.
The font size range corresponding to each age group is stored in advance, the font size range is obtained according to statistics of requirements of each age group for font pixels, multiple times of simulation collection are carried out on multiple people at each age, the font size range of each age is analyzed through big data, and the font size range is stored in advance. The end point value of the adjusting range is the size of the maximum font and the size of the minimum font, and also comprises the size of the normal font and the adjusting range.
According to the invention, the front camera is used for acquiring the face image of the current user, the age of the user is identified through the age detection model, the corresponding font size range is obtained through the identified age, and the font size displayed in the terminal screen can be adjusted within the font size range.
S102, acquiring a preset relation between the distance from human eyes to a terminal screen and the font size according to the font size range.
In the embodiment, the different font size ranges reflect the ages of users, and in order to make the fonts seen by human eyes on the screen more fit to the requirements, the preset relationship between the distance from the human eyes to the terminal screen and the font size is different for users of different ages, so that the distance from the human eyes to the terminal screen and the font size are also different for the different font size ranges.
S103, detecting the current distance between the human eyes and the terminal screen.
In the invention, the current distance between the human eyes and the terminal screen can be measured through the front-facing camera or other sensors.
And S104, determining the size of the target font according to the current distance and the preset relation.
And S105, displaying the font on the terminal screen according to the target font size.
In the invention, the terminal is a mobile phone, or a tablet computer and a wearable device. Other types of terminals are also possible as long as the above-described functions can be achieved, and are not described one by one here.
After the current distance and the preset relation are determined, the target font size matched with the current distance is determined according to the current distance and the preset relation, when the target font size is the same at the current distance, people of different ages are different, and the font displayed on the terminal screen according to the target font size is more suitable for the requirements of users.
In a preferred embodiment, the predetermined relationship is determined by:
the method comprises the steps that the font size S in a terminal screen is adjusted in a self-adaptive mode while the distance L between human eyes and the terminal screen is changed;
obtaining fontsThe size S is adjusted to the maximum font S in the font size rangemaxThe maximum distance L between human eyes and the terminal screenmax;
Obtaining the font size S and adjusting the font size S to the normal font S in the font size rangenorThe normal distance L from human eyes to the terminal screennor;
Obtaining the font size S and adjusting the font size S to the minimum font S in the font size rangeminThe minimum distance L between human eyes and the terminal screenmin;
According to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminAnd performing linear fitting to obtain a preset relation between the distance L between the human eyes and the terminal screen and the font size S.
In this embodiment, a preset relationship between the distance L from the human eye to the terminal screen and the font size S in the terminal screen is established in advance, and the font size S in the terminal screen is adaptively adjusted while the distance L from the human eye to the terminal screen is changed. It can be understood that the larger the font is, the more comfortable distance between the human eye and the terminal screen is also larger, as shown in fig. 2(a) - (c), therefore, when the font size is adjusted to the maximum font S in the font size rangemaxWhen the distance between the human eyes and the terminal screen is the maximum value LmaxWhen the acquired font size is adjusted to the normal font S in the font size rangenorWhen the distance between the human eyes and the terminal screen is the normal value LnorWhen the acquired font size is adjusted to the minimum font S in the font size rangeminWhen the distance between the human eyes and the terminal screen is the minimum value Lmin。
Thus, can be based on SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminPerforming linear fitting to obtain the distance L between the human eyes and the terminal screen and the characterThe preset relationship of the body size S.
In a preferred embodiment, the method further comprises:
respectively acquiring the distance L between human eyes and a terminal screenmax,Lnor,LminThe minimum radius R of the pupil of the human eyeminNormal radius RnorMaximum radius Rmax;
According to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminPerforming linear fitting to obtain a preset relation between the distance from the human eyes to the terminal screen and the font size, wherein the preset relation is as follows:
according to SmaxAnd Rmin,SnorAnd RnorAnd SminAnd RmaxPerforming linear fitting to obtain a preset relation between the pupil radius R of human eyes and the font size S;
the preset relationship is as follows:
when R is ∈ [ R ]min,Rnor]When S is k1 (R)nor-R)+Snor;
When R is ∈ [ R ]nor,Rmax]When S is k2 (R)nor-R)+Snor;
Wherein k1 ═ Smax-Snor)/(Rnor-Rmin),k2=(Snor-Smin)/(Rmax-Rnor)。
In this embodiment, the distance between the human eye and the terminal screen is represented by the radius of the pupil of the human eye, assuming that the pupil of the human eye is circular, the distance between the human eye and the terminal screen is inversely proportional to the imaging of the terminal screen to the human eye, the farther the human eye is from the terminal screen, the smaller the imaging of the eye is, the smaller the pupil radius is, the closer the human eye is to the terminal screen, the larger the imaging of the eye is, the larger the pupil radius is, and therefore, the distance between the human eye and the terminal screen can be obtained as LmaxWhen the radius of the pupil of the human eye is the minimum value RminThe distance between the human eyes and the terminal screen is LnorWhen the radius of the pupil of the human eye is the normal value RnorThe distance between the human eyes and the terminal screen is LminWhen the radius of the pupil of the human eye is the maximum value RmaxAccording to SmaxAnd Rmin,SnorAnd RminAnd SminAnd RmaxAnd linear fitting is carried out to obtain a preset relation between the radius R of the pupil of the human eye and the font size S, and the font size matched with the current distance can be obtained only according to the radius of the pupil of the human eye detected by the front camera, so that the process of obtaining the font size is simplified.
For the calculation of the predetermined relationship, see FIG. 3, when R ∈ [ R ]min,Rnor]When L is in Lnor~LmaxThat is, the distance between the human eye and the terminal screen is between the normal distance and the maximum distance, at this time, the font size changes faster, and when R is equal to R [ R ]nor,Rmax]When L is in Lmin~LnorThe distance between the human eyes and the terminal screen is between the normal distance and the minimum distance, at this moment, the font size changes slowly, that is, the slope of the two is different, therefore, the preset relationship of the pupil radius in different intervals is different:
when R is ∈ [ R ]min,Rnor]When S is k1 (R)nor-R)+Snor;
When R is ∈ [ R ]nor,Rmax]When S is k2 (R)nor-R)+Snor;
Wherein k1 ═ Smax-Snor)/(Rnor-Rmin),k2=(Snor-Smin)/(Rmax-Rnor)。
In the embodiment, the distance between the human eye and the terminal screen is represented by the radius of the human eye pupil, the distance between the human eye and the terminal screen is converted into the radius of the detected human eye pupil, and the preset relationship between the radius of the human eye pupil and the font size is established, so that the process of obtaining the font size is simplified, and the time for adjusting the font size is saved.
In a preferred embodiment, the current distance L between the eye of the person and the terminal screen is detected0Then, the current pupil radius R of the human eye is obtained0;
Determining the size of the target font according to the current distance and the preset relationship comprises:
according to the current pupil radius R of human eyes0The range determines the target font size;
if R is0∈[Rmin,Rnor]Using the formula S ═ k1 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0∈[Rnor,Rmax]Using the formula S ═ k2 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0>RmaxThen the target font size S0As a minimum font Smin;
If R is0<RminThen the target font size S0As the maximum font Smax。
In the present embodiment, the current distance L between the human eye and the terminal screen is detected0Then, the current pupil radius R of the human eye is obtained0At the moment, the size of the target font is determined to be R according to the current distance and the preset relation0The range in which the corresponding target font size is located is obtained.
If R is0∈[Rmin,Rnor]Using the formula S ═ k1 (R)nor-R)+SnorCalculating to obtain the size S of the target font0If R is0∈[Rnor,Rmax]Using the formula S ═ k2 (R)nor-R)+SnorCalculating to obtain the size S of the target font0(ii) a If R is0>RmaxThe distance between the human eyes and the terminal screen is smaller than the minimum distance LminThen directly use the minimum font SminAs target font size S0If R is0<RminThe distance between the human eyes and the terminal screen is larger than the maximum distance LmaxThen directly use the maximum font SmaxAs target font size S0。
In this embodiment, when the target font size is determined according to the current distance and the corresponding relationship, the target font size is determined according to the range of the eye pupil radius, and the target font sizes determined by the eye pupil radii in different ranges are different, so that the target font size can be adjusted more flexibly within the font size range.
In a preferred embodiment, the current pupil radius R of the eye is obtained0The method comprises the following steps:
respectively acquiring the pupil radius R of the left eye of the user on the x axis of the screen coordinate systeml1Pupil radius R on the y-axisl2And pupil radius R for the right eye on the x-axis of the screen coordinate systemr1Pupil radius R on the y-axisr2;
If R isl1=Rl2,Rr1=Rr2And R isl1=Rr1Then R isl1,Rl2,Rr1,Rr2Any one of them is R0;
If R isl1=Rl2Or Rl1<Rl2And, Rr1<Rr2,Rl2=Rr2Then R isr2Or Rl2As R0;
If R isr1=Rr2Or Rr1<Rr2And, Rl1<Rl2,Rl2=Rr2Then R isr2Or Rl2As R0;
If R isr1>Rr2,Rl1>Rl2And R isr2=Rl2,Rr1=Rl1Then R isr1Or Rl1As R0。
In this embodiment, in different use scenes of a user, the radii of pupils of the eyes of the user photographed by the front camera are different, for example, in a normal case, the front of the face of the user looks straight at the terminal screen, and when the user just sits under the lamp to see the screen, if the front is parallel to the screen and just reflects light, the screen needs to be slightly right or the face of the user looks right, at this time, the right side looks obliquely at the screen, and it may also happen that the position where the terminal is placed is higher, the user looks upward at the screen, and looks upward at the screen obliquely, and so on.
In the invention, the default is that the pupil of the human eye is circular, and a coordinate system established by taking the upper left corner of the screen as an origin or the lower left corner as the origin, the longitudinal direction of the screen as the y axis and the transverse direction of the screen as the x axis comprises the following scenes:
if R isl1=Rl2,Rr1=Rr2And R isl1=Rr1Then R isl1,Rl2,Rr1,Rr2Any one of them is R0。
In such a scene, as shown in fig. 4(a), the left and right eye pupils of the user are both circular and have the same size, and since the human eyes are in a head-up screen at this time, any one of the radius values is directly regarded as R0。
If R isl1=Rl2Or Rl1<Rl2And, Rr1<Rr2,Rl2=Rr2Then R isr2Or Rl2As R0。
In this scenario, as shown in fig. 4(b), the left eye pupil is circular or elliptical, the right eye pupil is elliptical, and the radius of the left eye pupil on the y-axis in the screen coordinate system is the same as the radius of the right eye pupil on the y-axis.
If R isr1=Rr2Or Rr1<Rr2And, Rl1<Rl2,Rl2=Rr2Then R isr2Or Rl2As R0。
In this scenario, the left eye pupil is elliptical, the right eye pupil is circular or elliptical, and the radius of the left eye pupil on the y-axis in the screen coordinate system is the same as the radius of the right eye pupil on the y-axis, and at this time, the left side of the user's face obliquely views the screen.
In the two ways mentioned above, Rr1Or Rl1As R0。
If R isr1>Rr2,Rl1>Rl2And R isr2=Rl2,Rr1=Rl1Then R isr1Or Rl1As R0。
In this scenario, as shown in fig. 4(c), if the left-eye pupil and the right-eye pupil are both elliptical, the radius of the left-eye pupil on the x-axis in the screen coordinate system is the same as the radius of the right-eye pupil on the x-axis, the radius of the left-eye pupil on the y-axis in the screen coordinate system is the same as the radius of the right-eye pupil on the y-axis, and the value of the radius of the y-axis is directly used as R0。
In the embodiment, when the user looks at the screen at different angles, different human eye radiuses are obtained, so that the method is suitable for multiple scenes, the size of the target font obtained in the multiple scenes is more matched with the requirement of the user at the moment, and the user experience is improved.
In a preferred embodiment, before detecting the current distance between the human eye and the terminal screen, the method further comprises detecting whether both the left eye and the right eye are imaged in the screen;
if the left eye and the right eye are imaged in the screen, judging whether the detection is the first detection;
if the detection is the first detection, detecting the current distance between the human eyes and the terminal screen, and determining the size of the target font according to the current distance and a preset relation;
if the detection is not the first detection, judging whether the distance variation between the human eyes and the terminal screen between the current detection and the last detection is larger than a preset variation or not;
and if so, detecting the current distance between the human eyes and the terminal screen, and determining the size of the target font according to the current distance and the preset relation.
In this embodiment, before adjusting the font size displayed in the terminal screen, it is determined whether the user is watching the terminal screen at the present time, before detecting the current distance between the human eye and the terminal screen, it is further determined whether both the left eye and the right eye are imaged in the screen, if both the left eye and the right eye are imaged in the screen, it is determined that the user is watching the terminal screen at the present time, if only one eye is in the screen, or both eyes are not in the screen, it is determined that the user is not watching the terminal screen at the present time, and the terminal may be opened only, but at the present time, the font size does not need to be adjusted.
If the current gazing of the user is determined, if the left eye and the right eye are imaged in the screen, judging whether the currently detected left eye and right eye are imaged in the screen or not, whether the current detection is the first detection or not, if the current detection is the first detection, detecting the current distance between the human eye and the terminal screen, determining the target font size according to the current distance and the preset relation, if the detection is not the first detection, detecting the current distance between the human eye and the terminal screen, and judging whether the distance change between the human eye and the terminal screen between the current detection and the last detection is within the preset variable quantity or not, namely, if the detection is the first detection, directly adjusting the font size, if the detection is not the first detection, namely, the detection is performed before, the font size is adjusted, judging whether the font size needs to be adjusted again or not, namely, whether the distance change between the human eye and the terminal screen between the current detection and the last detection is greater than the preset variable quantity or not, if the font size is larger than the preset variable quantity, the font size needs to be adjusted again, the current distance between the human eyes and the terminal screen is detected, the target font size is determined according to the current distance and the preset relation, and if the font size is not larger than the preset variable quantity, the font size does not need to be adjusted.
In this embodiment, before adjusting the font size on the terminal screen, whether the adjustment condition is satisfied is judged first, the adjustment condition includes the tripartite, whether the screen is watched to the judgement user on the one hand, whether the judgement condition is that whether left eye and right eye all form images in the screen, on the other hand is that whether the judgement is the first detection, if not the first detection again on the one hand, judge whether the distance change between people's eye and the terminal screen between this detection and the last detection is less than the predetermined variation, therefore, when guaranteeing to adjust the font size according to user's demand, the problem of occupation more memory of terminal, CPU or electric quantity that comparatively frequent regulation font size leads to has been avoided.
In a preferred embodiment, the current distance L between the eye of the person and the terminal screen is detected0Then, the current pupil radius R of the human eye during the detection is obtained0Comparing the pupil radius of the human eye with that of the human eye in the last detection, wherein the pupil radius of the human eye changes by an amount delta R;
judging whether the distance variation between the human eyes and the terminal screen is smaller than a preset variation:
judging whether the radius variation delta R of the pupil of the human eye is larger than the preset radius variation delta R';
and if the variation delta R of the pupil radius of the human eye is larger than delta R', judging that the variation of the distance between the human eye and the terminal screen is larger than a preset variation.
In this embodiment, the distance between the human eye and the terminal screen between the current detection and the last detection is changed by the radius R of the pupil of the human eye during the current detection0And judging whether the distance change between the human eyes and the terminal screen is smaller than the preset change amount or not according to the change amount representation of the pupil radius of the human eyes during the last detection: and judging whether the variation delta R of the pupil radius of the human eye is smaller than the preset radius variation delta R ', and if the variation delta R of the pupil radius of the human eye is smaller than the delta R', judging that the variation of the distance between the human eye and the terminal screen is smaller than the preset variation.
In a preferred embodiment, the preset radius change Δ R' is determined by the following method;
obtaining the minimum adjustment quantity delta S of the font size;
when R is0∈[Rmin,Rnor]When Δ R' ═ k1 × Δ S;
when R is0∈[Rnor,Rmax]When the value is "Δ R", k2 × Δ S.
In this embodiment, for adjusting the font size of the terminal screen, there is a minimum adjustment amount Δ S of the font size, and the adjustment amount of the font size is an integer multiple of Δ S each time, so that a preset radius variation can be obtained according to a preset relationship between the pupil radius of human eyes and the font size, and fig. 3 is referred to again for calculating the preset radius variation, and when obtaining the corresponding preset radius variation, the user needs to first look at the present documentRadius R of pupil of human eye during secondary detection0In which range when R is0∈[Rmin,Rnor]When R is equal to k1 × Δ S0∈[Rnor,Rmax]When the value is "Δ R", k2 × Δ S.
When R is0>RmaxOr R is0<RminAnd Δ R' is 0, that is, when the distance from the human eye to the terminal screen is greater than the maximum distance or less than the minimum distance, it is directly determined that the font size needs to be adjusted.
In one embodiment, before obtaining the minimum adjustment quantity Δ S of the font size, the method further includes determining the pupil radius R of the human eye at the time of the detection0The radius R of the pupil of the human eye in the last detection0If the character sizes are not in the same range, directly judging that the character sizes need to be adjusted, detecting the current distance between the human eyes and the terminal screen, and determining the target character size according to the current distance and a preset relation.
In this embodiment, before obtaining Δ R', determining the pupil radius R of the human eye is further included0The radius R of the pupil of the human eye in the last detection0Whether or not they are all in the same range, e.g., R0∈[Rmin,Rnor]And R is0'∈[Rnor,Rmax]Then, in this case, it is detected that the distance between the human eye and the terminal screen has changed greatly, and therefore, the font size needs to be adjusted.
In the present invention, the pixels corresponding to fonts of different sizes are different, and thus the adjustment of the font size may correspond to the adjustment of the pixels of the font.
Fig. 5 is a schematic diagram of a font size adjusting process in the present invention, and the specific process of adjusting the font size is as follows:
s501, starting a function of adjusting font size in the terminal by a user;
s502, starting a camera to detect a human face;
s503, identifying the age of the user through face imaging;
s504, acquiring a corresponding font size range according to the age;
s505, detecting whether human eyes are all imaged in the screen, if so, entering the step S506, otherwise, entering the step S511;
s506, judging whether the detection is the first detection or not, and if the detection is the first detection, directly performing the process of the step S508; if not, go to step S507;
s507, judging whether the distance variation between the human eyes and the terminal screen between the current detection and the last detection is larger than a preset variation, if so, performing a step S508, and otherwise, entering a step S511;
s508; detecting the current distance between human eyes and a terminal screen;
s509, determining the size of the target font according to the current distance and the preset relation;
s510, displaying fonts on a terminal screen according to the size of the target fonts;
s511, providing a font adjusting function for closing the user;
s512, detecting whether the font adjusting function is closed by the user, if the font adjusting function is closed by the user actively, entering the step S513, otherwise, continuing to circularly detect, and entering the step S505;
and S513, closing the font adjusting function.
In the invention, the function of adjusting the font size in the terminal started by the user can be manual or automatic, and the intelligent font adjusting function needs to consume a certain amount of electricity, so that the user can be reminded to close the function when the font adjustment is not needed.
According to the method, on one hand, the font size range displayed by the terminal screen is determined according to the age groups of the user, the preset relation between the distance from the human eyes to the terminal screen and the font size is obtained according to the font size range, then the target font size is determined according to the current distance between the detected human eyes and the terminal screen and the preset relation, different font size ranges are set for different age groups, so that the use requirements of the user are met, the font sizes can be adaptively adjusted according to the distance from the human eyes to the terminal screen for all the age groups, the use requirements of the user under different scenes are met, on the other hand, the distance from the human eyes to the terminal screen is represented through the pupil radius of the human eyes, and the distance measuring process is simplified.
Example two
The present embodiment provides an apparatus for adjusting font size, the apparatus comprising:
the font size range determining module is used for determining the font size range displayed on the terminal screen according to the age bracket of a user currently using or operating the terminal;
the preset relation acquisition module is used for acquiring the preset relation between the distance from human eyes to the terminal screen and the font size according to the font size range;
the detection module is used for detecting the current distance between human eyes and the terminal screen;
the target font size determining module is used for determining the size of the target font according to the current distance and the preset relation;
and the display module is used for displaying the font on the terminal screen according to the target font size by the user.
In a preferred embodiment, the apparatus further includes a preset relationship determining module, configured to adaptively adjust a font size S in the terminal screen while changing a distance L between the human eye and the terminal screen;
obtaining the font size S and adjusting the font size S to the maximum font S in the font size rangemaxThe maximum distance L between human eyes and the terminal screenmax;
Obtaining the font size S and adjusting the font size S to the normal font S in the font size rangenorThe normal distance L from human eyes to the terminal screennor;
Obtaining the font size S and adjusting the font size S to the minimum font S in the font size rangeminThe minimum distance L between human eyes and the terminal screenmin;
According to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminPerforming linear fitting to obtain the distance L between the human eyes and the terminal screenAnd the preset relation of the font size S.
In a preferred embodiment, the preset relationship determining module is further configured to respectively obtain distances L between the human eyes and the terminal screenmax,Lnor,LminThe minimum radius R of the pupil of the human eyeminNormal radius RnorMaximum radius Rmax;
According to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminPerforming linear fitting to obtain a preset relation between the distance from human eyes to the terminal screen and the font size as follows:
according to SmaxAnd Rmin,SnorAnd RnorAnd SminAnd RmaxPerforming linear fitting to obtain a preset relation between the pupil radius R of human eyes and the font size S;
the preset relationship is as follows:
when R is ∈ [ R ]min,Rnor]When S is k1 (R)nor-R)+Snor;
When R is ∈ [ R ]nor,Rmax]When S is k2 (R)nor-R)+Snor;
Wherein k1 ═ Smax-Snor)/(Rnor-Rmin),k2=(Snor-Smin)/(Rmax-Rnor)。
In a preferred embodiment, the apparatus further comprises: a current human eye pupil radius acquisition module for detecting the current distance L between the human eyes and the terminal screen0Then, the current pupil radius R of the human eye is obtained0;
The target font size determining module is also used for determining the size of the target font according to the current pupil radius R of human eyes0The range determines the target font size;
if R is0∈[Rmin,Rnor]Using the formula S ═ k1 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0∈[Rnor,Rmax]Using the formula S ═ k2 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0>RmaxThen the target font size S0As a minimum font Smin;
If R is0<RminThen the target font size S0As the maximum font Smax。
In a preferred embodiment, the current human eye pupil radius obtaining module is further configured to obtain the pupil radius R of the left eye of the user on the x-axis of the screen coordinate system respectivelyl1Pupil radius R on the y-axisl2And pupil radius R for the right eye on the x-axis of the screen coordinate systemr1Pupil radius R on the y-axisr2;
If R isl1=Rl2,Rr1=Rr2And R isl1=Rr1Then R isl1,Rl2,Rr1,Rr2Any one of them is R0;
If R isl1=Rl2Or Rl1<Rl2And, Rr1<Rr2,Rl2=Rr2Then R isr2Or Rl2As R0;
If R isr1=Rr2Or Rr1<Rr2And, Rl1<Rl2,Rl2=Rr2Then R isr2Or Rl2As R0;
If R isr1>Rr2,Rl1>Rl2And R isr2=Rl2,Rr1=Rl1Then R isr1Or Rl1As R0。
In a preferred embodiment, the detection module is further configured to detect whether both the left eye and the right eye are imaged in the screen before detecting the current distance between the human eye and the terminal screen;
the device also comprises a judging module, a judging module and a judging module, wherein the judging module is used for judging whether the detection is the first detection or not if the left eye and the right eye are imaged in the screen;
the detection module is also used for detecting the current distance between human eyes and the terminal screen if the detection is carried out for the first time, and the target font size is determined by the target font size determination module according to the current distance and the preset relation;
the judging module is also used for judging whether the distance variation between the human eyes and the terminal screen between the current detection and the last detection is larger than the preset variation if the detection is not the first detection;
the detection module is also used for detecting the current distance between the human eyes and the terminal screen if the current distance is larger than the preset distance, and the target font size is determined by the target font size determination module according to the current distance and the preset relation.
In a preferred embodiment, the device further comprises a human eye pupil radius variation obtaining module for detecting the current distance L between the human eye and the terminal screen0Then, the current pupil radius R of the human eye during the detection is obtained0Comparing the pupil radius of the human eye with that of the human eye in the last detection, wherein the pupil radius of the human eye changes by an amount delta R;
the judging module is also used for judging whether the distance variation between the human eyes and the terminal screen is larger than the preset variation:
judging whether the variation delta R of the pupil radius of the human eye is larger than the preset radius variation delta R';
and if the variation delta R of the pupil radius of the human eye is larger than delta R', judging that the variation of the distance between the human eye and the terminal screen is larger than the preset variation.
For technical effects that can be achieved by this embodiment, please refer to the description in the first embodiment, which is not described herein again.
EXAMPLE III
The present embodiment provides a terminal device, including:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
for the implementation process and the technical effects that can be achieved in this embodiment, please refer to the description in the first embodiment, which is not repeated herein.
Example four
In an embodiment, a computer-readable storage medium is provided, where a computer program is stored, and when the computer program is executed by a processor, the method for adjusting a font size according to the first embodiment is implemented.
Fig. 7 illustrates an architecture of a computer system, which may include, in particular, a processor 710, a video display adapter 711, a disk drive 712, an input/output interface 713, a network interface 714, and a memory 720. The processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, and the memory 720 may be communicatively coupled via a communication bus 730.
The processor 710 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided in the present Application.
The Memory 720 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 720 may store an operating system 721 for controlling the operation of the computer system 700, a Basic Input Output System (BIOS) for controlling low-level operations of the computer system 700. In addition, a web browser 723, a data storage management system 724, a device identification information processing system 725, and the like may also be stored. The device identification information processing system 725 may be an application program that implements the operations of the foregoing steps in this embodiment of the present application. In summary, when the technical solution provided by the present application is implemented by software or firmware, the relevant program codes are stored in the memory 720 and called for execution by the processor 710.
The input/output interface 713 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 714 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
In addition, the computer system 700 may also obtain information of specific extraction conditions from the virtual resource object extraction condition information database 741, so as to perform condition judgment, and the like.
It should be noted that although the above-mentioned devices only show the processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, the memory 720, the bus 730, etc., in a specific implementation, the devices may also include other components necessary for normal operation. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the solution of the present application, and not necessarily all of the components shown in the figures.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from the memory, or installed from the ROM. The computer program, when executed by a processor, performs the above-described functions defined in the methods of embodiments of the present application.
It should be noted that the computer readable medium of the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the server; or may exist separately and not be assembled into the server. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: when the peripheral mode of the terminal is detected to be not activated, acquiring a frame rate of an application on the terminal; when the frame rate meets the screen information condition, judging whether a user is acquiring the screen information of the terminal; and controlling the screen to enter an immediate dimming mode in response to the judgment result that the user does not acquire the screen information of the terminal.
Computer program code for carrying out operations for embodiments of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method, the apparatus, the terminal device, and the computer-readable storage medium for adjusting font size provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific embodiments and the application range may be changed. In view of the above, the description should not be taken as limiting the application.
Claims (10)
1. A method for adjusting font size, the method comprising:
determining the font size range displayed by a terminal screen according to the age bracket of a user currently using or operating the terminal;
acquiring a preset relation between the distance from human eyes to a terminal screen and the font size according to the font size range;
detecting the current distance between the human eyes and the terminal screen;
determining the size of a target font according to the current distance and the preset relation;
and displaying the font on the terminal screen according to the target font size.
2. The method of claim 1, wherein the predetermined relationship is determined by:
the font size S in the terminal screen is adjusted in a self-adaptive mode while the distance L between the human eyes and the terminal screen is changed;
obtaining the font size S adjusted toMaximum font S in font size rangemaxThe maximum distance L between human eyes and the terminal screenmax;
Obtaining the font size S and adjusting the font size S into a normal font S in a font size rangenorThe normal distance L from human eyes to the terminal screennor;
Obtaining the font size S and adjusting the font size S to be the minimum font S in the font size rangeminThe minimum distance L between human eyes and the terminal screenmin;
According to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminAnd performing linear fitting to obtain a preset relation between the distance L between the human eyes and the terminal screen and the font size S.
3. The method of claim 2, further comprising:
respectively acquiring the distance L between the human eyes and the terminal screenmax,Lnor,LminThe minimum radius R of the pupil of the human eyeminNormal radius RnorMaximum radius Rmax;
Said according to SmaxAnd Lmax,SnorAnd LnorAnd SminAnd LminPerforming linear fitting to obtain a preset relation between the distance from the human eyes to the terminal screen and the font size as follows:
according to SmaxAnd Rmin,SnorAnd RnorAnd SminAnd RmaxPerforming linear fitting to obtain a preset relation between the pupil radius R of the human eye and the font size S;
the preset relation is as follows:
when R is ∈ [ R ]min,Rnor]When S is k1 (R)nor-R)+Snor;
When R is ∈ [ R ]nor,Rmax]When S is k2 (R)nor-R)+Snor;
Wherein k1 ═ Smax-Snor)/(Rnor-Rmin),k2=(Snor-Smin)/(Rmax-Rnor)。
4. Method according to claim 3, characterized in that the current distance L between the human eye and the terminal screen is detected0Then, the current pupil radius R of the human eye is obtained0;
The determining the size of the target font according to the current distance and the preset relationship comprises:
according to the current pupil radius R of the human eye0The range in which determines the target font size,
if R is0∈[Rmin,Rnor]Using the formula S ═ k1 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0∈[Rnor,Rmax]Using the formula S ═ k2 (R)nor-R)+SnorCalculating to obtain the size S of the target font0;
If R is0>RmaxThen the target font size S0As a minimum font Smin;
If R is0<RminThen the target font size S0As the maximum font Smax。
5. The method of claim 4, wherein obtaining the current pupil radius R of the human eye0The method comprises the following steps:
respectively acquiring the pupil radius R of the left eye of the user on the x axis of the screen coordinate systeml1Pupil radius R on the y-axisl2And pupil radius R for the right eye on the x-axis of the screen coordinate systemr1Pupil radius R on the y-axisr2;
If R isl1=Rl2,Rr1=Rr2And R isl1=Rr1Then R isl1,Rl2,Rr1,Rr2Any one of them is R0;
If R isl1=Rl2Or Rl1<Rl2And, Rr1<Rr2,Rl2=Rr2Then R isr2Or Rl2As R0;
If R isr1=Rr2Or Rr1<Rr2And, Rl1<Rl2And R isl2=Rr2Then R isr2Or Rl2As R0;
If R isr1>Rr2,Rl1>Rl2And R isr2=Rl2,Rr1=Rl1Then R isr1Or Rl1As R0。
6. The method according to claim 4 or 5, characterized in that before detecting the current distance between the human eye and the terminal screen, it further comprises detecting whether both the left and right eyes are imaged within the screen;
if the left eye and the right eye are imaged in the screen, judging whether the detection is the first detection;
if the detection is the first detection, detecting the current distance between the human eyes and the terminal screen, and determining the size of a target font according to the current distance and the preset relation;
if the detection is not the first detection, judging whether the distance variation between the human eyes and the terminal screen between the current detection and the last detection is larger than a preset variation or not;
and if so, detecting the current distance between the human eyes and the terminal screen, and determining the size of the target font according to the current distance and the preset relation.
7. The method of claim 6, further comprising:
detecting a current distance L between the human eyes and the terminal screen0Then, the current pupil radius R of the human eye during the detection is obtained0Comparing with the radius of the pupil of the human eye at the last detectionThe variation quantity delta R of the pupil radius of the human eye;
judging whether the distance variation between the human eyes and the terminal screen is larger than a preset variation or not is as follows:
judging whether the human eye pupil radius variation delta R is larger than the preset radius variation delta R';
and if the variation delta R of the pupil radius of the human eye is larger than delta R', judging that the variation of the distance between the human eye and the terminal screen is larger than the preset variation.
8. An apparatus for adjusting font size, the apparatus comprising:
the font size range determining module is used for determining the font size range displayed on the terminal screen according to the age bracket of a user currently using or operating the terminal;
the preset relation acquisition module is used for acquiring the preset relation between the distance from the human eyes to the terminal screen and the font size according to the font size range;
the detection module is used for detecting the current distance between the human eyes and the terminal screen;
the target font size determining module is used for determining the size of the target font according to the current distance and the preset relation;
and the display module is used for displaying the font on the terminal screen according to the target font size.
9. A terminal device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform the method of any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110725591.9A CN113342229A (en) | 2021-06-29 | 2021-06-29 | Method and device for adjusting font size, terminal equipment and computer readable storage medium |
CA3166085A CA3166085A1 (en) | 2021-06-29 | 2022-06-29 | A method, device, terminal, and computer-readable storage medium for adjusting font size |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110725591.9A CN113342229A (en) | 2021-06-29 | 2021-06-29 | Method and device for adjusting font size, terminal equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113342229A true CN113342229A (en) | 2021-09-03 |
Family
ID=77481253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110725591.9A Withdrawn CN113342229A (en) | 2021-06-29 | 2021-06-29 | Method and device for adjusting font size, terminal equipment and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113342229A (en) |
CA (1) | CA3166085A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115499538A (en) * | 2022-08-23 | 2022-12-20 | 广东以诺通讯有限公司 | Screen display font adjusting method and device, storage medium and computer equipment |
CN116992418A (en) * | 2023-09-25 | 2023-11-03 | 深圳市赛义德信息技术有限公司 | Account safety protection system for medical inquiry terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100741426B1 (en) * | 2006-06-08 | 2007-07-20 | 삼성전자주식회사 | Method and apparatus for font auto control in mobile phone |
CN104777903A (en) * | 2015-03-27 | 2015-07-15 | 深圳市金立通信设备有限公司 | Character display method |
CN105630167A (en) * | 2015-12-24 | 2016-06-01 | 浙江吉利控股集团有限公司 | Self-adaptive screen regulation method, self-adaptive screen regulation device and terminal device |
CN106325695A (en) * | 2015-06-29 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent display method and device for terminal, and terminal |
CN107528972A (en) * | 2017-08-11 | 2017-12-29 | 维沃移动通信有限公司 | A kind of display methods and mobile terminal |
WO2018089167A1 (en) * | 2016-11-11 | 2018-05-17 | Rovi Guides, Inc. | Systems and methods for adjusting display settings to reduce eye strain of multiple viewers |
CN108989571A (en) * | 2018-08-15 | 2018-12-11 | 浙江大学滨海产业技术研究院 | A kind of adaptive font method of adjustment and device for mobile phone word read |
CN112394808A (en) * | 2019-08-14 | 2021-02-23 | 奇酷互联网络科技(深圳)有限公司 | Method, terminal and storage medium for adjusting font size |
-
2021
- 2021-06-29 CN CN202110725591.9A patent/CN113342229A/en not_active Withdrawn
-
2022
- 2022-06-29 CA CA3166085A patent/CA3166085A1/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100741426B1 (en) * | 2006-06-08 | 2007-07-20 | 삼성전자주식회사 | Method and apparatus for font auto control in mobile phone |
CN104777903A (en) * | 2015-03-27 | 2015-07-15 | 深圳市金立通信设备有限公司 | Character display method |
CN106325695A (en) * | 2015-06-29 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent display method and device for terminal, and terminal |
CN105630167A (en) * | 2015-12-24 | 2016-06-01 | 浙江吉利控股集团有限公司 | Self-adaptive screen regulation method, self-adaptive screen regulation device and terminal device |
WO2018089167A1 (en) * | 2016-11-11 | 2018-05-17 | Rovi Guides, Inc. | Systems and methods for adjusting display settings to reduce eye strain of multiple viewers |
CN107528972A (en) * | 2017-08-11 | 2017-12-29 | 维沃移动通信有限公司 | A kind of display methods and mobile terminal |
CN108989571A (en) * | 2018-08-15 | 2018-12-11 | 浙江大学滨海产业技术研究院 | A kind of adaptive font method of adjustment and device for mobile phone word read |
CN112394808A (en) * | 2019-08-14 | 2021-02-23 | 奇酷互联网络科技(深圳)有限公司 | Method, terminal and storage medium for adjusting font size |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115499538A (en) * | 2022-08-23 | 2022-12-20 | 广东以诺通讯有限公司 | Screen display font adjusting method and device, storage medium and computer equipment |
CN115499538B (en) * | 2022-08-23 | 2023-08-22 | 广东以诺通讯有限公司 | Screen display font adjusting method, device, storage medium and computer equipment |
CN116992418A (en) * | 2023-09-25 | 2023-11-03 | 深圳市赛义德信息技术有限公司 | Account safety protection system for medical inquiry terminal |
CN116992418B (en) * | 2023-09-25 | 2024-01-05 | 深圳市赛义德信息技术有限公司 | Account safety protection system for medical inquiry terminal |
Also Published As
Publication number | Publication date |
---|---|
CA3166085A1 (en) | 2022-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9025016B2 (en) | Systems and methods for audible facial recognition | |
CN103491230B (en) | Can the mobile terminal of automatic regulating volume and font and Automatic adjustment method thereof | |
CN110211549B (en) | Screen brightness adjustment method and device, terminal and storage medium | |
CN106303029A (en) | The method of controlling rotation of a kind of picture, device and mobile terminal | |
CN109040523B (en) | Artifact eliminating method and device, storage medium and terminal | |
CN105679253B (en) | A kind of terminal backlight adjusting method and device | |
CN113342229A (en) | Method and device for adjusting font size, terminal equipment and computer readable storage medium | |
CN104252828B (en) | Protect display methods, display device and the terminal device of eyesight | |
CN109101931A (en) | A kind of scene recognition method, scene Recognition device and terminal device | |
CN109144250B (en) | Position adjusting method, device, equipment and storage medium | |
CN111062276A (en) | Human body posture recommendation method and device based on human-computer interaction, machine readable medium and equipment | |
CN114236834B (en) | Screen brightness adjusting method and device of head-mounted display equipment and head-mounted display equipment | |
CN113038165B (en) | Method, apparatus and storage medium for determining encoding parameter set | |
CN104754219A (en) | Terminal | |
CN114910052B (en) | Distance measurement method, control method and device based on camera and electronic equipment | |
CN111369461A (en) | Beauty parameter adjusting method and device and electronic equipment | |
CN105700277B (en) | Projection brightness adjusting method and device | |
CN111610886A (en) | Method and device for adjusting brightness of touch screen and computer readable storage medium | |
CN113495616A (en) | Terminal display control method, terminal, and computer-readable storage medium | |
CN110930372A (en) | Image processing method, electronic equipment and computer readable storage medium | |
CN115145525A (en) | Screen brightness adjustment model training method and device, storage medium and electronic equipment | |
CN109218620A (en) | Photographic method, device, storage medium and mobile terminal based on ambient brightness | |
CN112506338B (en) | Full-vision-based equipment control method, device and equipment | |
CN115601316A (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN116339488A (en) | Data identification method and device, storage medium and electronic equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210903 |
|
WW01 | Invention patent application withdrawn after publication |