CN111045574A - Page turning method based on gravity sensing, computing equipment and computer storage medium - Google Patents

Page turning method based on gravity sensing, computing equipment and computer storage medium Download PDF

Info

Publication number
CN111045574A
CN111045574A CN201911251999.6A CN201911251999A CN111045574A CN 111045574 A CN111045574 A CN 111045574A CN 201911251999 A CN201911251999 A CN 201911251999A CN 111045574 A CN111045574 A CN 111045574A
Authority
CN
China
Prior art keywords
page turning
rotation angle
preset value
value
gravity sensing
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.)
Granted
Application number
CN201911251999.6A
Other languages
Chinese (zh)
Other versions
CN111045574B (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.)
Shenzhen Zhangyue Animation Technology Co ltd
Original Assignee
Ireader 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 Ireader Technology Co Ltd filed Critical Ireader Technology Co Ltd
Priority to CN201911251999.6A priority Critical patent/CN111045574B/en
Publication of CN111045574A publication Critical patent/CN111045574A/en
Application granted granted Critical
Publication of CN111045574B publication Critical patent/CN111045574B/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/0483Interaction with page-structured environments, e.g. book metaphor
    • 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
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

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 turning method based on gravity sensing, computing equipment and a computer storage medium. Wherein, the method comprises the following steps: collecting gravity sensing parameters of terminal equipment; judging whether a page turning condition is met or not according to the gravity sensing parameters; and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation. Based on the scheme provided by the invention, the user can realize the page turning of the electronic book by rotating the terminal equipment, the page turning of the electronic book can be realized without the left and right sliding or up and down sliding of the user on the screen of the terminal equipment, and the page turning of the electronic book can be realized without the user controlling other function keys of the terminal equipment, so that the fingers of the user are liberated, the page turning of the electronic book can be realized by one hand, and convenience is provided for the user to read the electronic book.

Description

Page turning method based on gravity sensing, computing equipment and computer storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a page turning method based on gravity sensing, computing equipment and a computer storage medium.
Background
An electronic book refers to a publication that digitizes information contents such as characters, pictures, sounds, and images. With the continuous development and popularization of terminal devices such as mobile phones, electronic books are increasingly popular among people due to the characteristics of energy conservation, environmental protection, large capacity, long service life, convenience in use and the like.
At present, the page turning of the electronic book is mainly realized by sliding the fingers of a user left and right or up and down on the screen of the terminal equipment, or the user controls function keys such as a volume key and the like, the two control modes both need the fingers of the user to carry out corresponding operations, the operation is complex, and in some scenes where the page turning is not controlled by two hands or the screen of the terminal equipment is too large and is not controlled by one hand, the situation that the page turning is difficult occurs.
Disclosure of Invention
In view of the above, the present invention has been made to provide a gravity sensing based page turning method, a computing device and a computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a gravity sensing-based page turning method, including:
collecting gravity sensing parameters of terminal equipment;
judging whether a page turning condition is met or not according to the gravity sensing parameters;
and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
According to another aspect of the present invention, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
collecting gravity sensing parameters of terminal equipment;
judging whether a page turning condition is met or not according to the gravity sensing parameters;
and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
collecting gravity sensing parameters of terminal equipment;
judging whether a page turning condition is met or not according to the gravity sensing parameters;
and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
According to the scheme provided by the invention, the gravity sensing parameters of the terminal equipment are collected; judging whether a page turning condition is met or not according to the gravity sensing parameters; and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation. Based on the scheme provided by the invention, the user can realize the page turning of the electronic book by rotating the terminal equipment, the page turning of the electronic book can be realized without the left and right sliding or up and down sliding of the user on the screen of the terminal equipment, and the page turning of the electronic book can be realized without the user controlling other function keys of the terminal equipment, so that the fingers of the user are liberated, the page turning of the electronic book can be realized by one hand, and convenience is provided for the user to read the electronic book.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a method for turning pages based on gravity sensing according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for turning pages based on gravity sensing according to another embodiment of the present invention;
FIG. 3 is a flow chart illustrating a method for turning pages based on gravity sensing according to another embodiment of the present invention;
FIG. 4 shows a schematic structural diagram of a computing device according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating a method for turning pages based on gravity sensing according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
and S101, collecting gravity sensing parameters of the terminal equipment.
The execution subject of the page turning method based on gravity sensing provided by the embodiment is an application client, for example, the execution subject may be an APP providing an electronic book reading function.
The existing terminal equipment is provided with the gravity acceleration sensor, so that the gravity sensor in the terminal equipment can be used for collecting the gravity sensing parameters, and the application client can collect the gravity sensing parameters of the terminal equipment by calling the corresponding interface.
Step S102, judging whether page turning conditions are met or not according to the gravity sensing parameters, if so, executing step S103; if not, the step S101 is skipped to execute.
After the gravity sensing parameters of the terminal equipment are collected, whether page turning conditions are met can be judged according to the gravity sensing parameters, and when the page turning conditions specify that the gravity sensing parameters of the terminal equipment are, page turning can be executed.
And S103, determining a corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
Determining a corresponding page turning operation according to the gravity sensing parameter and executing the page turning operation under the condition that the page turning condition is met, for example, determining the page turning operation as a forward page turning operation according to the gravity sensing parameter and executing the forward page turning operation on the electronic book; and determining the electronic book to be a backward page turning operation according to the gravity sensing parameter, and performing the backward page turning operation on the electronic book.
According to the method provided by the embodiment of the invention, the gravity sensing parameters of the terminal equipment are collected; judging whether a page turning condition is met or not according to the gravity sensing parameters; and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation. Based on the scheme provided by the invention, the user can realize the page turning of the electronic book by rotating the terminal equipment, the page turning of the electronic book can be realized without the left and right sliding or up and down sliding of the user on the screen of the terminal equipment, and the page turning of the electronic book can be realized without the user controlling other function keys of the terminal equipment, so that the fingers of the user are liberated, the page turning of the electronic book can be realized by one hand, and convenience is provided for the user to read the electronic book.
Fig. 2 is a flowchart illustrating a gravity sensing-based page turning method according to another embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S201, collecting the gravity sensing parameters of the terminal device according to a preset frequency, wherein the gravity sensing parameters comprise: the rotation direction and the rotation angle value.
The execution subject of the page turning method based on gravity sensing provided by the embodiment is an application client, for example, the execution subject may be an APP providing an electronic book reading function.
All can be provided with gravity acceleration sensor among the current terminal equipment, consequently, can utilize the gravity sensor in the terminal equipment to gather the gravity-feed tank and respond to the parameter, wherein, the gravity-feed tank responds to the parameter and includes: the rotation direction and the rotation angle value are defined as follows, the rotation direction is defined by taking the long edge of the terminal device as an axis, and is specifically divided into a left rotation (counterclockwise) direction and a right rotation (clockwise) direction, for example, the left rotation (counterclockwise) direction is defined to correspond to the backward page turning function, and the right rotation (clockwise) direction is defined to correspond to the forward page turning function, and of course, the reverse direction may also be defined, that is, the left rotation (counterclockwise) direction is defined to correspond to the forward page turning function, and the right rotation (clockwise) direction is defined to correspond to the backward page turning function.
The rotation angle value reflects the rotation angle of the terminal device, the rotation angle value ranges from 0 to 1, the horizontal direction is defined as 0 (corresponding to the rotation angle of 0 degrees), the vertical direction is defined as 1 (corresponding to the rotation angle of 90 degrees), and the gravity acceleration sensor converts the collected angle value into a rotation angle value, for example, the rotation angle value corresponding to 18 degrees is 18 °/90 ° -0.2.
The application client may collect the gravity sensing parameters of the terminal device by calling a corresponding interface, specifically, collect according to a preset frequency, for example, set the collection frequency to be 20 to 100 times per second, and in general, the higher the collection frequency is, the more the user behavior can be responded to in time, but the resource overhead is also increased.
Step S202, judging whether the rotation angle value is greater than or equal to a first rotation angle threshold value, and judging whether a preset page turning identification bit is a first preset value, if the rotation angle value is greater than or equal to the first rotation angle threshold value and the page turning identification bit is the first preset value, executing step S203; if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is the second preset value, executing step S205; if the rotation angle value is greater than or equal to the first rotation angle threshold and the page turning identification bit is the second preset value, or if the rotation angle value is less than the first rotation angle threshold and the page turning identification bit is the first preset value, skipping to execute step S201.
In the reading process of a user, the situation that the terminal device rotates from the original position due to slight hand shake of the user and the user does not want to turn pages actually may occur, in order to avoid the situation, a first rotation angle threshold needs to be preset, the acquired rotation angle value is compared with the first rotation angle threshold, whether the page turning operation is allowed to be executed or not is determined by judging whether the rotation angle value is greater than or equal to the first rotation angle threshold, and if the rotation angle value is greater than or equal to the first rotation angle threshold, one of the conditions for executing the page turning operation can be considered to be satisfied; and if the rotation angle value is smaller than the first rotation angle threshold value, the condition for executing page turning operation is not met. The skilled person can flexibly set the first rotation angle threshold value according to practical experience, for example, the rotation angle value 0.2 corresponding to 18 degrees is set, which is only an example and has no limiting effect.
In general, a user only wants to perform a page turning operation once when rotating a terminal device, and after the page turning is completed, the user can restore the terminal device to an initial position before the terminal device is not rotated, or keep the terminal device at a rotated rotation angle value, and since the application client collects the gravity sensing parameter of the terminal device according to a preset frequency, the collected rotation angle value is greater than or equal to a first rotation angle threshold value when the terminal device is rotated to the initial position or the terminal device keeps the rotated rotation angle value, if the action is not limited, the electronic book returns to a page before the page turning after the page turning occurs, or performs the page turning all the time, so a page turning flag is defined herein, which is defined to ensure that the operation of the terminal device is rotated once only to trigger the execution of the page turning operation once, the page turning flag is used to indicate whether to allow performing page turning, for example, a first preset value is set to indicate that performing page turning is allowed, and a second preset value is set to indicate that performing page turning is prohibited, for example, the first preset value is 1, and the second preset value is 0. Wherein, when the page turning identification bit is a second preset value, the page turning operation is not executed even if the rotation angle value is greater than or equal to the first rotation angle threshold value,
specifically, whether the page turning identification bit is a first preset value or not is judged, if the page turning identification bit is the first preset value, the condition that the page turning operation is executed is indicated to be met, and if the page turning identification bit is a second preset value, the condition that the page turning operation is executed is not met.
This embodiment makes the following judgments: judging whether the rotation angle value is greater than or equal to a first rotation angle threshold value and judging whether the page turning identification bit is a first preset value, wherein the following judgment results may occur:
(1) the rotation angle value is greater than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value, in this case, it can be determined that two conditions for performing the page turning operation are satisfied, the page turning operation can be performed, and specifically, step S203 is performed;
(2) the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, in this case, the page turning identification bit is currently the second preset value, which indicates that the page turning operation is not allowed to be executed, the rotation angle value is smaller than the first rotation angle threshold value, which indicates that the terminal device gradually circles to the initial position, and the user is likely to rotate the terminal device again at any time, in order to facilitate the execution of the next page turning operation, the page turning identification bit needs to be modified, and specifically, step S205 is executed;
(3) in this case, although the rotation angle value is greater than or equal to the first rotation angle threshold, the page turning flag is currently the second preset value, which indicates that the page turning operation is not allowed to be executed, and thus, no processing is performed, but the step S201 is skipped to execute;
(4) in this case, although the page turning flag is currently the first preset value, which indicates that the page turning operation is allowed to be performed, the page turning condition is not satisfied because the rotation angle value is smaller than the first rotation angle threshold, and therefore, no processing is performed, but the step S201 is executed by skipping.
And step S203, determining a corresponding page turning operation according to the rotation direction, and executing the page turning operation.
If the rotation angle value is greater than or equal to the first rotation angle threshold value and the page turning identification bit is the first preset value, it indicates that the page turning operation is allowed to be executed, here, the corresponding page turning operation may be determined according to the rotation direction, for example, if the rotation direction is determined to be the left rotation direction, the corresponding page turning operation may be determined as the backward page turning operation, and the backward page turning operation is executed on the electronic book; if the rotation direction is determined to be the right rotation direction, the corresponding page turning operation can be determined to be a forward page turning operation, and the forward page turning operation is executed on the electronic book.
Here, the page turning operation performed here is a single page turning, that is, the electronic book turns forward or backward one page every time the page turning operation is performed.
And S204, changing the page turning identification bit from a first preset value to a second preset value, and skipping to execute the step S201.
If the rotation angle value is greater than or equal to the first rotation angle threshold and the page turning flag is the first preset value, it indicates that the page turning operation is allowed to be executed, and in order to avoid that the acquired rotation angle value is greater than or equal to the first rotation angle threshold, the page turning operation is executed again, here, the page turning flag is modified from the first preset value to the second preset value, for example, the page turning flag is modified from 1 to 0, and step S201 is executed. The page turning identification position is modified into the second preset value, so that only one page turning operation is triggered by one rotation operation.
It should be noted that the present embodiment does not limit the execution sequence of step S203 and step S204, for example, step S203 and step S204 may be executed simultaneously, step S204 may be executed first and then step S203 is executed, and step S203 may be executed first and then step S204 is executed.
Step S205, the page turning identification bit is changed from the second preset value to the first preset value, and the step S201 is executed.
If the rotation angle value is smaller than the first rotation angle threshold and the page turning flag is the second preset value, it indicates that the terminal device has gradually rotated to the initial position, and in order to facilitate the next page turning operation, the page turning flag needs to be modified, specifically, the page turning flag is modified from the second preset value to the first preset value, for example, the page turning flag is modified from 0 to 1, and step S201 is skipped to and executed.
The following is illustrated with reference to examples:
when a user reads an electronic book by using a terminal device, the initial position is that the terminal device keeps a horizontal posture, the page turning identification position at the moment is 1, the first rotation angle threshold value is set to be 0.2, the application client acquires the gravity sensing parameters of the terminal device according to the preset frequency, when the user rotates left for 12 degrees, the corresponding rotation angle value is 0.13 and is smaller than the first rotation angle threshold value 0.2, although the page turning identification position is 1, the page turning operation is not executed, the page turning identification position is not modified, and the gravity sensing parameters of the terminal device are acquired according to the preset frequency; the user further rotates the terminal device to 20 degrees on the basis of 12 degrees of rotation, or rotates the terminal device to 20 degrees after recovering the horizontal posture from 12 degrees, the corresponding rotation angle value is 0.22 at the moment and is greater than the first rotation angle threshold value 0.2, the page turning identification bit at the moment is 1, and therefore the user determines that the page is turned backwards according to the rotation direction, executes the page turning backwards operation, and changes the page turning identification bit from 1 to 0. After that, even if the terminal device still keeps 20 degrees, the page turning flag is modified to be 0, so that the next page turning operation is not executed, and the gravity sensing parameters of the terminal device are acquired according to the preset frequency. And then the user rotates the terminal equipment from 20 degrees to a horizontal posture, the corresponding rotation angle value is 0 and is smaller than the first rotation angle threshold value 0.2, the page turning identification bit is 0 at the moment, the modification of the page turning identification bit can be executed, and the page turning identification bit is modified from 0 to 1 so as to execute the next page turning operation.
In an optional embodiment of the present invention, it is assumed that, when a user reads an electronic book, a gesture of a terminal device is a horizontal gesture, so as to facilitate a next page turning operation and to facilitate better distinguishing between the gesture and the horizontal gesture corresponding to the terminal device when the page turning operation is performed, so that the user can clearly recognize the page turning operation, in the optional embodiment, a second rotation angle threshold is set, and the second rotation angle threshold is used to identify when a page turning flag is modified when the page turning flag is a second preset value, where the second rotation angle threshold is referred to as a page turning flag reset threshold, and the modification of the page turning flag from the second preset value to the first preset value may be specifically implemented by: judging whether the rotation angle value is less than or equal to a second rotation angle threshold value or not; wherein the second rotation angle threshold is less than the first rotation angle threshold; if so, the page turning identification bit is modified from the second preset value to the first preset value, for example, the first rotation angle threshold is 0.2, and the second rotation angle threshold is 0.1.
For example, when the rotation angle of the terminal device is greater than or equal to 18 degrees, that is, the rotation angle value is greater than or equal to the first rotation angle threshold value 0.2, and the page turning flag is 1, the page turning operation is executed, and in addition, the page turning flag is modified from 1 to 0; when the terminal device rotates back, since the flag bit reset threshold is no longer 0.2 but 0.1, the page-turning flag is not modified to 1 before the rotation angle returns to 9 degrees (corresponding to 0.1), in this case, when the terminal device performs the page-turning rotation again from the current posture (for example, 12 degrees), since the page-turning flag is currently 0, the page turning is prohibited, even if the rotation exceeds 18 degrees, the page turning cannot be performed, which requires that the user needs to return the terminal device to a horizontal posture (at least the rotation angle value is less than 0.1) as much as possible after performing the page-turning operation for the next page-turning operation.
In an optional embodiment of the present invention, to avoid false triggering of a page turning operation, a user may flexibly select a page turning mode or a page turning prohibition mode, in this optional embodiment, the user does not need to perform corresponding setting on a setting interface, but determines a mode selected by the user through a user touch event on a terminal device screen, specifically, when the user presses the terminal device screen with a finger for a long time, for example, when the user presses any position in a reading page interface with a thumb for a long time while holding the terminal device, the application client may monitor the user touch event transmitted by the terminal device screen, and at this time, it may be determined that the user touch event is a long press touch event, and at this time, the page turning operation is prohibited to be performed, specifically, the page turning prohibition operation may be implemented in the following manner: setting a preset page turning identification bit as a second preset value, and setting the attribute of the page turning identification bit as an attribute which cannot be modified, wherein the first preset value is used for indicating that the page turning operation is allowed to be executed, the second preset value is used for indicating that the page turning operation is forbidden to be executed, the page turning identification bit is set as the second preset value at the moment, the page turning operation cannot be executed, and the attribute of the page turning identification bit is set as the attribute which cannot be modified, so that the page turning identification bit cannot be modified no matter how the rotation angle value of subsequent terminal equipment changes; when a user lifts a finger pressing a screen of a terminal device, an application client can monitor a user touch event transmitted by the screen of the terminal device, and at the moment, the user touch event can be determined to be the lifting touch event, the attribute of the page turning identification bit is set to be a modifiable attribute, and the attribute of the page turning identification bit is set to be the modifiable attribute, so that the page turning identification bit can be correspondingly modified according to the modification rule described in the above step, whether page turning is carried out or not can be flexibly controlled by the user, the setting operation of the user is omitted, the user can experience the feeling of pressing the paper of a book when the user reads the paper book, and the user experience is improved.
In an alternative embodiment of the present invention, there may also be a need for a user to page in batches, in which alternative embodiment the batch of pages may be controlled by: if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment; and executing batch page turning operation according to the page turning number.
Specifically, when the user presses the screen of the terminal device with a finger for a long time, for example, when the user presses any position in the page-reading interface with a finger for a long time while holding the terminal device, the application client may monitor a user touch event transmitted by the screen of the terminal device, and for the event that the user presses the screen of the terminal device with a finger for a long time, it may be determined that the user touch event is a long-press touch event, and at this time, the page-turning number may be determined according to the pressing force parameter. The force of pressing the screen of the terminal equipment by the fingers of the user is in positive correlation with the page turning number, namely, the greater the force of pressing the screen of the terminal equipment by the fingers of the user is, the higher the page turning number is; the smaller the force of pressing the screen of the terminal device by the finger of the user is, the lower the page turning number is, for example, the page turning number may be determined according to the pressing force parameter corresponding to the long-press TOUCH event based on the 3D TOUCH technology. Or, the pressing position of the finger of the user and the corresponding pressing position parameter can be determined, the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment is calculated according to the pressing position parameter, the corresponding relation between the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment and the page turning number is preset, the smaller the distance is, the smaller the page turning number is, the larger the distance is, the larger the page turning number is, after the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment is determined, the page turning number is determined according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment, and after the page turning number is determined, batch page turning operation is.
In an optional embodiment of the present invention, for a user, there may be a requirement for batch page turning, in the optional embodiment, the batch page turning is triggered by a larger-amplitude rotating terminal device, specifically, after determining that a rotation angle value is greater than or equal to a first rotation angle threshold and a page turning flag is a first preset value, the method further includes: judging whether the rotation angle value is greater than or equal to a third rotation angle threshold value; wherein the third rotation angle threshold is greater than the first rotation angle threshold; if the rotation angle value is larger than or equal to the third rotation angle threshold value, determining a corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation, for example, determining and executing page turning of a reading page to a previous chapter header page or a next chapter header page or a previous latest comment page or a next latest comment page according to the rotation direction, so that a user can turn multiple pages by rotating the terminal device once without rotating the terminal device for multiple times, and the number of times of the user rotation operation is simplified.
According to the method provided by the above embodiment of the present invention, the gravity sensing parameters of the terminal device are collected according to a preset frequency, wherein the gravity sensing parameters include: the rotation direction and the rotation angle value; judging whether the rotation angle value is greater than or equal to a first rotation angle threshold value or not, and judging whether the page turning identification bit is a first preset value or not; and if the rotation angle value is larger than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value, determining the corresponding page turning operation according to the rotation direction and executing the page turning operation. According to the scheme provided by the invention, the user can realize the page turning of the electronic book by rotating the terminal equipment, the page turning of the electronic book can be realized without the left and right sliding or up and down sliding of the user on the screen of the terminal equipment, the page turning of the electronic book can be realized without controlling other function keys of the terminal equipment, the fingers of the user are liberated, the page turning by one hand is realized, and convenience is provided for the user to read the electronic book; by setting the page turning identification position, the user can only turn the page of the electronic book once through one-time rotation operation, and inconvenience brought to the user due to frequent page turning is avoided.
Fig. 3 is a flowchart illustrating a gravity sensing-based page turning method according to another embodiment of the present invention. As shown in fig. 3, the method comprises the steps of:
step S301, collecting the gravity sensing parameters of the terminal device according to a preset frequency, wherein the gravity sensing parameters comprise: the rotation direction and the rotation angle value.
Step S302, judging whether the rotation angle value is larger than or equal to a first rotation angle threshold value, and judging whether a preset page turning identification bit is a first preset value; if the rotation angle value is greater than or equal to the first rotation angle threshold value and the page turning identification bit is the first preset value, executing the step S303; if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, executing step S309; and if the rotation angle value is greater than or equal to the first rotation angle threshold value and the page turning identification bit is a second preset value, or if the rotation angle value is less than the first rotation angle threshold value and the page turning identification bit is a first preset value, skipping to execute the step S301.
Steps S301 to S302 in the embodiment shown in fig. 3 are similar to steps S201 to S202 in the embodiment shown in fig. 2, and are not described again here.
Step S303, monitoring a user touch event transmitted by the screen of the terminal equipment.
Step S304, if the user touch event is a long-press touch event, determining the page turning number according to the pressing force parameter, presenting a page turning window in the display interface, and displaying the page turning number in the page turning window.
For a user, there may be a requirement for batch page turning, and the present embodiment may control the number of batch page turning through the force of the user pressing the screen of the terminal device.
Specifically, when the user presses the screen of the terminal device with a finger for a long time, for example, when the user presses any position in the page-reading interface with a finger for a long time while holding the terminal device, the application client may monitor a user touch event transmitted by the screen of the terminal device, and for the event that the user presses the screen of the terminal device with a finger for a long time, it may be determined that the user touch event is a long-press touch event, and at this time, the page-turning number may be determined according to the pressing force parameter. The force of pressing the screen of the terminal equipment by the fingers of the user is in positive correlation with the page turning number, namely, the greater the force of pressing the screen of the terminal equipment by the fingers of the user is, the higher the page turning number is; the smaller the force of pressing the screen of the terminal device by the finger of the user is, the lower the page turning number is, for example, the page turning number may be determined according to the pressing force parameter corresponding to the long-press TOUCH event based on the 3D TOUCH technology.
In this embodiment, in order to facilitate intuitively understanding and controlling the page turning number, when a user presses the screen of the terminal device with a long finger, a page turning window may be presented in the display interface, and the page turning number may be displayed in the page turning window, where the displayed page turning number dynamically changes along with a change in the pressing force.
Step S305, determining whether the rotation angle value is greater than or equal to a third rotation angle threshold, and if the rotation angle value is greater than or equal to the third rotation angle threshold, executing step S306; if the rotation angle value is smaller than the third rotation angle threshold, step S307 is executed.
The number of page turning is determined according to the pressing strength parameter, but whether batch page turning is executed is determined by the rotation angle value, in this embodiment, batch page turning is triggered by rotating the terminal device by a larger amplitude, specifically, a third rotation angle threshold value greater than the first rotation angle threshold value is set, whether a batch page turning condition is met is determined by judging whether the rotation angle value is greater than or equal to the third rotation angle threshold value, if the rotation angle value is greater than or equal to the third rotation angle threshold value, it is determined that the batch page turning condition is met, and step S306 is specifically executed; if the rotation angle value is smaller than the third rotation angle threshold, it is determined that the batch page turning condition is not satisfied, and step S307 is specifically executed.
And S306, determining the corresponding batch page turning operation according to the rotating direction, and executing the batch page turning operation according to the page turning number.
If the rotation angle value is greater than or equal to the third rotation angle threshold value, it may be determined that a batch page turning condition is satisfied, a corresponding batch page turning operation may be determined according to the rotation direction, and the batch page turning operation may be performed according to the page turning number, and the rotation direction of the terminal device determines the page turning direction, for example, if the rotation direction is determined to be the left rotation direction, the corresponding page turning direction may be determined to be the backward page turning, and if the rotation direction is determined to be the right rotation direction, the corresponding page turning direction may be determined to be the forward page turning, for example, the rotation direction is the left rotation, and the page turning number is 5, an operation of turning 5 pages backward is performed.
In an optional embodiment of the present invention, the batch page turning operation may be further performed by: and if the long press touch event is monitored, determining the page turning number according to the distance between the press position and the left and right edge positions of the screen of the terminal equipment, and executing batch page turning operation according to the page turning number.
Specifically, after a finger of a user presses down on a screen of a terminal device, a pressing position of the finger of the user and a corresponding pressing position parameter can be determined, according to the pressing position parameter, a distance between the pressing position and left and right edge positions of the screen of the terminal device is calculated, a corresponding relation between the distance between the pressing position and the left and right edge positions of the screen of the terminal device and a page turning number is preset, the distance is smaller, the page turning number is smaller, the distance is larger, the page turning number is larger, after the distance between the pressing position and the left and right edge positions of the screen of the terminal device is determined, the page turning number is determined according to the distance between the pressing position and the left and right edge positions of the screen of the terminal device, and after the page turning number is determined, batch page turning operation is.
And step S307, determining a corresponding page turning operation according to the rotation direction, and executing the page turning operation.
If the rotation angle value is smaller than the third rotation angle threshold, it may be determined that the condition of batch page turning is not met, and at this time, single page turning may be performed, specifically, a corresponding page turning operation may be determined according to the rotation direction, for example, if it is determined that the rotation direction is the left rotation direction, it may be determined that the corresponding page turning operation is a backward page turning operation, and the backward page turning operation is performed on the electronic book; if the rotation direction is determined to be the right rotation direction, the corresponding page turning operation can be determined to be a forward page turning operation, and the forward page turning operation is executed on the electronic book.
And S308, changing the page turning identification bit from a first preset value to a second preset value, and skipping to execute the S301.
If the rotation angle value is greater than or equal to the first rotation angle threshold and the page turning flag is the first preset value, it indicates that the page turning operation is allowed to be executed, whether the rotation angle threshold is greater than or equal to the third rotation angle threshold or not, and whether batch page turning is executed or not, in order to avoid that the collected rotation angle value is greater than or equal to the first rotation angle threshold, the batch page turning operation is executed again, here, the page turning flag is modified from the first preset value to the second preset value, for example, the page turning flag is modified from 1 to 0, and the step S301 is executed by skipping. The page turning identification position is modified into the second preset value, so that one-time rotation operation only triggers one-time page turning operation or one-time batch page turning operation.
It should be noted that the execution sequence of step S308 and steps S304 to S307 is not limited in this embodiment.
And S309, changing the page turning identification bit from the second preset value to the first preset value, and skipping to execute the step S301.
If the rotation angle value is smaller than the first rotation angle threshold value and the page turning flag is the second preset value, it indicates that the terminal device has gradually rotated to the initial position, and in order to facilitate the next page turning operation, the page turning flag needs to be modified, specifically, the page turning flag is modified from the second preset value to the first preset value, for example, the page turning flag is modified from 0 to 1, and step S301 is skipped to and executed.
According to the method provided by the embodiment of the invention, the user can turn the page of the electronic book by rotating the terminal equipment, the page of the electronic book can be turned without sliding the user left and right or up and down on the screen of the terminal equipment, and the page of the electronic book can be turned without controlling other function keys of the terminal equipment, so that the fingers of the user are liberated, the page turning by one hand is realized, and convenience is provided for the user to read the electronic book; by setting the page turning identification position, the user can only turn the page of the electronic book once through one-time rotation operation, and inconvenience brought to the user due to frequent page turning is avoided; in addition, the method can determine to execute batch page turning operation or single page turning operation by controlling the rotation angle of the terminal equipment, dynamically adjust the page turning number according to the pressing force of the user, and realize batch page turning as required.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the page turning method based on the gravity sensing in any method embodiment.
The executable instructions may be specifically configured to cause the processor to: collecting gravity sensing parameters of terminal equipment; judging whether a page turning condition is met or not according to the gravity sensing parameters; and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
In an alternative embodiment, the gravity sensing parameters include: the rotation direction and the rotation angle value;
the executable instructions further cause the processor to: judging whether the rotation angle value is larger than or equal to a first rotation angle threshold value or not, and judging whether a preset page turning identification bit is a first preset value or not, wherein the first preset value is used for indicating that page turning operation is allowed to be executed;
and if the rotation angle value is larger than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value, determining the corresponding page turning operation according to the rotation direction and executing the page turning operation.
In an alternative embodiment, the executable instructions further cause the processor to: and if the rotation value is larger than or equal to the first preset rotation threshold value and the page turning identification bit is the first preset value, modifying the page turning identification bit from the first preset value to a second preset value, wherein the second preset value is used for indicating that the page turning operation is forbidden to be executed.
In an alternative embodiment, the executable instructions further cause the processor to: and if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, modifying the page turning identification bit from the second preset value to the first preset value.
In an alternative embodiment, the executable instructions further cause the processor to: judging whether the rotation angle value is less than or equal to a second rotation angle threshold value or not; wherein the second rotation angle threshold is less than the first rotation angle threshold;
if so, the page turning identification bit is modified from the second preset value to the first preset value.
In an alternative embodiment, the executable instructions further cause the processor to: and before the corresponding page turning operation is determined according to the gravity sensing parameters, if a long-press touch event is monitored, the page turning operation is forbidden to be executed.
In an alternative embodiment, the executable instructions further cause the processor to: and modifying the preset page turning identification bit from a first preset value to a second preset value, and setting the attribute of the page turning identification bit to be an attribute which cannot be modified, wherein the first preset value is used for indicating that the page turning operation is allowed to be executed, and the second preset value is used for indicating that the page turning operation is forbidden to be executed.
In an alternative embodiment, the executable instructions further cause the processor to: and if the touch event is monitored to be lifted, setting the attribute of the page turning identification position as a modifiable attribute.
In an alternative embodiment, the executable instructions further cause the processor to: if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment; and executing batch page turning operation according to the page turning number.
In an alternative embodiment, the executable instructions further cause the processor to: if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment; and executing batch page turning operation according to the page turning number.
In an alternative embodiment, the executable instructions further cause the processor to: judging whether the rotation angle value is greater than or equal to a third rotation angle threshold value or not after judging that the rotation angle value is greater than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is larger than or equal to the third rotation angle threshold value, determining the corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
In an alternative embodiment, the executable instructions further cause the processor to: and presenting a page turning window in the display interface, and displaying the page turning number in the page turning window.
In an alternative embodiment, the executable instructions further cause the processor to: if the rotation angle value is larger than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value, judging whether the rotation angle value is larger than or equal to a third rotation angle threshold value; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is larger than or equal to the third rotation angle threshold value, determining the corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
In an alternative embodiment, the executable instructions further cause the processor to: and determining and executing page turning of the reading page to a previous chapter head page or a next chapter head page or a page where a previous latest annotation is located or a page where a next latest annotation is located according to the rotation direction.
Fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein: the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
The processor 402 is configured to execute the program 410, and may specifically execute the relevant steps in the above-described embodiment of the page turning method based on gravity sensing.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations:
collecting gravity sensing parameters of terminal equipment; judging whether a page turning condition is met or not according to the gravity sensing parameters; and if the judgment result shows that the page turning condition is met, determining the corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
In an alternative embodiment, the gravity sensing parameters include: the rotation direction and the rotation angle value;
the program 410 further causes the processor 402 to: judging whether the rotation angle value is larger than or equal to a first rotation angle threshold value or not, and judging whether a preset page turning identification bit is a first preset value or not, wherein the first preset value is used for indicating that page turning operation is allowed to be executed;
and if the rotation angle value is larger than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value, determining the corresponding page turning operation according to the rotation direction and executing the page turning operation.
In an alternative embodiment, program 410 further causes processor 402 to: and if the rotation value is larger than or equal to the first preset rotation threshold value and the page turning identification bit is the first preset value, modifying the page turning identification bit from the first preset value to a second preset value, wherein the second preset value is used for indicating that the page turning operation is forbidden to be executed.
In an alternative embodiment, program 410 further causes processor 402 to: and if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, modifying the page turning identification bit from the second preset value to the first preset value.
In an alternative embodiment, program 410 further causes processor 402 to: judging whether the rotation angle value is less than or equal to a second rotation angle threshold value or not; wherein the second rotation angle threshold is less than the first rotation angle threshold;
if so, the page turning identification bit is modified from the second preset value to the first preset value.
In an alternative embodiment, program 410 further causes processor 402 to: and before the corresponding page turning operation is determined according to the gravity sensing parameters, if a long-press touch event is monitored, the page turning operation is forbidden to be executed.
In an alternative embodiment, program 410 further causes processor 402 to: and modifying the preset page turning identification bit from a first preset value to a second preset value, and setting the attribute of the page turning identification bit to be an attribute which cannot be modified, wherein the first preset value is used for indicating that the page turning operation is allowed to be executed, and the second preset value is used for indicating that the page turning operation is forbidden to be executed.
In an alternative embodiment, program 410 further causes processor 402 to: and if the touch event is monitored to be lifted, setting the attribute of the page turning identification position as a modifiable attribute.
In an alternative embodiment, program 410 further causes processor 402 to: if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
In an alternative embodiment, program 410 further causes processor 402 to: if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
In an alternative embodiment, program 410 further causes processor 402 to: judging whether the rotation angle value is greater than or equal to a third rotation angle threshold value or not after judging that the rotation angle value is greater than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is larger than or equal to the third rotation angle threshold value, determining the corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
In an alternative embodiment, program 410 further causes processor 402 to: and presenting a page turning window in the display interface, and displaying the page turning number in the page turning window.
In an alternative embodiment, program 410 further causes processor 402 to: if the rotation angle value is larger than or equal to the first rotation angle threshold value and the page turning identification bit is a first preset value, judging whether the rotation angle value is larger than or equal to a third rotation angle threshold value; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is larger than or equal to the third rotation angle threshold value, determining the corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
In an alternative embodiment, program 410 further causes processor 402 to: and determining and executing page turning of the reading page to a previous chapter head page or a next chapter head page or a page where a previous latest annotation is located or a page where a next latest annotation is located according to the rotation direction.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. a page turning method based on gravity sensing comprises the following steps:
collecting gravity sensing parameters of terminal equipment;
judging whether page turning conditions are met or not according to the gravity sensing parameters;
and if the page turning condition is judged to be met, determining a corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
A2. The method of a1, wherein the gravity sensing parameters include: the rotation direction and the rotation angle value;
the judging whether the page turning condition is met according to the gravity sensing parameters further comprises the following steps:
judging whether the rotation angle value is larger than or equal to a first rotation angle threshold value or not, and judging whether a preset page turning identification bit is a first preset value or not, wherein the first preset value is used for indicating that page turning operation is allowed to be executed;
and if the rotation angle value is larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, determining a corresponding page turning operation according to the rotation direction and executing the page turning operation.
A3. The method according to a2, wherein, after determining that the rotation value is greater than or equal to a first preset rotation threshold and the page turning flag is a first preset value, the method further comprises: and changing the page turning identification bit from a first preset value to a second preset value, wherein the second preset value is used for indicating that the page turning operation is forbidden to be executed.
A4. The method of a3, wherein the method further comprises: and if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, modifying the page turning identification bit from the second preset value to the first preset value.
A5. The method according to a4, wherein the modifying the page turning flag from the second preset value to the first preset value further comprises:
judging whether the rotation angle value is smaller than or equal to a second rotation angle threshold value; wherein the second rotation angle threshold is less than the first rotation angle threshold;
if yes, the page turning identification position is changed from a second preset value to a first preset value.
A6. The method of any of a1-a5, wherein, prior to the determining a corresponding page turn operation from the gravity sensing parameter, the method further comprises:
and if the long press touch event is monitored, prohibiting the page turning operation from being executed.
A7. The method of a6, wherein the inhibiting the page flip operation further comprises:
the method comprises the steps of modifying a preset page turning identification bit from a first preset value to a second preset value, and setting the attribute of the page turning identification bit to be an attribute which cannot be modified, wherein the first preset value is used for indicating that page turning operation is allowed to be executed, and the second preset value is used for indicating that the page turning operation is forbidden to be executed.
A8. The method of a7, wherein the method further comprises: and if the touch lifting event is monitored, setting the page turning identification bit attribute as a modifiable attribute.
A9. The method of a1, wherein the determining a corresponding page flip operation from the gravity sensing parameter, the performing the page flip operation further comprises:
if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
A10. The method of any of a2-a5, wherein the determining a corresponding page turn operation from the gravity sensing parameter, the performing the page turn operation further comprises:
if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
A11. The method of a10, wherein the performing a batch page turn operation further comprises:
after the rotation angle value is judged to be larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, whether the rotation angle value is larger than or equal to a third rotation angle threshold value is judged; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is judged to be larger than or equal to the third rotation angle threshold, determining a corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
A12. The method of a10, wherein the method further comprises: and presenting a page turning window in a display interface, and displaying the page turning number in the page turning window.
A13. The method according to a2, wherein, after determining that the rotation angle value is greater than or equal to a first rotation angle threshold and the page turning identification bit is a first preset value, the method further comprises: judging whether the rotation angle value is greater than or equal to a third rotation angle threshold value; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
determining a corresponding page turning operation according to the rotation direction, wherein executing the page turning operation specifically comprises: and if the rotation angle value is judged to be larger than or equal to the third rotation angle threshold, determining a corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
A14. The method according to a13, wherein the determining a corresponding batch page turning operation according to the rotation direction, and the performing the batch page turning operation further includes:
and determining and executing page turning of the reading page to a previous chapter head page or a next chapter head page or a page where a previous latest annotation is located or a page where a next latest annotation is located according to the rotation direction.
B15. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
collecting gravity sensing parameters of terminal equipment;
judging whether page turning conditions are met or not according to the gravity sensing parameters;
and if the page turning condition is judged to be met, determining a corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
B16. The computing device of B15, wherein the gravity sensing parameters include: the rotation direction and the rotation angle value;
the executable instructions further cause the processor to:
judging whether the rotation angle value is larger than or equal to a first rotation angle threshold value or not, and judging whether a preset page turning identification bit is a first preset value or not, wherein the first preset value is used for indicating that page turning operation is allowed to be executed;
and if the rotation angle value is larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, determining a corresponding page turning operation according to the rotation direction and executing the page turning operation.
B17. The computing device of B16, wherein the executable instructions further cause the processor to:
and after the rotation value is judged to be greater than or equal to a first preset rotation threshold value and the page turning identification bit is a first preset value, changing the page turning identification bit from the first preset value to a second preset value, wherein the second preset value is used for indicating that the page turning operation is forbidden to be executed.
B18. The computing device of B17, wherein the executable instructions further cause the processor to:
and if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, modifying the page turning identification bit from the second preset value to the first preset value.
B19. The computing device of B18, wherein the executable instructions further cause the processor to:
judging whether the rotation angle value is smaller than or equal to a second rotation angle threshold value; wherein the second rotation angle threshold is less than the first rotation angle threshold;
if yes, the page turning identification position is changed from a second preset value to a first preset value.
B20. The computing device of any one of B15-B19, wherein the executable instructions further cause the processor to:
and if a long-press touch event is monitored before the corresponding page turning operation is determined according to the gravity sensing parameters, prohibiting the page turning operation from being executed.
B21. The computing device of B20, wherein the executable instructions further cause the processor to:
the method comprises the steps of modifying a preset page turning identification bit from a first preset value to a second preset value, and setting the attribute of the page turning identification bit to be an attribute which cannot be modified, wherein the first preset value is used for indicating that page turning operation is allowed to be executed, and the second preset value is used for indicating that the page turning operation is forbidden to be executed.
B22. The computing device of B21, wherein the executable instructions further cause the processor to:
and if the touch lifting event is monitored, setting the page turning identification bit attribute as a modifiable attribute.
B23. The computing device of B15, wherein the executable instructions further cause the processor to:
if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
B24. The computing device of any one of B16-B19, wherein the executable instructions further cause the processor to:
if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
B25. The computing device of B24, wherein the executable instructions further cause the processor to:
after the rotation angle value is judged to be larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, whether the rotation angle value is larger than or equal to a third rotation angle threshold value is judged; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is judged to be larger than or equal to the third rotation angle threshold, determining a corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
B26. The computing device of B24, wherein the executable instructions further cause the processor to:
and presenting a page turning window in a display interface, and displaying the page turning number in the page turning window.
B27. The computing device of B16, wherein the executable instructions further cause the processor to:
after the rotation angle value is judged to be larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, judging whether the rotation angle value is larger than or equal to a third rotation angle threshold value; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is judged to be larger than or equal to the third rotation angle threshold, determining a corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
B28. The computing device of B27, wherein the executable instructions further cause the processor to:
and determining and executing page turning of the reading page to a previous chapter head page or a next chapter head page or a page where a previous latest annotation is located or a page where a next latest annotation is located according to the rotation direction.
C29. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
collecting gravity sensing parameters of terminal equipment;
judging whether page turning conditions are met or not according to the gravity sensing parameters;
and if the page turning condition is judged to be met, determining a corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
C30. The computer storage medium of C29, wherein the gravity sensing parameters include: the rotation direction and the rotation angle value;
the executable instructions further cause the processor to:
judging whether the rotation angle value is larger than or equal to a first rotation angle threshold value or not, and judging whether a preset page turning identification bit is a first preset value or not, wherein the first preset value is used for indicating that page turning operation is allowed to be executed;
and if the rotation angle value is larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, determining a corresponding page turning operation according to the rotation direction and executing the page turning operation.
C31. The computer storage medium of C30, wherein the executable instructions further cause the processor to:
and after the rotation value is judged to be greater than or equal to a first preset rotation threshold value and the page turning identification bit is a first preset value, changing the page turning identification bit from the first preset value to a second preset value, wherein the second preset value is used for indicating that the page turning operation is forbidden to be executed.
C32. The computer storage medium of C31, wherein the executable instructions further cause the processor to:
and if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, modifying the page turning identification bit from the second preset value to the first preset value.
C33. The computer storage medium of C32, wherein the executable instructions further cause the processor to:
judging whether the rotation angle value is smaller than or equal to a second rotation angle threshold value; wherein the second rotation angle threshold is less than the first rotation angle threshold;
if yes, the page turning identification position is changed from a second preset value to a first preset value.
C34. The computer storage medium of any one of C29-C33, wherein the executable instructions further cause the processor to:
and if a long-press touch event is monitored before the corresponding page turning operation is determined according to the gravity sensing parameters, prohibiting the page turning operation from being executed.
C35. The computer storage medium of C34, wherein the executable instructions further cause the processor to:
the method comprises the steps of modifying a preset page turning identification bit from a first preset value to a second preset value, and setting the attribute of the page turning identification bit to be an attribute which cannot be modified, wherein the first preset value is used for indicating that page turning operation is allowed to be executed, and the second preset value is used for indicating that the page turning operation is forbidden to be executed.
C36. The computer storage medium of C35, wherein the executable instructions further cause the processor to:
and if the touch lifting event is monitored, setting the page turning identification bit attribute as a modifiable attribute.
C37. The computer storage medium of C29, wherein the executable instructions further cause the processor to:
if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
C38. The computer storage medium of any one of C30-C33, wherein the executable instructions further cause the processor to:
if a long-press touch event is monitored, determining the page turning number according to the pressing force parameter, or determining the page turning number according to the distance between the pressing position and the left and right edge positions of the screen of the terminal equipment;
and executing batch page turning operation according to the page turning number.
C39. The computer storage medium of C38, wherein the executable instructions further cause the processor to:
after the rotation angle value is judged to be larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, whether the rotation angle value is larger than or equal to a third rotation angle threshold value is judged; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is judged to be larger than or equal to the third rotation angle threshold, determining a corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
C40. The computer storage medium of C38, wherein the executable instructions further cause the processor to:
and presenting a page turning window in a display interface, and displaying the page turning number in the page turning window.
C41. The computer storage medium of C30, wherein the executable instructions further cause the processor to:
after the rotation angle value is judged to be larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, judging whether the rotation angle value is larger than or equal to a third rotation angle threshold value; wherein the third rotation angle threshold is greater than the first rotation angle threshold;
and if the rotation angle value is judged to be larger than or equal to the third rotation angle threshold, determining a corresponding batch page turning operation according to the rotation direction, and executing the batch page turning operation.
C42. The computer storage medium of C41, wherein the executable instructions further cause the processor to:
and determining and executing page turning of the reading page to a previous chapter head page or a next chapter head page or a page where a previous latest annotation is located or a page where a next latest annotation is located according to the rotation direction.

Claims (10)

1. A page turning method based on gravity sensing comprises the following steps:
collecting gravity sensing parameters of terminal equipment;
judging whether page turning conditions are met or not according to the gravity sensing parameters;
and if the page turning condition is judged to be met, determining a corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
2. The method of claim 1, wherein the gravity sensing parameters comprise: the rotation direction and the rotation angle value;
the judging whether the page turning condition is met according to the gravity sensing parameters further comprises the following steps:
judging whether the rotation angle value is larger than or equal to a first rotation angle threshold value or not, and judging whether a preset page turning identification bit is a first preset value or not, wherein the first preset value is used for indicating that page turning operation is allowed to be executed;
and if the rotation angle value is larger than or equal to a first rotation angle threshold value and the page turning identification bit is a first preset value, determining a corresponding page turning operation according to the rotation direction and executing the page turning operation.
3. The method according to claim 2, wherein after the determining that the rotation value is greater than or equal to a first preset rotation threshold and the page turning flag is a first preset value, the method further comprises: and changing the page turning identification bit from a first preset value to a second preset value, wherein the second preset value is used for indicating that the page turning operation is forbidden to be executed.
4. The method of claim 3, wherein the method further comprises: and if the rotation angle value is smaller than the first rotation angle threshold value and the page turning identification bit is a second preset value, modifying the page turning identification bit from the second preset value to the first preset value.
5. The method of claim 4, wherein the modifying the page turning flag from the second preset value to the first preset value further comprises:
judging whether the rotation angle value is smaller than or equal to a second rotation angle threshold value; wherein the second rotation angle threshold is less than the first rotation angle threshold;
if yes, the page turning identification position is changed from a second preset value to a first preset value.
6. The method according to any of claims 1-5, wherein prior to said determining a corresponding page turning operation from said gravity sensing parameter, the method further comprises:
and if the long press touch event is monitored, prohibiting the page turning operation from being executed.
7. The method of claim 6, wherein said inhibiting said page flipping operation further comprises:
the method comprises the steps of modifying a preset page turning identification bit from a first preset value to a second preset value, and setting the attribute of the page turning identification bit to be an attribute which cannot be modified, wherein the first preset value is used for indicating that page turning operation is allowed to be executed, and the second preset value is used for indicating that the page turning operation is forbidden to be executed.
8. The method of claim 7, wherein the method further comprises: and if the touch lifting event is monitored, setting the page turning identification bit attribute as a modifiable attribute.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
collecting gravity sensing parameters of terminal equipment;
judging whether page turning conditions are met or not according to the gravity sensing parameters;
and if the page turning condition is judged to be met, determining a corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
collecting gravity sensing parameters of terminal equipment;
judging whether page turning conditions are met or not according to the gravity sensing parameters;
and if the page turning condition is judged to be met, determining a corresponding page turning operation according to the gravity sensing parameter, and executing the page turning operation.
CN201911251999.6A 2019-12-09 2019-12-09 Page turning method based on gravity sensing, computing equipment and computer storage medium Active CN111045574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911251999.6A CN111045574B (en) 2019-12-09 2019-12-09 Page turning method based on gravity sensing, computing equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911251999.6A CN111045574B (en) 2019-12-09 2019-12-09 Page turning method based on gravity sensing, computing equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111045574A true CN111045574A (en) 2020-04-21
CN111045574B CN111045574B (en) 2021-04-30

Family

ID=70235274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911251999.6A Active CN111045574B (en) 2019-12-09 2019-12-09 Page turning method based on gravity sensing, computing equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111045574B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130191721A1 (en) * 2012-01-23 2013-07-25 International Business Machines Corporation Dog ear-based page turning for electronic documents
CN103823623A (en) * 2014-02-13 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for performing page turning on terminal reading contents
CN104077041A (en) * 2013-03-29 2014-10-01 腾讯科技(深圳)有限公司 Page turning method, device and terminal
CN104166511A (en) * 2014-08-21 2014-11-26 Tcl通讯(宁波)有限公司 Method and system for automatic page-turning browsing of mobile terminal
CN107305461A (en) * 2016-04-20 2017-10-31 北大方正集团有限公司 The page output control method and system of a kind of electronic publication
CN107589894A (en) * 2017-09-14 2018-01-16 咪咕数字传媒有限公司 A kind of page turning method, device and storage medium
CN109710139A (en) * 2018-12-20 2019-05-03 惠州Tcl移动通信有限公司 A kind of page processing method, device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130191721A1 (en) * 2012-01-23 2013-07-25 International Business Machines Corporation Dog ear-based page turning for electronic documents
CN104077041A (en) * 2013-03-29 2014-10-01 腾讯科技(深圳)有限公司 Page turning method, device and terminal
CN103823623A (en) * 2014-02-13 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for performing page turning on terminal reading contents
CN104166511A (en) * 2014-08-21 2014-11-26 Tcl通讯(宁波)有限公司 Method and system for automatic page-turning browsing of mobile terminal
CN107305461A (en) * 2016-04-20 2017-10-31 北大方正集团有限公司 The page output control method and system of a kind of electronic publication
CN107589894A (en) * 2017-09-14 2018-01-16 咪咕数字传媒有限公司 A kind of page turning method, device and storage medium
CN109710139A (en) * 2018-12-20 2019-05-03 惠州Tcl移动通信有限公司 A kind of page processing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111045574B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN107291356B (en) File transmission display control method and device and corresponding terminal
CN105320417B (en) Page switching method and client
CN107247538B (en) Touch operation processing method and terminal device
CN107358111B (en) A kind of method for secret protection and mobile terminal
CN111885265B (en) Screen interface adjusting method and related device
CN109002759A (en) text recognition method, device, mobile terminal and storage medium
CN108347559A (en) A kind of image pickup method, terminal and computer readable storage medium
CN107562345B (en) Information storage method and mobile terminal
US10152220B2 (en) System and method to control a touchscreen user interface
EP2399186B1 (en) Method and apparatus for displaying additional information items
WO2014043030A1 (en) Pinch-and-zoom, zoom-and-pinch gesture control
US9747007B2 (en) Resizing technique for display content
US11474686B2 (en) Method and device for implementing screen capture, and storage medium
CN107577415A (en) Touch operation response method and device
US20150063785A1 (en) Method of overlappingly displaying visual object on video, storage medium, and electronic device
CN105991415A (en) Message pushing method and mobile terminal
CN107608550A (en) Touch operation response method and device
CN107734183A (en) A kind of method, storage medium and the mobile terminal of one-handed performance mobile terminal
CN106648281B (en) Screenshot method and device
CN111538697A (en) Page turning processing method of electronic book, electronic equipment and computer storage medium
WO2016173307A1 (en) Message copying method and device, and smart terminal
WO2022121537A1 (en) Message sending method and apparatus, message receiving method and apparatus, and electronic device
WO2021249049A1 (en) Mistaken touch prevention method and device used for flexible display screen, terminal and storage medium
TWI687842B (en) Method for browsing virtual reality webpage content and electronic device using the same
CN106406573A (en) Method and system for controlling page turning of mobile terminal

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220829

Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd.

Address before: 100124 2029e, Sihui building, Chaoyang District, Beijing

Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd.