CN110489689B - Page content updating method and device, electronic equipment and storage medium - Google Patents

Page content updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110489689B
CN110489689B CN201810436696.0A CN201810436696A CN110489689B CN 110489689 B CN110489689 B CN 110489689B CN 201810436696 A CN201810436696 A CN 201810436696A CN 110489689 B CN110489689 B CN 110489689B
Authority
CN
China
Prior art keywords
browsing
current page
determining
text
eyeball
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.)
Active
Application number
CN201810436696.0A
Other languages
Chinese (zh)
Other versions
CN110489689A (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810436696.0A priority Critical patent/CN110489689B/en
Publication of CN110489689A publication Critical patent/CN110489689A/en
Application granted granted Critical
Publication of CN110489689B publication Critical patent/CN110489689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a page content updating method, a page content updating device, electronic equipment and a storage medium, wherein the method comprises the following steps: identifying each position of eyeballs of a user in each image aiming at a plurality of images collected when the user browses a current page; according to each position, determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page; judging whether the frequency reaches a frequency threshold corresponding to the current page or not; and if so, updating the content displayed on the current page. According to the method and the device, the times that the browsing direction is changed from the first direction to the second direction are determined according to the regularity of the eyeball browsing direction when the user browses the text content, the eyeball browsing direction of the user is represented by the digital signal, and the anti-jamming capability of the digital signal is strong, so that the accuracy is higher when the content displayed on the page is updated by using the change of the digital signal as a trigger condition.

Description

Page content updating method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a page content updating method and device, electronic equipment and a storage medium.
Background
When a user reads long content by using an intelligent device, the user needs to control the screen to roll by using fingers, a mouse, a keyboard and the like, the operation of controlling the screen to roll by using the fingers is high-frequency and mechanical repeated action, the experience is poor for the user, and the screen cannot be controlled by using hands in partial scenes, so that the operation of rolling the screen cannot be performed; some smart devices have voice control, and can use voice to control screen scrolling operations, but voice control is not good enough in recognition accuracy, and is also inconvenient to use in reading scenes such as libraries.
Therefore, in the prior art, it is proposed that an eye movement control screen is scrolled, for example, eye movement coordinate data of a user is obtained according to a fixed period, where the eye movement coordinate data is a coordinate position of a user's sight on a screen of an intelligent device; judging whether a user sight track formed by the acquired multiple eye movement coordinate data meets the preset sight track requirement or not, if so, controlling a screen to roll, and realizing page content updating; or capturing the eye movement information of the user by using a front camera; analyzing the eye movement information of the user to acquire the position of the sight focus of the user on a screen; judging whether the position is in a preset screen excitation hot area on a screen or not; and if the position is in the screen excitation hot area, executing updating operation to realize page content updating.
In the prior art, page content updating methods are provided, which all acquire coordinate data of eyes of a user, adopt an analog signal of eyeball coordinates as a trigger mode, realize updating of page content, and have poor interference resistance and accuracy.
Disclosure of Invention
The invention provides a page content updating method and device, electronic equipment and a storage medium, which are used for solving the problem of poor interference resistance and accuracy in page content updating in the prior art.
The invention provides a page content updating method, which is applied to electronic equipment and comprises the following steps:
identifying each position of eyeballs of a user in each image aiming at a plurality of images collected when the user browses a current page;
according to each position, determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page;
judging whether the frequency reaches a frequency threshold corresponding to the current page or not;
and if so, updating the content displayed on the current page.
According to the page content updating method provided by the embodiment of the invention, the frequency of changing the browsing direction from the first direction to the second direction is determined according to the regularity of the eyeball browsing direction when the user browses the text content, the frequency is used as the triggering condition of content updating, which is equivalent to representing the eyeball browsing direction of the user by using a digital signal, and the interference resistance of the digital signal is strong, so that the accuracy is higher when the content displayed on the page is updated by using the change of the digital signal as the triggering condition.
Further, the determining, according to each position, the number of times that the browsing direction is changed from the first direction to the second direction when the eyeball browses the single-line text in the current page includes:
when the eyeball browses the single-line text in the current page and the browsing direction is changed from a first direction to a second direction, taking the first direction and the second direction as a target first direction and a target second direction;
determining each first target position of which the browsing direction of the eyeballs is the target first direction according to each position; determining a first browsing duration of the eyeballs in the first direction of the target according to first acquisition time for acquiring the image of each first target position; determining each second target position of which the browsing direction of the eyeball is the target second direction according to each position; determining a second browsing duration of the eyeballs in a second direction of the target according to second acquisition time for acquiring the image of each second target position;
judging whether the first browsing duration is greater than a preset first duration threshold or not, and whether the second browsing duration is less than a preset second duration threshold or not;
and if yes, updating the number of times that the browsing direction of the eyeballs is changed from the first direction to the second direction.
In the page content updating method provided by the embodiment of the invention, the first browsing duration and the second browsing duration before and after the browsing direction is changed are determined, and whether the user finishes reading the single-line text once is determined according to the first browsing duration and the second browsing duration, so that the times of the change of the eyeball browsing direction are updated when the completion of reading the single-line text once is determined.
Further, if the mode of updating the content displayed on the current page is screen scrolling, the updating the content displayed on the current page includes:
determining the total browsing time length of the eyeballs according to the first browsing time length of the eyeballs in each target first direction and the second browsing time length of the eyeballs in each target second direction when the browsing direction of the eyeballs is changed from the first direction to the second direction;
determining the browsing speed of the user when browsing the current page according to the total browsing duration and the times;
and according to the browsing speed, performing rolling updating on the content displayed on the current page.
In the page content updating method provided by the embodiment of the invention, when the frequency of changing the browsing direction of the eyeball from the first direction to the second direction reaches the frequency threshold corresponding to the current page, the browsing speed of the text content browsed by the user is analyzed according to the reading behavior data of the user, so that the content displayed on the current page is updated in a rolling manner according to the browsing speed.
Further, determining the threshold of the number of times corresponding to the current page includes:
acquiring the number of text lines of the current page; and determining a corresponding time threshold of the current page according to the text line number.
Further, the obtaining of the text line number of the current page includes:
acquiring the screen resolution of the electronic equipment, and determining the number of single-line text characters in the current page;
acquiring the total number of characters in the current page;
and determining the text line number of the current page according to the total number of the characters and the text character number of the single line.
According to the page content updating method provided by the embodiment of the invention, the corresponding time threshold of the current page is determined according to the acquired text line number of the current page, so that the displayed content of the current page is updated.
Further, after determining the number threshold corresponding to the current page according to the number of text lines, the method further includes:
when the eyeball browses the single-line text in the current page and the browsing direction is changed from a first direction to a second direction, determining the browsing direction of the eyeball as each third target position of the first direction according to each position; determining a third browsing duration of the eyeballs in the first direction according to third acquisition time for acquiring the image of each third target position;
judging whether the third browsing duration reaches the average reading duration of the single-line text stored in advance;
and if not, updating the time threshold.
The page content updating method provided by the embodiment of the invention combines the user reading behavior data to update the corresponding time threshold of the current page, thereby improving the fault tolerance of the page content updating method.
The invention provides a page content updating device, which is applied to electronic equipment and comprises:
the identification module is used for identifying each position of eyeballs of the user in each image aiming at a plurality of images collected when the user browses the current page;
the determining module is used for determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses the single-line text in the current page according to each position;
the judging module is used for judging whether the times reach a time threshold corresponding to the current page or not; if yes, triggering an updating module;
and the updating module is used for updating the content displayed by the current page.
Further, the determining module is specifically configured to, when it is determined that the eyeball browses a single line of text in the current page and the browsing direction is changed from a first direction to a second direction, take the first direction and the second direction as a target first direction and a target second direction; determining each first target position of which the browsing direction of the eyeballs is the target first direction according to each position; determining a first browsing duration of the eyeballs in the first direction of the target according to first acquisition time for acquiring the image of each first target position; determining each second target position of which the browsing direction of the eyeball is the target second direction according to each position; determining a second browsing duration of the eyeballs in a second direction of the target according to second acquisition time for acquiring the image of each second target position; judging whether the first browsing duration is greater than a preset first duration threshold or not, and whether the second browsing duration is less than a preset second duration threshold or not; and if yes, updating the number of times that the browsing direction of the eyeballs is changed from the first direction to the second direction.
Further, the determining module is specifically configured to determine the total browsing duration of the eyeball according to a first browsing duration of the eyeball in each target first direction and a second browsing duration of the eyeball in each target second direction each time the browsing direction of the eyeball changes from the first direction to the second direction; determining the browsing speed of the user when browsing the current page according to the total browsing duration and the times; and according to the browsing speed, performing rolling updating on the content displayed on the current page.
Further, the apparatus further comprises:
the threshold value determining module is used for acquiring the text line number of the current page; and determining a corresponding time threshold of the current page according to the text line number.
Further, the threshold determination module is specifically configured to obtain a screen resolution of the electronic device, and determine the number of single-line text characters in the current page; acquiring the total number of characters in the current page; and determining the text line number of the current page according to the total number of the characters and the text character number of the single line.
Further, the threshold determining module is further configured to determine, according to the number of text lines, after determining a number threshold corresponding to the current page, when it is determined that the eyeball browses a single line of text in the current page and a browsing direction changes from a first direction to a second direction, determine, according to each position, each third target position where the browsing direction of the eyeball is in the first direction; determining a third browsing duration of the eyeballs in the first direction according to third acquisition time for acquiring the image of each third target position; judging whether the third browsing duration reaches the average reading duration of the single-line text stored in advance; and if not, updating the time threshold.
The invention provides an electronic device, comprising a memory and a processor;
the processor is used for reading the program in the memory and executing the steps of any one of the methods.
The present invention provides a computer readable storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the steps of any of the methods described above.
The invention provides a page content updating method, a page content updating device, electronic equipment and a storage medium, wherein the method comprises the following steps: identifying each position of eyeballs of a user in each image aiming at a plurality of images collected when the user browses a current page; according to each position, determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page; judging whether the frequency reaches a frequency threshold corresponding to the current page or not; and if so, updating the content displayed on the current page. According to the method and the device, the frequency of changing the browsing direction from the first direction to the second direction is determined according to the regularity of the eyeball browsing direction when the user browses the text content, the frequency is used as the trigger condition of content updating, which is equivalent to representing the eyeball browsing direction of the user by using a digital signal, and the anti-interference capacity of the digital signal is strong, so that the accuracy is higher when the content displayed on the page is updated by using the change of the digital signal as the trigger condition.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating a page content update process according to example 1 of the present invention;
fig. 2 is a schematic view of a user browsing direction provided in embodiment 1 of the present invention;
fig. 3 is an eyeball movement law when a user browses a text according to embodiment 2 of the present invention;
fig. 4 is a schematic diagram of a user browsing a text according to embodiment 3 of the present invention;
fig. 5 is a schematic diagram of a page content updating process provided in embodiment 5 of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to embodiment 6 of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to embodiment 7 of the present invention;
fig. 8 is a schematic diagram of a page content updating apparatus according to an embodiment of the present invention.
Detailed Description
In order to improve the interference resistance and accuracy during updating of page content, embodiments of the present invention provide a page content updating method and apparatus, an electronic device, and a storage medium.
The page content updating method provided by the embodiment of the invention can be applied to electronic equipment, and the electronic equipment comprises a hardware layer, an operating system layer running on the hardware layer and an application layer running on an operating system.
The hardware layer includes hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a Memory.
The operating system may be any one or more computer operating systems that implement business processing through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer comprises a browser, reading software and other applications capable of reading text content.
In the embodiment of the present invention, the electronic device may be a handheld device such as a smart phone and a tablet computer, or may also be a terminal device such as a desktop computer and a portable computer, which is not particularly limited in the embodiment of the present invention, as long as the page content can be updated by running a program recorded with a code of the page content updating method in the embodiment of the present invention.
The execution subject of the page content update in the embodiment of the present invention may be the electronic device, or a functional module capable of calling a program and executing the program in the electronic device.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of a page content updating process provided in an embodiment of the present invention, where the process includes the following steps:
s101: and identifying each position of eyeballs of the user in each image aiming at a plurality of images collected when the user browses the current page.
The page content updating method provided by the embodiment of the invention is applied to electronic equipment, the electronic equipment can acquire a plurality of images of a user when the user browses a current page, the electronic equipment can acquire the plurality of images of the user by adopting a front camera device or a rear camera device on the electronic equipment, and the images of the user acquired by the electronic equipment are facial images of the user.
Since the face of the user is located in the capture area of the front camera device when the user browses the page, the electronic device preferably captures a plurality of images of the user by using the front camera device.
The electronic equipment collects multiple images of the user, namely the facial images of the user, so that the electronic equipment identifies each position of eyeballs of the user in each image in the facial images of the multiple users.
The electronic device may perform coarse positioning on the position of the eye in the image to determine the horizontal position and the vertical position of the eye, and further may perform accurate positioning on the position of the eye, specifically, acquiring the positions of the inner and outer corners of the eye, so as to determine the position of the eye. The process of the electronic device performing coarse positioning and fine positioning on the eyes and determining the positions of the eyeballs belongs to the prior art, and is not described in detail in the embodiment of the invention.
Certainly, in order to further reduce noise interference of the face gray level image and improve the accuracy of eyeball position positioning, the electronic device may perform denoising on the acquired face image by using a histogram equalization and gaussian filtering image processing method.
S102: and determining the times that the browsing direction is changed from the first direction to the second direction when the eyeball browses the single-line text in the current page according to each position.
After the electronic device determines each position of the eyeball in each image, the browsing direction of the eyeball when the eyeball browses a single line of text in the current page can be determined according to each position of the eyeball, so that the number of times that the browsing direction is changed from the first direction to the second direction is determined.
Assuming that a direction shown by a single line of text in the current page is a horizontal direction, a browsing direction of an eyeball when browsing the single line of text can be understood as a moving direction of the eyeball in the horizontal direction.
The first direction is opposite to the second direction, e.g. the first direction may be from left to right in the horizontal direction, respectively the second direction from right to left in the horizontal direction, or the first direction may be from right to left in the horizontal direction, respectively the second direction from left to right or in the horizontal direction.
The specific first direction and the second direction can be set according to the browsing habits of the user using the electronic equipment. As shown in fig. 2 according to most of the browsing habits of users, in general, a user browses from left to right in the horizontal direction when browsing text, and moves an eyeball from right to left in the horizontal direction when wrapping, so that the first direction can be set to be left to right in the horizontal direction, and the second direction can be set to be right to left in the horizontal direction.
When a user reads a content with a large amount of texts, the horizontal movement of eyeballs has regularity, after the user browses a single line of texts from left to right in the horizontal direction, the eyeballs can perform line feed operation from right to left in the horizontal direction, so that the browsing direction of the eyeballs of the user can be identified by using digital signals, a digital signal cycle is formed according to the moving direction of the eyeballs of the user in the horizontal direction, the cycle is a digital signal cycle with two states, the number of times of changing from the first direction to the second direction according to the browsing direction of the eyeballs of the user is used as the cycle number of the digital signal change, the number of lines of the texts which are read by the user is determined, and due to the strong interference resistance of the digital signals, the change of the digital signals is used as a trigger condition, and the accuracy is higher when the content displayed on a page is updated.
S103: judging whether the frequency reaches a frequency threshold corresponding to the current page or not; if yes, go to S104, and if no, go to S105.
The electronic device stores a time threshold corresponding to the current page, where the time threshold corresponding to the current page is related to the number of text lines in the current page, and the time threshold corresponding to the current page may be the number of text lines in the current page, and may be a part of the number of text lines in the current page.
The electronic device may determine whether the content displayed on the current page needs to be updated according to whether the number of lines of the text that has been read by the user reaches a threshold number of times. And when the electronic equipment judges whether the times reach the time threshold corresponding to the current page, executing corresponding steps according to different judgment results.
S104: and updating the content displayed on the current page.
When the electronic equipment determines that the frequency of the change of the browsing direction of the eyeballs of the user from the first direction to the second direction reaches the frequency threshold corresponding to the current page, updating the content displayed on the current page.
The electronic equipment updates the content displayed on the current page through the updating operation on the current page. The updating operation of the current page is pre-stored in the electronic device, the updating operation of the current page can be set by a user, and the updating operation of the current page can be in a screen page turning mode or a screen scrolling mode.
If the current page is updated in a screen page turning mode, after the current page is turned on each time, a plurality of images of the user are collected again aiming at the turned current page. And if the current page is updated in a screen scrolling mode, directly scrolling and updating the content displayed on the current page.
S105: and not updating the content displayed by the current page.
When the electronic equipment determines that the frequency of the change of the browsing direction of the eyeballs of the user from the first direction to the second direction does not reach the frequency threshold corresponding to the current page, the content displayed on the current page is not updated.
According to the method and the device, the frequency of changing the browsing direction from the first direction to the second direction is determined according to the regularity of the eyeball browsing direction when the user browses the text content, the frequency is used as the trigger condition of content updating, which is equivalent to representing the eyeball browsing direction of the user by using a digital signal, and the anti-jamming capability of the digital signal is strong, so that the accuracy is higher when the content displayed on the page is updated by using the change of the digital signal as the trigger condition.
Example 2:
on the basis of the above embodiment, in the embodiment of the present invention, when determining that the eyeball browses a single line of text in the current page according to each position, the number of times that the browsing direction is changed from the first direction to the second direction includes:
when the eyeball browses the single-line text in the current page and the browsing direction is changed from a first direction to a second direction, taking the first direction and the second direction as a target first direction and a target second direction;
determining each first target position of which the browsing direction of the eyeballs is the target first direction according to each position; determining a first browsing duration of the eyeballs in the first direction of the target according to first acquisition time for acquiring the image of each first target position; determining each second target position of which the browsing direction of the eyeball is the target second direction according to each position; determining a second browsing duration of the eyeballs in a second direction of the target according to second acquisition time for acquiring the image of each second target position;
judging whether the first browsing duration is greater than a preset first duration threshold or not, and whether the second browsing duration is less than a preset second duration threshold or not;
and if yes, updating the number of times that the browsing direction of the eyeballs is changed from the first direction to the second direction.
According to the browsing habits of the user, the user usually moves gradually from left to right in the horizontal direction during reading and moves quickly from right to left in the horizontal direction during line feed, so that whether the user completes one cycle of reading and line feed can be determined according to the browsing duration of the browsing direction before and after the change, and after the completion of one cycle is determined, the change times are updated, which is equivalent to the updating of the number of text lines read by the user.
When the electronic equipment judges that the eyeball browses a single-line text in the current page, and the browsing direction is changed from a first direction to a second direction, aiming at the change of the browsing direction, the first direction before the change is taken as a target first direction, and the second direction after the change is taken as a target second direction.
And according to each determined position of the eyeball, determining each first target position of which the browsing direction of the eyeball is the target first direction, namely determining each first target position which the eyeball passes through when browsing in the target first direction.
When the electronic equipment collects the face image of the user, the collection time of each image is recorded, so that the first collection time corresponding to the collection of the image of each first target position can be determined according to each first target position of the eyeball. The electronic device can determine a first browsing duration of the eyeball in the first direction of the target according to the first acquisition time of acquiring the image of each first target position.
And according to each determined position of the eyeball, determining each second target position of which the browsing direction of the eyeball is the target second direction, namely determining each second target position which the eyeball passes through when browsing in the target second direction.
Similarly, since the electronic device records the acquisition time for acquiring each image, the second acquisition time corresponding to the acquisition of the image of each second target position can be determined according to each second target position of the eyeball. The electronic device may determine a second browsing duration of the eyeball in the second direction of the target according to a second acquisition time of acquiring the image of each second target position.
The process of determining the browsing duration of the eyeball in the target direction by the electronic device according to the acquisition time of acquiring the image of each target position belongs to the prior art, and is not described in detail in the embodiment of the invention.
The eyeball movement rule of a user when browsing a text is shown in fig. 3, the eyeball of the user slowly moves at a constant speed when reading from left to right in the horizontal direction, and quickly moves when changing lines from right to left in the horizontal direction, when the eyeball of the user slowly and uniformly moves from left to right in the horizontal direction, a girl can be spilt in the horizontal direction and quickly moves from right to left, the user can be considered to complete one cycle, and under the condition that the number of characters of the text displayed in a single line in the current page is not changed, the eyeball movement speed of the user can be determined according to the browsing duration of the eyeball in the browsing direction, so that whether the user finishes reading a line of text content or not can be determined according to the browsing duration of the eyeball in the browsing direction.
Specifically, whether the first browsing duration is greater than a preset first duration threshold value or not is judged, and the second browsing duration is smaller than a preset second duration threshold value, if the first browsing duration is greater than the first duration threshold value, it is considered that slow and uniform movement from left to right in the horizontal direction is met when the user reads a text, and if the second browsing duration is smaller than the second duration threshold value, it is considered that fast movement from right to left in the horizontal direction is met when the user changes lines.
The first time length threshold and the second time length threshold are pre-stored in the electronic device, wherein the first time length threshold and the second time length threshold may be average time length of reading a single line of text when a user uses the electronic device, which is obtained through big data statistics analysis, or may be determined by analyzing user reading behavior data of the user, the first time length threshold may be 2 seconds, 5 seconds, 10 seconds, or the like, and the second time length threshold may be 2 seconds, 5 seconds, 10 seconds, or the like. The second duration threshold may be the same as or different from the first duration threshold, and in general, the second duration threshold is different from the first duration threshold, and the second duration threshold is smaller than the first duration threshold.
The setting of the first duration threshold and the second duration threshold is also related to the transverse size of the electronic equipment, because in the electronic equipment with different transverse sizes, the number of characters of the text displayed in a single line in the current page is different, so that the first browsing duration required by the user to browse the text in a single line is different from the second browsing duration required by the user to change the line.
If the first browsing duration is greater than the first duration threshold and the second browsing duration is less than the second duration threshold, the user is considered to finish reading the single-line text once, so that the number of times that the browsing direction of the currently stored eyeball is changed from the first direction to the second direction can be updated.
In the embodiment of the invention, the first browsing time length and the second browsing time length before and after the browsing direction is changed are determined, and whether the user finishes reading the single-line text once is determined according to the first browsing time length and the second browsing time length, so that the times of the change of the eyeball browsing direction are updated when the completion of reading the single-line text once is determined.
Example 3:
on the basis of the foregoing embodiments, in an embodiment of the present invention, if the mode of updating the content displayed on the current page is screen scrolling, the updating the content displayed on the current page includes:
determining the total browsing time length of the eyeballs according to the first browsing time length of the eyeballs in each target first direction and the second browsing time length of the eyeballs in each target second direction when the browsing direction of the eyeballs is changed from the first direction to the second direction;
determining the browsing speed of the user when browsing the current page according to the total browsing duration and the times;
and according to the browsing speed, performing rolling updating on the content displayed on the current page.
And analyzing the browsing speed of the text content browsed by the user according to the reading behavior data of the user, and thus, scrolling and updating the content displayed on the current page according to the browsing speed.
When the mode of updating the content displayed on the current page is determined to be screen scrolling, the electronic equipment analyzes the browsing speed of the text content browsed by the user according to the reading behavior data of the user, and determines the total browsing time of the eyeballs according to the first browsing time of the eyeballs in the first direction of each target and the second browsing time of the eyeballs in the second direction of each target each time when the browsing direction of the eyeballs is changed from the first direction to the second direction.
Determining the total browsing time length of the eyeball may be determining the sum of each first browsing time length and each second browsing time length as the total browsing time length, or determining the total browsing time length according to each first browsing time length, each second browsing time length and a preset algorithm, and the like.
The current storage times can be understood as the number of lines of the text read by the user, and the total browsing duration can be understood as the duration spent by the user when reading the text of the number of lines, so that the browsing rate of the user when browsing the current webpage can be determined according to the total browsing duration and the current storage times, specifically, the ratio of the total browsing duration to the current storage times can be directly determined as the browsing rate, and the browsing rate can also be determined according to the total browsing duration, the current storage times and other preset algorithms.
The electronic device may perform the scrolling update on the content displayed on the current page according to the determined browsing rate, where the process of performing the scrolling update on the content displayed on the current page according to the browsing rate belongs to the prior art, and is not described in detail in the embodiment of the present invention.
Taking fig. 4 as an example, when browsing a single line of text, the eyeball of the user needs to move slowly and uniformly in the first direction from left to right in the horizontal direction, and needs to move quickly in the second direction from right to left in the horizontal direction when changing the line, when the change rule of the eyeball of the user reaches the loop, and the number of times that the browsing direction of the eyeball changes from the first direction to the second direction reaches the number threshold corresponding to the current page, the browsing rate of the eyeball when browsing the current page is determined, and the content displayed on the current page is updated by scrolling according to the browsing rate.
According to the method and the device, when the electronic equipment determines that the frequency of changing the browsing direction of the eyeballs from the first direction to the second direction reaches the frequency threshold value corresponding to the current page, the browsing speed of the text content browsed by the user is analyzed according to the reading behavior data of the user, and therefore the content displayed on the current page is updated in a rolling mode according to the browsing speed.
Example 4:
on the basis of the foregoing embodiments, in the embodiments of the present invention, determining the threshold of the number of times corresponding to the current page includes:
acquiring the number of text lines of the current page; and determining a corresponding time threshold of the current page according to the text line number.
In order to update the display content of the page, a time threshold corresponding to the current page needs to be determined.
When determining the corresponding time threshold of the current page, the electronic device determines according to the acquired text line number of the current page. When the electronic device obtains the number of text lines of the current page, the number of text lines may be directly obtained, or may be determined according to the total number of characters of the current page and the screen resolution of the electronic device.
After determining the number of text lines of the current page, the electronic device may determine a number threshold corresponding to the current page according to the number of text lines. According to the number of text lines, determining the number threshold corresponding to the current page may be directly taking the number of text lines as the number threshold, or may be taking the part of the number of text lines as the number threshold, and the like. The part of the text line number as the number threshold may specifically be a ratio stored in advance, and the text line number of the ratio is used as the number threshold, and if the ratio stored in advance is 0.5 and the text line number is 20, the text line number of the ratio, that is, 0.5 × 20 is 10 lines, is used as the number threshold.
Generally, which way is adopted to determine the corresponding number threshold of the current page may be a way according to the update of the display content of the current page, if the way of updating the display content of the current page is screen page turning, the number of text lines may be directly used as the number threshold, and if the way of updating the display content of the current page is screen scrolling, the number of text lines may be used as the number threshold. Of course, the specific manner may not be limited, and the manner may be defined by the user.
If the text line number of the current page is determined according to the total number of characters of the current page and the screen resolution of the electronic device, in the embodiment of the present invention, the acquiring the text line number of the current page includes:
acquiring the screen resolution of the electronic equipment, and determining the number of single-line text characters in the current page;
acquiring the total number of characters in the current page;
and determining the text line number of the current page according to the total number of the characters and the text character number of the single line.
The process of acquiring the screen resolution and the total number of characters of the electronic device by the electronic device belongs to the prior art, and is not described in detail in the embodiment of the invention.
The electronic equipment determines the screen transverse size of the electronic equipment after acquiring the screen resolution of the electronic equipment, and then determines the text line number of the current page according to the screen transverse size and the total number of characters.
According to the embodiment of the invention, the corresponding time threshold of the current page is determined according to the acquired text line number of the current page, so that the display content of the current page is updated.
Example 5:
on the basis of the foregoing embodiments, in an embodiment of the present invention, after determining the number threshold corresponding to the current page according to the text line number, the method further includes:
when the eyeball browses the single-line text in the current page and the browsing direction is changed from a first direction to a second direction, determining the browsing direction of the eyeball as each third target position of the first direction according to each position; determining a third browsing duration of the eyeballs in the first direction according to third acquisition time for acquiring the image of each third target position;
judging whether the third browsing duration reaches the average reading duration of the single-line text stored in advance;
and if not, updating the time threshold.
And updating the corresponding time threshold of the current page by combining the reading behavior data of the user, thereby improving the fault tolerance of the page content updating method.
When a user reads a text, the reading mode comprises an accurate reading mode and an extensive reading mode, when the user reads the text in the accurate reading mode, the user usually cannot read the single line of text again, and the currently determined time threshold value can be kept unchanged, namely, the previously determined time threshold value is used as the time threshold value corresponding to the current page; if the user is reading the text in the reading mode of extensive reading, the user may read the single line of text again, and the threshold of the number of times corresponding to the current page may be updated for the single line of text.
The electronic device may determine whether the user adopts the reading mode of reading accurately or the reading mode of reading extensively, according to the browsing duration of the user when reading a single line of text. Specifically, when the user reads the single line of text and determines that the browsing direction of the eyeballs changes from the first direction to the second direction, each third target position of the eyeballs in the first direction is determined according to each position of the eyeballs, that is, each third target position of the eyeballs moving in the first direction is determined.
The electronic equipment determines a third browsing duration of the eyeball in the first direction according to a third acquisition time for acquiring the image of each third target position, determines that the user adopts a reading mode of accurate reading when the third browsing duration reaches the average reading duration of the single-line text, and determines that the user adopts an extensive reading mode when the third browsing duration does not reach the average reading duration of the single-line text, so as to update the time threshold corresponding to the current page.
When the electronic device updates the time threshold corresponding to the current page, a set numerical value may be added to the single-line text that is extensively read on the basis of the previously determined time threshold, where the set numerical value is an integer, and for example, the set numerical value may be 1.
The average length of reading the single-line text is pre-stored in the electronic device, and the average length of reading the single-line text may be the average length of reading the single-line text when the user uses the electronic device, which is obtained through big data statistical analysis, or the average length of reading the single-line text, which is determined by analyzing the current user reading behavior data of the user.
The following description of the above embodiments with reference to fig. 5 includes the following steps:
s501: and acquiring the facial feature information of the user by using the front-facing video input device.
In the step, the electronic device adopts a front-facing camera device which is a front-facing video input device to adopt a plurality of facial images of the user, and the facial feature information of the user is obtained through the collected facial images.
S502: the position of the human eyes on the face is analyzed and determined.
In the step, the electronic equipment performs coarse positioning on the position of the eyes, determines the horizontal position and the vertical position of the eyeballs, performs fine positioning on the position of the eyes, and determines the positions of the inner corner and the outer corner of the eyes, thereby determining the positions of the eyeballs.
S503: judging whether the moving track of the eyeball reaches a preset trigger condition or not; if yes, go to S504, if no, go to S506.
Determining the times of changing the browsing direction from the first direction to the second direction when the eyeball browses a single line of text according to each determined position of the eyeball in each image, determining whether the change rule of the eyeball reaches a cycle according to the times, if so, determining that the moving track of the eyeball reaches a preset trigger condition, and if not, determining that the moving track of the eyeball does not reach the preset trigger condition.
The electronic device determines whether the change rule of the eyeball reaches the cycle, and may be to determine whether the number of times reaches a threshold of the number of times of the cycle, if so, the cycle is considered to be reached, and if not, the cycle is considered not to be reached.
The cycle threshold is smaller than the corresponding threshold of the current page.
S504: judging whether the track reaches a preset condition or not; if yes, go to S505, and if no, go to S506.
In the step, whether the frequency of the change of the browsing direction of the eyeball from the first direction to the second direction reaches a frequency threshold corresponding to the current page or not is judged, if so, the track is considered to reach a preset condition, and if not, the track is considered to not reach the preset condition.
S505: and executing the scrolling operation of the located page.
And when the scrolling operation of the located page is executed, scrolling and updating the current page display.
S506: and the scrolling operation of the located page is not executed.
In the embodiment of the invention, the threshold value of the corresponding times of the current page is updated by combining the reading behavior data of the user, so that the fault tolerance of the page content updating method is improved.
Example 6:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device 600, as shown in fig. 6, including: a processor 601, a memory 602, and a transceiver 603;
the processor 601 is configured to execute the program in the read memory 602, and perform the following processes:
identifying each position of eyeballs of a user in each image aiming at a plurality of images collected when the user browses a current page;
according to each position, determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page;
judging whether the frequency reaches a frequency threshold corresponding to the current page or not;
and if so, updating the content displayed on the current page.
Based on the same inventive concept, the embodiment of the present invention further provides an electronic device, and because the principle of the electronic device for solving the problem is similar to the page content updating method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
In fig. 6, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 601 and various circuits of memory represented by memory 602 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The transceiver 603 may be a number of elements including a transmitter and a receiver providing a means for communicating with various other apparatus over a transmission medium. The processor 601 is responsible for managing the bus architecture and general processing, and the memory 602 may store data used by the processor 601 in performing operations.
Alternatively, the processor 601 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).
The processor 601 is specifically configured to, when it is determined that the eyeball browses a single line of text in the current page and the browsing direction is changed from a first direction to a second direction, take the first direction and the second direction as a target first direction and a target second direction; determining each first target position of which the browsing direction of the eyeballs is the target first direction according to each position; determining a first browsing duration of the eyeballs in the first direction of the target according to first acquisition time for acquiring the image of each first target position; determining each second target position of which the browsing direction of the eyeball is the target second direction according to each position; determining a second browsing duration of the eyeballs in a second direction of the target according to second acquisition time for acquiring the image of each second target position; judging whether the first browsing duration is greater than a preset first duration threshold or not, and whether the second browsing duration is less than a preset second duration threshold or not; and if yes, updating the number of times that the browsing direction of the eyeballs is changed from the first direction to the second direction.
The processor 601 is specifically configured to determine a total browsing duration of the eyeball according to a first browsing duration of the eyeball in each target first direction and a second browsing duration of the eyeball in each target second direction when the browsing direction of the eyeball changes from the first direction to the second direction; determining the browsing speed of the user when browsing the current page according to the total browsing duration and the times; and according to the browsing speed, performing rolling updating on the content displayed on the current page.
The processor 601 is further configured to obtain a text line number of a current page; and determining a corresponding time threshold of the current page according to the text line number.
The processor 601 is specifically configured to obtain a screen resolution of the electronic device, and determine the number of single-line text characters in the current page; acquiring the total number of characters in the current page; and determining the text line number of the current page according to the total number of the characters and the text character number of the single line.
The processor 601 is further configured to determine, according to each position, each third target position where the browsing direction of the eyeball is in the first direction when it is determined that the eyeball browses the single-line text in the current page and the browsing direction changes from the first direction to the second direction; determining a third browsing duration of the eyeballs in the first direction according to third acquisition time for acquiring the image of each third target position; judging whether the third browsing duration reaches the average reading duration of the single-line text stored in advance; and if not, updating the time threshold.
In the embodiment of the invention, the frequency of changing the browsing direction from the first direction to the second direction is determined according to the regularity of the eyeball browsing direction when the user browses the text content, the frequency is used as the trigger condition of content updating, which is equivalent to representing the eyeball browsing direction of the user by using a digital signal, and the anti-jamming capability of the digital signal is strong, so that the accuracy is higher when the content displayed on the page is updated by using the change of the digital signal as the trigger condition.
Example 8:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device 700, as shown in fig. 7, including: the system comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704;
the memory 703 has stored therein a computer program which, when executed by the processor 701, causes the processor 701 to perform the steps of:
identifying each position of eyeballs of a user in each image aiming at a plurality of images collected when the user browses a current page;
according to each position, determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page;
judging whether the frequency reaches a frequency threshold corresponding to the current page or not;
and if so, updating the content displayed on the current page.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 702 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
In the embodiment of the invention, when the processor executes the program stored in the memory, the frequency of changing the browsing direction from the first direction to the second direction is determined according to the regularity of the eyeball browsing direction when the user browses the text content, and the frequency is used as the trigger condition of content updating, which is equivalent to representing the eyeball browsing direction of the user by using a digital signal, and the anti-interference capability of the digital signal is strong, so that the accuracy is higher when the content displayed on the page is updated by using the change of the digital signal as the trigger condition.
Example 9:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
identifying each position of eyeballs of a user in each image aiming at a plurality of images collected when the user browses a current page;
according to each position, determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page;
judging whether the frequency reaches a frequency threshold corresponding to the current page or not;
and if so, updating the content displayed on the current page.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
The computer readable storage medium provided in the embodiment of the present invention stores a computer program, and when the computer program is executed by a processor, the number of times that the browsing direction changes from the first direction to the second direction is determined according to regularity of the eyeball browsing direction when a user browses text content, and the number of times is used as a trigger condition for updating content, which is equivalent to representing the eyeball browsing direction of the user with a digital signal, and the interference resistance of the digital signal is strong, so that the accuracy when updating content displayed on a page is higher by using the change of the digital signal as the trigger condition.
Fig. 8 is a schematic diagram of a page content updating apparatus 800 according to an embodiment of the present invention, where the apparatus 800 includes:
the identification module 81 is configured to identify each position of an eyeball of a user in each image for a plurality of images collected when the user browses a current page;
a determining module 82, configured to determine, according to each position, the number of times that a browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page;
the judging module 83 is configured to judge whether the number of times reaches a number threshold corresponding to the current page; if yes, triggering an updating module;
and an updating module 84, configured to update the content displayed on the current page.
The determining module 82 is specifically configured to, when it is determined that the eyeball browses a single line of text in the current page and the browsing direction is changed from a first direction to a second direction, take the first direction and the second direction as a target first direction and a target second direction; determining each first target position of which the browsing direction of the eyeballs is the target first direction according to each position; determining a first browsing duration of the eyeballs in the first direction of the target according to first acquisition time for acquiring the image of each first target position; determining each second target position of which the browsing direction of the eyeball is the target second direction according to each position; determining a second browsing duration of the eyeballs in a second direction of the target according to second acquisition time for acquiring the image of each second target position; judging whether the first browsing duration is greater than a preset first duration threshold or not, and whether the second browsing duration is less than a preset second duration threshold or not; and if yes, updating the number of times that the browsing direction of the eyeballs is changed from the first direction to the second direction.
The determining module 82 is specifically configured to determine the total browsing duration of the eyeball according to a first browsing duration of the eyeball in each target first direction and a second browsing duration of the eyeball in each target second direction when the browsing direction of the eyeball changes from the first direction to the second direction; determining the browsing speed of the user when browsing the current page according to the total browsing duration and the times; and according to the browsing speed, performing rolling updating on the content displayed on the current page.
The device further comprises:
a threshold determining module 85, configured to obtain a text line number of a current page; and determining a corresponding time threshold of the current page according to the text line number.
The threshold determining module 85 is specifically configured to obtain a screen resolution of the electronic device, and determine the number of single-line text characters in the current page; acquiring the total number of characters in the current page; and determining the text line number of the current page according to the total number of the characters and the text character number of the single line.
The threshold determining module is further configured to determine, according to the number of text lines, after determining a number threshold corresponding to the current page, when it is determined that the eyeball browses a single-line text in the current page and a browsing direction changes from a first direction to a second direction, determine, according to each position, each third target position where the browsing direction of the eyeball is in the first direction; determining a third browsing duration of the eyeballs in the first direction according to third acquisition time for acquiring the image of each third target position; judging whether the third browsing duration reaches the average reading duration of the single-line text stored in advance; and if not, updating the time threshold.
According to the method and the device, the frequency of changing the browsing direction from the first direction to the second direction is determined according to the regularity of the eyeball browsing direction when the user browses the text content, the frequency is used as the trigger condition of content updating, which is equivalent to representing the eyeball browsing direction of the user by using a digital signal, and the anti-jamming capability of the digital signal is strong, so that the accuracy is higher when the content displayed on the page is updated by using the change of the digital signal as the trigger condition.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A page content updating method is applied to electronic equipment and comprises the following steps:
identifying each position of eyeballs of a user in each image aiming at a plurality of images collected when the user browses a current page;
according to each position, determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses a single line of text in the current page;
judging whether the frequency reaches a frequency threshold corresponding to the current page or not;
if so, updating the content displayed on the current page;
the determining, according to each position, the number of times that the browsing direction is changed from the first direction to the second direction when the eyeball browses the single-line text in the current page includes:
when the eyeball browses the single-line text in the current page and the browsing direction is changed from a first direction to a second direction, taking the first direction and the second direction as a target first direction and a target second direction;
determining each first target position of which the browsing direction of the eyeballs is the target first direction according to each position; determining a first browsing duration of the eyeballs in the first direction of the target according to first acquisition time for acquiring the image of each first target position; determining each second target position of which the browsing direction of the eyeball is the target second direction according to each position; determining a second browsing duration of the eyeballs in a second direction of the target according to second acquisition time for acquiring the image of each second target position;
judging whether the first browsing duration is greater than a preset first duration threshold or not, and whether the second browsing duration is less than a preset second duration threshold or not;
and if yes, updating the number of times that the browsing direction of the eyeballs is changed from the first direction to the second direction.
2. The method of claim 1, wherein if the updating of the content displayed on the current page is by screen scrolling, the updating of the content displayed on the current page comprises:
determining the total browsing time length of the eyeballs according to the first browsing time length of the eyeballs in each target first direction and the second browsing time length of the eyeballs in each target second direction when the browsing direction of the eyeballs is changed from the first direction to the second direction;
determining the browsing speed of the user when browsing the current page according to the total browsing duration and the times;
and according to the browsing speed, performing rolling updating on the content displayed on the current page.
3. The method of claim 1, wherein determining the threshold number of times that the current page corresponds to comprises:
acquiring the number of text lines of the current page; and determining a corresponding time threshold of the current page according to the text line number.
4. The method of claim 3, wherein said obtaining a number of text lines for a current page comprises:
acquiring the screen resolution of the electronic equipment, and determining the number of single-line text characters in the current page;
acquiring the total number of characters in the current page;
and determining the text line number of the current page according to the total number of the characters and the text character number of the single line.
5. The method of claim 3, wherein after determining the threshold number of times corresponding to the current page according to the number of text lines, the method further comprises:
when the eyeball browses the single-line text in the current page and the browsing direction is changed from a first direction to a second direction, determining the browsing direction of the eyeball as each third target position of the first direction according to each position; determining a third browsing duration of the eyeballs in the first direction according to third acquisition time for acquiring the image of each third target position;
judging whether the third browsing duration reaches the average reading duration of the single-line text stored in advance;
and if not, updating the time threshold.
6. A page content updating device is applied to electronic equipment and comprises:
the identification module is used for identifying each position of eyeballs of the user in each image aiming at a plurality of images collected when the user browses the current page;
the determining module is used for determining the times that the browsing direction is changed from a first direction to a second direction when the eyeball browses the single-line text in the current page according to each position;
the judging module is used for judging whether the times reach a time threshold corresponding to the current page or not; if yes, triggering an updating module;
the updating module is used for updating the content displayed by the current page;
the determining module is specifically configured to, when it is determined that the eyeball browses a single line of text in the current page and the browsing direction is changed from a first direction to a second direction, take the first direction and the second direction as a target first direction and a target second direction; determining each first target position of which the browsing direction of the eyeballs is the target first direction according to each position; determining a first browsing duration of the eyeballs in the first direction of the target according to first acquisition time for acquiring the image of each first target position; determining each second target position of which the browsing direction of the eyeball is the target second direction according to each position; determining a second browsing duration of the eyeballs in a second direction of the target according to second acquisition time for acquiring the image of each second target position; judging whether the first browsing duration is greater than a preset first duration threshold or not, and whether the second browsing duration is less than a preset second duration threshold or not; and if yes, updating the number of times that the browsing direction of the eyeballs is changed from the first direction to the second direction.
7. The apparatus according to claim 6, wherein the determining module is specifically configured to determine the total browsing duration of the eyeball according to a first browsing duration of the eyeball in each target first direction and a second browsing duration of the eyeball in each target second direction each time the browsing direction of the eyeball changes from the first direction to the second direction; determining the browsing speed of the user when browsing the current page according to the total browsing duration and the times; and according to the browsing speed, performing rolling updating on the content displayed on the current page.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the threshold value determining module is used for acquiring the text line number of the current page; and determining a corresponding time threshold of the current page according to the text line number.
9. The apparatus of claim 8, wherein the threshold determination module is specifically configured to obtain a screen resolution of the electronic device, and determine a number of single-line text characters in the current page; acquiring the total number of characters in the current page; and determining the text line number of the current page according to the total number of the characters and the text character number of the single line.
10. The apparatus according to claim 8, wherein the threshold determining module is further configured to determine, after determining the number threshold corresponding to the current page according to the number of lines of the text, when it is determined that the eyeball browses a single line of text in the current page and the browsing direction changes from a first direction to a second direction, determine, according to each position, the browsing direction of the eyeball as each third target position in the first direction; determining a third browsing duration of the eyeballs in the first direction according to third acquisition time for acquiring the image of each third target position; judging whether the third browsing duration reaches the average reading duration of the single-line text stored in advance; and if not, updating the time threshold.
11. An electronic device comprising a memory and a processor;
the processor is used for reading the program in the memory and executing the steps of the method of any one of claims 1-5.
12. A computer-readable storage medium, storing a computer program executable by an electronic device, the program, when executed on the electronic device, causing the electronic device to perform the steps of the method of any one of claims 1 to 5.
CN201810436696.0A 2018-05-09 2018-05-09 Page content updating method and device, electronic equipment and storage medium Active CN110489689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810436696.0A CN110489689B (en) 2018-05-09 2018-05-09 Page content updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810436696.0A CN110489689B (en) 2018-05-09 2018-05-09 Page content updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110489689A CN110489689A (en) 2019-11-22
CN110489689B true CN110489689B (en) 2022-04-29

Family

ID=68543665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810436696.0A Active CN110489689B (en) 2018-05-09 2018-05-09 Page content updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110489689B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1705454A (en) * 2002-10-15 2005-12-07 沃尔沃技术公司 Method and arrangement for interpreting a subjects head and eye activity
CN102087582A (en) * 2011-01-27 2011-06-08 广东威创视讯科技股份有限公司 Automatic scrolling method and device
CN103257712A (en) * 2013-05-30 2013-08-21 苏州福丰科技有限公司 Reading marking terminal based on facial recognition
CN103699210A (en) * 2012-09-27 2014-04-02 北京三星通信技术研究有限公司 Mobile terminal and control method thereof
CN105005607A (en) * 2015-07-06 2015-10-28 无锡天脉聚源传媒科技有限公司 Page information loading method and page information loading device
CN106354380A (en) * 2015-07-17 2017-01-25 阿里巴巴集团控股有限公司 Reading prompting method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9575561B2 (en) * 2010-12-23 2017-02-21 Intel Corporation Method, apparatus and system for interacting with content on web browsers
US20150278234A1 (en) * 2014-03-31 2015-10-01 Microsoft Corporation Inline web previews with dynamic aspect ratios

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1705454A (en) * 2002-10-15 2005-12-07 沃尔沃技术公司 Method and arrangement for interpreting a subjects head and eye activity
CN102087582A (en) * 2011-01-27 2011-06-08 广东威创视讯科技股份有限公司 Automatic scrolling method and device
CN103699210A (en) * 2012-09-27 2014-04-02 北京三星通信技术研究有限公司 Mobile terminal and control method thereof
CN103257712A (en) * 2013-05-30 2013-08-21 苏州福丰科技有限公司 Reading marking terminal based on facial recognition
CN105005607A (en) * 2015-07-06 2015-10-28 无锡天脉聚源传媒科技有限公司 Page information loading method and page information loading device
CN106354380A (en) * 2015-07-17 2017-01-25 阿里巴巴集团控股有限公司 Reading prompting method and device

Also Published As

Publication number Publication date
CN110489689A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
US20170192500A1 (en) Method and electronic device for controlling terminal according to eye action
CN109189682A (en) A kind of script method for recording and device
CN103488337B (en) A kind of method of adjusting sensitivity of touch screen in pad pasting situation
CN112506413B (en) Touch point prediction method and device, terminal equipment and computer readable storage medium
CN108737739B (en) Preview picture acquisition method, preview picture acquisition device and electronic equipment
CN109118447B (en) Picture processing method, picture processing device and terminal equipment
JP2015503152A (en) Measuring the rendering time of a web page
WO2019085598A1 (en) Method and apparatus for calculating above-the-fold rendering duration of page, and electronic device
CN105556539A (en) Detection devices and methods for detecting regions of interest
CN111447239B (en) Video stream playing control method, device and storage medium
CN113128368B (en) Method, device and system for detecting character interaction relationship
CN112232194A (en) Single-target human body key point detection method, system, equipment and medium
CN112364799A (en) Gesture recognition method and device
CN110245607B (en) Eyeball tracking method and related product
CN111752451A (en) Information display method and device and electronic equipment
CN108153454B (en) Multi-touch switching method and device, storage medium and terminal equipment
CN115661917A (en) Gesture recognition method and related product
CN106484614A (en) A kind of method of verification picture processing effect, device and mobile terminal
CN115830002A (en) Infrared image quality evaluation method and device
US20160085408A1 (en) Information processing method and electronic device thereof
CN111597009B (en) Application program display method and device and terminal equipment
CN107729144B (en) Application control method and device, storage medium and electronic equipment
CN111813321A (en) Gesture control method and related device
CN111814840A (en) Method, system, equipment and medium for evaluating quality of face image
CN110489689B (en) Page content updating method and device, electronic equipment 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
GR01 Patent grant
GR01 Patent grant